ALSA: timer: Unify timer callback process code
authorTakashi Iwai <tiwai@suse.de>
Wed, 27 Mar 2019 15:42:51 +0000 (16:42 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 27 Mar 2019 15:42:51 +0000 (16:42 +0100)
commit8748b850beccdbc87aa8776d63abd6b5628720c8
tree24c2656f0fa3df1d21817b82ef258a3176b60b8b
parente42dd3ee3f9c6007c569386a8477a19d3e7503f9
ALSA: timer: Unify timer callback process code

The timer core has two almost identical code for processing callbacks:
once in snd_timer_interrupt() for fast callbacks and another in
snd_timer_tasklet() for delayed callbacks.  Let's unify them.

In the new version, the resolution is read from ti->resolution at each
call, and this must be fine; ti->resolution is set in the preparation
step in snd_timer_interrupt().

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