summaryrefslogtreecommitdiffstats
path: root/src/modules
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2008-10-04 01:07:08 +0200
committerLennart Poettering <lennart@poettering.net>2008-10-04 01:07:08 +0200
commit530b95fec50b6b7fb0ff1fd1a4eb9e4123bb32a0 (patch)
treeda4fd5f129b8dec2b69db4e913125a90edc8de4e /src/modules
parent88130eb9e64326810c486fee5a9cff3dd3903fb0 (diff)
don't call snd_pcm_drain() when we suspend because that might take awfully long with our long buffer sizes these days
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/module-alsa-sink.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/module-alsa-sink.c b/src/modules/module-alsa-sink.c
index 8f907745..be463bbf 100644
--- a/src/modules/module-alsa-sink.c
+++ b/src/modules/module-alsa-sink.c
@@ -539,8 +539,8 @@ static int suspend(struct userdata *u) {
pa_smoother_pause(u->smoother, pa_rtclock_usec());
- /* Let's suspend */
- snd_pcm_drain(u->pcm_handle);
+ /* Let's suspend -- we don't call snd_pcm_drain() here since that might
+ * take awfully long with our long buffer sizes today. */
snd_pcm_close(u->pcm_handle);
u->pcm_handle = NULL;