Bug 212407

Summary: Leds on Zbook Studio x360
Product: Drivers Reporter: marietta (senorita.marietta)
Component: Sound(ALSA)Assignee: Jaroslav Kysela (perex)
Status: NEW ---    
Severity: normal CC: senorita.marietta, tiwai
Priority: P1    
Hardware: x86-64   
OS: Linux   
Kernel Version: 5.11.8 Subsystem:
Regression: No Bisected commit-id:
Attachments: alsa-info.txt
Fix patch

Description marietta 2021-03-23 14:59:04 UTC
Hello,

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

can you make a similar patch for HP ZBook Studio x360 G5 too?
The leds work the same way.


Playback mute led:

hda-verb /dev/snd/hwC0D0 0x01 SET_GPIO_MASK 0x10
hda-verb /dev/snd/hwC0D0 0x01 SET_GPIO_DIR 0x10
hda-verb /dev/snd/hwC0D0 0x01 SET_GPIO_DATA 0x10
-> led turns on
hda-verb dev/snd/hwC0D0 0x01 SET_GPIO_DATA 0
-> led turns off


Mic mute led:

-> led is on
hda-verb /dev/snd/hwC0D0 0x01 SET_GPIO_MASK 0x20
hda-verb /dev/snd/hwC0D0 0x01 SET_GPIO_DIR 0x20
hda-verb /dev/snd/hwC0D0 0x01 SET_GPIO_DATA 0
-> the led turns off
hda-verb /dev/snd/hwC0D0 0x01 SET_GPIO_DATA 0x20
-> the led turns on


Thank you
Comment 1 Takashi Iwai 2021-03-26 13:57:19 UTC
Could you give alsa-info.sh output?  Run with --no-upload and attach to Bugzilla.
Comment 2 marietta 2021-03-26 14:59:19 UTC
Created attachment 296075 [details]
alsa-info.txt
Comment 3 Takashi Iwai 2021-04-01 17:09:11 UTC
OK, that's compatible with the already existing quirk.
You can pass model=hp-zbook-mute-led option to snd-hda-intel driver for applying the same quirk.

Meanwhile I'll cook up the patch to apply the quirk for your model statically in the quirk table.
Comment 4 Takashi Iwai 2021-04-01 17:12:57 UTC
Created attachment 296179 [details]
Fix patch
Comment 5 marietta 2021-04-02 18:04:57 UTC
The patch is working perfectly, thank you!