My machine is using an ASUS ROG Ranger VIII and the ALC1150 driver does not seem to support the front panel audio output jack. See here: http://www.alsa-project.org/db/?f=beda691469c55a9e65e5d39fbcc02a434de3fb1c for alsa-info of the situation. Rear sound works, front mic works, everything works in windows. Swapping mic and hp ports with hda-jack-retask makes headphones work but breaks mic. See here: http://www.alsa-project.org/db/?f=62a7b0b1ba9d0311d3984ef0c49a0aa2f64b494d for alsa-info after the retask.
My apologies, one more detail. Jack detection works, I can see headphones detected as plugged in in Gnome, alsamixer, and pavucontrol, but when I plug them in, no sound will come out of the headphones. I am more than happy to help with debugging this. Just let me know what I can do to help.
Take alsa-info.sh outputs before and after plugging the headphone, and attach (don't paste) to Bugzilla. Please run the script with --no-upload option.
Created attachment 246661 [details] Alsa-info.sh output before headphones with dump_coefs on
Created attachment 246671 [details] Alsa-info.sh output after headphones with dump_coefs on
I have added the attachments that you requested.
Thanks to "debianuser" on the ALSA users IRC channel for finding three different gpio combinations on Github: https://github.com/torvalds/linux/blob/master/sound/pci/hda/patch_realtek.c: hda-verb /dev/snd/hwC0D0 1 SET_GPIO_MASK 3 hda-verb /dev/snd/hwC0D0 1 SET_GPIO_DIRECTION 3 hda-verb /dev/snd/hwC0D0 1 SET_GPIO_DATA 3 Running these commands make sound work, but, oddly, it doesn't matter what value they are set to. I've set them to zero through three and it always works. In addition, the second command seems to be the one that makes sound actually play, not 100% sure what the other two do.
Thanks for the information. Could you try the patch below? If it works as is, I'll queue it for merging.
Created attachment 247021 [details] Fix patch
I'm sorry to say that patching the kernel is a bit beyond my experience level. Could you point me to a good tutorial on it? The Debian Wiki one seems to not build. Again, sorry, this is my first go-round with a kernel patch.
Sorry to ask again, but is there any way I can assist you with this one? I've researched a bit on how to patch the kernel, but what I've tried fails.
Hiya, Takashi, this patch also applies to the Asus ROG Maximus Hero VIII, probably to all Asus ROG series VIII Intel boards. Also, I rebuilt my kernel with this patch, and my headphones work. No problems at all. You should integrate into mainline asap.
Also, Takashi, on Windows, this activates an internal amplifier (you can hear it turn on with a 'click') on a headphone plug event. Right now, with your current patch, the amplifier gets turned on as soon as the computer boots. I guess a request for enhancement would be to create an additional quirk that makes these hda-verbs get set on a plug event rather than on boot.
OK I applied the patch now in git tree. It'll be merged to 4.10-rc3 or later, at least. You don't have to worry too much about the amp stuff. The power consumption can be at most reduced by the runtime PM more radically in anyway.