Solved Trying to get headphones working on a laptop

So I'm trying to get my headphones to work on my laptop. Everything works micrphone and speakers just not headphones when i plug them in

This is an
Manufacturer: Acer
Product Name: Aspire E5-575

Here is dmesg |grep hda

Code:
hdac0: <Intel Kaby Lake-LP HDA Controller> mem 0xb1320000-0xb1323fff,0xb1310000-0xb131ffff at device 31.3 on pci0
hdacc0: <Realtek ALC255 HDA CODEC> at cad 0 on hdac0
hdaa0: <Realtek ALC255 Audio Function Group> at nid 1 on hdacc0
pcm0: <Realtek ALC255 (Internal Analog)> at nid 20 and 18 on hdaa0
pcm1: <Realtek ALC255 (Front Analog Headphones)> at nid 33 on hdaa0
hdacc1: <Intel Kaby Lake HDA CODEC> at cad 2 on hdac0
hdaa1: <Intel Kaby Lake Audio Function Group> at nid 1 on hdacc1
pcm2: <Intel Kaby Lake (HDMI/DP 8ch)> at nid 3 on hdaa1
hdac0: <Intel Kaby Lake-LP HDA Controller> mem 0xb1320000-0xb1323fff,0xb1310000-0xb131ffff at device 31.3 on pci0
hdac0: PCI card vendor: 0x1025, device: 0x1094
hdac0: HDA Driver Revision: 20120126_0002
hdac0: Config options: on=0x00000000 off=0x00000000
hdac0: attempting to allocate 1 MSI vectors (1 supported)
hdac0: using IRQ 133 for MSI
hdac0: Caps: OSS 9, ISS 7, BSS 0, NSDO 1, 64bit, CORB 256, RIRB 256
hdacc0: <Realtek ALC255 HDA CODEC>ahcich0: AHCI reset...
 at cad 0 on hdac0
hdaa0: <Realtek ALC255 Audio Function Group>battery0: units = 0
 at nid 1 on hdacc0
hdaa0: Subsystem ID: 0x10251094
hdaa0: NumGPIO=3 NumGPO=0 NumGPI=0 GPIWake=0 GPIUnsol=1
hdaa0:  GPIO0: disabled
hdaa0:  GPIO1: disabled
hdaa0:  GPIO2: disabled
hdaa0: Original pins configuration:
hdaa0: nid   0x    as seq device       conn  jack    loc        color   misc
hdaa0: 18 90a601c0 12 0  Mic           Fixed Digital Internal   Unknown 1
hdaa0: 20 90171120 2  0  Speaker       Fixed Analog  Internal   Black   1
hdaa0: 23 40000000 0  0  Line-out      None  Unknown 0x00       Unknown 0
hdaa0: 24 411111f0 15 0  Speaker       None  1/8     Rear       Black   1
hdaa0: 25 411111f0 15 0  Speaker       None  1/8     Rear       Black   1
hdaa0: 26 411111f0 15 0  Speaker       None  1/8     Rear       Black   1
hdaa0: 27 411111f0 15 0  Speaker       None  1/8     Rear       Black   1
hdaa0: 29 40700001 0  1  Modem-handset None  Unknown 0x00       Unknown 0
hdaa0: 30 411111f0 15 0  Speaker       None  1/8     Rear       Black   1
hdaa0: 33 02211030 3  0  Headphones    Jack  1/8     Front      Black   0
hdaa0: Patching widget caps nid=29 0x00400400 -> 0x00700400
hdaa0: Patched pins configuration:
hdaa0: nid   0x    as seq device       conn  jack    loc        color   misc
hdaa0: 18 90a601c0 12 0  Mic           Fixed Digital Internal   Unknown 1
hdaa0: 20 90171120 2  0  Speaker       Fixed Analog  Internal   Black   1
hdaa0: 23 40000000 0  0  Line-out      None  Unknown 0x00       Unknown 0 DISA
hdaa0: 24 411111f0 15 0  Speaker       None  1/8     Rear       Black   1 DISA
hdaa0: 25 411111f0 15 0  Speaker       None  1/8     Rear       Black   1 DISA
hdaa0: 26 411111f0 15 0  Speaker       None  1/8     Rear       Black   1 DISA
hdaa0: 27 411111f0 15 0  Speaker       None  1/8     Rear       Black   1 DISA
hdaa0: 30 411111f0 15 0  Speaker       None  1/8     Rear       Black   1 DISA
hdaa0: 33 02211030 3  0  Headphones    Jack  1/8     Front      Black   0
hdaa0: 3 associations found:
hdaa0: Association 0 (2) out:
hdaa0:  Pin nid=20 seq=0
hdaa0: Association 1 (3) out:
hdaa0:  Pin nid=33 seq=0
hdaa0: Association 2 (12) in:
hdaa0:  Pin nid=18 seq=0
hdaa0: Tracing association 0 (2)
hdaa0:  Pin 20 traced to DAC 2
hdaa0: Association 0 (2) trace succeeded
hdaa0: Tracing association 1 (3)
hdaa0:  Pin 33 traced to DAC 3
hdaa0: Association 1 (3) trace succeeded
hdaa0: Tracing association 2 (12)
hdaa0:  Pin 18 traced to ADC 8
hdaa0: Association 2 (12) trace succeeded
hdaa0: Looking for additional DAC for association 0 (2)
hdaa0: Looking for additional DAC for association 1 (3)
hdaa0: Looking for additional ADC for association 2 (12)
hdaa0: Tracing input monitor
hdaa0:  Tracing nid 35 to out
hdaa0: Tracing other input monitors
hdaa0:  Tracing nid 18 to out
hdaa0: Tracing beeper
hdaa0:  nid 29 traced to out
hdaa0: GPIO commit
hdaa0:  GPIO0: output state=1
hdaa0:  GPIO1: disabled
hdaa0:  GPIO2: disabled
hdaa0: FG config/quirks: forcestereo ivref50 ivref80 ivref100 ivref
pcm0: <Realtek ALC255 (Internal Analog)> at nid 20 and 18 on hdaa0
pcm1: <Realtek ALC255 (Front Analog Headphones)> at nid 33 on hdaa0
hdacc1: <Intel Kaby Lake HDA CODEC> at cad 2 on hdac0
hdaa1: <Intel Kaby Lake Audio Function Group> at nid 1 on hdacc1
hdaa1: Subsystem ID: 0x80860101
hdaa1: NumGPIO=0 NumGPO=0 NumGPI=0 GPIWake=0 GPIUnsol=0
hdaa1: Original pins configuration:
hdaa1: nid   0x    as seq device       conn  jack    loc        color   misc
hdaa1:  3 18560010 1  0  Digital-out   Jack  Digital 0x18       Unknown 0
hdaa1: Patched pins configuration:
hdaa1: nid   0x    as seq device       conn  jack    loc        color   misc
hdaa1:  3 18560010 1  0  Digital-out   Jack  Digital 0x18       Unknown 0
hdaa1: 1 associations found:
hdaa1: Association 0 (1) out:
hdaa1:  Pin nid=3 seq=0
hdaa1: Tracing association 0 (1)
hdaa1:  Pin 3 traced to DAC 2
hdaa1: Association 0 (1) trace succeeded
hdaa1: Looking for additional DAC for association 0 (1)
hdaa1: Tracing input monitor
hdaa1: Tracing other input monitors
hdaa1: Tracing beeper
hdaa1: FG config/quirks: forcestereo ivref50 ivref80 ivref100 ivref
pcm2: <Intel Kaby Lake (HDMI/DP 8ch)> at nid 3 on hdaa1

Here is cat /dev/sndstat
Code:
Installed devices:
pcm0: <Realtek ALC255 (Internal Analog)> (play/rec) default
pcm1: <Realtek ALC255 (Front Analog Headphones)> (play)
pcm2: <Intel Kaby Lake (HDMI/DP 8ch)> (play)

Here is mixer
Code:
Mixer vol      is currently set to  88:88
Mixer pcm      is currently set to 100:100
Mixer speaker  is currently set to  74:74
Mixer rec      is currently set to  37:37
Mixer igain    is currently set to   0:0
Mixer ogain    is currently set to 100:100
Mixer monitor  is currently set to  67:67

Whatever else you need just let me know
 
Short answer: put hint.hdaa.0.nid33.config="as=2 seq=15" into your /boot/device.hints.

Long answer: snd_hda(4) and this fine answer ;)
OMG!! This worked right away. Thanks for the fine answer part. I'm going to read it and re-read it so i understand. What i got from it is my as=2 was my speaker and nid 33 was my headphones. i basically did as=2 to put my speaker and headphones together. it also shows in my /dev/sndstat as 1 pcm0 I love this OS

Thanks again
 
Almost yes. Your speaker is nid=20 and your headphone is nid=33. For the headphone switch to work they must have the same association number (=group them together) and the headphone needs the sequence number 15. And that's exactly what the hint does: give nid=33 the same as=2 like nid=20 and set its seq=15.
 
Short answer: put hint.hdaa.0.nid33.config="as=2 seq=15" into your /boot/device.hints.

Long answer: snd_hda(4) and this fine answer ;)
Is it possible you can Look at this? Basically i gave up on my Chromebook but i want it to be my main laptop i use for everything. it only has 1 pcm0: <Intel Kaby Lake (HDMI/DP 8ch)> (play) default basically it plays from the hdmi port but i would like it to play from the speakers and somehow get the mic working also. I don't see other nids to play with to create the new pcm devices. is that even possible ? from the manpage and what you did to fix my issue there where more pins that you could use. Thanks for looking into this if you can. I apologize if i'm asking to much I got this from a Verbose Boot also This is a perfect thread that didn't get resolved of my issue. Just found it
 
Sorry I can't contribute much to your other problem because I don't know what a definitive solution could be. Aside from the HDMI output nothing else is detected by the OS, so there's hardly anything one could do. I guess that sof firmware is needed, but alas, that's not available on FreeBSD. Sorry.
 
Sorry I can't contribute much to your other problem because I don't know what a definitive solution could be. Aside from the HDMI output nothing else is detected by the OS, so there's hardly anything one could do. I guess that sof firmware is needed, but alas, that's not available on FreeBSD. Sorry.
Thanks for looking it up. I had a feeling that i needed the sof-firmware, it was a long shot :p Thanks for fixing my other problem
 
Back
Top