From 73e13435c9432c1a1bc95c8adf6c361d4cd24312 Mon Sep 17 00:00:00 2001 From: Hari Krishna chowdary Yennana Date: Fri, 23 Sep 2022 19:28:58 +0530 Subject: [PATCH] asoc: Update wcd937x codec driver controls Amic2 recording is failing due to missing of mixer controls. Change is to add support of ADC and DMIC control for swr master channel map. Change-Id: I0377ec84a49d2eaa390872a29e2d8cf8909794b1 Signed-off-by: Hari Krishna Chowdary Yennana --- asoc/codecs/wcd937x/wcd937x.c | 3 ++- asoc/codecs/wcd937x/wcd937x.h | 11 +++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/asoc/codecs/wcd937x/wcd937x.c b/asoc/codecs/wcd937x/wcd937x.c index a7b3a5a0e8d4..c002574d26b2 100644 --- a/asoc/codecs/wcd937x/wcd937x.c +++ b/asoc/codecs/wcd937x/wcd937x.c @@ -2074,7 +2074,8 @@ const char * const tx_master_ch_text[] = { "ZERO", "SWRM_TX1_CH1", "SWRM_TX1_CH2", "SWRM_TX1_CH3", "SWRM_TX1_CH4", "SWRM_TX2_CH1", "SWRM_TX2_CH2", "SWRM_TX2_CH3", "SWRM_TX2_CH4", "SWRM_TX3_CH1", "SWRM_TX3_CH2", "SWRM_TX3_CH3", "SWRM_TX3_CH4", - "SWRM_PCM_IN", + "SWRM_PCM_IN", "ADC1", "ADC3", "ADC4", "DMIC0", "DMIC1", "DMIC2", + "DMIC4", "DMIC5", "DMIC6", "DMIC7", }; const struct soc_enum tx_master_ch_enum = diff --git a/asoc/codecs/wcd937x/wcd937x.h b/asoc/codecs/wcd937x/wcd937x.h index c97ee78254ad..a868eeb32b9a 100644 --- a/asoc/codecs/wcd937x/wcd937x.h +++ b/asoc/codecs/wcd937x/wcd937x.h @@ -1,5 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */ /* Copyright (c) 2018, 2020 The Linux Foundation. All rights reserved. + * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. */ #ifndef _WCD937X_H @@ -50,6 +51,16 @@ static int wcd937x_swr_master_ch_map[] = { SWRM_TX3_CH3, SWRM_TX3_CH4, SWRM_PCM_IN, + ADC1, + ADC3, + ADC4, + DMIC0, + DMIC1, + DMIC2, + DMIC4, + DMIC5, + DMIC6, + DMIC7, }; #ifdef CONFIG_SND_SOC_WCD937X