summaryrefslogtreecommitdiffstats
path: root/sound/core/timer.c
diff options
context:
space:
mode:
authorClemens Ladisch <clemens@ladisch.de>2006-07-17 16:52:09 +0200
committerJaroslav Kysela <perex@suse.cz>2006-09-23 10:38:08 +0200
commitde2696d8bc9c81874b3743e0c27708760cb7fb52 (patch)
treea19fca7ba453cc136cfa18b3deb1b57f34759f4a /sound/core/timer.c
parent[ALSA] system timer: accumulate correction for multiple lost ticks (diff)
downloadlinux-de2696d8bc9c81874b3743e0c27708760cb7fb52.tar.xz
linux-de2696d8bc9c81874b3743e0c27708760cb7fb52.zip
[ALSA] system timer: clear correction value when timer stops
Do not retain the old correction value when the timer was stopped. Signed-off-by: Clemens Ladisch <clemens@ladisch.de> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'sound/core/timer.c')
-rw-r--r--sound/core/timer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/core/timer.c b/sound/core/timer.c
index 0f6e6727ff7c..4fcc8549e4a6 100644
--- a/sound/core/timer.c
+++ b/sound/core/timer.c
@@ -1006,6 +1006,7 @@ static int snd_timer_s_stop(struct snd_timer * timer)
timer->sticks = priv->last_expires - jiff;
else
timer->sticks = 1;
+ priv->correction = 0;
return 0;
}