Re: [PATCH] fix SAA7146_CLIPPING_MEM size

2007-02-17 Thread Olaf Hering
On Sat, Feb 17, Olaf Hering wrote: > So a max array size of 131329 is enough. Since the referenced array is u32, should it be 4 * 131329? - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.ker

[PATCH] fix SAA7146_CLIPPING_MEM size

2007-02-16 Thread Olaf Hering
Limit the pci_alloc_consistent size to 128K PAGE_SIZE can be 64K, which leads to a 896K allocation. calculate_clipping_registers_rect() uses not more than 257 bytes because saa7146_video.c:s_fmt limits ov.nclips to 16 But bttv-driver.c does not allow up to 2048 clips in win->clipcount btcx_scree