[alsa-devel] [PATCH 02/18] ALSA: aloop: Use setup_timer() and mod_timer()
Takashi Iwai
tiwai at suse.de
Mon Jan 19 12:11:15 CET 2015
No functional change, refactoring with the standard helpers.
Signed-off-by: Takashi Iwai <tiwai at suse.de>
---
sound/drivers/aloop.c | 3 +--
1 file changed, 1 insertion(+), 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 */
--
2.2.1
More information about the Alsa-devel
mailing list