]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: cs42l51: Correct minimum value for SX volume control
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Thu, 2 Jun 2022 16:21:19 +0000 (17:21 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 3 Jun 2022 08:19:26 +0000 (10:19 +0200)
commita6c5bc3aa56997fc7fc45d094c872fde922e051e
tree995ffa4d43ea80e8e025b0e2ab58109f374401d3
parentf3d7d86ff638d34a775cfc32d220bef81f97e57b
ASoC: cs42l51: Correct minimum value for SX volume control

The minimum value for the PGA Volume is given as 0x1A, however the
values from there to 0x19 are all the same volume and this is not
represented in the TLV structure. The number of volumes given is correct
so this leads to all the volumes being shifted. Move the minimum value
up to 0x19 to fix this.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20220602162119.3393857-7-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs42l51.c