All of lore.kernel.org
 help / color / mirror / Atom feed
* poll_descriptors_count
@ 2002-07-01  2:41 Joshua Haberman
  2002-07-01 11:40 ` poll_descriptors_count Paul Davis
       [not found] ` <E17Ozdb-0006vO-00@barney.reverberate.org>
  0 siblings, 2 replies; 9+ messages in thread
From: Joshua Haberman @ 2002-07-01  2:41 UTC (permalink / raw)
  To: alsa-devel

Hello,

int snd_pcm_poll_descriptors_count(snd_pcm_t *pcm)
{
    assert(pcm);
    return 1;
}

I don't understand: why the abstraction for the number of poll
descriptors when it is always 1?  What could change in the future to
require more poll descriptors per stream?

Also, how should programs interpret multiple poll descriptors: if the
poll succeeds on some descriptors but not others, does this mean the
stream is only "partially" ready?

Also, is snd_pcm_poll_descriptors_revents() understood to return the
events that have triggered on just *one* poll descriptor or on *all*?  In
other words, are you ANDing bitmasks or ORing them?  Right now the
semantics are impossible to deduce because the function just returns the
revents verbatim since there is only one poll descriptor.

Josh


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2002-07-02 14:41 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-01  2:41 poll_descriptors_count Joshua Haberman
2002-07-01 11:40 ` poll_descriptors_count Paul Davis
     [not found] ` <E17Ozdb-0006vO-00@barney.reverberate.org>
2002-07-01 17:15   ` poll_descriptors_count Joshua Haberman
2002-07-01 18:34     ` poll_descriptors_count Paul Davis
2002-07-01 21:33     ` poll_descriptors_count Jaroslav Kysela
2002-07-01 22:00       ` poll_descriptors_count Joshua Haberman
2002-07-02  6:01         ` poll_descriptors_count Jaroslav Kysela
2002-07-02 12:39           ` poll_descriptors_count Paul Davis
2002-07-02 14:41             ` RME+Hammerfall+.asoundrc Patrick Shirkey

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.