ALSA: snd-aloop - fix issue in the timer start function
authorJaroslav Kysela <perex@perex.cz>
Thu, 14 Oct 2010 19:46:12 +0000 (21:46 +0200)
committerJaroslav Kysela <perex@perex.cz>
Thu, 14 Oct 2010 19:54:17 +0000 (21:54 +0200)
commit0db710230589b5571c23f59250eabc9504b17c98
treedf808481c37cd38f1df0f1614313a0ba834ace32
parent838c364ff05c143fd1810e8ad1469935d6c23a7a
ALSA: snd-aloop - fix issue in the timer start function

In some circumstances (the rate shift value was changed), the irq_pos
value may be higher than the fraction value in the timer start function.
Check for it.

Also, to avoid value overflow, decrease maximum period size.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
sound/drivers/aloop.c