solaris: When suspending, flush the device instead of draining it.

Patch by Brian Cameron <brian.cameron@oracle.com>.
This commit is contained in:
Tanu Kaskinen 2013-01-04 16:57:48 +02:00
parent e530feb62c
commit c3207d4080

View file

@ -351,7 +351,7 @@ static int suspend(struct userdata *u) {
pa_log_info("Suspending...");
ioctl(u->fd, AUDIO_DRAIN, NULL);
ioctl(u->fd, I_FLUSH, FLUSHRW);
pa_close(u->fd);
u->fd = -1;