]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
V4L: saa7146: Fix allocation of clipping memory
authorOliver Endriss <o.endriss@gmx.de>
Thu, 29 Mar 2007 01:22:42 +0000 (21:22 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 6 Apr 2007 10:43:16 +0000 (03:43 -0700)
commit1d9f5f2cf993fad1cdb64ada83d469fe4df40865
treeabdcdfce6870c4d4acae9c3eaaa40115ed64190c
parent5e37b8eb6d8f4caa1150a1f3666e08f69798ed31
V4L: saa7146: Fix allocation of clipping memory

V4L: saa7146: Fix allocation of clipping memory

Olaf Hering pointed out that SAA7146_CLIPPING_MEM would become
very large for PAGE_SIZE > 4K.

In fact, the number of clipping windows is limited to 16,
and calculate_clipping_registers_rect() does not use more
than 256 bytes. SAA7146_CLIPPING_MEM adjusted accordingly.

(cherry picked from commit 7a7cd1920969dd9da4e0d99aab573b3eba24c799)

Thanks-to: Olaf Hering <olaf@aepfle.de>
Acked-by: Michael Hunold <hunold@linuxtv.org>
Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/media/saa7146_vv.h