[asterisk-bugs] [JIRA] (ASTERISK-22000) chan_alsa fails to use input_device=plug:dsnoop
Chris Gentle (JIRA)
noreply at issues.asterisk.org
Tue Jul 2 12:19:03 CDT 2013
[ https://issues.asterisk.org/jira/browse/ASTERISK-22000?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chris Gentle updated ASTERISK-22000:
------------------------------------
Description:
Trying to get chan_alsa to use ALSA device plug:dsnoop so that it will not block other processes trying to read from ALSA mic input. (The dsnoop plugin is the opposite of dmix, it's for mic input rather than speaker output.) My alsa configuration is the distribution's default without anything added to /etc/asound.conf or ~/.asoundrc.
Running simultaneous arecord sessions with plug:dsnoop works without blocking:
{noformat}
for i in `seq 1 5`; do
arecord -D plug:dsnoop -f cd -d 10 foobar-$i.wav &
done
{noformat}
but using input_device=plug:dsnoop in /etc/alsa.conf fails.
{noformat}
<< Console call has been answered >>
[2013-07-02 09:32:56] ERROR[5374][C-00000000]: chan_alsa.c:479 alsa_read: Read error: Resource temporarily unavailable
[2013-07-02 09:32:56] ERROR[5374][C-00000000]: chan_alsa.c:479 alsa_read: Read error: Resource temporarily unavailable
[2013-07-02 09:32:56] ERROR[5374][C-00000000]: chan_alsa.c:479 alsa_read: Read error: Resource temporarily unavailable
[2013-07-02 09:32:56] ERROR[5374][C-00000000]: chan_alsa.c:479 alsa_read: Read error: Resource temporarily unavailable
[2013-07-02 09:32:56] ERROR[5374][C-00000000]: chan_alsa.c:479 alsa_read: Read error: Resource temporarily unavailable
[2013-07-02 09:32:56] ERROR[5374][C-00000000]: chan_alsa.c:479 alsa_read: Read error: Resource temporarily unavailable
{noformat}
was:
Trying to get chan_alsa to use ALSA device plug:dsnoop so that it will not block other processes trying to read from ALSA mic input. (The dsnoop plugin is the opposite of dmix, it's for mic input rather than speaker output.) My alsa configuration is the distribution's default without anything added to /etc/asound.conf or ~/.asoundrc.
Running simultaneous arecord sessions with plug:dsnoop works without blocking:
{noformat}
for i in `seq 1 5`; do
arecord -D plug:dsnoop -f cd -d 10 foobar-$i.wav &
done
{noformat}
but using input_device=plug:dsnoop in /etc/alsa.conf fails.
{noformat}
<< Console call has been answered >>
[2013-07-02 09:32:56] ERROR[5374][C-00000000]: chan_alsa.c:479 alsa_read: Read error: Resource temporarily unavailable
[2013-07-02 09:32:56] ERROR[5374][C-00000000]: chan_alsa.c:479 alsa_read: Read error: Resource temporarily unavailable
[2013-07-02 09:32:56] ERROR[5374][C-00000000]: chan_alsa.c:479 alsa_read: Read error: Resource temporarily unavailable
[2013-07-02 09:32:56] ERROR[5374][C-00000000]: chan_alsa.c:479 alsa_read: Read error: Resource temporarily unavailable
[2013-07-02 09:32:56] ERROR[5374][C-00000000]: chan_alsa.c:479 alsa_read: Read error: Resource temporarily unavailable
[2013-07-02 09:32:56] ERROR[5374][C-00000000]: chan_alsa.c:479 alsa_read: Read error: Resource temporarily unavailable
{noformat}
> chan_alsa fails to use input_device=plug:dsnoop
> -----------------------------------------------
>
> Key: ASTERISK-22000
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-22000
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Channels/chan_alsa
> Affects Versions: 11.4.0
> Environment: Asterisk 11.4.0 on Raspberry Pi with Raspbian 2013-05-25-wheezy. C-Media USB sound card installed.
> Reporter: Chris Gentle
> Severity: Minor
>
> Trying to get chan_alsa to use ALSA device plug:dsnoop so that it will not block other processes trying to read from ALSA mic input. (The dsnoop plugin is the opposite of dmix, it's for mic input rather than speaker output.) My alsa configuration is the distribution's default without anything added to /etc/asound.conf or ~/.asoundrc.
> Running simultaneous arecord sessions with plug:dsnoop works without blocking:
> {noformat}
> for i in `seq 1 5`; do
> arecord -D plug:dsnoop -f cd -d 10 foobar-$i.wav &
> done
> {noformat}
> but using input_device=plug:dsnoop in /etc/alsa.conf fails.
> {noformat}
> << Console call has been answered >>
> [2013-07-02 09:32:56] ERROR[5374][C-00000000]: chan_alsa.c:479 alsa_read: Read error: Resource temporarily unavailable
> [2013-07-02 09:32:56] ERROR[5374][C-00000000]: chan_alsa.c:479 alsa_read: Read error: Resource temporarily unavailable
> [2013-07-02 09:32:56] ERROR[5374][C-00000000]: chan_alsa.c:479 alsa_read: Read error: Resource temporarily unavailable
> [2013-07-02 09:32:56] ERROR[5374][C-00000000]: chan_alsa.c:479 alsa_read: Read error: Resource temporarily unavailable
> [2013-07-02 09:32:56] ERROR[5374][C-00000000]: chan_alsa.c:479 alsa_read: Read error: Resource temporarily unavailable
> [2013-07-02 09:32:56] ERROR[5374][C-00000000]: chan_alsa.c:479 alsa_read: Read error: Resource temporarily unavailable
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the asterisk-bugs
mailing list