From: Tanu Kaskinen Date: Fri, 4 Jan 2013 14:57:48 +0000 (+0200) Subject: solaris: When suspending, flush the device instead of draining it. X-Git-Tag: v3.99.1~195 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c3207d4080c979c8800ac61d46f924e1abb993dc;p=platform%2Fupstream%2Fpulseaudio.git solaris: When suspending, flush the device instead of draining it. Patch by Brian Cameron . --- 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;