alsa: resets POLLOUT event

revents marked as POLLOUT|POLLERR|POLLWRNORM in "underrun" case that will
trigger unexpected log "ALSA woke us up to write new data to the device, but
there was acturally nothing to write...".

This patch avoids this log message.
This commit is contained in:
Wang Xingchao 2011-08-05 10:33:17 -04:00 committed by Colin Guthrie
parent e564129b8f
commit be3879e04e
2 changed files with 2 additions and 0 deletions

View file

@ -1445,6 +1445,7 @@ static void thread_func(void *userdata) {
goto fail;
u->first = TRUE;
revents = 0;
} else if (revents && u->use_tsched && pa_log_ratelimit(PA_LOG_DEBUG))
pa_log_debug("Wakeup from ALSA!");