From: Clemens Ladisch Date: Mon, 17 Jul 2006 14:52:09 +0000 (+0200) Subject: [ALSA] system timer: clear correction value when timer stops X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=de2696d8bc9c81874b3743e0c27708760cb7fb52;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [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 Signed-off-by: Jaroslav Kysela --- diff --git a/sound/core/timer.c b/sound/core/timer.c index 0f6e6727ff7c..4fcc8549e4a6 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; }