Skip to content

Commit cd93fe4

Browse files
cladischJaroslav Kysela
authored andcommitted
[ALSA] timer: fix timer rescheduling
When checking whether a hardware timer needs to be rescheduled, we have to compare against the previously scheduled interval and not against the actual interval between the last two interrupts. Signed-off-by: Clemens Ladisch <clemens@ladisch.de> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
1 parent de2696d commit cd93fe4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎sound/core/timer.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ void snd_timer_interrupt(struct snd_timer * timer, unsigned long ticks_left)
718718
}
719719
}
720720
if (timer->flags & SNDRV_TIMER_FLG_RESCHED)
721-
snd_timer_reschedule(timer, ticks_left);
721+
snd_timer_reschedule(timer, timer->sticks);
722722
if (timer->running) {
723723
if (timer->hw.flags & SNDRV_TIMER_HW_STOP) {
724724
timer->hw.stop(timer);

0 commit comments

Comments
 (0)