Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8a3e7dfc authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: echoaudio: Use setup_timer() and mod_timer()



No functional change, refactoring with the standard helpers.

Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 6fec2b57
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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 {