From 12641b04acc3d66d5dbb8310adddff1b1281424e Mon Sep 17 00:00:00 2001 From: Phani Kumar Uppalapati Date: Mon, 7 Dec 2015 16:18:25 -0800 Subject: [PATCH] ASoC: wcd9335: Add support for lineout volume adjustment Add mixer controls to adjust wcd9335 codec lineout PA volume adjustment. This gives flexibility for user to modify volume based on use-case. CRs-fixed: 969512 Change-Id: I562f17363d7d38caece358a50d1e3f654d87491f Signed-off-by: Phani Kumar Uppalapati --- sound/soc/codecs/wcd9335.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sound/soc/codecs/wcd9335.c b/sound/soc/codecs/wcd9335.c index ed4e2612e793..caa9fcedbad1 100755 --- a/sound/soc/codecs/wcd9335.c +++ b/sound/soc/codecs/wcd9335.c @@ -8385,6 +8385,14 @@ static const struct snd_kcontrol_new tasha_analog_gain_controls[] = { line_gain), SOC_SINGLE_TLV("HPHR Volume", WCD9335_HPH_R_EN, 0, 20, 1, line_gain), + SOC_SINGLE_TLV("LINEOUT1 Volume", WCD9335_DIFF_LO_LO1_COMPANDER, + 3, 16, 1, line_gain), + SOC_SINGLE_TLV("LINEOUT2 Volume", WCD9335_DIFF_LO_LO2_COMPANDER, + 3, 16, 1, line_gain), + SOC_SINGLE_TLV("LINEOUT3 Volume", WCD9335_SE_LO_LO3_GAIN, 0, 20, 1, + line_gain), + SOC_SINGLE_TLV("LINEOUT4 Volume", WCD9335_SE_LO_LO4_GAIN, 0, 20, 1, + line_gain), SOC_SINGLE_TLV("ADC1 Volume", WCD9335_ANA_AMIC1, 0, 20, 0, analog_gain),