[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-audio-dev
Subject: Re: [linux-audio-dev] snd_pcm_poll_descriptors_revents() question
From: "Clemens Ladisch" <cladisch () fastmail ! net>
Date: 2006-11-09 8:30:25
Message-ID: 1163061025.14505.275387538 () webmail ! messagingengine ! com
[Download RAW message or body]
Fons Adriaensen wrote:
> On Wed, Nov 08, 2006 at 05:58:40PM +0100, Clemens Ladisch wrote:
> > > 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).
>
> So a loop waiting for both capture and playback being ready
> could be something like (cut down to the bare minimum):
> [...]
Yes. The various snd_pcm_poll* functions just make the descriptors look
like a single poll descriptor. The logic should always be the same as
if it were using a single fd.
Regards,
Clemens
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic