diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-01-19 05:33:20 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-01-19 05:33:20 -0500 |
commit | 8a3e7dfc90dcb2ed6e79b559ce072aeaec291ebd (patch) | |
tree | aafe367f3db09965eef6731b1dc653bd3ce1e0b7 /sound/pci/echoaudio | |
parent | 6fec2b57239fa253829912ac0ab76375da8e879d (diff) |
ALSA: echoaudio: Use setup_timer() and mod_timer()
No functional change, refactoring with the standard helpers.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/echoaudio')
-rw-r--r-- | sound/pci/echoaudio/midi.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sound/pci/echoaudio/midi.c b/sound/pci/echoaudio/midi.c index d913749d154a..a8fe58335ddc 100644 --- a/sound/pci/echoaudio/midi.c +++ b/sound/pci/echoaudio/midi.c | |||
@@ -257,9 +257,8 @@ static void snd_echo_midi_output_trigger(struct snd_rawmidi_substream *substream | |||
257 | spin_lock_irq(&chip->lock); | 257 | spin_lock_irq(&chip->lock); |
258 | if (up) { | 258 | if (up) { |
259 | if (!chip->tinuse) { | 259 | if (!chip->tinuse) { |
260 | init_timer(&chip->timer); | 260 | setup_timer(&chip->timer, snd_echo_midi_output_write, |
261 | chip->timer.function = snd_echo_midi_output_write; | 261 | (unsigned long)chip); |
262 | chip->timer.data = (unsigned long)chip; | ||
263 | chip->tinuse = 1; | 262 | chip->tinuse = 1; |
264 | } | 263 | } |
265 | } else { | 264 | } else { |