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)
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

Simple merge