Re: [PATCH 2/2] add API to allow disabling period interrupt

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

 



On Tue, 2 Nov 2010, Clemens Ladisch wrote:

>> + * When period interrupts are disabled, the application must not use poll() or
>> + * any functions that could block on this device.
>
> We should also mention that the application must call some update
> function often enough.

Reading this - the poll() inside the driver may return POLLERR when no 
period updates are invoked in the driver. It does not make much sense to 
block the application when we know that the wake up function is not 
supported.

Also all wait functions in alsa-lib should be reviewed and changed to 
return an error. Also, the blocking behaviour should not be allowed - it 
means that apps must use SND_PCM_NONBLOCK or snd_pcm_nonblock(pcm, 1) for 
this mode.

 						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