asoc: codecs: Add unified SWR Tx mapping support

Add dynamic port enablement for wcd938x and
wcd937x targets to support unified swr tx port
mapping added as part of SWR 1.6 updates.

Change-Id: If0cf823dc51028fd5bd95f5a49ffe05998526be6
Signed-off-by: Ramlal Karra <rkarra@codeaurora.org>
此提交包含在:
Ramlal Karra
2020-01-27 21:59:36 +05:30
提交者 Gerrit - the friendly Code Review server
父節點 669089fdbd
當前提交 3e2c37d273
共有 8 個檔案被更改,包括 616 行新增268 行删除

查看文件

@@ -1,5 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/* Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
/* Copyright (c) 2018-2020, The Linux Foundation. All rights reserved.
*/
#ifndef _WCD937X_INTERNAL_H
@@ -9,6 +9,7 @@
#include <asoc/wcd-mbhc-v2.h>
#include <asoc/wcd-irq.h>
#include "wcd937x-mbhc.h"
#include "wcd937x.h"
#define WCD937X_MAX_MICBIAS 3
@@ -17,6 +18,7 @@
#define MAX_PORT 8
#define MAX_CH_PER_PORT 8
#define WCD937X_MAX_SLAVE_PORT_TYPES 10
extern struct regmap_config wcd937x_regmap_config;
struct codec_port_info {
@@ -87,6 +89,7 @@ struct wcd937x_priv {
int ear_rx_path;
int ana_clk_count;
struct mutex ana_tx_clk_lock;
u8 tx_master_ch_map[WCD937X_MAX_SLAVE_CH_TYPES];
};
struct wcd937x_micbias_setting {