mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-11-05 18:23:33 -05:00
ALSA: echoaudio: Use setup_timer() and mod_timer()
No functional change, refactoring with the standard helpers. Signed-off-by: Takashi Iwai <[email protected]>
This commit is contained in:
parent
6fec2b5723
commit
8a3e7dfc90
1 changed files with 2 additions and 3 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue