Re: sound on FreeBSD 14.0-CURRENT

From: Hans Petter Selasky <hps_at_selasky.org>
Date: Wed, 17 Nov 2021 10:50:20 UTC
Hi Ludovit,

> 
> It does not work automatically on the new notebook. I suppose pcm1, is
> the output for the jack headphones.
> 
> I just tried without virtual_oss, with virtual_oss, starting with -f
> /dev/dsp0; /dev/dsp1; /dev/dsp2; /dev/dsp1.0; /dev/dsp2.0; then using
> virtual_oss_cmd using different devices and using virtual_oss_cmd as you
> mentioned in the email.
> 
> Still no success... (and next I would like to run bluetooth headphones....)

Again, please show all the commands you try and the output from them. 
Else I cannot help you figure this out!

Your setup should be like this:

mixer -f /dev/mixer0 -s vol 100
mixer -f /dev/mixer0 -s pcm 100

mixer -f /dev/mixer1 -s vol 100
mixer -f /dev/mixer1 -s pcm 100

killall virtual_oss

virtual_oss \
   -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

# if you play something now, do you have sound in your regular speakers?

virtual_oss_cmd /dev/vdsp.ctl -P /dev/dsp1

# if you play something now, do you have sound in your headphone jack?

If the answer is "no" to the last question and "yes" to the first 
question, there may be some quirks needed for the sound card:

Please read through:
man snd_hda

First and then try to search the FreeBSD forums for similar issues.

--HPS