aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/soc/codecs/twl4030.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sound/soc/codecs/twl4030.c b/sound/soc/codecs/twl4030.c
index e23c20c42f19..efa1a80b806c 100644
--- a/sound/soc/codecs/twl4030.c
+++ b/sound/soc/codecs/twl4030.c
@@ -803,6 +803,12 @@ static DECLARE_TLV_DB_SCALE(analog_tlv, -2400, 200, 0);
803static DECLARE_TLV_DB_SCALE(output_tvl, -1200, 600, 1); 803static DECLARE_TLV_DB_SCALE(output_tvl, -1200, 600, 1);
804 804
805/* 805/*
806 * Gain control for earpiece amplifier
807 * 0 dB to 12 dB in 6 dB steps (mute instead of -6)
808 */
809static DECLARE_TLV_DB_SCALE(output_ear_tvl, -600, 600, 1);
810
811/*
806 * Capture gain after the ADCs 812 * Capture gain after the ADCs
807 * from 0 dB to 31 dB in 1 dB steps 813 * from 0 dB to 31 dB in 1 dB steps
808 */ 814 */
@@ -877,7 +883,7 @@ static const struct snd_kcontrol_new twl4030_snd_controls[] = {
877 4, 3, 0, output_tvl), 883 4, 3, 0, output_tvl),
878 884
879 SOC_SINGLE_TLV_TWL4030("Earpiece Playback Volume", 885 SOC_SINGLE_TLV_TWL4030("Earpiece Playback Volume",
880 TWL4030_REG_EAR_CTL, 4, 3, 0, output_tvl), 886 TWL4030_REG_EAR_CTL, 4, 3, 0, output_ear_tvl),
881 887
882 /* Common capture gain controls */ 888 /* Common capture gain controls */
883 SOC_DOUBLE_R_TLV("TX1 Digital Capture Volume", 889 SOC_DOUBLE_R_TLV("TX1 Digital Capture Volume",