summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;