Commit de2696d8 authored by Clemens Ladisch's avatar Clemens Ladisch Committed by Jaroslav Kysela

[ALSA] system timer: clear correction value when timer stops

Do not retain the old correction value when the timer was stopped.
Signed-off-by: default avatarClemens Ladisch <clemens@ladisch.de>
Signed-off-by: default avatarJaroslav Kysela <perex@suse.cz>
parent 6ed5eff0
...@@ -1006,6 +1006,7 @@ static int snd_timer_s_stop(struct snd_timer * timer) ...@@ -1006,6 +1006,7 @@ static int snd_timer_s_stop(struct snd_timer * timer)
timer->sticks = priv->last_expires - jiff; timer->sticks = priv->last_expires - jiff;
else else
timer->sticks = 1; timer->sticks = 1;
priv->correction = 0;
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment