summaryrefslogtreecommitdiff
path: root/src/modules/module-solaris.c
diff options
context:
space:
mode:
authorTanu Kaskinen <tanuk@iki.fi>2013-01-04 16:57:48 +0200
committerTanu Kaskinen <tanuk@iki.fi>2013-01-04 17:13:32 +0200
commitc3207d4080c979c8800ac61d46f924e1abb993dc (patch)
tree2e159ed7c1bc781c002d969fab103a19d8d42f3c /src/modules/module-solaris.c
parente530feb62c134eb55f32810de5f428b902fe6034 (diff)
solaris: When suspending, flush the device instead of draining it.
Patch by Brian Cameron <brian.cameron@oracle.com>.
Diffstat (limited to 'src/modules/module-solaris.c')
-rw-r--r--src/modules/module-solaris.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/module-solaris.c b/src/modules/module-solaris.c
index eea5c0d18..7f3342faf 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;