From c3207d4080c979c8800ac61d46f924e1abb993dc Mon Sep 17 00:00:00 2001 From: Tanu Kaskinen Date: Fri, 4 Jan 2013 16:57:48 +0200 Subject: [PATCH] solaris: When suspending, flush the device instead of draining it. Patch by Brian Cameron . --- src/modules/module-solaris.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/module-solaris.c b/src/modules/module-solaris.c index eea5c0d..7f3342f 100644 --- a/src/modules/module-solaris.c +++ b/src/modules/module-solaris.c @@ -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; -- 2.7.4