Hello,
I've recently bought a new PC with an AMD Ryzen Threadripper 3970X on an MSI TRX40 PRO WIFI mainboard.
Suprisingly, everything worked pretty much out of the box - no strange kernel panics or anything like that.
However, sound does not.
I had already installed Windows 10 and Gentoo Linux before FreeBSD and both worked perfectly fine. The only thing that seems a little strange to me is the fact that both Windows and Linux recognize my audio controller as a USB device which means that, on Linux, the correct driver is actually the USB MIDI driver and not the snd_hda_realtek stuff.
With that in mind, the first thing I did on FreeBSD was to load the snd_uaudio(4) driver, but I guess if that worked I wouldn't currently be writing this post
I tried various things that other people with similar problems did (different pin config etc.) but nothing worked. I realized, however, that the audio controller itself is actually detected fine (as seen on dmesg) but there's simply no codec being loaded for it (if that is the correct way to say it - not a native speaker, sorry) and, thus, also no PCM device(s). Naturally, I tried loading all the snd drivers using snd_driver to see if any of those worked, but nope. I even updated the kernel to the latest stable (see uname output) in the hopes that the issue might've simply been patched in the meantime but, unfortunately, that was another nope.
So, for me, everything looks like unsupported hardware or a driver bug - but I'm still pretty much a newbie in FreeBSD. I hope that you can tell me something different or see something that I overlooked.
I should add that I have two NVIDIA GeForce GTX 780 running whose audio functionality, apparently, works just fine.
I also saw the other thread on this forum about the new Threadrippers and its hardware compatibility etc. but for them, sound didn't seem to be an issue at all which might indicate some mainboard specific issue. The hardware itself is fine though. Like I said, I had already installed Windows 10 and Gentoo Linux and both worked and work without any issues whatsoever.
/var/run/dmesg.boot
I've recently bought a new PC with an AMD Ryzen Threadripper 3970X on an MSI TRX40 PRO WIFI mainboard.
Suprisingly, everything worked pretty much out of the box - no strange kernel panics or anything like that.
However, sound does not.
I had already installed Windows 10 and Gentoo Linux before FreeBSD and both worked perfectly fine. The only thing that seems a little strange to me is the fact that both Windows and Linux recognize my audio controller as a USB device which means that, on Linux, the correct driver is actually the USB MIDI driver and not the snd_hda_realtek stuff.
With that in mind, the first thing I did on FreeBSD was to load the snd_uaudio(4) driver, but I guess if that worked I wouldn't currently be writing this post
I tried various things that other people with similar problems did (different pin config etc.) but nothing worked. I realized, however, that the audio controller itself is actually detected fine (as seen on dmesg) but there's simply no codec being loaded for it (if that is the correct way to say it - not a native speaker, sorry) and, thus, also no PCM device(s). Naturally, I tried loading all the snd drivers using snd_driver to see if any of those worked, but nope. I even updated the kernel to the latest stable (see uname output) in the hopes that the issue might've simply been patched in the meantime but, unfortunately, that was another nope.
So, for me, everything looks like unsupported hardware or a driver bug - but I'm still pretty much a newbie in FreeBSD. I hope that you can tell me something different or see something that I overlooked.
I should add that I have two NVIDIA GeForce GTX 780 running whose audio functionality, apparently, works just fine.
I also saw the other thread on this forum about the new Threadrippers and its hardware compatibility etc. but for them, sound didn't seem to be an issue at all which might indicate some mainboard specific issue. The hardware itself is fine though. Like I said, I had already installed Windows 10 and Gentoo Linux and both worked and work without any issues whatsoever.
Code:
[s0urc3c0de@s0urc3c0de ~]$ dmesg|egrep "hda|pcm"
hdac0: <NVIDIA (0x0e1a) HDA Controller> mem 0xc1080000-0xc1083fff at device 0.1 on pci5
hdac0: PCI card vendor: 0x3842, device: 0x1784
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 293 for MSI
hdac0: Caps: OSS 4, ISS 4, BSS 0, NSDO 4, 64bit, CORB 256, RIRB 256
hdac1: <AMD (0x1487) HDA Controller> mem 0xc1400000-0xc1407fff at device 0.4 on pci7
hdac1: PCI card vendor: 0x1462, device: 0xcb60
hdac1: HDA Driver Revision: 20120126_0002
hdac1: Config options: msi 64bit
hdac1: Config options: on=0x00000000 off=0x00000000
hdac1: attempting to allocate 1 MSI vectors (1 supported)
hdac1: using IRQ 295 for MSI
hdac1: Caps: OSS 4, ISS 4, BSS 0, NSDO 1, 64bit, CORB 256, RIRB 256
hdac2: <NVIDIA (0x0e1a) HDA Controller> mem 0xd9080000-0xd9083fff at device 0.1 on pci17
hdac2: PCI card vendor: 0x3842, device: 0x2784
hdac2: HDA Driver Revision: 20120126_0002
hdac2: Config options: on=0x00000000 off=0x00000000
hdac2: attempting to allocate 1 MSI vectors (1 supported)
hdac2: using IRQ 337 for MSI
hdac2: Caps: OSS 4, ISS 4, BSS 0, NSDO 4, 64bit, CORB 256, RIRB 256
hdacc0: <NVIDIA (0x0044) HDA CODEC> at cad 0 on hdac0
hdaa0: <NVIDIA (0x0044) Audio Function Group> at nid 1 on hdacc0
hdaa0: Subsystem ID: 0x38421784
hdaa0: NumGPIO=0 NumGPO=0 NumGPI=0 GPIWake=0 GPIUnsol=0
hdaa0: Original pins configuration:
hdaa0: nid 0x as seq device conn jack loc color misc
hdaa0: 4 185600f0 15 0 Digital-out Jack Digital 0x18 Unknown 0
hdaa0: 5 185600f0 15 0 Digital-out Jack Digital 0x18 Unknown 0
hdaa0: 6 185600f0 15 0 Digital-out Jack Digital 0x18 Unknown 0
hdaa0: 7 185600f0 15 0 Digital-out Jack Digital 0x18 Unknown 0
hdaa0: Patched pins configuration:
hdaa0: nid 0x as seq device conn jack loc color misc
hdaa0: 4 185600f0 15 0 Digital-out Jack Digital 0x18 Unknown 0
hdaa0: 5 185600f0 15 0 Digital-out Jack Digital 0x18 Unknown 0
hdaa0: 6 185600f0 15 0 Digital-out Jack Digital 0x18 Unknown 0
hdaa0: 7 185600f0 15 0 Digital-out Jack Digital 0x18 Unknown 0
hdaa0: 4 associations found:
hdaa0: Association 0 (15) out:
hdaa0: Pin nid=4 seq=0
hdaa0: Association 1 (15) out:
hdaa0: Pin nid=5 seq=0
hdaa0: Association 2 (15) out:
hdaa0: Pin nid=6 seq=0
hdaa0: Association 3 (15) out:
hdaa0: Pin nid=7 seq=0
hdaa0: Tracing association 0 (15)
hdaa0: Pin 4 traced to DAC 8
hdaa0: Association 0 (15) trace succeeded
hdaa0: Tracing association 1 (15)
hdaa0: Pin 5 traced to DAC 9
hdaa0: Association 1 (15) trace succeeded
hdaa0: Tracing association 2 (15)
hdaa0: Pin 6 traced to DAC 10
hdaa0: Association 2 (15) trace succeeded
hdaa0: Tracing association 3 (15)
hdaa0: Pin 7 traced to DAC 11
hdaa0: Association 3 (15) trace succeeded
hdaa0: Looking for additional DAC for association 0 (15)
hdaa0: Looking for additional DAC for association 1 (15)
hdaa0: Looking for additional DAC for association 2 (15)
hdaa0: Looking for additional DAC for association 3 (15)
hdaa0: Tracing input monitor
hdaa0: Tracing other input monitors
hdaa0: Tracing beeper
hdaa0: FG config/quirks: forcestereo ivref50 ivref80 ivref100 ivref
pcm0: <NVIDIA (0x0044) (HDMI/DP 8ch)> at nid 4 on hdaa0
pcm0: Playback:
pcm0: Stream cap: 0x00000005 AC3 PCM
pcm0: PCM cap: 0x000e07f0 16 20 24 bits, 32 44 48 88 96 176 192 KHz
pcm0: DAC: 8
pcm0:
pcm0: nid=4 [pin: Digital-out (Jack)]
pcm0: + <- nid=8 [audio output] [src: pcm]
pcm0:
pcm0: Mixer "vol" -> "none": child=0x00000010
pcm0: Mixer "pcm": parent="vol"
pcm0: Soft PCM mixer ENABLED
pcm0: Playback channel matrix is: unknown, assuming 7.1 (disconnected)
pcm1: <NVIDIA (0x0044) (HDMI/DP 8ch)> at nid 5 on hdaa0
pcm1: Playback:
pcm1: Stream cap: 0x00000005 AC3 PCM
pcm1: PCM cap: 0x000e07f0 16 20 24 bits, 32 44 48 88 96 176 192 KHz
pcm1: DAC: 9
pcm1:
pcm1: nid=5 [pin: Digital-out (Jack)]
pcm1: + <- nid=9 [audio output] [src: pcm]
pcm1:
pcm1: Mixer "vol" -> "none": child=0x00000010
pcm1: Mixer "pcm": parent="vol"
pcm1: Soft PCM mixer ENABLED
pcm1: Playback channel matrix is: unknown, assuming 7.1 (disconnected)
pcm2: <NVIDIA (0x0044) (HDMI/DP 8ch)> at nid 6 on hdaa0
pcm2: Playback:
pcm2: Stream cap: 0x00000005 AC3 PCM
pcm2: PCM cap: 0x000e07f0 16 20 24 bits, 32 44 48 88 96 176 192 KHz
pcm2: DAC: 10
pcm2:
pcm2: nid=6 [pin: Digital-out (Jack)]
pcm2: + <- nid=10 [audio output] [src: pcm]
pcm2:
pcm2: Mixer "vol" -> "none": child=0x00000010
pcm2: Mixer "pcm": parent="vol"
pcm2: Soft PCM mixer ENABLED
pcm2: Playback channel matrix is: unknown, assuming 7.1 (disconnected)
pcm3: <NVIDIA (0x0044) (HDMI/DP 8ch)> at nid 7 on hdaa0
pcm3: Playback:
pcm3: Stream cap: 0x00000005 AC3 PCM
pcm3: PCM cap: 0x000e07f0 16 20 24 bits, 32 44 48 88 96 176 192 KHz
pcm3: DAC: 11
pcm3:
pcm3: nid=7 [pin: Digital-out (Jack)]
pcm3: + <- nid=11 [audio output] [src: pcm]
pcm3:
pcm3: Mixer "vol" -> "none": child=0x00000010
pcm3: Mixer "pcm": parent="vol"
pcm3: Soft PCM mixer ENABLED
pcm3: Playback channel matrix is: unknown, assuming 7.1 (disconnected)
hdacc1: <NVIDIA (0x0044) HDA CODEC> at cad 0 on hdac2
hdaa1: <NVIDIA (0x0044) Audio Function Group> at nid 1 on hdacc1
hdaa1: Subsystem ID: 0x38422784
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: 4 185600f0 15 0 Digital-out Jack Digital 0x18 Unknown 0
hdaa1: 5 185600f0 15 0 Digital-out Jack Digital 0x18 Unknown 0
hdaa1: 6 185600f0 15 0 Digital-out Jack Digital 0x18 Unknown 0
hdaa1: 7 185600f0 15 0 Digital-out Jack Digital 0x18 Unknown 0
hdaa1: Patched pins configuration:
hdaa1: nid 0x as seq device conn jack loc color misc
hdaa1: 4 185600f0 15 0 Digital-out Jack Digital 0x18 Unknown 0
hdaa1: 5 185600f0 15 0 Digital-out Jack Digital 0x18 Unknown 0
hdaa1: 6 185600f0 15 0 Digital-out Jack Digital 0x18 Unknown 0
hdaa1: 7 185600f0 15 0 Digital-out Jack Digital 0x18 Unknown 0
hdaa1: 4 associations found:
hdaa1: Association 0 (15) out:
hdaa1: Pin nid=4 seq=0
hdaa1: Association 1 (15) out:
hdaa1: Pin nid=5 seq=0
hdaa1: Association 2 (15) out:
hdaa1: Pin nid=6 seq=0
hdaa1: Association 3 (15) out:
hdaa1: Pin nid=7 seq=0
hdaa1: Tracing association 0 (15)
hdaa1: Pin 4 traced to DAC 8
hdaa1: Association 0 (15) trace succeeded
hdaa1: Tracing association 1 (15)
hdaa1: Pin 5 traced to DAC 9
hdaa1: Association 1 (15) trace succeeded
hdaa1: Tracing association 2 (15)
hdaa1: Pin 6 traced to DAC 10
hdaa1: Association 2 (15) trace succeeded
hdaa1: Tracing association 3 (15)
hdaa1: Pin 7 traced to DAC 11
hdaa1: Association 3 (15) trace succeeded
hdaa1: Looking for additional DAC for association 0 (15)
hdaa1: Looking for additional DAC for association 1 (15)
hdaa1: Looking for additional DAC for association 2 (15)
hdaa1: Looking for additional DAC for association 3 (15)
hdaa1: Tracing input monitor
hdaa1: Tracing other input monitors
hdaa1: Tracing beeper
hdaa1: FG config/quirks: forcestereo ivref50 ivref80 ivref100 ivref
pcm4: <NVIDIA (0x0044) (HDMI/DP 8ch)> at nid 4 on hdaa1
pcm4: Playback:
pcm4: Stream cap: 0x00000005 AC3 PCM
pcm4: PCM cap: 0x000e07f0 16 20 24 bits, 32 44 48 88 96 176 192 KHz
pcm4: DAC: 8
pcm4:
pcm4: nid=4 [pin: Digital-out (Jack)]
pcm4: + <- nid=8 [audio output] [src: pcm]
pcm4:
pcm4: Mixer "vol" -> "none": child=0x00000010
pcm4: Mixer "pcm": parent="vol"
pcm4: Soft PCM mixer ENABLED
pcm4: Playback channel matrix is: unknown, assuming 7.1 (disconnected)
pcm5: <NVIDIA (0x0044) (HDMI/DP 8ch)> at nid 5 on hdaa1
pcm5: Playback:
pcm5: Stream cap: 0x00000005 AC3 PCM
pcm5: PCM cap: 0x000e07f0 16 20 24 bits, 32 44 48 88 96 176 192 KHz
pcm5: DAC: 9
pcm5:
pcm5: nid=5 [pin: Digital-out (Jack)]
pcm5: + <- nid=9 [audio output] [src: pcm]
pcm5:
pcm5: Mixer "vol" -> "none": child=0x00000010
pcm5: Mixer "pcm": parent="vol"
pcm5: Soft PCM mixer ENABLED
pcm5: Playback channel matrix is: unknown, assuming 7.1 (disconnected)
pcm6: <NVIDIA (0x0044) (HDMI/DP 8ch)> at nid 6 on hdaa1
pcm6: Playback:
pcm6: Stream cap: 0x00000005 AC3 PCM
pcm6: PCM cap: 0x000e07f0 16 20 24 bits, 32 44 48 88 96 176 192 KHz
pcm6: DAC: 10
pcm6:
pcm6: nid=6 [pin: Digital-out (Jack)]
pcm6: + <- nid=10 [audio output] [src: pcm]
pcm6:
pcm6: Mixer "vol" -> "none": child=0x00000010
pcm6: Mixer "pcm": parent="vol"
pcm6: Soft PCM mixer ENABLED
pcm6: Playback channel matrix is: unknown, assuming 7.1 (disconnected)
pcm7: <NVIDIA (0x0044) (HDMI/DP 8ch)> at nid 7 on hdaa1
pcm7: Playback:
pcm7: Stream cap: 0x00000005 AC3 PCM
pcm7: PCM cap: 0x000e07f0 16 20 24 bits, 32 44 48 88 96 176 192 KHz
pcm7: DAC: 11
pcm7:
pcm7: nid=7 [pin: Digital-out (Jack)]
pcm7: + <- nid=11 [audio output] [src: pcm]
pcm7:
pcm7: Mixer "vol" -> "none": child=0x00000010
pcm7: Mixer "pcm": parent="vol"
pcm7: Soft PCM mixer ENABLED
pcm7: Playback channel matrix is: unknown, assuming 7.1 (disconnected)
hdaa0: Pin sense: nid=5 sense=0x80000000 (connected)
pcm1: Playback channel matrix is: unknown, assuming 7.1 (connected)
hdaa0: Pin sense: nid=5 sense=0xc0000000 (connected, ELD valid)
hdaa0: ELD nid=5: ELD_Ver=2 Baseline_ELD_Len=11
hdaa0: ELD nid=5: CEA_EDID_Ver=3 MNL=13
hdaa0: ELD nid=5: SAD_Count=5 Conn_Type=0 S_AI=0 HDCP=0
hdaa0: ELD nid=5: Aud_Synch_Delay=0ms
hdaa0: ELD nid=5: Channels=0x1<FLR>
hdaa0: ELD nid=5: Port_ID=0x0002000000000000
hdaa0: ELD nid=5: Manufacturer_Name=0x0472
hdaa0: ELD nid=5: Product_Code=0xff02
hdaa0: ELD nid=5: Monitor_Name_String='G246HL
hdaa0: ELD nid=5: LPCM 2ch freqs=0x7<48,44,32> sizes=0x7<24,20,16>
hdaa0: ELD nid=5: MPEG2 6ch freqs=0x2<44> max_bitrate=464000
hdaa0: ELD nid=5: undefined 1ch freqs=0x18<96,88>
hdaa0: ELD nid=5: DTS 1ch freqs=0x2d<176,88,48,32> max_bitrate=512000
hdaa0: ELD nid=5: DTS-HD 1ch freqs=0x2c<176,88,48>
pcm1: Playback channel set is: Front Left, Front Right,
pcm1: Playback channel matrix is: 2.0 (connected)
Code:
[s0urc3c0de@s0urc3c0de ~]$ cat /dev/sndstat
FreeBSD Audio Driver (64bit 2009061500/amd64)
Installed devices:
pcm0: <NVIDIA (0x0044) (HDMI/DP 8ch)> on hdaa0 (1p:1v/0r:0v)
pcm1: <NVIDIA (0x0044) (HDMI/DP 8ch)> on hdaa0 (1p:1v/0r:0v) default
pcm2: <NVIDIA (0x0044) (HDMI/DP 8ch)> on hdaa0 (1p:1v/0r:0v)
pcm3: <NVIDIA (0x0044) (HDMI/DP 8ch)> on hdaa0 (1p:1v/0r:0v)
pcm4: <NVIDIA (0x0044) (HDMI/DP 8ch)> on hdaa1 (1p:1v/0r:0v)
pcm5: <NVIDIA (0x0044) (HDMI/DP 8ch)> on hdaa1 (1p:1v/0r:0v)
pcm6: <NVIDIA (0x0044) (HDMI/DP 8ch)> on hdaa1 (1p:1v/0r:0v)
pcm7: <NVIDIA (0x0044) (HDMI/DP 8ch)> on hdaa1 (1p:1v/0r:0v)
No devices installed from userspace.
Code:
[s0urc3c0de@s0urc3c0de ~]$ cat /etc/rc.conf
clear_tmp_enable="YES"
hostname="s0urc3c0de.dev"
keymap="de.kbd"
ifconfig_igb1="DHCP"
ifconfig_igb1_ipv6="inet6 accept_rtadv"
moused_enable="NO"
ntpd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
zfs_enable="YES"
kld_list="nvidia-modeset"
dbus_enable="YES"
hald_enable="YES"
linux_enable="YES"
slim_enable="YES"
Code:
[s0urc3c0de@s0urc3c0de ~]$ cat /etc/sysctl.conf
# $FreeBSD: releng/12.1/sbin/sysctl/sysctl.conf 337624 2018-08-11 13:28:03Z brd $
#
# This file is read when going to multi-user and its contents piped thru
# ``sysctl'' to adjust kernel values. ``man 5 sysctl.conf'' for details.
#
# Uncomment this to prevent users from seeing information about processes that
# are being run under another UID.
#security.bsd.see_other_uids=0
kern.randompid=1
vfs.zfs.min_auto_ashift=12
hw.snd.default_unit=1
#hw.snd.verbose=1
dev.hdac.1.pindump=1
#dev.hdac.1.polling=1
Code:
[s0urc3c0de@s0urc3c0de ~]$ uname -a
FreeBSD s0urc3c0de.dev 12.1-STABLE FreeBSD 12.1-STABLE 2ea4386886c(stable/12) S0URC3C0DE amd64
/var/run/dmesg.boot
Last edited: