Re: "Resource temporarily unavailable" while reading although poll returns POLLIN event

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2010/4/22 Stefan Schoenleitner <dev.c0debabe@xxxxxxxxx>

> 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
>
>
you will need to provide the full pulseaudio log if you are using pulseaudio

pulseaudio --kill; pulseaudio -vvvv
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux