]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commiteefc04de7b2ecdacd2a9aaf7f4a9a855a351b0b1
tree5393c246984683fbdad90be7a80b70b111610dbc
parenta6d9d64eedf3270ad1052af10c48f77017f3af35
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