Skip to content

Commit c8e910a

Browse files
committed
ALSA: hda/tas2781: Fix EFI name for calibration beginning with 1 instead of 0
JIRA: https://issues.redhat.com/browse/RHEL-112755 commit f600bdd Author: Shenghao Ding <shenghao-ding@ti.com> Date: Wed Aug 27 12:34:03 2025 +0800 ALSA: hda/tas2781: Fix EFI name for calibration beginning with 1 instead of 0 A bug reported by one of my customers that EFI name beginning with 0 instead of 1. Fixes: 4fe2385 ("ALSA: hda/tas2781: Move and unified the calibrated-data getting function for SPI and I2C into the tas2781_hda lib") Signed-off-by: Shenghao Ding <shenghao-ding@ti.com> Link: https://patch.msgid.link/20250827043404.644-1-shenghao-ding@ti.com Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <jkysela@redhat.com>
1 parent e2584df commit c8e910a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sound/pci/hda/tas2781_hda_i2c.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,8 +309,8 @@ static int tas2563_save_calibration(struct tas2781_hda *h)
309309
data[offset] = i;
310310
offset++;
311311
for (j = 0; j < TASDEV_CALIB_N; ++j) {
312-
ret = snprintf(var8, sizeof(var8), vars[j], i);
313-
312+
/* EFI name for calibration started with 1, not 0 */
313+
ret = snprintf(var8, sizeof(var8), vars[j], i + 1);
314314
if (ret < 0 || ret >= sizeof(var8) - 1) {
315315
dev_err(p->dev, "%s: Read %s failed\n",
316316
__func__, var8);

0 commit comments

Comments
 (0)