sound devices /dev/dsp* && pulseaudio

Matthias Apitz guru at unixarea.de
Wed Jan 13 11:21:05 UTC 2021


I have in my laptop running 13.0-CURRENT r368166 the following situation 

$ cat /dev/sndstat
Installed devices:
pcm0: <Intel Haswell (HDMI/DP 8ch)> (play)
pcm1: <Realtek ALC283 (Analog 2.0+HP/2.0)> (play/rec) default
No devices installed from userspace.

When I now plug-in an USB headset it gives (logically) one device more:

$ cat /dev/sndstat
Installed devices:
pcm0: <Intel Haswell (HDMI/DP 8ch)> (play)
pcm1: <Realtek ALC283 (Analog 2.0+HP/2.0)> (play/rec)
pcm2: <USB audio> (play/rec) default
No devices installed from userspace.

and also the device files are there fine:

$ ls -l /dev/dsp*
crw-rw-rw-  1 root  wheel  0x191 Jan 13 12:05 /dev/dsp0.0
crw-rw-rw-  1 root  wheel  0x18c Jan 13 10:59 /dev/dsp1.0
crw-rw-rw-  1 root  wheel  0x192 Jan 13 11:49 /dev/dsp1.1
crw-rw-rw-  1 root  wheel  0x193 Jan 13 11:00 /dev/dsp1.2
crw-rw-rw-  1 root  wheel  0x195 Jan 13 11:00 /dev/dsp1.3
crw-rw-rw-  1 root  wheel  0x198 Jan 13 12:04 /dev/dsp1.4
crw-rw-rw-  1 root  wheel  0x19c Jan 13 12:15 /dev/dsp2.0  <*** USB

But the running pulseaudio(8) daemon does not know the new device:

$ pacmd info | grep dsp

Default sink name: oss_output.dsp1
Default source name: oss_output.dsp1.monitor
	argument: <device=/dev/dsp0>
	argument: <device=/dev/dsp1>
	name: <oss_output.dsp0>
		device.string = "/dev/dsp0"
		device.description = "/dev/dsp0"
	name: <oss_output.dsp1>
		device.string = "/dev/dsp1"
		device.description = "/dev/dsp1"
	name: <oss_output.dsp0.monitor>
		device.description = "Monitor of /dev/dsp0"
	name: <oss_input.dsp1>

Of course, I could restart the pulseaudio(8) and all would be fine (and
working also with firefox https://meet.jit.si/myroom ), but is there any
way to get pulseaudio(8) informed about the new device (and also the
detach)?

	matthias

-- 
Matthias Apitz, ✉ guru at unixarea.de, http://www.unixarea.de/ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub
¡Con Cuba no te metas!  «»  Don't mess with Cuba!  «»  Leg Dich nicht mit Kuba an!
http://www.cubadebate.cu/noticias/2020/12/25/en-video-con-cuba-no-te-metas/


More information about the freebsd-questions mailing list