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

Commit 5ff44be8 authored by Bhalchandra Gajare's avatar Bhalchandra Gajare
Browse files

ASoC: msm8x10-wcd: Add gain controls for ADC gains



Add the mixer controls to control the analog gain on the TX path
of the codec. This gain is applies to the ADC on the path. These
mixer controls will be used by higher layer to set desired gain.

Change-Id: Ic255f83238e8e06d31786c149743ec67cdfd6f87
Signed-off-by: default avatarBhalchandra Gajare <gajare@codeaurora.org>
parent 00ca6a61
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -1199,6 +1199,13 @@ static const struct snd_kcontrol_new msm8x10_wcd_snd_controls[] = {
			  MSM8X10_WCD_A_CDC_TX2_VOL_CTL_GAIN,
			0, -84, 40, digital_gain),

	SOC_SINGLE_TLV("ADC1 Volume", MSM8X10_WCD_A_TX_1_EN, 2,
					19, 0, analog_gain),
	SOC_SINGLE_TLV("ADC2 Volume", MSM8X10_WCD_A_TX_2_EN, 2,
					19, 0, analog_gain),
	SOC_SINGLE_TLV("ADC3 Volume", MSM8X10_WCD_A_TX_3_EN, 2,
					19, 0, analog_gain),

	SOC_SINGLE_SX_TLV("IIR1 INP1 Volume",
			  MSM8X10_WCD_A_CDC_IIR1_GAIN_B1_CTL,
			 0, -84, 40, digital_gain),