Skip to contentSkip to conversation

FAILED: patch "[PATCH] ALSA: hda/tas2781: Skip invalid TAS2563 UEFI calibration data" failed to apply to 6.12-stable tree

PATCH Sasha Levin 1 participant 1 message Nov 7

Subsystems (3)
lore
Share & tools
lore

Sasha Levin

author maintainer
#0 lore raw

The patch below does not apply to the 6.12-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.

To reproduce the conflict and resubmit, you may use the following commands:

git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.12.y
git checkout FETCH_HEAD
git cherry-pick -x a0f0325e92e505db6a6879d79da5aa88e94a36ab
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '[email protected]' --subject-prefix 'PATCH 6.12.y' 'HEAD^..'

Thanks,
Sasha

------------------ original commit in Linus's tree ------------------

From a0f0325e92e505db6a6879d79da5aa88e94a36ab Mon Sep 17 00:00:00 2001
From: Gergo Koteles <[email protected]>
Date: Tue, 13 Oct 2026 15:02:21 +0200
Subject: [PATCH] ALSA: hda/tas2781: Skip invalid TAS2563 UEFI calibration data

Some Lenovo 14ARB7 laptops do not have proper calibration data.

Skip these zero calibration values and fall back to the calibration data provided by the DSP firmware.

---
 sound/hda/codecs/side-codecs/tas2781_hda_i2c.c | 5 +++++
 1 file changed, 5 insertions(+)
sound/hda/codecs/side-codecs/tas2781_hda_i2c.c +5 -0
index cff8fab8133a8..44855f593daf8 100644
@@ -372,6 +372,11 @@ static int tas2563_save_calibration(struct tas2781_hda *h)
 					i, j, status);
 				return -EINVAL;
 			}
+			if (*(uint32_t *)&data[offset] == 0) {
+				dev_warn(p->dev,
+					 "Dev %d: Caldat[%d] is zero\n", i, j);
+				return -EINVAL;
+			}
 			bedata = cpu_to_be32(*(uint32_t *)&data[offset]);
 			memcpy(&data[offset], &bedata, sizeof(bedata));
 			offset += TAS2563_CAL_DATA_SIZE;
Signature · 1 line
2.53.0