summaryrefslogtreecommitdiffstats
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
parent6ed5eff025b72cb84a884d4be05f854f13b1542f (diff)
downloadop-kernel-dev-de2696d8bc9c81874b3743e0c27708760cb7fb52.zip
op-kernel-dev-de2696d8bc9c81874b3743e0c27708760cb7fb52.tar.gz
[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>
-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 0f6e672..4fcc854 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;
}
OpenPOWER on IntegriCloud