summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2006-03-08 12:18:30 +0000
committerTakashi Iwai <tiwai@suse.de>2006-03-08 12:18:30 +0000
commitb7100f9fe06057716986bdd6a3c21679cb2faccd (patch)
treecc542d3f1cf24fb2d4282c6ea362fb6605233a88
parent8c65cdcb6e1872470f66a97a1c70418a688d4490 (diff)
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 <ossman@cendio.se>
-rw-r--r--polyp/pcm_polyp.c4
1 files 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;