Skip to contentSkip to conversation

ALSA: hda/realtek: Fix mute LED regression on ThinkPad T440/T450 family

PATCH In review Carl Egbert 2 participants 2 messages Nov 27

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ALSA: hda/realtek: Fix mute LED regression on ThinkPad T440/T450 family

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")
---
 sound/hda/codecs/realtek/alc269.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
sound/hda/codecs/realtek/alc269.c +2 -2
index 5c3b383bb618..003f5052a842 100644
@@ -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

Signature · 1 line
2.48.1
#1 lore raw
Quoted 45 lines · Carl Egbert

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.

Quoted 3 lines
Fixes 8a889cce1c6d ("ALSA: hda/realtek: Unchain ALC269_FIXUP_THINKPAD_ACPI from ALC269_FIXUP_LIMIT_INT_MIC_BOOST")

Applied now. Thanks.

Takashi