Re: 0 or EAGAIN from snd_pcm_update_avail()?

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

 



On Thu, 2 Apr 2009, Ludovico Cavedon wrote:

> Hi all,
>
> if snd_pcm_update_avail() gets called on a PCM device in non-blocking
> mode when no data is availabe jet, what is the expected return value?
> -0
> -EAGAIN
> -either is valid
>
> I am asking this question because pulseaudio expect to receive 0, but
> the the bluetooth headset pcm transfer callback returns EAGAIN, so I
> want to find out against whoms I should open a bug :)

0.

-EAGAIN should be returned only for R/W operations but not for buffer 
position routines. They should return always immediatelly with 
useable value (thus EAGAIN does not make sense).

 						Jaroslav

-----
Jaroslav Kysela <perex@xxxxxxxx>
Linux Kernel Sound Maintainer
ALSA Project, Red Hat, Inc.

_______________________________________________
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