alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] ASoC: wm8960: correct the min gain value of some PGA
@ 2015-09-09 11:29 Zidan Wang
  2015-09-09 11:29 ` [PATCH 2/2] ASoC: wm8960: correct gain value for input PGA and add microphone PGA Zidan Wang
  2015-09-09 11:49 ` [PATCH 1/2] ASoC: wm8960: correct the min gain value of some PGA Charles Keepax
  0 siblings, 2 replies; 11+ messages in thread
From: Zidan Wang @ 2015-09-09 11:29 UTC (permalink / raw)
  To: broonie; +Cc: ckeepax, patches, alsa-devel, Zidan Wang

The min gain is the corresponding gain value when the register value is 0
instead of 1, just correct it.

Signed-off-by: Zidan Wang <zidan.wang@freescale.com>
---
 sound/soc/codecs/wm8960.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sound/soc/codecs/wm8960.c b/sound/soc/codecs/wm8960.c
index e3b7d0c..6163474 100644
--- a/sound/soc/codecs/wm8960.c
+++ b/sound/soc/codecs/wm8960.c
@@ -211,11 +211,11 @@ static int wm8960_put_deemph(struct snd_kcontrol *kcontrol,
 	return wm8960_set_deemph(codec);
 }
 
-static const DECLARE_TLV_DB_SCALE(adc_tlv, -9700, 50, 0);
-static const DECLARE_TLV_DB_SCALE(dac_tlv, -12700, 50, 1);
+static const DECLARE_TLV_DB_SCALE(adc_tlv, -9750, 50, 1);
+static const DECLARE_TLV_DB_SCALE(dac_tlv, -12750, 50, 1);
 static const DECLARE_TLV_DB_SCALE(bypass_tlv, -2100, 300, 0);
 static const DECLARE_TLV_DB_SCALE(out_tlv, -12100, 100, 1);
-static const DECLARE_TLV_DB_SCALE(boost_tlv, -1200, 300, 1);
+static const DECLARE_TLV_DB_SCALE(boost_tlv, -1500, 300, 1);
 
 static const struct snd_kcontrol_new wm8960_snd_controls[] = {
 SOC_DOUBLE_R_TLV("Capture Volume", WM8960_LINVOL, WM8960_RINVOL,
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2015-09-10 11:58 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-09 11:29 [PATCH 1/2] ASoC: wm8960: correct the min gain value of some PGA Zidan Wang
2015-09-09 11:29 ` [PATCH 2/2] ASoC: wm8960: correct gain value for input PGA and add microphone PGA Zidan Wang
2015-09-09 12:02   ` Charles Keepax
2015-09-10  1:20     ` Zidan Wang
2015-09-10  8:20       ` Charles Keepax
2015-09-10  8:21   ` Charles Keepax
2015-09-09 11:49 ` [PATCH 1/2] ASoC: wm8960: correct the min gain value of some PGA Charles Keepax
2015-09-10  1:15   ` Zidan Wang
2015-09-10  8:24     ` Charles Keepax
2015-09-10 10:58       ` Mark Brown
2015-09-10 11:35         ` Charles Keepax

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).