From: Pierre Ossman Date: Wed, 8 Mar 2006 12:18:30 +0000 (+0000) Subject: Incorrect revents in polypaudio plugin X-Git-Tag: v1.0.11rc4~6 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=b7100f9fe06057716986bdd6a3c21679cb2faccd;p=alsa-plugins.git 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 --- 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;