From: Heikki Lindholm Date: Fri, 23 Nov 2007 21:59:18 +0000 (-0300) Subject: V4L/DVB (6666): saa7134-alsa: fix period handling X-Git-Tag: v2.6.24-rc6~92 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=174eb8e8cb1ec97904ddeaae54366a03789162ef;p=pandora-kernel.git 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 Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed