From owner-freebsd-questions@freebsd.org Wed Jan 13 11:21:05 2021 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 19C2B4D8C04 for ; Wed, 13 Jan 2021 11:21:05 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4DG4kl6dt6z4Vsk for ; Wed, 13 Jan 2021 11:21:03 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from [188.174.56.26] (helo=c720-r368166.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kzeCz-0007DM-EB for freebsd-questions@freebsd.org; Wed, 13 Jan 2021 12:21:01 +0100 Received: from c720-r368166.fritz.box (localhost [127.0.0.1]) by c720-r368166.unixarea.de (8.16.1/8.14.9) with ESMTPS id 10DBL0aT008412 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Wed, 13 Jan 2021 12:21:00 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by c720-r368166.fritz.box (8.16.1/8.14.9/Submit) id 10DBL0g0008411 for freebsd-questions@freebsd.org; Wed, 13 Jan 2021 12:21:00 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: c720-r368166.fritz.box: guru set sender to guru@unixarea.de using -f Date: Wed, 13 Jan 2021 12:21:00 +0100 From: Matthias Apitz To: freebsd-questions@freebsd.org Subject: sound devices /dev/dsp* && pulseaudio Message-ID: Reply-To: Matthias Apitz Mail-Followup-To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Operating-System: FreeBSD 13.0-CURRENT r368166 (amd64) X-message-flag: Mails containing HTML will not be read! Please send only plain text. X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 188.174.56.26 X-Rspamd-Queue-Id: 4DG4kl6dt6z4Vsk X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of guru@unixarea.de has no SPF policy when checking 178.254.4.101) smtp.mailfrom=guru@unixarea.de X-Spamd-Result: default: False [-2.20 / 15.00]; HAS_REPLYTO(0.00)[guru@unixarea.de]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_XOIP(0.00)[]; RBL_SENDERSCORE_FAIL(0.00)[178.254.4.101:server fail]; RWL_MAILSPIKE_GOOD(0.00)[178.254.4.101:from]; HAS_XAW(0.00)[]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RECEIVED_SPAMHAUS_PBL(0.00)[188.174.56.26:received]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[178.254.4.101:from]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:42730, ipnet:178.254.0.0/19, country:DE]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; DMARC_NA(0.00)[unixarea.de]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[178.254.4.101:from:127.0.2.255]; RCVD_IN_DNSWL_LOW(-0.10)[178.254.4.101:from]; R_SPF_NA(0.00)[no SPF record]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jan 2021 11:21:05 -0000 I have in my laptop running 13.0-CURRENT r368166 the following situation $ cat /dev/sndstat Installed devices: pcm0: (play) pcm1: (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: (play) pcm1: (play/rec) pcm2: (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: argument: name: device.string = "/dev/dsp0" device.description = "/dev/dsp0" name: device.string = "/dev/dsp1" device.description = "/dev/dsp1" name: device.description = "Monitor of /dev/dsp0" name: 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/