]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: cs42l43: Fix maximum ADC Volume
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Thu, 6 Mar 2025 13:32:54 +0000 (13:32 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 22 Mar 2025 19:54:26 +0000 (12:54 -0700)
commitc79a462560d00775597a9a4e1b10c565bd218f66
tree95ecdfd6368d24d9b118903859d3f8eee4f8fd10
parentcebcc1f336a6060fafa4556aa74c4b0a16a66038
ASoC: cs42l43: Fix maximum ADC Volume

[ Upstream commit e26f1cfeac6712516bfeed80890da664f4f2e88a ]

The range of ADC volume is -1 -> 3 (-6 to 18dB) so the number of levels
should actually be 4.

Fixes: fc918cbe874e ("ASoC: cs42l43: Add support for the cs42l43")
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://patch.msgid.link/20250306133254.1861046-1-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/codecs/cs42l43.c