Re: [PATCH] ALSA: hda/realtek: Fix speaker mute LED for HP Laptop 15-fd0039nt
Takashi Iwai <[email protected]>
| Newsgroups | org.alsa-project.alsa-devel,org.kernel.vger.linux-sound |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 24 Aug 2026 11:42:28 +0200,
Habil Eren Türker wrote:
>
> HP Laptop 15-fd0039nt (SSID 103c:8bb6) needs a quirk to control the
> speaker mute LED via VREF100 on NID 0x1a (active-high).
>
> This patch replaces the previous ALC236_FIXUP_HP_MICMUTE_LED_ONLY
> with ALC236_FIXUP_HP_15_FD0XXX, which covers both mic mute (GPIO0)
> and speaker mute (NID 0x1a) LEDs.
>
> Use spec->no_shutup_pins instead of a custom shutup hook, as suggested
> by Takashi Iwai.
>
> Fixes: e711ebfadc9a ("ALSA: hda/realtek: Add quirk for HP Laptop 15-fd0039nt")
> Tested-by: Habil Eren Türker <[email protected]>
> Signed-off-by: Habil Eren Türker <[email protected]>
> ---
> sound/hda/codecs/realtek/alc269.c | 51 ++++++++++++++++++++++++++-----
> 1 file changed, 43 insertions(+), 8 deletions(-)
>
> diff --git a/sound/hda/codecs/realtek/alc269.c b/sound/hda/codecs/realtek/alc269.c
> index 01b87267f..a2a3341c3 100644
> --- a/sound/hda/codecs/realtek/alc269.c
> +++ b/sound/hda/codecs/realtek/alc269.c
> @@ -1364,14 +1364,49 @@ static void alc269_fixup_hp_gpio_led(struct hda_codec *codec,
> alc_fixup_hp_gpio_led(codec, action, 0x08, 0x10);
> }
>
> -static void alc236_fixup_hp_micmute_led_only(struct hda_codec *codec,
> - const struct hda_fixup *fix, int action)
> +/* Patch for HP 15-fd0xxx (8BB6) Speaker Mute LED & Mic-Mute LED */
> +
> +static unsigned int hp_8bb6_power_filter(struct hda_codec *codec,
> + hda_nid_t nid,
> + unsigned int power_state)
> +{
> + if (nid == 0x1a)
> + return AC_PWRST_D0;
> + return snd_hda_gen_path_power_filter(codec, nid, power_state);
> +}
Better to give a bit more comment about this power filter, as it's not
clear why keeping the power of NID 0x1a.
Also, the patch contained trailing whitespaces.
Please run scripts/checkpatch.pl before resubmission.
thanks,
Takashi