ASoC: wm8960: correct the max register value of mic boost pga
authorZidan Wang <zidan.wang@freescale.com>
Fri, 18 Sep 2015 09:19:43 +0000 (17:19 +0800)
committerMark Brown <broonie@kernel.org>
Sat, 19 Sep 2015 14:51:09 +0000 (07:51 -0700)
the max register value of mic boost pga should be 3.

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>
sound/soc/codecs/wm8960.c

index 70816f02ea8c69f4aee131f5474f0e19192fa29e..d9b43b00244ebdca43f45562efe90ea0275a6341 100644 (file)
@@ -234,9 +234,9 @@ SOC_SINGLE_TLV("Left Input Boost Mixer LINPUT3 Volume",
 SOC_SINGLE_TLV("Left Input Boost Mixer LINPUT2 Volume",
               WM8960_INBMIX2, 1, 7, 0, lineinboost_tlv),
 SOC_SINGLE_TLV("Right Input Boost Mixer RINPUT1 Volume",
-               WM8960_RINPATH, 4, 4, 0, micboost_tlv),
+               WM8960_RINPATH, 4, 3, 0, micboost_tlv),
 SOC_SINGLE_TLV("Left Input Boost Mixer LINPUT1 Volume",
-               WM8960_LINPATH, 4, 4, 0, micboost_tlv),
+               WM8960_LINPATH, 4, 3, 0, micboost_tlv),
 
 SOC_DOUBLE_R_TLV("Playback Volume", WM8960_LDAC, WM8960_RDAC,
                 0, 255, 0, dac_tlv),