Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

[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
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
}