ALSA: echoaudio: 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:
Takashi Iwai 2015-01-19 11:33:20 +01:00
parent 6fec2b5723
commit 8a3e7dfc90
1 changed files with 2 additions and 3 deletions

View File

@ -257,9 +257,8 @@ static void snd_echo_midi_output_trigger(struct snd_rawmidi_substream *substream
spin_lock_irq(&chip->lock);
if (up) {
if (!chip->tinuse) {
init_timer(&chip->timer);
chip->timer.function = snd_echo_midi_output_write;
chip->timer.data = (unsigned long)chip;
setup_timer(&chip->timer, snd_echo_midi_output_write,
(unsigned long)chip);
chip->tinuse = 1;
}
} else {