aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorShenghao Ding <shenghao-ding@ti.com>2025-08-27 12:34:03 +0800
committerTakashi Iwai <tiwai@suse.de>2025-08-27 15:06:41 +0200
commitf600bddbcf79acd13d4a0d93aed4ee2fe29f927d (patch)
treeb2fe7ee505eb1cb9d97b856f332d22cd5e53b631
parentALSA: usb-audio: move mixer_quirks' min_mute into common quirk (diff)
downloadwireguard-linux-f600bddbcf79acd13d4a0d93aed4ee2fe29f927d.tar.xz
wireguard-linux-f600bddbcf79acd13d4a0d93aed4ee2fe29f927d.zip
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: 4fe238513407 ("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>
-rw-r--r--sound/hda/codecs/side-codecs/tas2781_hda_i2c.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/hda/codecs/side-codecs/tas2781_hda_i2c.c b/sound/hda/codecs/side-codecs/tas2781_hda_i2c.c
index e34b17f0c9b9..7143926c2c30 100644
--- a/sound/hda/codecs/side-codecs/tas2781_hda_i2c.c
+++ b/sound/hda/codecs/side-codecs/tas2781_hda_i2c.c
@@ -327,8 +327,8 @@ static int tas2563_save_calibration(struct tas2781_hda *h)
data[offset] = i;
offset++;
for (j = 0; j < TASDEV_CALIB_N; ++j) {
- ret = snprintf(var8, sizeof(var8), vars[j], i);
-
+ /* EFI name for calibration started with 1, not 0 */
+ ret = snprintf(var8, sizeof(var8), vars[j], i + 1);
if (ret < 0 || ret >= sizeof(var8) - 1) {
dev_err(p->dev, "%s: Read %s failed\n",
__func__, var8);