Commit 5dc50b11 authored by Baojun Xu's avatar Baojun Xu Committed by Takashi Iwai
Browse files

ALSA: hda: Fix the wrong register was used for DVC of TAS2770



The wrong register was used for digital volume control of TAS2770,
The definition was changed, and usage was also updated.

Fixes: ab29b346 ("ALSA: hda: Add TAS2770 support")
Signed-off-by: default avatarBaojun Xu <baojun.xu@ti.com>
Link: https://patch.msgid.link/20250729145849.55057-1-baojun.xu@ti.com


Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent d35cdd6e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -14,10 +14,10 @@
#ifndef __TAS2770_TLV_H__
#define __TAS2770_TLV_H__

#define TAS2770_DVC_LEVEL		TASDEVICE_REG(0x0, 0x0, 0x17)
#define TAS2770_DVC_LEVEL		TASDEVICE_REG(0x0, 0x0, 0x05)
#define TAS2770_AMP_LEVEL		TASDEVICE_REG(0x0, 0x0, 0x03)

static const __maybe_unused DECLARE_TLV_DB_SCALE(tas2770_dvc_tlv, 1650, 50, 0);
static const __maybe_unused DECLARE_TLV_DB_SCALE(tas2770_dvc_tlv, -10000, 50, 0);
static const __maybe_unused DECLARE_TLV_DB_SCALE(tas2770_amp_tlv, 1100, 50, 0);

#endif
+1 −1
Original line number Diff line number Diff line
@@ -260,7 +260,7 @@ static const struct snd_kcontrol_new tas2770_snd_controls[] = {
		0, 0, 20, 0, tas2781_amp_getvol,
		tas2781_amp_putvol, tas2770_amp_tlv),
	ACARD_SINGLE_RANGE_EXT_TLV("Speaker Digital Volume", TAS2770_DVC_LEVEL,
		0, 0, 31, 0, tas2781_amp_getvol,
		0, 0, 200, 1, tas2781_amp_getvol,
		tas2781_amp_putvol, tas2770_dvc_tlv),
};