Commit 0b6f0ff0 authored by Shenghao Ding's avatar Shenghao Ding Committed by Takashi Iwai

ALSA: hda/tas2781: correct the register for pow calibrated data

Calibrated data was written into an incorrect register, which cause
speaker protection sometimes malfuctions

Fixes: 5be27f1e ("ALSA: hda/tas2781: Add tas2781 HDA driver")
Signed-off-by: default avatarShenghao Ding <shenghao-ding@ti.com>
Cc: <stable@vger.kernel.org>
Message-ID: <20240406132010.341-1-shenghao-ding@ti.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 84471d01
...@@ -514,10 +514,10 @@ static int tas2563_save_calibration(struct tasdevice_priv *tas_priv) ...@@ -514,10 +514,10 @@ static int tas2563_save_calibration(struct tasdevice_priv *tas_priv)
static void tas2781_apply_calib(struct tasdevice_priv *tas_priv) static void tas2781_apply_calib(struct tasdevice_priv *tas_priv)
{ {
static const unsigned char page_array[CALIB_MAX] = { static const unsigned char page_array[CALIB_MAX] = {
0x17, 0x18, 0x18, 0x0d, 0x18 0x17, 0x18, 0x18, 0x13, 0x18,
}; };
static const unsigned char rgno_array[CALIB_MAX] = { static const unsigned char rgno_array[CALIB_MAX] = {
0x74, 0x0c, 0x14, 0x3c, 0x7c 0x74, 0x0c, 0x14, 0x70, 0x7c,
}; };
unsigned char *data; unsigned char *data;
int i, j, rc; int i, j, rc;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment