Re: sound on FreeBSD 14.0-CURRENT

From: Hans Petter Selasky <hps_at_selasky.org>
Date: Tue, 16 Nov 2021 09:48:57 UTC
On 11/16/21 10:40, Ludovit Koren wrote:
> 
> Hi,
> 
> I am running FreeBSD 14.0-CURRENT #0 main-n250646-c0525ab1d1c-dirty: Sat Nov 13 16:42:44 CET 2021
> Here is the output from:
> cat /dev/sndstat
> Installed devices:
> pcm0: <Realtek ALC285 (Analog)> (play/rec) default
> pcm1: <Realtek ALC285 (Left Analog Headphones)> (play)
> pcm2: <Intel Kaby Lake (HDMI/DP 8ch)> (play)
> Installed devices from userspace:
> dsp: <Virtual OSS> (play/rec)
> vdsp: <Virtual OSS> (play/rec)
> 
> I am running:
> /usr/local/sbin/virtual_oss -B -D /var/run/virtual_oss/dsp.pid -T /dev/sndstat -S -i 8 -C 18 -c 18 -r 48000 -b 32 -s 512 -f /dev/dsp0 -c 2 -d dsp -c 18 -d vdsp -t vdsp.ctl
> 
> I am not able to redirect to different output even if I try for example:
> 
> sysctl hw.snd.default_unit=1
> 
> 
> Please see the attached output from: sysctl dev.pcm, sysctl hw.snd and
> dmesg.
> 
> I did not find any hint how to redirect the sound output to the different
> device except hw.snd.default_unit. The output remains in the default
> output. Am I missing something or doing something wrong?
> 

Hi,

When you are using virtual_oss , hw.snd.default_unit is not used.

man virtual_oss_cmd

Try this instead:
virtual_oss_cmd /dev/vdsp.ctl -f /dev/dsp1

--HPS