Date: Wed, 13 Jan 2021 12:21:00 +0100 From: Matthias Apitz <guru@unixarea.de> To: freebsd-questions@freebsd.org Subject: sound devices /dev/dsp* && pulseaudio Message-ID: <X/7XnDC5Ks5gDNo/@c720-r368166.fritz.box>
next in thread | raw e-mail | index | archive | help
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@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/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?X/7XnDC5Ks5gDNo/>