From: Clemens Ladisch Date: Mon, 17 Jul 2006 14:52:09 +0000 (+0200) Subject: [ALSA] system timer: clear correction value when timer stops X-Git-Tag: v2.6.19-rc1~1270^2~130 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de2696d8bc9c81874b3743e0c27708760cb7fb52;p=linux-2.6 [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 Signed-off-by: Jaroslav Kysela --- diff --git a/sound/core/timer.c b/sound/core/timer.c index 0f6e6727ff..4fcc8549e4 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; }