ASoC: Fix dB scales for WM835x
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 25 May 2010 17:46:05 +0000 (10:46 -0700)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 26 May 2010 15:46:51 +0000 (08:46 -0700)
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
sound/soc/codecs/wm8350.c

index e5a48da65f824a3c333c493a8cab0dc9509c0df0..c342c2c9fb491b0ecc41cbf7cfd0e7c3f4971bf7 100644 (file)
@@ -425,8 +425,8 @@ static const struct soc_enum wm8350_enum[] = {
        SOC_ENUM_SINGLE(WM8350_INPUT_MIXER_VOLUME, 15, 2, wm8350_lr),
 };
 
-static DECLARE_TLV_DB_LINEAR(pre_amp_tlv, -1200, 3525);
-static DECLARE_TLV_DB_LINEAR(out_pga_tlv, -5700, 600);
+static DECLARE_TLV_DB_SCALE(pre_amp_tlv, -1200, 3525, 0);
+static DECLARE_TLV_DB_SCALE(out_pga_tlv, -5700, 600, 0);
 static DECLARE_TLV_DB_SCALE(dac_pcm_tlv, -7163, 36, 1);
 static DECLARE_TLV_DB_SCALE(adc_pcm_tlv, -12700, 50, 1);
 static DECLARE_TLV_DB_SCALE(out_mix_tlv, -1500, 300, 1);