solaris: When suspending, flush the device instead of draining it.
authorTanu Kaskinen <tanuk@iki.fi>
Fri, 4 Jan 2013 14:57:48 +0000 (16:57 +0200)
committerTanu Kaskinen <tanuk@iki.fi>
Fri, 4 Jan 2013 15:13:32 +0000 (17:13 +0200)
Patch by Brian Cameron <brian.cameron@oracle.com>.

src/modules/module-solaris.c

index eea5c0d..7f3342f 100644 (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;