Skip to content
Commit f65e0d29 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: timer: Call notifier in the same spinlock



snd_timer_notify1() is called outside the spinlock and it retakes the
lock after the unlock.  This is rather racy, and it's safer to move
snd_timer_notify() call inside the main spinlock.

The patch also contains a slight refactoring / cleanup of the code.
Now all start/stop/continue/pause look more symmetric and a bit better
readable.

Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 9984d1b5
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