瀏覽代碼

[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>
Clemens Ladisch 19 年之前
父節點
當前提交
de2696d8bc
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      sound/core/timer.c

+ 1 - 0
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;
 }