summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2008-05-15 22:24:18 +0000
committerLennart Poettering <lennart@poettering.net>2008-05-15 22:24:18 +0000
commit74f8a67e98965127416c8f8b720b26cfed927596 (patch)
treed9dbcdbf6e766ce74bac19fae6d627358efbc88b
parentf021538d918a86c47010f663e911c77657af5a07 (diff)
downloadpulseaudio-74f8a67e98965127416c8f8b720b26cfed927596.tar.gz
fix suspend for alsa sink
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2438 fefdeb5f-60dc-0310-8127-8f9354f1896f
-rw-r--r--src/modules/module-alsa-sink.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modules/module-alsa-sink.c b/src/modules/module-alsa-sink.c
index 9c4da07aa..f4211ed32 100644
--- a/src/modules/module-alsa-sink.c
+++ b/src/modules/module-alsa-sink.c
@@ -868,6 +868,9 @@ static void sink_update_requested_latency_cb(pa_sink *s) {
snd_pcm_sframes_t before;
pa_assert(u);
+ if (!u->pcm_handle)
+ return;
+
before = u->hwbuf_unused_frames;
update_sw_params(u);
@@ -1003,7 +1006,7 @@ static void thread_func(void *userdata) {
* we have filled the buffer at least once
* completely.*/
- pa_log_debug("Cutting sleep time for the initial iterations by half.");
+ /*pa_log_debug("Cutting sleep time for the initial iterations by half.");*/
sleep_usec /= 2;
}