warn if ALSA wakes us up and there is actually nothing to do

This commit is contained in:
Lennart Poettering 2008-10-22 23:55:52 +02:00
parent 6ff9c1fb62
commit 3294c89adb
3 changed files with 66 additions and 22 deletions

View file

@ -1051,6 +1051,12 @@ int pa_alsa_recover_from_poll(snd_pcm_t *pcm, int revents) {
pa_log_warn("Got POLLNVAL from ALSA");
if (revents & POLLHUP)
pa_log_warn("Got POLLHUP from ALSA");
if (revents & POLLPRI)
pa_log_warn("Got POLLPRI from ALSA");
if (revents & POLLIN)
pa_log_warn("Got POLLIN from ALSA");
if (revents & POLLOUT)
pa_log_warn("Got POLLOUT from ALSA");
state = snd_pcm_state(pcm);
pa_log_warn("PCM state is %s", snd_pcm_state_name(state));