ALSA: timer: Sync timer deletion at closing the system timer
authorTakashi Iwai <tiwai@suse.de>
Tue, 2 Feb 2016 13:14:10 +0000 (14:14 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 2 Feb 2016 23:15:42 +0000 (00:15 +0100)
commitf146357f069e71aff8e474c625bcebcd3094b3ab
treed0240d85093b4f77e0b76b3c25396dd01bddb2e2
parentf784beb75ce82f4136f8a0960d3ee872f7109e09
ALSA: timer: Sync timer deletion at closing the system timer

ALSA timer core framework has no sync point at stopping because it's
called inside the spinlock.  Thus we need a sync point at close for
avoiding the stray timer task.  This is simply done by implementing
the close callback just calling del_timer_sync().  (It's harmless to
call it unconditionally, as the core timer itself cares of the already
deleted timer instance.)

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/timer.c