[PATCH v4 0/1] ALSA: hda/realtek: Fix internal speakers for Legion Y9000X 2022 IAH7

From: ArcticLampyrid
Date: Mon May 06 2024 - 03:57:12 EST


From: Junhao Pei <ArcticLampyrid@xxxxxxxxxxx>

This fixes the sound not working from internal speakers on
Lenovo Legion Y9000X 2022 IAH7 models.

Closes: https://bugzilla.kernel.org/show_bug.cgi?id=218744

This patch depends on [PATCH v1 1/2] ALSA: hda: cs35l41: Ignore errors when configuring IRQs (by Stefan Binding)
See also <https://lore.kernel.org/lkml/20240429154853.9393-2-sbinding@xxxxxxxxxxxxxxxxxxxxx/>

Change from v3 <https://lore.kernel.org/lkml/TYCP286MB25357A4599E935F26A8AAB24C40E2@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/T/>:
- Remove the patch for cs35l41 to obey the trigger type from DSDT, for it is rarely used, and
the existing samples (Y9000X 2022 IAH7) has wrong trigger type in DSDT, which makes this change
useless.
- Instead, ignore errors when configuring interrupts to allow laptops with bad ACPI to play audio.
(via a patch from Stefan Binding)

Change from v2 <https://lore.kernel.org/lkml/TYCP286MB253523D85F6E0ECAA3E03D58C40E2@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/T/>:
- Correct spkid gpio index.

Change from v1 <https://lore.kernel.org/lkml/TYCP286MB25352F3E995FED9CCE90F1F6C40B2@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/T/>:
- Add a patch for cs35l41 to obey the trigger type from DSDT.
- Avoid disabling interupts for second amps.

Junhao Pei (1):
ALSA: hda/realtek: Fix internal speakers for Legion Y9000X 2022 IAH7

sound/pci/hda/cs35l41_hda_property.c | 2 ++
sound/pci/hda/patch_realtek.c | 1 +
2 files changed, 3 insertions(+)

--
2.45.0