Skip to content

Commit

Permalink
ALSA: hrtimer: remove superfluous tasklet invocation
Browse files Browse the repository at this point in the history
Commit bb758e9 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: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Clemens Ladisch authored and Takashi Iwai committed Feb 10, 2011
1 parent b1d4f7f commit 2243c4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/core/hrtimer.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ static int snd_hrtimer_stop(struct snd_timer *t)
}

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,
.close = snd_hrtimer_close,
.start = snd_hrtimer_start,
Expand Down

0 comments on commit 2243c4d

Please sign in to comment.