Solved USB headset can't be selected as output/input

Hello!

I have usb headset, that I would like to use for streaming. I connected it to my pc, got it recognized:
Code:
ugen0.4: <vendor 0x0c76 USB PnP Audio Device> at usbus0
uaudio0 on uhub1
uaudio0: <vendor 0x0c76 USB PnP Audio Device, class 0/0, rev 1.10/1.00, addr 4> on usbus0
uaudio0: Play[0]: 48000 Hz, 2 ch, 16-bit S-LE PCM format, 2x8ms buffer.
uaudio0: Record[0]: 48000 Hz, 1 ch, 16-bit S-LE PCM format, 2x8ms buffer.
uaudio0: No MIDI sequencer.
pcm7: <USB audio> on uaudio0
uaudio0: HID volume keys found.

Code:
~/ dmesg | grep pcm
pcm0: <NVIDIA (0x009f) (HDMI/DP 8ch)> at nid 4 on hdaa0
pcm1: <NVIDIA (0x009f) (HDMI/DP 8ch)> at nid 5 on hdaa0
pcm2: <NVIDIA (0x009f) (HDMI/DP 8ch)> at nid 6 on hdaa0
pcm3: <NVIDIA (0x009f) (HDMI/DP 8ch)> at nid 7 on hdaa0
pcm4: <Realtek ALC887 (Analog)> at nid 21 and 24,26 on hdaa1
pcm5: <Realtek ALC887 (Analog)> at nid 20 and 25 on hdaa1
pcm6: <Realtek ALC887 (Front Analog Headphones)> at nid 27 on hdaa1
pcm0: <NVIDIA (0x009f) (HDMI/DP 8ch)> at nid 4 on hdaa0
pcm1: <NVIDIA (0x009f) (HDMI/DP 8ch)> at nid 5 on hdaa0
pcm2: <NVIDIA (0x009f) (HDMI/DP 8ch)> at nid 6 on hdaa0
pcm3: <NVIDIA (0x009f) (HDMI/DP 8ch)> at nid 7 on hdaa0
pcm4: <Realtek ALC887 (Analog)> at nid 21 and 24,26 on hdaa1
pcm5: <Realtek ALC887 (Analog)> at nid 20 and 25 on hdaa1
pcm6: <Realtek ALC887 (Front Analog Headphones)> at nid 27 on hdaa1
pcm0: <NVIDIA (0x009f) (HDMI/DP 8ch)> at nid 4 on hdaa0
pcm1: <NVIDIA (0x009f) (HDMI/DP 8ch)> at nid 5 on hdaa0
pcm2: <NVIDIA (0x009f) (HDMI/DP 8ch)> at nid 6 on hdaa0
pcm3: <NVIDIA (0x009f) (HDMI/DP 8ch)> at nid 7 on hdaa0
pcm4: <Realtek ALC887 (Analog)> at nid 21 and 24,26 on hdaa1
pcm5: <Realtek ALC887 (Analog)> at nid 20 and 25 on hdaa1
pcm6: <Realtek ALC887 (Front Analog Headphones)> at nid 27 on hdaa1
pcm7: <USB audio> on uaudio0

Code:
~/ cat /dev/sndstat
Installed devices:
pcm0: <NVIDIA (0x009f) (HDMI/DP 8ch)> (play)
pcm1: <NVIDIA (0x009f) (HDMI/DP 8ch)> (play)
pcm2: <NVIDIA (0x009f) (HDMI/DP 8ch)> (play)
pcm3: <NVIDIA (0x009f) (HDMI/DP 8ch)> (play)
pcm4: <Realtek ALC887 (Analog)> (play/rec)
pcm5: <Realtek ALC887 (Analog)> (play/rec) default
pcm6: <Realtek ALC887 (Front Analog Headphones)> (play)
pcm7: <USB audio> (play/rec)
No devices installed from userspace.


But but but, I can't select this as an output nor input anywhere in the media programs, I assume because it doesn't have dsp device assigned?
Code:
~/ ls -l /dev/dsp*
crw-rw-rw-  1 root  wheel  0xa1 Apr 26 19:17 /dev/dsp0.0
crw-rw-rw-  1 root  wheel  0xa6 Apr 26 19:20 /dev/dsp1.0
crw-rw-rw-  1 root  wheel  0xa8 Apr 26 19:20 /dev/dsp2.0
crw-rw-rw-  1 root  wheel  0xaa Apr 26 19:20 /dev/dsp3.0
crw-rw-rw-  1 root  wheel  0xac Apr 26 19:20 /dev/dsp4.0
crw-rw-rw-  1 root  wheel  0xae Apr 26 19:20 /dev/dsp5.0
crw-rw-rw-  1 root  wheel  0xa7 Apr 26 19:20 /dev/dsp5.1
crw-rw-rw-  1 root  wheel  0xb6 Apr 26 21:08 /dev/dsp5.2
crw-rw-rw-  1 root  wheel  0xb0 Apr 26 19:20 /dev/dsp6.0

~/ lsusb
Bus /dev/usb Device /dev/ugen0.4: ID 0c76:161f JMTek, LLC.

So I ask for help, what should I do to make it working?

PS:
Code:
~/ uname -a
FreeBSD starcloud 13.2-RELEASE FreeBSD 13.2-RELEASE releng/13.2-n254617-525ecfdad597 GENERIC amd64
~/ kldload snd_uaudio
kldload: can't load snd_uaudio: module already loaded or in kernel
 
I wasn't aware I'm using pulseaudio to be honest. I never configured it(have it installed as dependency to something), thus I expected to be bound to sndio.
Earlier I tried to execute pulseaudio -k, but it stated that there is no active deamon, which only confirmed my thoughts.
But then I tried to start pulseaudio when was listening to music in firefox. it responded that the deamon is already active.
At first I was surprised, but then executed pulseaudio -k and it helped discovering usb headset.
that's the story :)
 
I might mixed OSS and sndio in my mind.
either way, I haven't purposefully set up anything beyond following very limited set of instructions in the handbook. Hence I expected to have default sound backend, whether it's OSS or sndio.
Thnx for the tip regarding pulseaudio config, will try it.
 
The native sound interface is indeed OSS. Then, if you want, sndio can run on top of that as an additional layer between OSS and applications, just like pulseaudio.
 
Back
Top