summaryrefslogtreecommitdiff
path: root/sound/soc/codecs
diff options
context:
space:
mode:
authorPhani Kumar Uppalapati <phaniu@codeaurora.org>2015-12-07 16:18:25 -0800
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-25 16:02:22 -0700
commit12641b04acc3d66d5dbb8310adddff1b1281424e (patch)
treeffbeee637ee95019746674fce355b306c1e91f0c /sound/soc/codecs
parent189a11723e23a448e0b7ea5b27de590659c9f42e (diff)
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 <phaniu@codeaurora.org>
Diffstat (limited to 'sound/soc/codecs')
-rwxr-xr-xsound/soc/codecs/wcd9335.c8
1 files changed, 8 insertions, 0 deletions
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),