snd_pcm_hw_open open '/dev/snd/pcmC0D0p' failed (-16)
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: sip:passenger_pei@10.57.0.200, state: CONNECTING Oct 21 08:14:36 tos-hmi-02 ads_uartboardd[1404]: From: sip:passenger_pei@10.57.0.200;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
participants (1)
-
GitHub issues - edited