]> git.karo-electronics.de Git - karo-tx-linux.git/commit
V4L: saa7146: Fix allocation of clipping memory
authorOliver Endriss <o.endriss@gmx.de>
Fri, 13 Apr 2007 19:23:49 +0000 (21:23 +0200)
committerAdrian Bunk <bunk@stusta.de>
Fri, 13 Apr 2007 20:58:25 +0000 (22:58 +0200)
commit2d51ccdd501e620b3c323f4df3f07a6e5d03ea6d
treed2131a9838ca1c5fd5b152d89f0b6be089749401
parent9c38858ad17d961762deb032d7e9737589cae3a2
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>
Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
include/media/saa7146_vv.h