aboutsummaryrefslogtreecommitdiffstats
path: root/sound/drivers/aloop.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-01-19 05:27:31 -0500
committerTakashi Iwai <tiwai@suse.de>2015-01-19 05:27:31 -0500
commitdb974553e368f0c2caef004b775569e898541c15 (patch)
treed57a60750cf32ed5a516269bcb372d1524056cd1 /sound/drivers/aloop.c
parentf169c10597bd55125fc5c9d0c63b8ebf6dd6b5b2 (diff)
ALSA: aloop: 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/drivers/aloop.c')
-rw-r--r--sound/drivers/aloop.c3
1 files changed, 1 insertions, 2 deletions
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)
181 } 181 }
182 tick = dpcm->period_size_frac - dpcm->irq_pos; 182 tick = dpcm->period_size_frac - dpcm->irq_pos;
183 tick = (tick + dpcm->pcm_bps - 1) / dpcm->pcm_bps; 183 tick = (tick + dpcm->pcm_bps - 1) / dpcm->pcm_bps;
184 dpcm->timer.expires = jiffies + tick; 184 mod_timer(&dpcm->timer, jiffies + tick);
185 add_timer(&dpcm->timer);
186} 185}
187 186
188/* call in cable->lock */ 187/* call in cable->lock */