diff options
author | Liam Girdwood <liam.r.girdwood@linux.intel.com> | 2014-05-16 09:55:19 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-05-16 14:56:20 -0400 |
commit | 729af1ce6c8796808079b5ef44b302108374264a (patch) | |
tree | bea0a989c823c4ca39f7e626fa5853eb0d173b2d | |
parent | c9eaa447e77efe77b7fa4c953bd62de8297fd6c5 (diff) |
ASoC: max98090: Fix digital sidetone gain TLV
TLV for digital sidetone volume is wrong, this fix matches it to the
datasheet.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r-- | sound/soc/codecs/max98090.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/codecs/max98090.c b/sound/soc/codecs/max98090.c index f7b0b37aa858..7980784d1e33 100644 --- a/sound/soc/codecs/max98090.c +++ b/sound/soc/codecs/max98090.c | |||
@@ -389,6 +389,7 @@ static const DECLARE_TLV_DB_SCALE(max98090_alc_tlv, -1500, 100, 0); | |||
389 | static const DECLARE_TLV_DB_SCALE(max98090_alcmakeup_tlv, 0, 100, 0); | 389 | static const DECLARE_TLV_DB_SCALE(max98090_alcmakeup_tlv, 0, 100, 0); |
390 | static const DECLARE_TLV_DB_SCALE(max98090_alccomp_tlv, -3100, 100, 0); | 390 | static const DECLARE_TLV_DB_SCALE(max98090_alccomp_tlv, -3100, 100, 0); |
391 | static const DECLARE_TLV_DB_SCALE(max98090_drcexp_tlv, -6600, 100, 0); | 391 | static const DECLARE_TLV_DB_SCALE(max98090_drcexp_tlv, -6600, 100, 0); |
392 | static const DECLARE_TLV_DB_SCALE(max98090_sdg_tlv, 50, 200, 0); | ||
392 | 393 | ||
393 | static const unsigned int max98090_mixout_tlv[] = { | 394 | static const unsigned int max98090_mixout_tlv[] = { |
394 | TLV_DB_RANGE_HEAD(2), | 395 | TLV_DB_RANGE_HEAD(2), |
@@ -665,7 +666,7 @@ static const struct snd_kcontrol_new max98090_snd_controls[] = { | |||
665 | SOC_SINGLE_EXT_TLV("Digital Sidetone Volume", | 666 | SOC_SINGLE_EXT_TLV("Digital Sidetone Volume", |
666 | M98090_REG_ADC_SIDETONE, M98090_DVST_SHIFT, | 667 | M98090_REG_ADC_SIDETONE, M98090_DVST_SHIFT, |
667 | M98090_DVST_NUM - 1, 1, max98090_get_enab_tlv, | 668 | M98090_DVST_NUM - 1, 1, max98090_get_enab_tlv, |
668 | max98090_put_enab_tlv, max98090_micboost_tlv), | 669 | max98090_put_enab_tlv, max98090_sdg_tlv), |
669 | SOC_SINGLE_TLV("Digital Coarse Volume", M98090_REG_DAI_PLAYBACK_LEVEL, | 670 | SOC_SINGLE_TLV("Digital Coarse Volume", M98090_REG_DAI_PLAYBACK_LEVEL, |
670 | M98090_DVG_SHIFT, M98090_DVG_NUM - 1, 0, | 671 | M98090_DVG_SHIFT, M98090_DVG_NUM - 1, 0, |
671 | max98090_dvg_tlv), | 672 | max98090_dvg_tlv), |