diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-05-25 13:46:05 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-05-26 11:46:51 -0400 |
commit | e6a08c5a8990102bcd1f4bae84b668da6c23caa9 (patch) | |
tree | 9f81921b8ac39a0bfb2517c3f3a5c3c116f17fa0 /sound | |
parent | e2b3e622b259e62aa2450a25f1c20cca1bfdc81e (diff) |
ASoC: Fix dB scales for WM835x
These should be regular rather than linear scales.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Cc: stable@kernel.org
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/wm8350.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/wm8350.c b/sound/soc/codecs/wm8350.c index e5a48da65f82..c342c2c9fb49 100644 --- a/sound/soc/codecs/wm8350.c +++ b/sound/soc/codecs/wm8350.c | |||
@@ -425,8 +425,8 @@ static const struct soc_enum wm8350_enum[] = { | |||
425 | SOC_ENUM_SINGLE(WM8350_INPUT_MIXER_VOLUME, 15, 2, wm8350_lr), | 425 | SOC_ENUM_SINGLE(WM8350_INPUT_MIXER_VOLUME, 15, 2, wm8350_lr), |
426 | }; | 426 | }; |
427 | 427 | ||
428 | static DECLARE_TLV_DB_LINEAR(pre_amp_tlv, -1200, 3525); | 428 | static DECLARE_TLV_DB_SCALE(pre_amp_tlv, -1200, 3525, 0); |
429 | static DECLARE_TLV_DB_LINEAR(out_pga_tlv, -5700, 600); | 429 | static DECLARE_TLV_DB_SCALE(out_pga_tlv, -5700, 600, 0); |
430 | static DECLARE_TLV_DB_SCALE(dac_pcm_tlv, -7163, 36, 1); | 430 | static DECLARE_TLV_DB_SCALE(dac_pcm_tlv, -7163, 36, 1); |
431 | static DECLARE_TLV_DB_SCALE(adc_pcm_tlv, -12700, 50, 1); | 431 | static DECLARE_TLV_DB_SCALE(adc_pcm_tlv, -12700, 50, 1); |
432 | static DECLARE_TLV_DB_SCALE(out_mix_tlv, -1500, 300, 1); | 432 | static DECLARE_TLV_DB_SCALE(out_mix_tlv, -1500, 300, 1); |