HDMI sound howto

From: Ludovit Koren <ludovit.koren_at_gmail.com>
Date: Thu, 06 Jun 2024 15:48:56 UTC
Hi,

I was able to use sound on my notebook:

/boot/loader.conf
hint.hdaa.0.nid33.config="as=1 seq=15"

cat /dev/sndstat

pcm0: <Realtek ALC285 (Analog 2.0+HP/2.0)> (play/rec) default
pcm1: <Intel Kaby Lake (HDMI/DP 8ch)> (play)
Installed devices from userspace:
dsp: <Virtual OSS> (play/rec)

/usr/local/sbin/virtual_oss -B -D /var/run/virtual_oss/dsp.pid -B -S -Q 1 -C 2 -c 2 -T /dev/sndstat -r 48000 -b 24 -s 8.0ms -R /dev/dsp0 -P /dev/dsp0 -c 2 -d dsp -t vdsp.ctl


sysctl hw.snd.default_unit
hw.snd.default_unit: 0


Is there a possibility to switch the sound to the HDMI? I did not find
any working solution. sysctl switch of default_unit to 1 did not do the
trick.

I can use the jack headphones and the mic but the mic on the notebook is
not working.

Thank you very much for advices.

Regards,

lk