Created attachment 289441 [details]
no option to select headphones when plugged in, seems like headphones are undetected
Linux is unable to detect headset on the Asus Zephyrus M GU502. When headphones are plugged in, the audio settings remains as Speakers (Built-in Audio Analag Stereo). Audio works perfectly on internal speakers but is unable to output to headphones. Under pavucontrol, there is no option to choose headphones even when headphones is plugged in.
Other people experiencing the same problem:
The sound card is ALC294 Analog
I forgot to mention that the audio jack on the Zephyrus M is a audio mic combo jack
More forums with the same issue:
Just a few more forums with the same issues. Problem is definitely specific to this laptop
You can try the different quirk for your device, e.g. add the following line
SND_PCI_QUIRK(0x1043, 0x1881, "ASUS GU502", ALC294_FIXUP_ASUS_HPE),
in alc269_fixup_tbl in sound/pci/hda/patch_realtek.c
This will apply the same quirk as ASUS B9450FA that includes the headset support.
In anyway, please upload alsa-info.sh to Bugzilla, too.
(In reply to Takashi Iwai from comment #4)
> You can try the different quirk for your device, e.g. add the following line
> SND_PCI_QUIRK(0x1043, 0x1881, "ASUS GU502", ALC294_FIXUP_ASUS_HPE),
> in alc269_fixup_tbl in sound/pci/hda/patch_realtek.c
> This will apply the same quirk as ASUS B9450FA that includes the headset
> In anyway, please upload alsa-info.sh to Bugzilla, too.
where is the patch_realtek.c located? i did cd /sound and folder does not exist
It's in sound/pci/hda/patch_realtek.c in Linux kernel tree. After patching, compile the kernel, install and retest.
Created attachment 289713 [details]
Test fix patch
I've installed and tested the fix patch. Now plugging in a headset would detect the external headset microphone. However, the sound output is still not showing a headset and only showing speaker as an option.
After some experiments, using hdajackrestask and mapping 0x19 to microphone, I am able to get the headeset microphone to work. Before remapping it and using the kernel, it was still unable to work.
Headset audio still does not work tho.
Just to follow up, I also remapped 0x21 to headphones, which enabled headphone detection, but theres still no audio coming from the headphone. Remapping 0x21 to headphones and 0x19 to microphone are both required to get the headset microphone to work and headphone jack DETECTION (still no audio).
Disregard my previous 3 messages, i felt like ive explained what Ive done extremely poorly. After installing your patch, when I plug my headset in, linux detected the headset mic but it was not working properly. Headphones were still not being detected. I remapped pin 0x21 to headphones on HDAjackretask, and this cause headphone to be DETECTED (still no audio) and the mimcrophone from the headset to function perfectly. If you need any logs please let me know.
My current pincfg:
0x10ec0294 0x10431881 0
the pin cfg i posted above was after applying your patch and remapping 0x21 to headphones on hdajackretask
Even though I have that pincfg, the default for 0x21 isn't changing to what the pincfg has:
Node 0x21 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
Control: name="Headphone Playback Switch", index=0, device=0
ControlAmp: chs=3, dir=Out, idx=0, ofs=0
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-Out vals: [0x00 0x00]
Pincap 0x0001001c: OUT HP EAPD Detect
EAPD 0x2: EAPD
Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
Conn = 1/8, Color = Black
DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0xc0: OUT HP
Unsolicited: tag=01, enabled=1
Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
(In reply to iancmx from comment #6)
> (In reply to Takashi Iwai from comment #4)
> > You can try the different quirk for your device, e.g. add the following
> > SND_PCI_QUIRK(0x1043, 0x1881, "ASUS GU502", ALC294_FIXUP_ASUS_HPE),
> > in alc269_fixup_tbl in sound/pci/hda/patch_realtek.c
> > This will apply the same quirk as ASUS B9450FA that includes the headset
> > support.
> > In anyway, please upload alsa-info.sh to Bugzilla, too.
> where is the patch_realtek.c located? i did cd /sound and folder does not
Already installed the kernel and didn't work for me. It is the same machine listed on that patch
The patch indeed does not work. I have experimented with different hdadjackretask settings buts still unable to get it to work
Anyone has any tips on solving this bug is greatly appreciated. There are many other people facing the same issue with this laptop, and I would like to find a fix as sooon as possible.