aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2010-05-25 10:46:05 -0700
committerMark Brown <broonie@opensource.wolfsonmicro.com>2010-05-25 15:35:18 -0700
commit52e39d22c87b548d632e10a9e30ba3273d916434 (patch)
treebb2ca9226ff55a91c532bef91fb8f69d99ae7e9e /sound/soc
parentbd73fc76f7a232f4add4fb0d7109589987ff7194 (diff)
downloadkernel_goldelico_gta04-52e39d22c87b548d632e10a9e30ba3273d916434.zip
kernel_goldelico_gta04-52e39d22c87b548d632e10a9e30ba3273d916434.tar.gz
kernel_goldelico_gta04-52e39d22c87b548d632e10a9e30ba3273d916434.tar.bz2
ASoC: Fix dB scales for WM835x
These should be regular rather than linear scales. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Cc: stable@kernel.org
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/codecs/wm8350.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/wm8350.c b/sound/soc/codecs/wm8350.c
index e5a48da..c342c2c 100644
--- a/sound/soc/codecs/wm8350.c
+++ b/sound/soc/codecs/wm8350.c
@@ -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);