Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 21694
b: refs/heads/master
c: 8cbe84f
h: refs/heads/master
v: v3
  • Loading branch information
Adrian Bunk authored and Mauro Carvalho Chehab committed Mar 3, 2006
1 parent f10cd83 commit d3abdb7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 29 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d15549acfedd70b2bd97a5876ecd59527fa97671
refs/heads/master: 8cbe84f33a8d420d8c8228599bc042cb31c569fa
2 changes: 1 addition & 1 deletion trunk/Documentation/video4linux/README.cpia2
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ line like this:

If the driver is compiled into the kernel, at boot time specify them
like this:
cpia2=num_buffers:3,buffer_size:65535
cpia2.num_buffers=3 cpia2.buffer_size=65535

What buffer size should I use?
------------------------------
Expand Down
29 changes: 2 additions & 27 deletions trunk/drivers/media/video/cpia2/cpia2_v4l.c
Original file line number Diff line number Diff line change
Expand Up @@ -2053,7 +2053,7 @@ static void __init check_parameters(void)
* cpia2_init/module_init
*
*****************************************************************************/
int __init cpia2_init(void)
static int __init cpia2_init(void)
{
LOG("%s v%d.%d.%d\n",
ABOUT, CPIA2_MAJ_VER, CPIA2_MIN_VER, CPIA2_PATCH_VER);
Expand All @@ -2068,37 +2068,12 @@ int __init cpia2_init(void)
* cpia2_exit/module_exit
*
*****************************************************************************/
void __exit cpia2_exit(void)
static void __exit cpia2_exit(void)
{
cpia2_usb_cleanup();
schedule_timeout(2 * HZ);
}


int __init cpia2_setup(char *str)
{
while(str) {
if(!strncmp(str, "buffer_size:", 12)) {
buffer_size = simple_strtoul(str + 13, &str, 10);
} else if(!strncmp(str, "num_buffers:", 12)) {
num_buffers = simple_strtoul(str + 13, &str, 10);
} else if(!strncmp(str, "alternate:", 10)) {
alternate = simple_strtoul(str + 11, &str, 10);
} else if(!strncmp(str, "video_nr:", 9)) {
video_nr = simple_strtoul(str + 10, &str, 10);
} else if(!strncmp(str, "flicker_freq:",13)) {
flicker_freq = simple_strtoul(str + 14, &str, 10);
} else if(!strncmp(str, "flicker_mode:",13)) {
flicker_mode = simple_strtoul(str + 14, &str, 10);
} else {
++str;
}
}
return 1;
}

__setup("cpia2=", cpia2_setup);

module_init(cpia2_init);
module_exit(cpia2_exit);

0 comments on commit d3abdb7

Please sign in to comment.