aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@nokia.com>2010-07-12 04:50:06 -0400
committerLiam Girdwood <lrg@slimlogic.co.uk>2010-07-13 06:30:05 -0400
commit8b0d31532e2351db920871b8835425bf1e34de38 (patch)
treef3cc07b87edf233f321d45a78bb299a6ceaab99d /sound/soc
parent66b47fdb851924956b6e4696fb43a3496ae2c462 (diff)
ASoC: TWL4030: Fix for digital loopback gain range
When the gain is configured using dB value it was not possible to use -24dB since the loopback got muted instead of -24dB. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@nokia.com> Acked-by: Mark Brown <broonie@opensource.wolfsomicro.com> Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/codecs/twl4030.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sound/soc/codecs/twl4030.c b/sound/soc/codecs/twl4030.c
index 8d36bfa20552..d7f0048273c1 100644
--- a/sound/soc/codecs/twl4030.c
+++ b/sound/soc/codecs/twl4030.c
@@ -540,10 +540,11 @@ static const struct snd_kcontrol_new twl4030_dapm_abypassl2_control =
540static const struct snd_kcontrol_new twl4030_dapm_abypassv_control = 540static const struct snd_kcontrol_new twl4030_dapm_abypassv_control =
541 SOC_DAPM_SINGLE("Switch", TWL4030_REG_VDL_APGA_CTL, 2, 1, 0); 541 SOC_DAPM_SINGLE("Switch", TWL4030_REG_VDL_APGA_CTL, 2, 1, 0);
542 542
543/* Digital bypass gain, 0 mutes the bypass */ 543/* Digital bypass gain, mute instead of -30dB */
544static const unsigned int twl4030_dapm_dbypass_tlv[] = { 544static const unsigned int twl4030_dapm_dbypass_tlv[] = {
545 TLV_DB_RANGE_HEAD(2), 545 TLV_DB_RANGE_HEAD(3),
546 0, 3, TLV_DB_SCALE_ITEM(-2400, 0, 1), 546 0, 1, TLV_DB_SCALE_ITEM(-3000, 600, 1),
547 2, 3, TLV_DB_SCALE_ITEM(-2400, 0, 0),
547 4, 7, TLV_DB_SCALE_ITEM(-1800, 600, 0), 548 4, 7, TLV_DB_SCALE_ITEM(-1800, 600, 0),
548}; 549};
549 550