aboutsummaryrefslogtreecommitdiffstats
path: root/sound/sh
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-01-19 05:35:01 -0500
committerTakashi Iwai <tiwai@suse.de>2015-01-19 05:35:01 -0500
commitda1a39242a946b34cf16a0119a7a3b852b17fef5 (patch)
tree2960978d12fbf82d853bba366b49a77e2cd1c6b0 /sound/sh
parent04018e137c298f199fbf0f0c431d975f584f4702 (diff)
ALSA: aica: 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/sh')
-rw-r--r--sound/sh/aica.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sound/sh/aica.c b/sound/sh/aica.c
index f44dda610ed2..8212300088fc 100644
--- a/sound/sh/aica.c
+++ b/sound/sh/aica.c
@@ -343,11 +343,9 @@ static void spu_begin_dma(struct snd_pcm_substream *substream)
343 mod_timer(&dreamcastcard->timer, jiffies + 4); 343 mod_timer(&dreamcastcard->timer, jiffies + 4);
344 return; 344 return;
345 } 345 }
346 init_timer(&(dreamcastcard->timer)); 346 setup_timer(&dreamcastcard->timer, aica_period_elapsed,
347 dreamcastcard->timer.data = (unsigned long) substream; 347 (unsigned long) substream);
348 dreamcastcard->timer.function = aica_period_elapsed; 348 mod_timer(&dreamcastcard->timer, jiffies + 4);
349 dreamcastcard->timer.expires = jiffies + 4;
350 add_timer(&(dreamcastcard->timer));
351} 349}
352 350
353static int snd_aicapcm_pcm_open(struct snd_pcm_substream 351static int snd_aicapcm_pcm_open(struct snd_pcm_substream