ALSA: emux: Use setup_timer() and mod_timer()
No functional change, refactoring with the standard helpers. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
@@ -53,9 +53,7 @@ int snd_emux_new(struct snd_emux **remu)
|
||||
emu->max_voices = 0;
|
||||
emu->use_time = 0;
|
||||
|
||||
init_timer(&emu->tlist);
|
||||
emu->tlist.function = snd_emux_timer_callback;
|
||||
emu->tlist.data = (unsigned long)emu;
|
||||
setup_timer(&emu->tlist, snd_emux_timer_callback, (unsigned long)emu);
|
||||
emu->timer_active = 0;
|
||||
|
||||
*remu = emu;
|
||||
|
Reference in New Issue
Block a user