From b7100f9fe06057716986bdd6a3c21679cb2faccd Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Wed, 8 Mar 2006 12:18:30 +0000 Subject: Incorrect revents in polypaudio plugin The revent flags POLLIN/POLLOUT got switched in the Polypaudio plugin. Most applications check both so it went unnoticed until now. Signed-off-by: Pierre Ossman --- polyp/pcm_polyp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/polyp/pcm_polyp.c b/polyp/pcm_polyp.c index 96f0baf..80c943b 100644 --- a/polyp/pcm_polyp.c +++ b/polyp/pcm_polyp.c @@ -314,9 +314,9 @@ static int polyp_pcm_poll_revents(snd_pcm_ioplug_t *io, struct pollfd *pfd, unsi */ if (pcm->last_size >= pcm->buffer_attr.minreq) { if (io->stream == SND_PCM_STREAM_PLAYBACK) - *revents |= POLLIN; - else *revents |= POLLOUT; + else + *revents |= POLLIN; } return 0; -- cgit