summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2010-08-23 11:59:13 +0200
committerColin Guthrie <cguthrie@mandriva.org>2010-08-23 11:31:46 +0100
commit93750199f8292847f7f63ab17ef5f5c803c2fea9 (patch)
tree9134378f9c170920ca1ec4e1d46898d40714e7c9
parent2b88634671d1b745b1364e9cf4827e30a5ff2a6e (diff)
alsa: resume smoother after unsuspend
The smoother is paused when the device is suspended but never resumed on unsuspend. Pass the paused = FALSE flag to the pa_smoother_reset() call to make it unpause when unsuspending. This patch improves source timings quite a bit.
-rw-r--r--src/modules/alsa/alsa-source.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/alsa/alsa-source.c b/src/modules/alsa/alsa-source.c
index 5ecf6c60..c1476231 100644
--- a/src/modules/alsa/alsa-source.c
+++ b/src/modules/alsa/alsa-source.c
@@ -945,7 +945,7 @@ static int unsuspend(struct userdata *u) {
snd_pcm_start(u->pcm_handle);
u->read_count = 0;
- pa_smoother_reset(u->smoother, pa_rtclock_now(), TRUE);
+ pa_smoother_reset(u->smoother, pa_rtclock_now(), FALSE);
u->smoother_interval = SMOOTHER_MIN_INTERVAL;
u->last_smoother_update = 0;