Bug 195827
Summary: | Mute key LED does not work on HP notebooks | ||
---|---|---|---|
Product: | Drivers | Reporter: | kernel |
Component: | Sound(ALSA) | Assignee: | Jaroslav Kysela (perex) |
Status: | NEW --- | ||
Severity: | normal | CC: | beebarss.saj.ma, christian.heimanns, glise667, luya, r3wald, tiwai, vitaemanuele01, zicronsoft |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 4.10 | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: |
Alsa-info output
Alsa-info output after modprobe change Alsa-info output kernel 4.12-rc1 alsa-info from HP Envy x360 15-cp0xxx Ryzen 2500u Alsa-info output for HP G7 255 Ryzen 3500U alsa-info.txt HP ProBook 455 G7 problem with led mute/unmute |
Description
kernel
2017-05-19 17:17:32 UTC
Reassigning to sound component. Please give alsa-info.sh output for further investigation. Run the script with --no-upload option, and attach to Bugzilla (don't paste to the form). Created attachment 256631 [details]
Alsa-info output
Attached alsa-info output
Try to pass model=mute-led-gpio option to snd-hda-intel module. For example, pass the following line to /etc/modprobe.d/90-hda.conf: options snd-hda-intel model=mute-led-gpio Hi Takashi, Unfortunately creating the file mentioned with that line does not change the behaviour. Did you reboot after the change, right? Then attach alsa-info.sh output again after the change. If it really doesn't help, try to check whether any GPIO pin corresponds to the mute LED. Install hda-verb program (included in alsa-tools package), and run like: hda-verb /dev/snd/hwC0D0 0x01 SET_GPIO_MASK 0x01 hda-verb /dev/snd/hwC0D0 0x01 SET_GPIO_DIR 0x01 hda-verb /dev/snd/hwC0D0 0x01 SET_GPIO_DATA 0x01 This will turn on GPIO#1, the first bit. For GPIO#2, pass 0x02 to each, and for GPIO#3, pass 0x04, GPIO#4, pass 0x08.... See whether the LED turns on by that. The codec has 7 GPIO pins, so try up to 0x40. Created attachment 256633 [details]
Alsa-info output after modprobe change
Yes, I did indeed reboot. Attached is the new alsa-info. I'll go through the GPIO pins and report.
Ah, you're using a too old kernel. The GPIO mute LED on Conexant code was added since 4.12-rc1. Try 4.12-rc1 with that model option. Just to be clear, should I change only the first or also the second register in the command? e.g. hda-verb /dev/snd/hwC0D0 0x02 SET_GPIO_MASK 0x02 ? And I need to check 0x01, 0x02, 0x04, 0x08, 0x10, 0x20 and 0x40 correct? Created attachment 256635 [details]
Alsa-info output kernel 4.12-rc1
Tried again. This time with the following kernel: 4.12.0-041200rc1-generic downloaded from ubuntu kernel ppa.
The mute key LED does still not work, also running the hda-verb commands does not work (please check my comment at 21:02 UTC if I ran it correctly)
Sorry to be unclear, the first 0x01 is the widget NID, and it's always 0x01 for GPIO. Only change the latter 0x01. e.g. hda-verb /dev/snd/hwC0D0 0x01 SET_GPIO_MASK 0x02 hda-verb /dev/snd/hwC0D0 0x01 SET_GPIO_DIR 0x02 hda-verb /dev/snd/hwC0D0 0x01 SET_GPIO_DATA 0x02 I redid it with the proper commands, but still no orange light :( Created attachment 284007 [details] alsa-info from HP Envy x360 15-cp0xxx Ryzen 2500u Hello, I just find this report related to HP laptop. I confirm the issue is also affecting newer model as well. It will be nice to customize this patch (https://bugzilla.kernel.org/attachment.cgi?id=255529&action=diff) applicable to all HP model as possible. It turned out the laptop detected two soundcards according to grep "Codec:" /proc/asound/card*/codec* command: /proc/asound/card0/codec#0:Codec: ATI R6xx HDMI /proc/asound/card1/codec#0:Codec: Realtek ALC295 The GPIO output for each: Codec: ATI R6xx HDMI Address: 0 AFG Function Id: 0x1 (unsol 0) Vendor Id: 0x1002aa01 Subsystem Id: 0x00aa0100 Revision Id: 0x100700 No Modem Function Group found Default PCM: rates [0x70]: 32000 44100 48000 bits [0x2]: 16 formats [0x1]: PCM Default Amp-In caps: N/A Default Amp-Out caps: N/A State of AFG node 0x01: Power states: D0 D3 CLKSTOP EPSS Power: setting=D0, actual=D0, Clock-stop-OK GPIO: io=0, o=0, i=0, unsolicited=0, wake=0 Codec: Realtek ALC295 Address: 0 AFG Function Id: 0x1 (unsol 1) Vendor Id: 0x10ec0295 Subsystem Id: 0x103c8497 Revision Id: 0x100002 No Modem Function Group found Default PCM: rates [0x560]: 44100 48000 96000 192000 bits [0xe]: 16 20 24 formats [0x1]: PCM Default Amp-In caps: N/A Default Amp-Out caps: N/A State of AFG node 0x01: Power states: D0 D1 D2 D3 D3cold CLKSTOP EPSS Power: setting=D0, actual=D0 GPIO: io=3, o=0, i=0, unsolicited=1, wake=0 Hello everyone, i'm also having issues with microphone. here is my alsa report http://alsa-project.org/db/?f=d0d9f718ca2e6cd6020df90e0d0f0c9430d81ec7 i've used this command sudo arecord -Dhw:0,7 -c2 -r48000 -fS32_LE -d 10 mytest.wav and i'm able to record and hear my voice, but if i use skype the mic seem not working. any suggestion please? glise I'm also affected by this bug. I have an HP G7 255 laptop with a Ryzen 3500U CPU. This is the output of "cat /proc/asound/card*/codec* | grep Codec": Codec: ATI R6xx HDMI Codec: Realtek ALC236 Created attachment 295823 [details]
Alsa-info output for HP G7 255 Ryzen 3500U
I have attached the output of alsa-info.sh.
Created attachment 296719 [details]
alsa-info.txt HP ProBook 455 G7
Output of "cat /proc/asound/card*/codec* | grep Codec":
Codec: ATI R6xx HDMI
Codec: Realtek ALC236
(In reply to C Heimanns from comment #18) > Created attachment 296719 [details] > alsa-info.txt HP ProBook 455 G7 > > Output of "cat /proc/asound/card*/codec* | grep Codec": > > Codec: ATI R6xx HDMI > Codec: Realtek ALC236 It's working for me now with kernel: Linux mx 5.10.0-7mx-amd64 #1 SMP Debian 5.10.38-1~mx19+1 (2021-05-20) x86_64 GNU/Linux Who ever was working on it or made it working: Thank you very much! I actually have the same Realtek chip, also on a HP laptop, but mine isn't working (with the 5.12 kernel). Created attachment 306757 [details]
problem with led mute/unmute
Output of "cat /proc/asound/card*/codec* | grep Codec":
Codec: ATI R6xx HDMI
Codec: Realtek ALC236
I'm working with Linux mint 22 Cinnamon and 6.8.0-40-generic kernel
|