Commit 2243c4d0 authored by Clemens Ladisch's avatar Clemens Ladisch Committed by Takashi Iwai

ALSA: hrtimer: remove superfluous tasklet invocation

Commit bb758e96 removed snd_hrtimer_callback() from the hardware
interrupt handler, thus moving it into a tasklet, but did not tell the
ALSA timer framework about this, so the timer handling would now be done
in the ALSA timer tasklet scheduled from another tasklet.

To fix this, add the flag to tell the ALSA timer framework that the
timer handler is already being invoked in a tasklet.
Signed-off-by: default avatarClemens Ladisch <clemens@ladisch.de>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent b1d4f7f4
...@@ -105,7 +105,7 @@ static int snd_hrtimer_stop(struct snd_timer *t) ...@@ -105,7 +105,7 @@ static int snd_hrtimer_stop(struct snd_timer *t)
} }
static struct snd_timer_hardware hrtimer_hw = { static struct snd_timer_hardware hrtimer_hw = {
.flags = SNDRV_TIMER_HW_AUTO, .flags = SNDRV_TIMER_HW_AUTO | SNDRV_TIMER_HW_TASKLET,
.open = snd_hrtimer_open, .open = snd_hrtimer_open,
.close = snd_hrtimer_close, .close = snd_hrtimer_close,
.start = snd_hrtimer_start, .start = snd_hrtimer_start,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment