ASoC: tlv320adcx140: Fix digital gain range
authorCamel Guo <camelg@axis.com>
Tue, 8 Sep 2020 09:04:17 +0000 (11:04 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 17 Sep 2020 13:47:11 +0000 (14:47 +0100)
commit73154aca4a03a2ab4833fd36683feb884af06d4b
treeeb0e5f74ef0cf16ac80fd90ae828019b2d579ae5
parent6788fc1a66a0c1d1cec7a0f84f94b517eae8611c
ASoC: tlv320adcx140: Fix digital gain range

According to its datasheet, the digital gain should be -100 dB when
CHx_DVOL is 1 and 27 dB when CHx_DVOL is 255. But with the current
dig_vol_tlv, "Digital CHx Out Volume" shows 27.5 dB if CHx_DVOL is 255
and -95.5 dB if CHx_DVOL is 1. This commit fixes this bug.

Fixes: 689c7655b50c ("ASoC: tlv320adcx140: Add the tlv320adcx140 codec driver family")
Signed-off-by: Camel Guo <camelg@axis.com>
Link: https://lore.kernel.org/r/20200908090417.16695-1-camel.guo@axis.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tlv320adcx140.c