]> 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)
committerMark Brown <broonie@kernel.org>
Thu, 7 Jul 2022 16:16:34 +0000 (17:16 +0100)
commit4124a4df9401e2cf2f9b1c4dec9e9d45b1800e90
tree0310525b86b731097f8ea5442aa5584988993210
parent467cb2aabdeb7cd0e2293e27c169ec8db09dc8ee
ASoC: tas2764: Correct playback volume range

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>
sound/soc/codecs/tas2764.c