ASoC: codecs: wcd938x: fix dB range for HPHL and HPHR
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Wed, 5 Jul 2023 12:57:23 +0000 (13:57 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 5 Jul 2023 13:53:47 +0000 (14:53 +0100)
commitc03226ba15fe3c42d13907ec7d8536396602557b
tree7481d0b3b907525419b779626e12e73d7b76f631
parent4f3fcf5f6dc8ab561e152c8747fd7e502b32266c
ASoC: codecs: wcd938x: fix dB range for HPHL and HPHR

dB range for HPHL and HPHR gains are from +6dB to -30dB in steps of
1.5dB with register values range from 0 to 24.

Current code maps these dB ranges incorrectly, fix them to allow proper
volume setting.

Fixes: e8ba1e05bdc0 ("ASoC: codecs: wcd938x: add basic controls")
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20230705125723.40464-1-srinivas.kandagatla@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wcd938x.c