[ALSA] system timer: fix lost ticks correction adjustment
authorClemens Ladisch <clemens@ladisch.de>
Mon, 17 Jul 2006 14:50:56 +0000 (16:50 +0200)
committerJaroslav Kysela <perex@suse.cz>
Sat, 23 Sep 2006 08:37:58 +0000 (10:37 +0200)
commit17f48ec3f15ddb8080b151304ee887c68f7e4650
tree05d420b98cff7b2c28c0051be74db0196b6edd1e
parent7bc5ba7e02f63a5732fdf99e7471f54738f6f918
[ALSA] system timer: fix lost ticks correction adjustment

Fix the adjustment of the lost ticks correction variable in the case
when the correction has been fully taken into account in the next timer
expiration value.  Subtracting the scheduled ticks value would result in
an underflow.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
sound/core/timer.c