git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1507
fefdeb5f-60dc-0310-8127-
8f9354f1896f
ioctl(u->fd, SNDCTL_DSP_SYNC, NULL);
close(u->fd);
u->fd = -1;
+
+ pa_log_debug("Device suspended...");
return 0;
}
pa_xfree(buf);
}
+ pa_log_debug("Resumed successfully...");
+
return 0;
fail:
pollfd[POLLFD_DSP].revents = 0;
if (r < 0) {
- if (errno == EINTR)
+ if (errno == EINTR) {
+ pollfd[POLLFD_ASYNCQ].revents = 0;
+ pollfd[POLLFD_DSP].revents = 0;
continue;
+ }
pa_log("poll() failed: %s", pa_cstrerror(errno));
goto fail;