don't call snd_pcm_drain() when we suspend because that might take awfully long with...
authorLennart Poettering <lennart@poettering.net>
Fri, 3 Oct 2008 23:07:08 +0000 (01:07 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 3 Oct 2008 23:07:08 +0000 (01:07 +0200)
src/modules/module-alsa-sink.c

index 8f90774..be463bb 100644 (file)
@@ -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;