]> git.pld-linux.org Git - packages/kernel.git/blob - 2.6.8-lkml-saa7146-memory-variable.patch
+CONFIG_IP_NF_MATCH_LAYER7=m
[packages/kernel.git] / 2.6.8-lkml-saa7146-memory-variable.patch
1 Signed-off-by: Colin Leroy <colin@colino.net>
2 Signed-off-by: Michael Hunold <hunold@linuxtv.org>
3
4 --- a/drivers/media/common/saa7146_video.c      2004-07-12 10:15:51.833352344 +0200
5 +++ b/drivers/media/common/saa7146_video.c      2004-07-12 10:16:21.209886432 +0200
6 @@ -1,9 +1,9 @@
7  #include <media/saa7146_vv.h>
8  
9 -static int memory = 32;
10 +static int max_memory = 32;
11  
12 -MODULE_PARM(memory,"i");
13 -MODULE_PARM_DESC(memory, "maximum memory usage for capture buffers (default: 32Mb)");
14 +MODULE_PARM(max_memory,"i");
15 +MODULE_PARM_DESC(max_memory, "maximum memory usage for capture buffers (default: 32Mb)");
16  
17  #define IS_CAPTURE_ACTIVE(fh) \
18         (((vv->video_status & STATUS_CAPTURE) != 0) && (vv->video_fh == fh))
19 @@ -1331,9 +1331,9 @@
20  
21         *size = fh->video_fmt.sizeimage;
22  
23 -       /* check if we exceed the "memory" parameter */
24 -       if( (*count * *size) > (memory*1048576) ) {
25 -               *count = (memory*1048576) / *size;
26 +       /* check if we exceed the "max_memory" parameter */
27 +       if( (*count * *size) > (max_memory*1048576) ) {
28 +               *count = (max_memory*1048576) / *size;
29         }
30         
31         DEB_CAP(("%d buffers, %d bytes each.\n",*count,*size));
This page took 0.033865 seconds and 3 git commands to generate.