Skip to content

Commit 217b61a

Browse files
committed
Merge branch 'for-linus'
2 parents 8c2d9f8 + f600bdd commit 217b61a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sound/hda/codecs/side-codecs/tas2781_hda_i2c.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,8 +340,8 @@ static int tas2563_save_calibration(struct tas2781_hda *h)
340340
data[offset] = i;
341341
offset++;
342342
for (j = 0; j < TASDEV_CALIB_N; ++j) {
343-
ret = snprintf(var8, sizeof(var8), vars[j], i);
344-
343+
/* EFI name for calibration started with 1, not 0 */
344+
ret = snprintf(var8, sizeof(var8), vars[j], i + 1);
345345
if (ret < 0 || ret >= sizeof(var8) - 1) {
346346
dev_err(p->dev, "%s: Read %s failed\n",
347347
__func__, var8);

0 commit comments

Comments
 (0)