Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 73e13435 authored by Hari Krishna chowdary Yennana's avatar Hari Krishna chowdary Yennana Committed by Gerrit - the friendly Code Review server
Browse files

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: default avatarHari Krishna Chowdary Yennana <quic_hyennnan@quicinc.com>
parent c0b9e1dc
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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 =
+11 −0
Original line number Diff line number Diff line
/* 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