mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] ALSA: hda/realtek: Fix mute LED regression on ThinkPad T440/T450 family
@ 2026-11-27 17:12 Carl Egbert
  2026-11-27 17:38 ` Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: Carl Egbert @ 2026-11-27 17:12 UTC (permalink / raw)
  To: Takashi Iwai, Jaroslav Kysela
  Cc: Eric Naim, linux-sound, linux-kernel, regressions, Carl Egbert, stable

Since commit 8a889cce1c6d ("ALSA: hda/realtek: Unchain
ALC269_FIXUP_THINKPAD_ACPI from ALC269_FIXUP_LIMIT_INT_MIC_BOOST"),
ThinkPads whose fixup chain goes through ALC292_FIXUP_TPT440_DOCK or
ALC283_FIXUP_INT_MIC no longer get their mute LEDs set up. On a ThinkPad
T450 (SSID 17aa:5034), the speaker mute LED no longer follows the mute
state: no mixer control gets the speaker LED access flag, so snd-ctl-led
is not loaded automatically and
/sys/class/sound/ctl-led/speaker/card1/list stays empty.

Commit b2d447288fa7 ("ALSA: hda/realtek: Add
ALC269_FIXUP_THINKPAD_LIMIT_INT_MIC_BOOST quirk") added a ThinkPad
variant of ALC269_FIXUP_LIMIT_INT_MIC_BOOST and switched the quirk table
entries that selected the plain fixup directly. Then
commit 8a889cce1c6d ("ALSA: hda/realtek: Unchain
ALC269_FIXUP_THINKPAD_ACPI from ALC269_FIXUP_LIMIT_INT_MIC_BOOST")
removed the chain to ALC269_FIXUP_THINKPAD_ACPI from the plain fixup.
However, two fixups reach the plain fixup through their own chain_id and
were not converted:

  - ALC292_FIXUP_TPT440_DOCK, used by the ThinkPad T440, T440p, T440s
    (via ALC292_FIXUP_TPT440), T540p, W541, X240, X1 Carbon 2nd, T550,
    X250, L440, T450, T450s, L450 and X260
  - ALC283_FIXUP_INT_MIC, used by a ThinkPad (17aa:501a), the IdeaPad
    S210 and the Lenovo 145 (via ALC236_FIXUP_LENOVO_INV_DMIC)

Their chains now end before alc_fixup_thinkpad_acpi(), so these machines
no longer get the mute LED setup for thinkpad_acpi, nor no_shutup_pins.

Point both fixups at ALC269_FIXUP_THINKPAD_LIMIT_INT_MIC_BOOST, which
restores the fixup chains these machines had before 8a889cce1c6d. On
the IdeaPad S210 and Lenovo 145, is_thinkpad() is false, so they only
get no_shutup_pins back, as before the regression.

Tested on a ThinkPad T450 on top of sound.git for-linus (e79163b531ec):
with this patch, snd-ctl-led is loaded automatically at boot, and the
speaker and mic mute LEDs follow the playback and capture mute state
again. Not tested on the machines using ALC283_FIXUP_INT_MIC.

The regression was bisected on the affected T450. An AI assistant
(Claude Code, using Claude Opus 5.5) was used throughout: it helped
diagnose the problem, plan the bisection and write the scripts used for
it, identify the cause, and drafted this patch and changelog. I ran the
bisection and the tests on the hardware and reviewed the change.

Fixes: 8a889cce1c6d ("ALSA: hda/realtek: Unchain ALC269_FIXUP_THINKPAD_ACPI from ALC269_FIXUP_LIMIT_INT_MIC_BOOST")
Cc: stable@vger.kernel.org
Signed-off-by: Carl Egbert <egbertcarl@gmail.com>
---
 sound/hda/codecs/realtek/alc269.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/hda/codecs/realtek/alc269.c b/sound/hda/codecs/realtek/alc269.c
index 5c3b383bb618..003f5052a842 100644
--- a/sound/hda/codecs/realtek/alc269.c
+++ b/sound/hda/codecs/realtek/alc269.c
@@ -5246,7 +5246,7 @@ static const struct hda_fixup alc269_fixups[] = {
 			{ }
 		},
 		.chained = true,
-		.chain_id = ALC269_FIXUP_LIMIT_INT_MIC_BOOST
+		.chain_id = ALC269_FIXUP_THINKPAD_LIMIT_INT_MIC_BOOST
 	},
 	[ALC290_FIXUP_SUBWOOFER_HSJACK] = {
 		.type = HDA_FIXUP_PINS,
@@ -5361,7 +5361,7 @@ static const struct hda_fixup alc269_fixups[] = {
 		.type = HDA_FIXUP_FUNC,
 		.v.func = alc_fixup_tpt440_dock,
 		.chained = true,
-		.chain_id = ALC269_FIXUP_LIMIT_INT_MIC_BOOST
+		.chain_id = ALC269_FIXUP_THINKPAD_LIMIT_INT_MIC_BOOST
 	},
 	[ALC292_FIXUP_TPT440] = {
 		.type = HDA_FIXUP_FUNC,

base-commit: e79163b531eca7f3fdc05031f4b43b6f7c51d3bc
-- 
2.48.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-11-27 17:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-27 17:12 [PATCH] ALSA: hda/realtek: Fix mute LED regression on ThinkPad T440/T450 family Carl Egbert
2026-11-27 17:38 ` Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®