On Mon, 22 Mar 2004, Clemens Ladisch wrote: > > I have discovered a problem with xine when using it. I have done a work > > around in xine so that dmix now works in xine. I think that my > > assumptions regarding snd_pcm_wait() might have been wrong, so I want to > > get accurate details from yourselves. > > I think the implementation of dmix is broken in this regard. If I > read the code correctly, snd_pcm_direct_poll_revents() returns > POLLIN/OUT even if the pcm is empty. > > Jaroslav, shouldn't this function reset the events variable when empty > is set?
No, in case when no timer events are available, the revents should be zero from the kernel space, so we don't need to explicitly clear this variable. Jaroslav ----- Jaroslav Kysela <[EMAIL PROTECTED]> Linux Kernel Sound Maintainer ALSA Project, SuSE Labs ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel