Skip to contentSkip to conversation

ALSA: hda/realtek: Fix regression on Lenovo Legion 16IRX9H

PATCH New Takashi Iwai 1 participant 1 message Nov 18 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ALSA: hda/realtek: Fix regression on Lenovo Legion 16IRX9H

Lenovo Legion 16IRX9H has the very same PCI SSID (17aa:3842) as the recently added quirk for Lenovo Thinkpad X G2 IAH, but it needs a different qurik. Although the quirk for Legion 16IRX9H is present, it's not applied because the PCI SSID 17aa:3842 matches at first and the new quirk for Thinkpad X G2 is taken instead.

As a workaround, put the codec SSID matching (17aa:38cd) for Legion before the conflicting PCI SSID quirk entry.

Fixes f2293e7b2ddd ("ALSA: hda/realtek: Enable all four speaker amps on Lenovo ThinkBook X G2 IAH")
---
 sound/hda/codecs/realtek/alc269.c | 2 ++
 1 file changed, 2 insertions(+)
sound/hda/codecs/realtek/alc269.c +2 -0
index 2c541c68ff5b..1d609584e778 100644
@@ -8542,6 +8542,8 @@ static const struct hda_quirk alc269_fixup_tbl[] = {
 	SND_PCI_QUIRK(0x17aa, 0x3827, "Ideapad S740", ALC285_FIXUP_IDEAPAD_S740_COEF),
 	SND_PCI_QUIRK(0x17aa, 0x3834, "Lenovo IdeaPad Slim 9i 14ITL5", ALC287_FIXUP_YOGA7_14ITL_SPEAKERS),
 	SND_PCI_QUIRK(0x17aa, 0x383d, "Legion Y9000X 2019", ALC285_FIXUP_LEGION_Y9000X_SPEAKERS),
+	/* Legion 16IRX9H shares PCI SSID 17aa:3842 with Thinkpad X G2 below */
+	HDA_CODEC_QUIRK(0x17aa, 0x38cd, "Lenovo Legion 16IRX9H", ALC287_FIXUP_TAS2781_I2C),
 	SND_PCI_QUIRK(0x17aa, 0x3842, "ThinkBook X G2 IAH", ALC287_FIXUP_MG_RTKC_CSAMP_CS35L41_I2C_4_THINKPAD),
 	/* IdeaPad Pro 5 14IAH10 shares PCI SSID 17aa:3843 with Yoga Book 9i;
 	 * use codec SSID to distinguish them
Signature · 1 line
2.53.0