No Sound Over Displayport

On FreeBSD 15.1:

This does not produce sound from the monitor speaker which is connected via displayport. Monitor speaker volume is non-zero. This uses the AMD Renoir driver which works fine for video.

Code:
[root@l1 ~]# sysctl hw.snd.default_unit=2
hw.snd.default_unit: 3 -> 2
[root@l1 ~]# cat /dev/urandom > /dev/dsp

This does produce sound from the laptop speaker:

Code:
[root@l1 ~]# sysctl hw.snd.default_unit=3
hw.snd.default_unit: 3 -> 3
[root@l1 ~]# cat /dev/urandom > /dev/dsp

kld snd_driver and friends are loaded. All mixer values are non-zero.

I was also able to get the headphone jack on the laptop to work.

Before I updated to 15.1, audio via displayport worked. I don't recall if I had some long forgotten configuration in the pre-15.1 system. I did a fresh install to a bare drive with the 15.1 update. Those config files are lost, in time, like tears in rain.

Any pointers on how to get this sorted out?
 
Does mixer -a show vol, pcm devices on your display port? My output below; it is connected over display port.

Code:
pcm2:mixer: <Intel Kaby Lake (HDMI/DP 8ch)> on hdaa1 (play)
    vol       = 0.25:0.25     pbk
    pcm       = 1.00:1.00     pbk
 
The requested outputs plus pciconf -lv:

Code:
[root@l1 ~]# mixer -a
pcm0:mixer: <ATI R6xx (HDMI)> on hdaa0 (play)
    vol       = 1.00:1.00     pbk
    pcm       = 1.00:1.00     pbk
pcm1:mixer: <ATI R6xx (HDMI)> on hdaa0 (play)
    vol       = 1.00:1.00     pbk
    pcm       = 1.00:1.00     pbk
pcm2:mixer: <ATI R6xx (HDMI)> on hdaa1 (play)
    vol       = 1.00:1.00     pbk
    pcm       = 1.00:1.00     pbk
pcm3:mixer: <Realtek ALC295 (Internal Analog Speaker)> on hdaa2 (play) (default)
    vol       = 0.79:0.79     pbk
    pcm       = 0.80:0.80     pbk
    ogain     = 1.00:1.00     pbk
pcm4:mixer: <Realtek ALC295 (Right Analog Headphones)> on hdaa2 (play)
    vol       = 1.00:1.00     pbk
    pcm       = 1.00:1.00     pbk
    ogain     = 1.00:1.00     pbk
    
[root@l1 ~]# cat /dev/sndstat
Installed devices:
pcm0: <ATI R6xx (HDMI)> (play)
pcm1: <ATI R6xx (HDMI)> (play)
pcm2: <ATI R6xx (HDMI)> (play)
pcm3: <Realtek ALC295 (Internal Analog Speaker)> (play) default
pcm4: <Realtek ALC295 (Right Analog Headphones)> (play)
No devices installed from userspace.
[root@l1 ~]#

$ pciconf -lv | grep -B4 HDA
hdac0@pci0:3:0:1:   class=0x040300 rev=0x00 hdr=0x00 vendor=0x1002 device=0xab38
 subvendor=0x1028 subdevice=0x09f5
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'Navi 10 HDMI Audio'
    class      = multimedia
    subclass   = HDA
--
hdac1@pci0:8:0:1:   class=0x040300 rev=0x00 hdr=0x00 vendor=0x1002 device=0x1637
 subvendor=0x1028 subdevice=0x09f5
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'Renoir/Cezanne HDMI/DP Audio Controller'
    class      = multimedia
    subclass   = HDA
--
hdac2@pci0:8:0:6:   class=0x040300 rev=0x00 hdr=0x00 vendor=0x1022 device=0x15e3
 subvendor=0x1028 subdevice=0x09f5
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Ryzen HD Audio Controller'
    class      = multimedia
    subclass   = HDA

Interesting that my pcm2 only states (HDMI) while drr's pcm2 states (HDMI/DP 8ch). hdac1 on my output shows 'device = 'Renoir/Cezanne HDMI/DP Audio Controller''. I wonder if the absence of "DP" for pcm2/hdac1 is meaningful.

Dice: I tried every output using: cat /dev/urandom > /dev/dspN as well as cycling through all values of hw.snd.default_unit=N.

FWIW, I also don't get any sound when testing pcm0 or pcm1. I wasn't trying to fix those specifically. I figure the fix to getting sound on the external monitor's speaker pcm2 would shed light on getting sound from pcm0 and pcm1. (maybe one of those is a microphone?)
 
Back
Top