[ALSA] system timer: clear correction value when timer stops
authorClemens Ladisch <clemens@ladisch.de>
Mon, 17 Jul 2006 14:52:09 +0000 (16:52 +0200)
committerJaroslav Kysela <perex@suse.cz>
Sat, 23 Sep 2006 08:38:08 +0000 (10:38 +0200)
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>
sound/core/timer.c

index 0f6e672..4fcc854 100644 (file)
@@ -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;
 }