[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 0f6e6727ff7c576944baf90f8241becd681acc1a..4fcc8549e4a646beffa1c33ab4545516c0c35a99 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;
 }