Re: [linux-audio-dev] snd_pcm_poll_descriptors_revents() question

From: Clemens Ladisch <cladisch@email-addr-hidden>
Date: Wed Nov 08 2006 - 18:58:40 EET

Fons Adriaensen wrote:
> On Wed, Nov 08, 2006 at 02:24:30PM +0100, Fons Adriaensen wrote:
> > Is snd_pcm_poll_descriptors_revents() more than an
> > accessor ? If it is, the name is a quite misleading.
>
> To answer my own question, it seems that it *is* more
> than an accessor.
>
> The docs leave one thing unclear. Does this call require
> an array of unsigned short int (one per pollfd), or are
> events from all pollfds combined into one revents value?

It returns one revents value for the PCM device.

> In that case, how can one test if *all* pollfd for a given
> pcm are ready ?

You cannot. The state of the file descriptors is not necessarily
related to the state of the PCM device (which is why this function
exists).

Regards,
Clemens
Received on Wed Nov 8 20:15:02 2006

This archive was generated by hypermail 2.1.8 : Mon Nov 13 2006 - 12:19:29 EET