Re: [PATCH] ALSA: hda/realtek: Fix silent speakers on Lenovo Legion S7 15IMH05
From: Takashi Iwai
Date: Thu Oct 08 2026 - 03:01:38 EST
On Wed, 07 Oct 2026 22:37:46 +0200,
Matej Sochan wrote:
>
> The speakers on the Legion S7 15IMH05 (PCI SSID 17aa:3811, ALC287) stay
> silent after a cold boot with the current quirk, which applies
> ALC287_FIXUP_LEGION_15IMHG05_SPEAKERS. They only start working after a
> suspend/resume cycle.
>
> The amplifier setup is sent through COEF 0x24/0x26 on NID 0x20. On this
> machine the first pass of that sequence appears to only wake the
> amplifiers. Sending the identical sequence a second time makes both
> speakers work, provided the second write comes a few milliseconds after
> the first: back-to-back writes leave the speakers silent, a 7 ms gap
> makes only the right speaker work, and 8 ms or more is reliable. A dump
> of all COEF registers of NID 0x20 taken before and after the second
> write shows no difference.
>
> Add a dedicated fixup that writes the sequence, waits 20 ms to keep a
> margin over the measured minimum, and writes it again on every codec
> init. It chains to the same AUTOMUTE fixup as before. To share the
> sequence, move the verbs of ALC287_FIXUP_LEGION_15IMHG05_SPEAKERS into a
> named array; this has no functional change for the other users of that
> fixup.
>
> Fixes: 67f4c61a73e9 ("ALSA: hda/realtek: Add quirk for Legion S7 15IMH")
> Cc: stable@xxxxxxxxxxxxxxx
> Link: https://github.com/CachyOS/linux-cachyos/issues/792
> Signed-off-by: Matej Sochan <matej.sochan@xxxxxxxxx>
Applied to for-next branch now. Thanks.
Takashi