]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite8c1f2232a36b3f3ea54338e01b769b857c39092
tree24c2656f0fa3df1d21817b82ef258a3176b60b8b
parent772529fd738a2071691a6cefbfb785b30620f2a1
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