Solved snd_hda gpio settings

I installed 10.1 on a Via based VioTech 3100+ motherboard. Everything works well with the exception of sound. Oddly, the onboard speaker is muted when I plug in speakers to the green jack on the back panel and I have no sound.

Code:
$ cat mixer.txt
Mixer vol  is currently set to  72:72
Mixer pcm  is currently set to 100:100
Mixer line  is currently set to  58:58
Mixer mic  is currently set to 100:100
Mixer rec  is currently set to  35:35
Mixer igain  is currently set to  0:0
Mixer ogain  is currently set to 100:100
Mixer monitor  is currently set to 100:100
Recording source: mic

Code:
$ cat verbose_sndstat.txt
FreeBSD Audio Driver (32bit 2009061500/i386)
Installed devices:
pcm0: <VIA VT1708B_1 (Analog 2.0+HP/2.0)> on hdaa0  (2p:1v/1r:1v) default
   snddev flags=0x2e2<AUTOVCHAN,BUSY,MPSAFE,REGISTERED,VPC>
   [pcm0:play:dsp0.p0]: spd 48000, fmt 0x00200010, flags 0x00002100, 0x00000004
   interrupts 0, underruns 0, feed 0, ready 0 [b:4096/2048/2|bs:4096/2048/2]
   channel flags=0x2100<BUSY,HAS_VCHAN>
   {userland} -> feeder_mixer(0x00200010) -> {hardware}
   [pcm0:play:dsp0.p1]: spd 8000, fmt 0x00100008, flags 0x00000000, 0x00000000
   interrupts 0, underruns 0, feed 0, ready 0 [b:65536/32768/2|bs:0/0/0]
   channel flags=0x0
   {userland} -> feeder_root(0x00000000) -> {hardware}
   pcm0:play:dsp0.p0[pcm0:virtual:dsp0.vp0]: spd 8000, fmt 0x00100008, flags 0x10000000, 0x00000000
   interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:0/0/0]
   channel flags=0x10000000<VIRTUAL>
   {userland} -> feeder_root(0x00000000) -> {hardware}
   [pcm0:record:dsp0.r0]: spd 48000, fmt 0x00200010, flags 0x00002100, 0x00000005
   interrupts 0, overruns 0, feed 0, hfree 4096, sfree 4096 [b:4096/2048/2|bs:4096/2048/2]
   channel flags=0x2100<BUSY,HAS_VCHAN>
   {hardware} -> feeder_root(0x00200010) -> feeder_mixer(0x00200010) -> {userland}
   pcm0:record:dsp0.r0[pcm0:virtual:dsp0.vr0]: spd 8000, fmt 0x00100008, flags 0x10000000, 0x00000000
   interrupts 0, overruns 0, feed 0, hfree 0, sfree 0 [b:0/0/0|bs:0/0/0]
   channel flags=0x10000000<VIRTUAL>
   {hardware} -> feeder_root(0x00000000) -> {userland}
pcm1: <VIA VT1708B_1 (Rear-panel Digital)> on hdaa0  (1p:1v/0r:0v)
   snddev flags=0x2e7<SIMPLEX,AUTOVCHAN,SOFTPCMVOL,BUSY,MPSAFE,REGISTERED,VPC>
   [pcm1:play:dsp1.p0]: spd 48000, fmt 0x00200010, flags 0x00006100, 0x00000004
   interrupts 0, underruns 0, feed 0, ready 0 [b:4096/2048/2|bs:4096/2048/2]
   channel flags=0x6100<BUSY,HAS_VCHAN,VCHAN_PASSTHROUGH>
   {userland} -> feeder_mixer(0x00200010) -> {hardware}
   pcm1:play:dsp1.p0[pcm1:virtual:dsp1.vp0]: spd 8000, fmt 0x00100008, flags 0x10000000, 0x00000000
   interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:0/0/0]
   channel flags=0x10000000<VIRTUAL>
   {userland} -> feeder_root(0x00000000) -> {hardware}

Code:
hdaa0: Disabling useless...
hdaa0:  Disabling pin nid 25 due to None connectivity.
hdaa0:  Disabling pin nid 31 due to None connectivity.
hdaa0:  Disabling pin nid 33 due to None connectivity.
hdaa0:  Disabling pin nid 34 due to None connectivity.
hdaa0:  Disabling pin nid 35 due to None connectivity.
hdaa0:  Disabling ctl 6 nid 22 cnid 31 due to disabled widget.
hdaa0:  Disabling nid 23 connection 0 due to disabled child widget.
hdaa0:  Disabling nid 39 due to all it's consumers disabled.
hdaa0:  Disabling ctl 19 nid 39 cnid -1 due to disabled widget.
hdaa0: Patched pins configuration:
hdaa0: nid  0x  as seq device  conn  jack  loc  color  misc
hdaa0: 25 410110f0 15 0  Line-out  None  1/8  Rear  Black  0 DISA
hdaa0: 26 01a19036 3  6  Mic  Jack  1/8  Rear  Pink  0
hdaa0: 27 0181303e 3  14 Line-in  Jack  1/8  Rear  Blue  0
hdaa0: 28 01014010 1  0  Line-out  Jack  1/8  Rear  Green  0
hdaa0: 29 0221401f 1  15 Headphones  Jack  1/8  Front  Green  0
hdaa0: 30 02a19037 3  7  Mic  Jack  1/8  Front  Pink  0
hdaa0: 31 503701f0 15 0  CD  None  Analog  Internal  Unknown 1 DISA
hdaa0: 32 074311f0 15 0  SPDIF-out  Jack  ATAPI  Rear-panel Black  1
hdaa0: 33 47c421f0 15 0  SPDIF-in  None  RCA  Rear-panel Grey  1 DISA
hdaa0: 34 410160f0 15 0  Line-out  None  1/8  Rear  Orange  0 DISA
hdaa0: 35 410120f0 15 0  Line-out  None  1/8  Rear  Grey  0 DISA

Code:
hdaa0: Setting amplifier nid=16 index=0 out mute=1/1 vol=0/0
hdaa0: Setting amplifier nid=17 index=0 out mute=1/1 vol=0/0
hdaa0: Setting amplifier nid=19 index=0 in mute=1/1 vol=0/0
hdaa0: Setting amplifier nid=20 index=0 in mute=1/1 vol=0/0
hdaa0: Setting amplifier nid=22 index=0 in mute=1/1 vol=0/0
hdaa0: Setting amplifier nid=22 index=1 in mute=1/1 vol=0/0
hdaa0: Setting amplifier nid=22 index=2 in mute=1/1 vol=0/0
hdaa0: Setting amplifier nid=22 index=3 in mute=1/1 vol=0/0
hdaa0: Setting amplifier nid=22 index=4 in mute=1/1 vol=0/0
hdaa0: Setting amplifier nid=22 index=5 in mute=1/1 vol=0/0
hdaa0: Setting amplifier nid=22 index=6 in mute=1/1 vol=0/0
hdaa0: Setting amplifier nid=24 index=0 out mute=1/1 vol=0/0
hdaa0: Setting amplifier nid=28 index=0 out mute=1/1 vol=0/0
hdaa0: Setting amplifier nid=29 index=0 out mute=1/1 vol=0/0
hdaa0: Setting amplifier nid=30 index=0 out mute=1/1 vol=0/0
hdaa0: Setting amplifier nid=36 index=0 out mute=1/1 vol=0/0
hdaa0: Setting amplifier nid=37 index=0 out mute=1/1 vol=0/0
hdaa0: Setting amplifier nid=38 index=0 out mute=1/1 vol=0/0
hdaa0: Setting amplifier nid=39 index=0 out mute=1/1 vol=0/0


I have tried to digest snd_hda(4) and my take is that nid 28 and 29 are possibly one issue and the amplifier settings another (mute=1/1 vol=0/0 for nid 28 and 29?).

I tried reversing the associations and sequences for nid 28 and 29 in /boot/device.hints
without any sound.

Any guidance appreciated
 
Some more information
Code:
hdaa0: 25 410110f0 15 0 Line-out None 1/8 Rear Black 0 DISA
hdaa0: 26 01a19036 3 6 Mic Jack 1/8 Rear Pink 0
hdaa0: 27 0181303e 3 14 Line-in Jack 1/8 Rear Blue 0
hdaa0: 28 01014010 1 0 Line-out Jack 1/8 Rear Green 0
hdaa0: 29 0221401f 1 15 Headphones Jack 1/8 Front Green 0
hdaa0: 30 02a19037 3 7 Mic Jack 1/8 Front Pink 0
hdaa0: 31 503701f0 15 0 CD None Analog Internal Unknown 1 DISA
hdaa0: 32 074311f0 15 0 SPDIF-out Jack ATAPI Rear-panel Black 1
hdaa0: 33 47c421f0 15 0 SPDIF-in None RCA Rear-panel Grey 1 DISA
hdaa0: 34 410160f0 15 0 Line-out None 1/8 Rear Orange 0 DISA
hdaa0: 35 410120f0 15 0 Line-out None 1/8 Rear Grey 0 DISA
Does not match my configuration. I'm using an older case that does not have front panel connectors and the back panel jacks are blue, green and pink. I'm wondering if the disabled nid 25 Rear Black is really my Rear Green line out?

The other concern is that nid 29 has a seq of 15 which I read would disable nid 28 when the speakers are plugged in. I'm not sure of how to approach this. One tact would be to disable nid's 29 and 30 since I do not have any front connectors.

For documentation this worked in my /boot/device.hints
Code:
hint.hdac.0.cad0.nid29.config="as=15 seq=0"
hint.hdac.0.cad0.nid30.config="as=15 seq=0"
hint.pcm.0.vol="70"
Edit: 1) /boot/device/hints -> /boot/device.hints 2) Removed hint.hdac.0.cad0.nid25.config="as=2 seq=0 device=Line-out" which was not needed
 
Last edited:
I know you have marked this as solved, but I thought you may benefit from the information in Thread 40736, post #2 in particular as an alternative option of interest should you possibly want another option. I have not tested this myself. :)
 
Back
Top