提交 da1a3924 编写于 作者: T Takashi Iwai

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

No functional change, refactoring with the standard helpers.
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 04018e13
...@@ -343,11 +343,9 @@ static void spu_begin_dma(struct snd_pcm_substream *substream) ...@@ -343,11 +343,9 @@ static void spu_begin_dma(struct snd_pcm_substream *substream)
mod_timer(&dreamcastcard->timer, jiffies + 4); mod_timer(&dreamcastcard->timer, jiffies + 4);
return; return;
} }
init_timer(&(dreamcastcard->timer)); setup_timer(&dreamcastcard->timer, aica_period_elapsed,
dreamcastcard->timer.data = (unsigned long) substream; (unsigned long) substream);
dreamcastcard->timer.function = aica_period_elapsed; mod_timer(&dreamcastcard->timer, jiffies + 4);
dreamcastcard->timer.expires = jiffies + 4;
add_timer(&(dreamcastcard->timer));
} }
static int snd_aicapcm_pcm_open(struct snd_pcm_substream static int snd_aicapcm_pcm_open(struct snd_pcm_substream
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册