ALSA: dummy - Better jiffies handling
authorTakashi Iwai <tiwai@suse.de>
Thu, 3 Sep 2009 14:01:06 +0000 (16:01 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 3 Sep 2009 14:01:06 +0000 (16:01 +0200)
commitb142037b4c1edf5ad0b2871c518d4f14ac1cd470
tree5393c246984683fbdad90be7a80b70b111610dbc
parentc631d03c6873b9e17906556e84fcafc42f26a7c2
ALSA: dummy - Better jiffies handling

In the system-timer mode, snd-dummy driver issues each tick to update
the position.  This is highly inefficient and even inaccurate if the
timer can't be triggered at each tick.

Now rewritten to wake up only at the period boundary.  The position
is calculated from the current jiffies.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/drivers/dummy.c