diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-01-19 11:27:31 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-01-19 11:27:31 +0100 |
commit | db974553e368f0c2caef004b775569e898541c15 (patch) | |
tree | d57a60750cf32ed5a516269bcb372d1524056cd1 /sound/drivers/aloop.c | |
parent | f169c10597bd55125fc5c9d0c63b8ebf6dd6b5b2 (diff) | |
download | blackbird-op-linux-db974553e368f0c2caef004b775569e898541c15.tar.gz blackbird-op-linux-db974553e368f0c2caef004b775569e898541c15.zip |
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.c | 3 |
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) } 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 */ |