summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/rt5514.h
diff options
context:
space:
mode:
authorOder Chiou <oder_chiou@realtek.com>2016-09-07 06:07:49 +0300
committerMark Brown <broonie@kernel.org>2016-09-12 22:00:12 +0300
commita1338a7d4cd401bb71f4562d6896aa2b74eeb1fb (patch)
tree83757a502d810959ed1bd87b12c9eb9ffc8c3e01 /sound/soc/codecs/rt5514.h
parent29b4817d4018df78086157ea3a55c1d9424a7cfc (diff)
downloadlinux-a1338a7d4cd401bb71f4562d6896aa2b74eeb1fb.tar.xz
ASoC: rt5514: make the volume TLV to match the units 0.01dB
The volume have a step of 0.375dB, but TLV uses the units 0.01dB. It should be changed to a step of 0.75dB to match the units of TLV. Signed-off-by: Oder Chiou <oder_chiou@realtek.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt5514.h')
-rw-r--r--sound/soc/codecs/rt5514.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/rt5514.h b/sound/soc/codecs/rt5514.h
index 68883c68e999..229de0e2c88c 100644
--- a/sound/soc/codecs/rt5514.h
+++ b/sound/soc/codecs/rt5514.h
@@ -196,8 +196,8 @@
#define RT5514_AD_AD_MIX_BIT 10
#define RT5514_AD_AD_MUTE (0x1 << 7)
#define RT5514_AD_AD_MUTE_BIT 7
-#define RT5514_AD_GAIN_MASK (0x7f << 0)
-#define RT5514_AD_GAIN_SFT 0
+#define RT5514_AD_GAIN_MASK (0x3f << 1)
+#define RT5514_AD_GAIN_SFT 1
/* RT5514_ANA_CTRL_MICBST (0x2220) */
#define RT5514_SEL_BSTL_MASK (0xf << 4)