Bug 219303

Summary: Mute LED light is not working on my HP laptop
Product: Linux Reporter: gfrank227
Component: KernelAssignee: Virtual assignee for kernel bugs (linux-kernel)
Status: NEW ---    
Severity: normal CC: abhishektamboli24, gfrank227
Priority: P3 Flags: mricon: bugbot+
Hardware: All   
OS: Linux   
Kernel Version: 6.10.10 Subsystem: SOUND
Regression: No Bisected commit-id:
Attachments: Alsa info with light off
alsa info with light on
Fix patch

Description gfrank227 2024-09-23 21:51:07 UTC
I have a laptop, HP Pavilion Gaming Laptop 15z-ec0. the laptop has a mute LED light on the F6 key. It is supposed to light up when the sound is muted.  However, this does not light up when muted. I have tried various models under snd_hda_intel but nothing has worked.

The sound card info is:

/proc/asound/card0/codec#0:Codec: Nvidia GPU 94 HDMI/DP
/proc/asound/card1/codec#0:Codec: Realtek ALC285

The research I've done indicates that:

 sudo hda-verb /dev/snd/hwC1D0 0x20 0x500 0x0B && sudo hda-verb /dev/snd/hwC1D0 0x20 0x400 0x7778

enables this LED and

sudo hda-verb /dev/snd/hwC1D0 0x20 0x500 0x0B && sudo hda-verb /dev/snd/hwC1D0 0x20 0x400 0x7774

disables the LED.

This bug is similar to this bug: https://bugzilla.kernel.org/show_bug.cgi?id=214735

I believe there may be a patch already for other HP models, but something needs to be put into the kernel to tell them to trigger this patch.

I would greatly appreciate it if you would be able to apply the patch to my model so that my LED light would work properly. Thanks!
Comment 1 gfrank227 2024-09-23 21:52:31 UTC
Created attachment 306914 [details]
Alsa info with light off
Comment 2 gfrank227 2024-09-23 21:53:31 UTC
Created attachment 306915 [details]
alsa info with light on
Comment 3 abhishek 2024-09-27 02:08:19 UTC
Created attachment 306923 [details]
Fix patch

Hi,
Is it possible for you to apply this patch at your end and once check?
Comment 4 gfrank227 2024-09-27 13:11:03 UTC
Attempting to build. Stay tuned.
Comment 5 gfrank227 2024-09-27 19:18:52 UTC
OK, good news. With the patch it now works properly without my hacky solution. Good work. Thanks!
Comment 6 abhishek 2024-09-29 17:06:04 UTC
It's Great to hear. 
I send the patch upstream too.
Comment 7 gfrank227 2024-09-30 12:03:06 UTC
thanks. Do you think it'll make it into 6.12?
Comment 8 abhishek 2024-10-02 15:14:53 UTC
Hi,
The patch has been included in the 6.12-rc1.

link : https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git/commit/?id=d75dba49744478c32f6ce1c16b5f391c2d5cef5f