projects
/
profile
/
ivi
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ba2227
)
alsa: resume smoother after unsuspend
author
Wim Taymans
<wim.taymans@collabora.co.uk>
Mon, 23 Aug 2010 09:59:13 +0000
(11:59 +0200)
committer
Wim Taymans
<wim.taymans@collabora.co.uk>
Mon, 23 Aug 2010 09:59:13 +0000
(11:59 +0200)
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.
src/modules/alsa/alsa-source.c
patch
|
blob
|
history
diff --git
a/src/modules/alsa/alsa-source.c
b/src/modules/alsa/alsa-source.c
index
381a706
..
bc07c77
100644
(file)
--- a/
src/modules/alsa/alsa-source.c
+++ b/
src/modules/alsa/alsa-source.c
@@
-949,7
+949,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(),
TRU
E);
+ pa_smoother_reset(u->smoother, pa_rtclock_now(),
FALS
E);
u->smoother_interval = SMOOTHER_MIN_INTERVAL;
u->last_smoother_update = 0;