ASoC: Fix dB scales for WM8990

Previous thread: ALSA: usb-audio: parse UAC2 endpoint descriptors correctly by Linux Kernel Mailing List on Saturday, May 29, 2010 - 3:59 pm. (1 message)

Next thread: ALSA: asihpi - Fix bug preventing outstream_write preload from happening by Linux Kernel Mailing List on Saturday, May 29, 2010 - 3:59 pm. (1 message)
From: Linux Kernel Mailing List
Date: Saturday, May 29, 2010 - 3:59 pm

Gitweb:     http://git.kernel.org/linus/f68596c6d8711650722b2a54328a088a2c21bc5b
Commit:     f68596c6d8711650722b2a54328a088a2c21bc5b
Parent:     3351e9fbb0fda6498ee149ee88c67f5849813c57
Author:     Mark Brown <broonie@opensource.wolfsonmicro.com>
AuthorDate: Tue May 25 10:49:00 2010 -0700
Committer:  Mark Brown <broonie@opensource.wolfsonmicro.com>
CommitDate: Wed May 26 08:46:53 2010 -0700

    ASoC: Fix dB scales for WM8990
    
    These should be regular, not linear.
    
    Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
    Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
    Cc: stable@kernel.org
---
 sound/soc/codecs/wm8990.c |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/sound/soc/codecs/wm8990.c b/sound/soc/codecs/wm8990.c
index 9a9528e..b6c003f 100644
--- a/sound/soc/codecs/wm8990.c
+++ b/sound/soc/codecs/wm8990.c
@@ -110,21 +110,21 @@ static const u16 wm8990_reg[] = {
 
 #define wm8990_reset(c) snd_soc_write(c, WM8990_RESET, 0)
 
-static const DECLARE_TLV_DB_LINEAR(rec_mix_tlv, -1500, 600);
+static const DECLARE_TLV_DB_SCALE(rec_mix_tlv, -1500, 600, 0);
 
-static const DECLARE_TLV_DB_LINEAR(in_pga_tlv, -1650, 3000);
+static const DECLARE_TLV_DB_SCALE(in_pga_tlv, -1650, 3000, 0);
 
-static const DECLARE_TLV_DB_LINEAR(out_mix_tlv, 0, -2100);
+static const DECLARE_TLV_DB_SCALE(out_mix_tlv, 0, -2100, 0);
 
-static const DECLARE_TLV_DB_LINEAR(out_pga_tlv, -7300, 600);
+static const DECLARE_TLV_DB_SCALE(out_pga_tlv, -7300, 600, 0);
 
-static const DECLARE_TLV_DB_LINEAR(out_omix_tlv, -600, 0);
+static const DECLARE_TLV_DB_SCALE(out_omix_tlv, -600, 0, 0);
 
-static const DECLARE_TLV_DB_LINEAR(out_dac_tlv, -7163, 0);
+static const DECLARE_TLV_DB_SCALE(out_dac_tlv, -7163, 0, 0);
 
-static const DECLARE_TLV_DB_LINEAR(in_adc_tlv, -7163, 1763);
+static const DECLARE_TLV_DB_SCALE(in_adc_tlv, -7163, 1763, 0);
 
-static const DECLARE_TLV_DB_LINEAR(out_sidetone_tlv, -3600, 0);
+static const ...
Previous thread: ALSA: usb-audio: parse UAC2 endpoint descriptors correctly by Linux Kernel Mailing List on Saturday, May 29, 2010 - 3:59 pm. (1 message)

Next thread: ALSA: asihpi - Fix bug preventing outstream_write preload from happening by Linux Kernel Mailing List on Saturday, May 29, 2010 - 3:59 pm. (1 message)