aboutsummaryrefslogtreecommitdiffstats
path: root/sound/core/timer.c
diff options
context:
space:
mode:
authorClemens Ladisch <clemens@ladisch.de>2006-07-17 10:52:09 -0400
committerJaroslav Kysela <perex@suse.cz>2006-09-23 04:38:08 -0400
commitde2696d8bc9c81874b3743e0c27708760cb7fb52 (patch)
treea19fca7ba453cc136cfa18b3deb1b57f34759f4a /sound/core/timer.c
parent6ed5eff025b72cb84a884d4be05f854f13b1542f (diff)
[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)
1006 timer->sticks = priv->last_expires - jiff; 1006 timer->sticks = priv->last_expires - jiff;
1007 else 1007 else
1008 timer->sticks = 1; 1008 timer->sticks = 1;
1009 priv->correction = 0;
1009 return 0; 1010 return 0;
1010} 1011}
1011 1012