diff options
author | Zidan Wang <zidan.wang@freescale.com> | 2015-09-09 07:29:10 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-09-11 08:38:53 -0400 |
commit | 3758ff5f3dab57cd768d54279962a2f6bbc17188 (patch) | |
tree | 72a4a3c0e693e0fe0e574ed344ec9692d3f74078 | |
parent | bc0195aad0daa2ad5b0d76cce22b167bc3435590 (diff) |
ASoC: wm8960: correct the min gain value of some PGA
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>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/codecs/wm8960.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/codecs/wm8960.c b/sound/soc/codecs/wm8960.c index 94c5c4681ce5..9c730490a02b 100644 --- a/sound/soc/codecs/wm8960.c +++ b/sound/soc/codecs/wm8960.c | |||
@@ -205,11 +205,11 @@ static int wm8960_put_deemph(struct snd_kcontrol *kcontrol, | |||
205 | return wm8960_set_deemph(codec); | 205 | return wm8960_set_deemph(codec); |
206 | } | 206 | } |
207 | 207 | ||
208 | static const DECLARE_TLV_DB_SCALE(adc_tlv, -9700, 50, 0); | 208 | static const DECLARE_TLV_DB_SCALE(adc_tlv, -9750, 50, 1); |
209 | static const DECLARE_TLV_DB_SCALE(dac_tlv, -12700, 50, 1); | 209 | static const DECLARE_TLV_DB_SCALE(dac_tlv, -12750, 50, 1); |
210 | static const DECLARE_TLV_DB_SCALE(bypass_tlv, -2100, 300, 0); | 210 | static const DECLARE_TLV_DB_SCALE(bypass_tlv, -2100, 300, 0); |
211 | static const DECLARE_TLV_DB_SCALE(out_tlv, -12100, 100, 1); | 211 | static const DECLARE_TLV_DB_SCALE(out_tlv, -12100, 100, 1); |
212 | static const DECLARE_TLV_DB_SCALE(boost_tlv, -1200, 300, 1); | 212 | static const DECLARE_TLV_DB_SCALE(boost_tlv, -1500, 300, 1); |
213 | 213 | ||
214 | static const struct snd_kcontrol_new wm8960_snd_controls[] = { | 214 | static const struct snd_kcontrol_new wm8960_snd_controls[] = { |
215 | SOC_DOUBLE_R_TLV("Capture Volume", WM8960_LINVOL, WM8960_RINVOL, | 215 | SOC_DOUBLE_R_TLV("Capture Volume", WM8960_LINVOL, WM8960_RINVOL, |