aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/tas2764.c
diff options
context:
space:
mode:
authorHector Martin <marcan@marcan.st>2022-06-30 09:51:34 +0200
committerMark Brown <broonie@kernel.org>2022-07-07 17:16:34 +0100
commit3e99e5697e1f7120b5abc755e8a560b22612d6ed (patch)
tree0310525b86b731097f8ea5442aa5584988993210 /sound/soc/codecs/tas2764.c
parentASoC: tas2764: Fix and extend FSYNC polarity handling (diff)
downloadlinux-dev-3e99e5697e1f7120b5abc755e8a560b22612d6ed.tar.xz
linux-dev-3e99e5697e1f7120b5abc755e8a560b22612d6ed.zip
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: 827ed8a0fa50 ("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>
Diffstat (limited to '')
-rw-r--r--sound/soc/codecs/tas2764.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/tas2764.c b/sound/soc/codecs/tas2764.c
index 2d045631bfe9..2bcb407c3cdd 100644
--- a/sound/soc/codecs/tas2764.c
+++ b/sound/soc/codecs/tas2764.c
@@ -536,7 +536,7 @@ static int tas2764_codec_probe(struct snd_soc_component *component)
}
static DECLARE_TLV_DB_SCALE(tas2764_digital_tlv, 1100, 50, 0);
-static DECLARE_TLV_DB_SCALE(tas2764_playback_volume, -10000, 50, 0);
+static DECLARE_TLV_DB_SCALE(tas2764_playback_volume, -10050, 50, 1);
static const struct snd_kcontrol_new tas2764_snd_controls[] = {
SOC_SINGLE_TLV("Speaker Volume", TAS2764_DVC, 0,