]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (6666): saa7134-alsa: fix period handling
authorHeikki Lindholm <holindho@cs.helsinki.fi>
Fri, 23 Nov 2007 21:59:18 +0000 (18:59 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Tue, 11 Dec 2007 20:08:14 +0000 (18:08 -0200)
commit118fc1a5f8395621efdb3640fc967c00d3f16083
tree800a304bcac7e6b403d7f9f606fde9ebfa7accd3
parentf5df97d1b4cbac0c1524eb98e9399a8ab5d0307e
V4L/DVB (6666): saa7134-alsa: fix period handling

The period handling in saa7134-alsa is broken in two ways. First, the
minimum number of periods of two does not work, because the dma is setup
two periods ahead in the irq handler. Fix the minimum to four periods.
Second, the code assumes that the number of periods is divisible by two,
which isn't always the case on ALSA. Fix by adding a constraint.

Signed-off-by: Heikki Lindholm <holindho@cs.helsinki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/saa7134/saa7134-alsa.c