Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B40C3D3E18D for ; Mon, 21 Oct 2024 06:57:38 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 95F54DEE; Mon, 21 Oct 2024 08:57:26 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 95F54DEE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1729493856; bh=crXVhYFRtr/2Joiu91gtXLZ1UDXqfeEoHQc9X7mp8eQ=; h=From:To:In-Reply-To:References:Subject:Date:List-Id:List-Archive: List-Help:List-Owner:List-Post:List-Subscribe:List-Unsubscribe: From; b=EKFFpinWO1zR+6HelqVXCE2YtC5gil8y1w4+0QWTnvl+9s+u+4ZEexqVyx0G+rFRs a3kzuVtQVX3ecAgnN9qnnr+YS6kzsXofXgggB3TrctJY4nNkrDj2+y2VffNRfIwp8g FHeHKBMWuQVrCwHDfmnwv6HIdqgXVowjYpLyjk+I= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 5AAEAF805B6; Mon, 21 Oct 2024 08:57:04 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 5A792F805AC; Mon, 21 Oct 2024 08:57:04 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id B3ABDF8016C; Mon, 21 Oct 2024 08:56:58 +0200 (CEST) Received: from webhooks-bot.alsa-project.org (vmi242170.contaboserver.net [207.180.221.201]) by alsa1.perex.cz (Postfix) with ESMTP id E2DE4F800ED for ; Mon, 21 Oct 2024 08:56:56 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz E2DE4F800ED MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit From: GitHub issues - edited To: alsa-devel@alsa-project.org In-Reply-To: <1729493816408677816-webhooks-bot@alsa-project.org> References: <1729493816408677816-webhooks-bot@alsa-project.org> Subject: snd_pcm_hw_open open '/dev/snd/pcmC0D0p' failed (-16) Message-Id: <20241021065658.B3ABDF8016C@alsa1.perex.cz> Date: Mon, 21 Oct 2024 08:56:58 +0200 (CEST) Message-ID-Hash: BMDXOWSC7KUCSPZQB4SBKM7WJUNRJ3MC X-Message-ID-Hash: BMDXOWSC7KUCSPZQB4SBKM7WJUNRJ3MC X-MailFrom: github@alsa-project.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: alsa-project/alsa-lib issue #412 was edited from SVENsuzhou: Hi, I am using pjsip to make a sip call function. But I got the following error in alsa-lib. ``` Oct 21 08:14:36 tos-hmi-02 ads_uartboardd[1404]: 08:14:36.315 pjsua_call.c !Answering call 0: code=200 Oct 21 08:14:36 tos-hmi-02 ads_uartboardd[1404]: 08:14:36.315 inv0x7f989c003fc8 ..SDP negotiation done: Success Oct 21 08:14:36 tos-hmi-02 ads_uartboardd[1404]: 08:14:36.316 pjsua_media.c ...Call 0: updating media.. Oct 21 08:14:36 tos-hmi-02 ads_uartboardd[1404]: 08:14:36.316 pjsua_media.c .....Media stream call00:0 is destroyed Oct 21 08:14:36 tos-hmi-02 ads_uartboardd[1404]: 08:14:36.316 udp0x7f989c010710 ....UDP media transport started Oct 21 08:14:36 tos-hmi-02 ads_uartboardd[1404]: 08:14:36.316 pjsua_aud.c ....Audio channel update.. Oct 21 08:14:36 tos-hmi-02 ads_uartboardd[1404]: 08:14:36.316 udp0x7f989c010710 .....UDP media transport attached Oct 21 08:14:36 tos-hmi-02 ads_uartboardd[1404]: 08:14:36.317 strm0x5559ce2eb538 .....Encoder stream started Oct 21 08:14:36 tos-hmi-02 ads_uartboardd[1404]: 08:14:36.317 strm0x5559ce2eb538 .....Decoder stream started Oct 21 08:14:36 tos-hmi-02 ads_uartboardd[1404]: 08:14:36.317 pjsua_media.c ....Audio updated, stream #0: PCMA (sendrecv) Oct 21 08:14:36 tos-hmi-02 ads_uartboardd[1404]: 08:14:36.317 pjsua_aud.c ...Conf connect: 1 --> 0 Oct 21 08:14:36 tos-hmi-02 ads_uartboardd[1404]: 08:14:36.317 pjsua_aud.c ....Set sound device: capture=-1, playback=-2, mode=0, use_default_settings=0 Oct 21 08:14:36 tos-hmi-02 ads_uartboardd[1404]: 08:14:36.317 pjsua_aud.c .....Opening sound device (speaker + mic) PCM@16000/1/20ms Oct 21 08:14:36 tos-hmi-02 ads_uartboardd[1404]: 08:14:36.318 alsa_dev.c ......ALSA lib /usr/src/debug/alsa-lib/1.2.11/src/pcm/pcm_hw.c:1785:(snd_pcm_hw_open) open '/dev/snd/pcmC0D0p' failed (-16): Device o Oct 21 08:14:36 tos-hmi-02 ads_uartboardd[1404]: 08:14:36.318 pjsua_aud.c .....Opening sound device (speaker + mic) PCM@44100/1/20ms Oct 21 08:14:36 tos-hmi-02 ads_uartboardd[1404]: start media transmit failed: pjsua_conf_connect(id, sink.id) error: Unknown error from audio driver (PJMEDIA_EAUD_SYSERR) (status=420002) [/usr/src/debug/pjproject/2.14.1/pjsip/src/pjsua2/media.cpp:218] Oct 21 08:14:36 tos-hmi-02 ads_uartboardd[1404]: 08:14:36.318 alsa_dev.c ......ALSA lib /usr/src/debug/alsa-lib/1.2.11/src/pcm/pcm_hw.c:1785:(snd_pcm_hw_open) open '/dev/snd/pcmC0D0p' failed (-16): Device o Oct 21 08:14:36 tos-hmi-02 ads_uartboardd[1404]: 08:14:36.318 pjsua_aud.c .....Opening sound device (speaker + mic) PCM@48000/1/20ms Oct 21 08:14:36 tos-hmi-02 ads_uartboardd[1404]: 08:14:36.319 alsa_dev.c ......ALSA lib /usr/src/debug/alsa-lib/1.2.11/src/pcm/pcm_hw.c:1785:(snd_pcm_hw_open) open '/dev/snd/pcmC0D0p' failed (-16): Device o Oct 21 08:14:36 tos-hmi-02 ads_uartboardd[1404]: 08:14:36.319 pjsua_aud.c .....Opening sound device (speaker + mic) PCM@32000/1/20ms Oct 21 08:14:36 tos-hmi-02 ads_uartboardd[1404]: 08:14:36.319 alsa_dev.c ......ALSA lib /usr/src/debug/alsa-lib/1.2.11/src/pcm/pcm_hw.c:1785:(snd_pcm_hw_open) open '/dev/snd/pcmC0D0p' failed (-16): Device o Oct 21 08:14:36 tos-hmi-02 ads_uartboardd[1404]: 08:14:36.319 pjsua_aud.c .....Opening sound device (speaker + mic) PCM@16000/1/20ms Oct 21 08:14:36 tos-hmi-02 ads_uartboardd[1404]: 08:14:36.319 alsa_dev.c ......ALSA lib /usr/src/debug/alsa-lib/1.2.11/src/pcm/pcm_hw.c:1785:(snd_pcm_hw_open) open '/dev/snd/pcmC0D0p' failed (-16): Device o Oct 21 08:14:36 tos-hmi-02 ads_uartboardd[1404]: 08:14:36.319 pjsua_aud.c .....Opening sound device (speaker + mic) PCM@8000/1/20ms Oct 21 08:14:36 tos-hmi-02 ads_uartboardd[1404]: 08:14:36.320 alsa_dev.c ......ALSA lib /usr/src/debug/alsa-lib/1.2.11/src/pcm/pcm_hw.c:1785:(snd_pcm_hw_open) open '/dev/snd/pcmC0D0p' failed (-16): Device o Oct 21 08:14:36 tos-hmi-02 ads_uartboardd[1404]: 08:14:36.320 pjsua_aud.c .....Unable to open sound device: Unknown error from audio driver (PJMEDIA_EAUD_SYSERR) [status=420002] Oct 21 08:14:36 tos-hmi-02 ads_uartboardd[1404]: 08:14:36.320 pjsua_aud.c ....Error opening sound device: Unknown error from audio driver (PJMEDIA_EAUD_SYSERR) [status=420002] Oct 21 08:14:36 tos-hmi-02 ads_uartboardd[1404]: 08:14:36.320 media.cpp ...pjsua_conf_connect(id, sink.id) error: Unknown error from audio driver (PJMEDIA_EAUD_SYSERR) (status=420002) [/usr/src/debug/pjproject/2.14.1/pjsip/src/pjsua2/media.cpp:218] Oct 21 08:14:36 tos-hmi-02 ads_uartboardd[1404]: 08:14:36.321 pjsua_core.c ....TX 966 bytes Response msg 200/INVITE/cseq=30946 (tdta0x5559ce2e7378) to UDP 10.57.0.200:5060: Oct 21 08:14:36 tos-hmi-02 ads_uartboardd[1404]: SIP/2.0 200 OK Oct 21 08:14:36 tos-hmi-02 ads_uartboardd[1404]: Via: SIP/2.0/UDP 10.57.0.200:5060;rport=5060;received=10.57.0.200;branch=z9hG4bKPje5a12777-db72-4db0-a5a5-a72743589a27 Oct 21 08:14:36 tos-hmi-02 ads_uartboardd[1404]: Call-ID: 0bc91889-099c-42de-beb2-4fedefac6e7f Oct 21 08:14:36 tos-hmi-02 ads_uartboardd[1404]: answer incoming call, remote uri: , state: CONNECTING Oct 21 08:14:36 tos-hmi-02 ads_uartboardd[1404]: From: ;tag=9efc50b5-c57a-4aa7-823e-2c3df064a27c ``` ``` root@tos-hmi-02:~# dmesg | grep snd [ 16.251073] snd_hda_intel 0000:00:0e.0: DSP detected with PCI class/subclass/prog-if info 0x040380 [ 16.261081] snd_hda_intel 0000:00:0e.0: bound 0000:00:02.0 (ops 0xffffffff8df312a0) [ 16.351558] snd_hda_codec_idt hdaudioC0D0: autoconfig for 92HD89D3: line_outs=3 (0xd/0xf/0x10/0x0/0x0) type:line [ 16.362460] snd_hda_codec_idt hdaudioC0D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0) [ 16.362470] snd_hda_codec_idt hdaudioC0D0: hp_outs=1 (0xa/0x0/0x0/0x0/0x0) [ 16.362476] snd_hda_codec_idt hdaudioC0D0: mono: mono_out=0x0 [ 16.383430] snd_hda_codec_idt hdaudioC0D0: dig-out=0x22/0x23 [ 16.383447] snd_hda_codec_idt hdaudioC0D0: inputs: [ 16.383452] snd_hda_codec_idt hdaudioC0D0: Internal Mic=0x14 [ 16.383455] snd_hda_codec_idt hdaudioC0D0: Rear Mic=0xe [ 16.383459] snd_hda_codec_idt hdaudioC0D0: Front Mic=0xb [ 16.383461] snd_hda_codec_idt hdaudioC0D0: Internal Mic=0x13 [ 16.383464] snd_hda_codec_idt hdaudioC0D0: Line=0xc [ 16.383466] snd_hda_codec_idt hdaudioC0D0: CD=0x12 [ 16.383469] snd_hda_codec_idt hdaudioC0D0: dig-in=0x24 ``` I try to use `lsof /dev/snd/*` to check which process hold the file handle. And I got nothing. Can you give me some leads on troubleshooting? Issue URL : https://github.com/alsa-project/alsa-lib/issues/412 Repository URL: https://github.com/alsa-project/alsa-lib