Trouble with headphones and hda audio

Christian Stærk xi at borderworlds.dk
Thu Dec 6 14:02:50 UTC 2018


Hello,

I have a new laptop. It's running 11.2-RELEASE.

While sound on the speakers works fine, sound through the headphones 
does not.

 From dmesg:
hdac0: <Intel (0x9dc8) HDA Controller> mem 
0xa1318000-0xa131bfff,0xa1000000-0xa10fffff irq 16 at device 31.3 on pci0
hdacc0: <Realtek ALC295 HDA CODEC> at cad 0 on hdac0
hdaa0: <Realtek ALC295 Audio Function Group> at nid 1 on hdacc0
pcm0: <Realtek ALC295 (Analog)> at nid 20 and 18 on hdaa0
pcm1: <Realtek ALC295 (Right Analog Headphones)> at nid 33 on hdaa0
hdacc1: <Intel Kabylake HDA CODEC> at cad 2 on hdac0
hdaa1: <Intel Kabylake Audio Function Group> at nid 1 on hdacc1
pcm2: <Intel Kabylake (HDMI/DP 8ch)> at nid 3 on hdaa1

I have tried setting hw.snd.default_unit=1. Then there is no sound 
neither on the speakers or in the headphones.

As I was searching for a solution, I found out that I should do a pindump.

Pindump with the headphones unplugged:
hdaa0: Dumping AFG pins:
hdaa0: nid   0x    as seq device       conn  jack    loc color   misc
hdaa0: 18 b7a60130 3  0  Mic           Fixed Digital Lid-In Unknown 1
hdaa0:     Caps: IN
hdaa0: 19 411111f0 15 0  Speaker       None  1/8     Rear Black   1 DISA
hdaa0:     Caps: IN
hdaa0: 20 90170110 1  0  Speaker       Fixed Analog  Internal Unknown 1
hdaa0:     Caps:    OUT    EAPD      Sense: 0x00000000 (disconnected)
hdaa0: 22 40000000 0  0  Line-out      None  Unknown 0x00 Unknown 0 DISA
hdaa0:     Caps:    OUT HP           Sense: 0x00000000 (disconnected)
hdaa0: 23 411111f0 15 0  Speaker       None  1/8     Rear Black   1 DISA
hdaa0:     Caps:    OUT HP           Sense: 0x00000000 (disconnected)
hdaa0: 24 411111f0 15 0  Speaker       None  1/8     Rear Black   1 DISA
hdaa0:     Caps: IN                  Sense: 0x00000000 (disconnected)
hdaa0: 25 411111f0 15 0  Speaker       None  1/8     Rear Black   1 DISA
hdaa0:     Caps: IN             VREF Sense: 0x00000000 (disconnected)
hdaa0: 26 411111f0 15 0  Speaker       None  1/8     Rear Black   1 DISA
hdaa0:     Caps: IN             VREF Sense: 0x00000000 (disconnected)
hdaa0: 27 411111f0 15 0  Speaker       None  1/8     Rear Black   1 DISA
hdaa0:     Caps: IN OUT    EAPD VREF Sense: 0x00000000 (disconnected)
hdaa0: 30 42e213f2 15 2  Res.E         None  1/4     Front Black   3 DISA
hdaa0:     Caps:    OUT
hdaa0: 33 04211020 2  0  Headphones    Jack  1/8     Right Black   0
hdaa0:     Caps:    OUT HP EAPD      Sense: 0x00000000 (disconnected)
hdaa0: NumGPIO=3 NumGPO=0 NumGPI=0 GPIWake=0 GPIUnsol=1
hdaa0:  GPIO0: disabled
hdaa0:  GPIO1: disabled
hdaa0:  GPIO2: disabled

Pindump with the headphones plugged in:
hdaa1: Dumping AFG pins:
hdaa1: nid   0x    as seq device       conn  jack    loc color   misc
hdaa1:  3 18560010 1  0  Digital-out   Jack  Digital 0x18 Unknown 0
hdaa1:     Caps:    OUT              Sense: 0x00000000 (disconnected)
hdaa1: NumGPIO=0 NumGPO=0 NumGPI=0 GPIWake=0 GPIUnsol=0
hdaa0: Dumping AFG pins:
hdaa0: nid   0x    as seq device       conn  jack    loc color   misc
hdaa0: 18 b7a60130 3  0  Mic           Fixed Digital Lid-In Unknown 1
hdaa0:     Caps: IN
hdaa0: 19 411111f0 15 0  Speaker       None  1/8     Rear Black   1 DISA
hdaa0:     Caps: IN
hdaa0: 20 90170110 1  0  Speaker       Fixed Analog  Internal Unknown 1
hdaa0:     Caps:    OUT    EAPD      Sense: 0x00000000 (disconnected)
hdaa0: 22 40000000 0  0  Line-out      None  Unknown 0x00 Unknown 0 DISA
hdaa0:     Caps:    OUT HP           Sense: 0x00000000 (disconnected)
hdaa0: 23 411111f0 15 0  Speaker       None  1/8     Rear Black   1 DISA
hdaa0:     Caps:    OUT HP           Sense: 0x00000000 (disconnected)
hdaa0: 24 411111f0 15 0  Speaker       None  1/8     Rear Black   1 DISA
hdaa0:     Caps: IN                  Sense: 0x00000000 (disconnected)
hdaa0: 25 411111f0 15 0  Speaker       None  1/8     Rear Black   1 DISA
hdaa0:     Caps: IN             VREF Sense: 0x00000000 (disconnected)
hdaa0: 26 411111f0 15 0  Speaker       None  1/8     Rear Black   1 DISA
hdaa0:     Caps: IN             VREF Sense: 0x00000000 (disconnected)
hdaa0: 27 411111f0 15 0  Speaker       None  1/8     Rear Black   1 DISA
hdaa0:     Caps: IN OUT    EAPD VREF Sense: 0x00000000 (disconnected)
hdaa0: 30 42e213f2 15 2  Res.E         None  1/4     Front Black   3 DISA
hdaa0:     Caps:    OUT
hdaa0: 33 04211020 2  0  Headphones    Jack  1/8     Right Black   0
hdaa0:     Caps:    OUT HP EAPD      Sense: 0x80000000 (connected)
hdaa0: NumGPIO=3 NumGPO=0 NumGPI=0 GPIWake=0 GPIUnsol=1
hdaa0:  GPIO0: disabled
hdaa0:  GPIO1: disabled
hdaa0:  GPIO2: disabled
hdaa1: Dumping AFG pins:
hdaa1: nid   0x    as seq device       conn  jack    loc color   misc
hdaa1:  3 18560010 1  0  Digital-out   Jack  Digital 0x18 Unknown 0
hdaa1:     Caps:    OUT              Sense: 0x00000000 (disconnected)
hdaa1: NumGPIO=0 NumGPO=0 NumGPI=0 GPIWake=0 GPIUnsol=0

Can anyone help me fixing this?

Best regards
Christian


More information about the freebsd-stable mailing list