From: Wang Xingchao Date: Fri, 5 Aug 2011 14:33:17 +0000 (-0400) Subject: alsa: resets POLLOUT event X-Git-Tag: 1.0_branch~459 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=be3879e04e890553abcd9dd27307126bf86aac41;p=profile%2Fivi%2Fpulseaudio.git 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. --- diff --git a/src/modules/alsa/alsa-sink.c b/src/modules/alsa/alsa-sink.c index 395432a..c4aa75b 100644 --- a/src/modules/alsa/alsa-sink.c +++ b/src/modules/alsa/alsa-sink.c @@ -1670,6 +1670,7 @@ static void thread_func(void *userdata) { u->first = TRUE; u->since_start = 0; + revents = 0; } else if (revents && u->use_tsched && pa_log_ratelimit(PA_LOG_DEBUG)) pa_log_debug("Wakeup from ALSA!"); diff --git a/src/modules/alsa/alsa-source.c b/src/modules/alsa/alsa-source.c index bdd4493..1dd63f0 100644 --- a/src/modules/alsa/alsa-source.c +++ b/src/modules/alsa/alsa-source.c @@ -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!");