sound devices /dev/dsp* && pulseaudio

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

$ uname -a
FreeBSD c720-r368166 13.0-CURRENT FreeBSD 13.0-CURRENT #23 r368166M: Thu Dec 17 13:12:37 CET 2020     guru@c720-r368166:/usr/obj/usr/src/amd64.amd64/sys/GENERIC  amd64

$ pkg info | grep pulse
pulseaudio-13.0_1              Sound server for UNIX

$ 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
as pcm2 (USB):

$ 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
/dev/dsp2:

$ 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@xxxxxxxxxxx, 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/
_______________________________________________
pulseaudio-discuss mailing list
pulseaudio-discuss@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss




[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux