[alsa-devel] "Resource temporarily unavailable" while reading although poll returns POLLIN event
Stefan Schoenleitner
dev.c0debabe at gmail.com
Thu Apr 22 12:09:37 CEST 2010
Jaroslav Kysela wrote:
> On Wed, 21 Apr 2010, Stefan Schoenleitner wrote:
>> I suspect that this is a bug in ALSA ?
>
> It might be. Could you post snd_pcm_dump() when you read less frames?
Sure, here's the output:
-----------------------------------------------------------------
snd_pcm_avail_update(capture): 11
demangled poll: POLLIN on capture device
could not read from capture device: Resource temporarily unavailable
ALSA <-> PulseAudio PCM I/O Plugin
Its setup is:
stream : CAPTURE
access : RW_INTERLEAVED
format : S16_LE
subformat : STD
channels : 1
rate : 8000
exact rate : 8000 (8000/1)
msbits : 16
buffer_size : 640
period_size : 160
period_time : 20000
tstamp_mode : NONE
period_step : 1
avail_min : 160
period_event : 0
start_threshold : 160
stop_threshold : 320
silence_threshold: 0
silence_size : 0
boundary : 5764607523034234880
-----------------------------------------------------------------
As you can see I'm using pulseaudio.
The version I'm using is 1:0.9.14-0ubuntu20 (on ubuntu jaunty).
For testing purposes I increased the period size to 320 so that the
program works on my hardware sound card "hw".
It turned out that the program is working fine there and the poll()
behavior is as it should be.
cheers,
stefan
More information about the Alsa-devel
mailing list