Re: Getting sound to work

From: Christos Margiolis <christos_at_freebsd.org>
Date: Sat, 28 Sep 2024 16:55:51 UTC
> On Monday, September 16th, 2024 at 11:31 AM, Christos Margiolis
> > With hw.snd.verbose=2.
> > 
> > Also the output of mixer(8) would be useful.
> 
> Thanks for the reply
> 
> root@freebsd1:~ # sysctl hw.snd.verbose=2
> hw.snd.verbose: 0 -> 2
> root@freebsd1:~ # cat /dev/sndstat
> FreeBSD Audio Driver (64bit 2009061500/amd64)
> Installed devices:
> pcm0: <Intel Kaby Lake (HDMI/DP 8ch)> on hdaa0 (1p:1v/0r:0v) default
>         snddev flags=0x2e7<SIMPLEX,AUTOVCHAN,SOFTPCMVOL,BUSY,MPSAFE,REGISTERED,VPC>
>         [pcm0:play:dsp0.p0]: spd 48000, fmt 0x00200010, flags 0x00006100, 0x00000004
>         interrupts 0, underruns 0, feed 0, ready 0 [b:2048/1024/2|bs:2048/1024/2]
>         channel flags=0x6100<BUSY,HAS_VCHAN,VCHAN_PASSTHROUGH>
>         {userland} -> feeder_mixer(0x00200010) -> {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}
> 
> root@freebsd1:~ # mixer
> pcm0:mixer: <Intel Kaby Lake (HDMI/DP 8ch)> on hdaa0 (play) (default)
>     vol       = 1.00:1.00     pbk
>     pcm       = 1.00:1.00     pbk

This looks reasonable. I am afraid your sound card might one of those
that nice SOF support, which is not ported to FreeBSD yet, although I am
planning to work on it at some point.

Just to make sure, since I guess you're trying to play sound from HDMI,
are your video drivers up to date and correctly configured?

Christos