From: Takashi Iwai Date: Mon, 19 Jan 2015 10:27:31 +0000 (+0100) Subject: ALSA: aloop: Use setup_timer() and mod_timer() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=db974553e368f0c2caef004b775569e898541c15;p=linux-beck.git ALSA: aloop: Use setup_timer() and mod_timer() No functional change, refactoring with the standard helpers. Signed-off-by: Takashi Iwai --- diff --git a/sound/drivers/aloop.c b/sound/drivers/aloop.c index 7ea53399404d..7f9126efc1e5 100644 --- a/sound/drivers/aloop.c +++ b/sound/drivers/aloop.c @@ -181,8 +181,7 @@ static void loopback_timer_start(struct loopback_pcm *dpcm) } tick = dpcm->period_size_frac - dpcm->irq_pos; tick = (tick + dpcm->pcm_bps - 1) / dpcm->pcm_bps; - dpcm->timer.expires = jiffies + tick; - add_timer(&dpcm->timer); + mod_timer(&dpcm->timer, jiffies + tick); } /* call in cable->lock */