]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: tas2764: Correct playback volume range
authorHector Martin <marcan@marcan.st>
Thu, 30 Jun 2022 07:51:34 +0000 (09:51 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 21 Jul 2022 19:24:18 +0000 (21:24 +0200)
commita212569eb6204238c1fa727ff38c8ebc308c5810
tree3e7b8a322778b34d8da93980fef51d59912fc173
parent0f2840dab1a1cd2e90ad3bb23470e1d58e0c6b0d
ASoC: tas2764: Correct playback volume range

[ Upstream commit 4124a4df9401e2cf2f9b1c4dec9e9d45b1800e90 ]

DVC value 0xc8 is -100dB and 0xc9 is mute; this needs to map to
-100.5dB as far as the dB scale is concerned. Fix that and enable
the mute flag, so alsamixer correctly shows the control as
<0 dB .. -100 dB, mute>.

Signed-off-by: Hector Martin <marcan@marcan.st>
Fixes: ff5fd908f544 ("ASoC: tas2764: Add the driver for the TAS2764")
Signed-off-by: Martin PoviĊĦer <povik+lin@cutebit.org>
Link: https://lore.kernel.org/r/20220630075135.2221-3-povik+lin@cutebit.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/codecs/tas2764.c