Skip to content

Commit

Permalink
[ALSA] system timer: clear correction value when timer stops
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Clemens Ladisch authored and Jaroslav Kysela committed Sep 23, 2006
1 parent 6ed5eff commit de2696d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sound/core/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit de2696d

Please sign in to comment.