aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Fitzgerald <rf@opensource.wolfsonmicro.com>2015-05-28 09:28:12 -0400
committerMark Brown <broonie@kernel.org>2015-05-28 10:02:16 -0400
commit15575ed544910464715df5c45a44b9732e415b93 (patch)
treeff5d771f9a8092c66c66edf13456079b34bb04d3
parentb787f68c36d49bb1d9236f403813641efa74a031 (diff)
ASoC: arizona: Fix noise generator gain TLV
The Arizona codec drivers had an incorrect dB scaling for the noise generator gain that started at 0dB and went upwards. Actually the highest setting is 0dB. Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com> Signed-off-by: Mark Brown <broonie@kernel.org> Cc: stable@vger.kernel.org
-rw-r--r--sound/soc/codecs/wm5102.c2
-rw-r--r--sound/soc/codecs/wm5110.c2
-rw-r--r--sound/soc/codecs/wm8997.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/codecs/wm5102.c b/sound/soc/codecs/wm5102.c
index 0c6d1bc0526e..d476221dba51 100644
--- a/sound/soc/codecs/wm5102.c
+++ b/sound/soc/codecs/wm5102.c
@@ -42,7 +42,7 @@ struct wm5102_priv {
42static DECLARE_TLV_DB_SCALE(ana_tlv, 0, 100, 0); 42static DECLARE_TLV_DB_SCALE(ana_tlv, 0, 100, 0);
43static DECLARE_TLV_DB_SCALE(eq_tlv, -1200, 100, 0); 43static DECLARE_TLV_DB_SCALE(eq_tlv, -1200, 100, 0);
44static DECLARE_TLV_DB_SCALE(digital_tlv, -6400, 50, 0); 44static DECLARE_TLV_DB_SCALE(digital_tlv, -6400, 50, 0);
45static DECLARE_TLV_DB_SCALE(noise_tlv, 0, 600, 0); 45static DECLARE_TLV_DB_SCALE(noise_tlv, -13200, 600, 0);
46static DECLARE_TLV_DB_SCALE(ng_tlv, -10200, 600, 0); 46static DECLARE_TLV_DB_SCALE(ng_tlv, -10200, 600, 0);
47 47
48static const struct wm_adsp_region wm5102_dsp1_regions[] = { 48static const struct wm_adsp_region wm5102_dsp1_regions[] = {
diff --git a/sound/soc/codecs/wm5110.c b/sound/soc/codecs/wm5110.c
index fbaeddb3e903..3ee6cfd0578b 100644
--- a/sound/soc/codecs/wm5110.c
+++ b/sound/soc/codecs/wm5110.c
@@ -167,7 +167,7 @@ static int wm5110_sysclk_ev(struct snd_soc_dapm_widget *w,
167static DECLARE_TLV_DB_SCALE(ana_tlv, 0, 100, 0); 167static DECLARE_TLV_DB_SCALE(ana_tlv, 0, 100, 0);
168static DECLARE_TLV_DB_SCALE(eq_tlv, -1200, 100, 0); 168static DECLARE_TLV_DB_SCALE(eq_tlv, -1200, 100, 0);
169static DECLARE_TLV_DB_SCALE(digital_tlv, -6400, 50, 0); 169static DECLARE_TLV_DB_SCALE(digital_tlv, -6400, 50, 0);
170static DECLARE_TLV_DB_SCALE(noise_tlv, 0, 600, 0); 170static DECLARE_TLV_DB_SCALE(noise_tlv, -13200, 600, 0);
171static DECLARE_TLV_DB_SCALE(ng_tlv, -10200, 600, 0); 171static DECLARE_TLV_DB_SCALE(ng_tlv, -10200, 600, 0);
172 172
173#define WM5110_NG_SRC(name, base) \ 173#define WM5110_NG_SRC(name, base) \
diff --git a/sound/soc/codecs/wm8997.c b/sound/soc/codecs/wm8997.c
index a4d11770630c..e7c81baefe66 100644
--- a/sound/soc/codecs/wm8997.c
+++ b/sound/soc/codecs/wm8997.c
@@ -40,7 +40,7 @@ struct wm8997_priv {
40static DECLARE_TLV_DB_SCALE(ana_tlv, 0, 100, 0); 40static DECLARE_TLV_DB_SCALE(ana_tlv, 0, 100, 0);
41static DECLARE_TLV_DB_SCALE(eq_tlv, -1200, 100, 0); 41static DECLARE_TLV_DB_SCALE(eq_tlv, -1200, 100, 0);
42static DECLARE_TLV_DB_SCALE(digital_tlv, -6400, 50, 0); 42static DECLARE_TLV_DB_SCALE(digital_tlv, -6400, 50, 0);
43static DECLARE_TLV_DB_SCALE(noise_tlv, 0, 600, 0); 43static DECLARE_TLV_DB_SCALE(noise_tlv, -13200, 600, 0);
44static DECLARE_TLV_DB_SCALE(ng_tlv, -10200, 600, 0); 44static DECLARE_TLV_DB_SCALE(ng_tlv, -10200, 600, 0);
45 45
46static const struct reg_default wm8997_sysclk_reva_patch[] = { 46static const struct reg_default wm8997_sysclk_reva_patch[] = {