No Sound, FreeBSD 13.1 Release, Another ALC1220 Topic

Mobo: Aorus Gaming 7 OP (z370)
CPU: 9900k
GPU: no dedicated, only UHD630.
OS: FreeBSD 13.1 Release

Hello once again. I'm on a fresh install, but back to this Realtek ALC1220 issue where there's no sound coming from the green port on the rear i/o panel, but it does work only on headphone jack (front of the case green port). Sound works fine on Windows, so no hardware malfunction. I've gone through the various ALC1220 topics here, they seem to have a slightly different issue where they want a laptop's internal speaker to turn on/off whenever a headphone jack is plugged in/removed.. or simply asking only about headphone jacks. In my situation, it's a desktop PC, simply no sound coming from green rear i/o port. Tried it with and without pulse installed. Currently do have pulse with xfce mixer right now though. I've dealt with this in the past, tried reassigning the Nids, I was able to get sound to come out of Microphone, Center/Woofer, Surround, Line-In, but was not able to get it out of the back green port. It's almost as if the HP/2.0 is taking priority over Analog 5.1, as if Realtek combined these two to be one entity and FreeBSD is only seeing the HP/2.0 as the primary.

Here's a bit of data for you. If you need more, let me know (pardon if I reply "what do I type to make it do this" since I'm still learning a few things)

Code:
$ cat /dev/sndstat
Installed devices:
pcm0: <Realtek ALC1220 (Analog 5.1+HP/2.0)> (play/rec) default
pcm1: <Realtek ALC1220 (Rear Digital)> (play)
pcm2: <Realtek ALC1220 (Front Analog Mic)> (rec)
pcm3: <Intel Kaby Lake (HDMI/DP 8ch)> (play)
No devices installed from userspace.

Code:
 $dmesg|grep hda
hdac0: <Intel Kaby Lake-H HDA Controller> mem 0xef440000-0xef443fff,0xef420000-0xef42ffff at device 31.3 on pci0
hdacc0: <Realtek ALC1220 HDA CODEC> at cad 0 on hdac0
hdaa0: <Realtek ALC1220 Audio Function Group> at nid 1 on hdacc0
pcm0: <Realtek ALC1220 (Analog 5.1+HP/2.0)> at nid 27,22,21,20 and 24,26 on hdaa0
pcm1: <Realtek ALC1220 (Rear Digital)> at nid 30 on hdaa0
pcm2: <Realtek ALC1220 (Front Analog Mic)> at nid 25 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
pcm3: <Intel Kaby Lake (HDMI/DP 8ch)> at nid 3 on hdaa1
 
Hi thanks for the post! Having plugged into the rear green port, I get no sound. (literally tried X if that's a thing, it says operation not supported), otherwise I did an ls to get the various dsps. Nothing from each one. 2.0 and 2.1 are the only ones that say "Operation not supported". If I plug the speakers into the front of case green port, I get white noise from 0.0, 0.1, 0.2, but no sound from the others.

Code:
ls /dev/dsp*
/dev/dsp0.0    /dev/dsp0.2    /dev/dsp1.1    /dev/dsp2.1    /dev/dsp3.1
/dev/dsp0.1    /dev/dsp1.0    /dev/dsp2.0    /dev/dsp3.0

After attempting all of these, if i do ls again, some seem to have disappeared (if this matters, just a random tidbit):

Code:
ls /dev/dsp*
/dev/dsp0.0    /dev/dsp1.0    /dev/dsp2.1
/dev/dsp0.1    /dev/dsp2.0    /dev/dsp3.0
 
I'll give mixertui a shot. Otherwise, the wire won't normally reach the front jack (stereo receiver under the desk) unless I push things to the very edge (jack might bend) also dual booting I'd like to avoid fumbling with the jacks since I'm going between the two on a normal basis now.
 
Sadly I couldn't get far with it either :( But, here's a bit of interesting info. Wondering if I can add a hint to the hints file that might get things going. I know I've messed with this before, but never really dug deep with it. I'm seeing nid27 as line-out green jack, that's probably the one I want the system pushing audio to instead of only nid20.

Code:
$ sysctl -a |grep hda
hdac0: <Intel Kaby Lake-H HDA Controller> mem 0xef440000-0xef443fff,0xef420000-0xef42ffff at device 31.3 on pci0
hdacc0: <Realtek ALC1220 HDA CODEC> at cad 0 on hdac0
hdaa0: <Realtek ALC1220 Audio Function Group> at nid 1 on hdacc0
pcm0: <Realtek ALC1220 (Analog 5.1+HP/2.0)> at nid 27,22,21,20 and 24,26 on hdaa0
pcm1: <Realtek ALC1220 (Rear Digital)> at nid 30 on hdaa0
pcm2: <Realtek ALC1220 (Front Analog Mic)> at nid 25 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
pcm3: <Intel Kaby Lake (HDMI/DP 8ch)> at nid 3 on hdaa1
device    snd_hda
irq142: hdac0:299 @cpu0(domain0): 288270
dev.pcm.3.%parent: hdaa1
dev.pcm.2.%parent: hdaa0
dev.pcm.1.%parent: hdaa0
dev.pcm.0.%parent: hdaa0
dev.hdaa.1.init_clear: 0
dev.hdaa.1.reconfig: 0
dev.hdaa.1.gpo_config:
dev.hdaa.1.gpo_state:
dev.hdaa.1.gpio_config:
dev.hdaa.1.gpio_state:
dev.hdaa.1.gpi_state:
dev.hdaa.1.config: forcestereo,ivref50,ivref80,ivref100,ivref,vref
dev.hdaa.1.nid3_original: 0x18560010 as=1 seq=0 device=Digital-out conn=Jack ctype=Digital loc=0x18 color=Unknown misc=0
dev.hdaa.1.nid3_config: 0x18560010 as=1 seq=0 device=Digital-out conn=Jack ctype=Digital loc=0x18 color=Unknown misc=0
dev.hdaa.1.nid3: pin: Digital-out (Jack)
dev.hdaa.1.nid2: audio output
dev.hdaa.1.%parent: hdacc1
dev.hdaa.1.%pnpinfo: type=0x01 subsystem=0x80860101
dev.hdaa.1.%location: nid=1
dev.hdaa.1.%driver: hdaa
dev.hdaa.1.%desc: Intel Kaby Lake Audio Function Group
dev.hdaa.0.init_clear: 0
dev.hdaa.0.reconfig: 0
dev.hdaa.0.gpo_config:
dev.hdaa.0.gpo_state:
dev.hdaa.0.gpio_config: 0=keep 1=keep 2=keep 3=keep 4=keep 5=keep 6=keep 7=keep
dev.hdaa.0.gpio_state: 0=disabled 1=disabled 2=disabled 3=disabled 4=disabled 5=disabled 6=disabled 7=disabled
dev.hdaa.0.gpi_state:
dev.hdaa.0.config: forcestereo,ivref50,ivref80,ivref100,ivref,vref
dev.hdaa.0.nid38: audio mixer [DISABLED]
dev.hdaa.0.nid37: audio output [DISABLED]
dev.hdaa.0.nid36: vendor widget [DISABLED]
dev.hdaa.0.nid35: audio mixer
dev.hdaa.0.nid34: audio mixer
dev.hdaa.0.nid33: vendor widget [DISABLED]
dev.hdaa.0.nid32: vendor widget [DISABLED]
dev.hdaa.0.nid31: vendor widget [DISABLED]
dev.hdaa.0.nid30_original: 0x01452130 as=3 seq=0 device=SPDIF-out conn=Jack ctype=Optical loc=Rear color=Grey misc=1
dev.hdaa.0.nid30_config: 0x01452130 as=3 seq=0 device=SPDIF-out conn=Jack ctype=Optical loc=Rear color=Grey misc=1
dev.hdaa.0.nid30: pin: SPDIF-out (Grey Jack)
dev.hdaa.0.nid29_original: 0x40466629 as=2 seq=9 device=SPDIF-out conn=None ctype=Digital loc=0x00 color=Orange misc=6
dev.hdaa.0.nid29_config: 0x40466629 as=2 seq=9 device=SPDIF-out conn=None ctype=Digital loc=0x00 color=Orange misc=6
dev.hdaa.0.nid29: beep widget
dev.hdaa.0.nid28: vendor widget [DISABLED]
dev.hdaa.0.nid27_original: 0x01014010 as=1 seq=0 device=Line-out conn=Jack ctype=1/8 loc=Rear color=Green misc=0
dev.hdaa.0.nid27_config: 0x01014010 as=1 seq=0 device=Line-out conn=Jack ctype=1/8 loc=Rear color=Green misc=0
dev.hdaa.0.nid27: pin: Line-out (Green Jack)
dev.hdaa.0.nid26_original: 0x0181304f as=4 seq=15 device=Line-in conn=Jack ctype=1/8 loc=Rear color=Blue misc=0
dev.hdaa.0.nid26_config: 0x0181304f as=4 seq=15 device=Line-in conn=Jack ctype=1/8 loc=Rear color=Blue misc=0
dev.hdaa.0.nid26: pin: Line-in (Blue Jack)
dev.hdaa.0.nid25_original: 0x02a19050 as=5 seq=0 device=Mic conn=Jack ctype=1/8 loc=Front color=Pink misc=0
dev.hdaa.0.nid25_config: 0x02a19050 as=5 seq=0 device=Mic conn=Jack ctype=1/8 loc=Front color=Pink misc=0
dev.hdaa.0.nid25: pin: Mic (Pink Jack)
dev.hdaa.0.nid24_original: 0x01a19040 as=4 seq=0 device=Mic conn=Jack ctype=1/8 loc=Rear color=Pink misc=0
dev.hdaa.0.nid24_config: 0x01a19040 as=4 seq=0 device=Mic conn=Jack ctype=1/8 loc=Rear color=Pink misc=0
dev.hdaa.0.nid24: pin: Mic (Pink Jack)
dev.hdaa.0.nid23_original: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1
dev.hdaa.0.nid23_config: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1
dev.hdaa.0.nid23: pin: Speaker (None) [DISABLED]
dev.hdaa.0.nid22_original: 0x01016011 as=1 seq=1 device=Line-out conn=Jack ctype=1/8 loc=Rear color=Orange misc=0
dev.hdaa.0.nid22_config: 0x01016011 as=1 seq=1 device=Line-out conn=Jack ctype=1/8 loc=Rear color=Orange misc=0
dev.hdaa.0.nid22: pin: Line-out (Orange Jack)
dev.hdaa.0.nid21_original: 0x01011012 as=1 seq=2 device=Line-out conn=Jack ctype=1/8 loc=Rear color=Black misc=0
dev.hdaa.0.nid21_config: 0x01011012 as=1 seq=2 device=Line-out conn=Jack ctype=1/8 loc=Rear color=Black misc=0
dev.hdaa.0.nid21: pin: Line-out (Black Jack)
dev.hdaa.0.nid20_original: 0x0221401f as=1 seq=15 device=Headphones conn=Jack ctype=1/8 loc=Front color=Green misc=0
dev.hdaa.0.nid20_config: 0x0221401f as=1 seq=15 device=Headphones conn=Jack ctype=1/8 loc=Front color=Green misc=0
dev.hdaa.0.nid20: pin: Headphones (Green Jack)
dev.hdaa.0.nid19: vendor widget [DISABLED]
dev.hdaa.0.nid18_original: 0x400fc500 as=0 seq=0 device=Line-out conn=None ctype=Other loc=0x00 color=Res.C misc=5
dev.hdaa.0.nid18_config: 0x400fc500 as=0 seq=0 device=Line-out conn=None ctype=Other loc=0x00 color=Res.C misc=5
dev.hdaa.0.nid18: pin: Line-out (None) [DISABLED]
dev.hdaa.0.nid17: vendor widget [DISABLED]
dev.hdaa.0.nid16: vendor widget [DISABLED]
dev.hdaa.0.nid15: audio mixer [DISABLED]
dev.hdaa.0.nid14: audio mixer
dev.hdaa.0.nid13: audio mixer
dev.hdaa.0.nid12: audio mixer
dev.hdaa.0.nid11: audio mixer
dev.hdaa.0.nid10: vendor widget [DISABLED]
dev.hdaa.0.nid9: audio input
dev.hdaa.0.nid8: audio input
dev.hdaa.0.nid7: vendor widget [DISABLED]
dev.hdaa.0.nid6: audio output
dev.hdaa.0.nid5: audio output [DISABLED]
dev.hdaa.0.nid4: audio output
dev.hdaa.0.nid3: audio output
dev.hdaa.0.nid2: audio output
dev.hdaa.0.%parent: hdacc0
dev.hdaa.0.%pnpinfo: type=0x01 subsystem=0x1458a0c1
dev.hdaa.0.%location: nid=1
dev.hdaa.0.%driver: hdaa
dev.hdaa.0.%desc: Realtek ALC1220 Audio Function Group
dev.hdaa.%parent:
dev.hdacc.1.%parent: hdac0
dev.hdacc.1.%pnpinfo: vendor=0x8086 device=0x280b revision=0x00 stepping=0x00
dev.hdacc.1.%location: cad=2
dev.hdacc.1.%driver: hdacc
dev.hdacc.1.%desc: Intel Kaby Lake HDA CODEC
dev.hdacc.0.%parent: hdac0
dev.hdacc.0.%pnpinfo: vendor=0x10ec device=0x1220 revision=0x00 stepping=0x03
dev.hdacc.0.%location: cad=0
dev.hdacc.0.%driver: hdacc
dev.hdacc.0.%desc: Realtek ALC1220 HDA CODEC
dev.hdacc.%parent:
dev.hdac.0.polling: 0
dev.hdac.0.pindump: 0
dev.hdac.0.wake: 0
dev.hdac.0.%parent: pci0
dev.hdac.0.%pnpinfo: vendor=0x8086 device=0xa2f0 subvendor=0x1458 subdevice=0xa0c1 class=0x040300
dev.hdac.0.%location: slot=31 function=3 dbsf=pci0:0:31:3 handle=\_SB_.PCI0.HDAS
dev.hdac.0.%driver: hdac
dev.hdac.0.%desc: Intel Kaby Lake-H HDA Controller
dev.hdac.%parent:
 
solved.. SOLVED!!!!!!!!!!!!!!!!!!! I have deduced that my case is malfunctioning... at least the speaker jack in the front is. I unplugged the front audio from the motherboard itself. That fixed everything. Apparently, because seq=15 automatically mutes all other inputs (i wish it wouldn't) my rear output was muted because apparently the jack detection is broken, thinking something was plugged in when it wasn't. I tried setting seq=0, but it didn't help, it was still muting the rear. Anyway, this is good enough for me. I technically don't even use front panel audio, I just plugged it in "simply because"... well, to the hidden compartment behind the case that wire goes I guess :p
 
Back
Top