Skip to content

Commit 3e99e56

Browse files
marcanbroonie
authored andcommitted
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 <[email protected]> Fixes: 827ed8a ("ASoC: tas2764: Add the driver for the TAS2764") Signed-off-by: Martin Povišer <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent d1a10f1 commit 3e99e56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/codecs/tas2764.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ static int tas2764_codec_probe(struct snd_soc_component *component)
536536
}
537537

538538
static DECLARE_TLV_DB_SCALE(tas2764_digital_tlv, 1100, 50, 0);
539-
static DECLARE_TLV_DB_SCALE(tas2764_playback_volume, -10000, 50, 0);
539+
static DECLARE_TLV_DB_SCALE(tas2764_playback_volume, -10050, 50, 1);
540540

541541
static const struct snd_kcontrol_new tas2764_snd_controls[] = {
542542
SOC_SINGLE_TLV("Speaker Volume", TAS2764_DVC, 0,

0 commit comments

Comments
 (0)