Commit db974553 authored by Takashi Iwai's avatar Takashi Iwai

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

No functional change, refactoring with the standard helpers.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent f169c105
...@@ -181,8 +181,7 @@ static void loopback_timer_start(struct loopback_pcm *dpcm) ...@@ -181,8 +181,7 @@ static void loopback_timer_start(struct loopback_pcm *dpcm)
} }
tick = dpcm->period_size_frac - dpcm->irq_pos; tick = dpcm->period_size_frac - dpcm->irq_pos;
tick = (tick + dpcm->pcm_bps - 1) / dpcm->pcm_bps; tick = (tick + dpcm->pcm_bps - 1) / dpcm->pcm_bps;
dpcm->timer.expires = jiffies + tick; mod_timer(&dpcm->timer, jiffies + tick);
add_timer(&dpcm->timer);
} }
/* call in cable->lock */ /* call in cable->lock */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment