Commit 3d00dc9b authored by Dave Jones's avatar Dave Jones Committed by Linus Torvalds

[PATCH] motioneye driver update.

Syncs up with Stelians latest
parent c153abec
......@@ -15,9 +15,17 @@ Grabbing is supported in packed YUV colorspace only.
MJPEG hardware grabbing is supported via a private API (see below).
Module options:
Driver options:
---------------
Several options can be passed to the meye driver, either by adding them
to /etc/modules.conf file, when the driver is compiled as a module, or
by adding the following to the kernel command line (in your bootloader):
meye=gbuffers[,gbufsize[,video_nr]]
where:
gbuffers: number of capture buffers, default is 2 (32 max)
gbufsize: size of each capture buffer, default is 614400
......
......@@ -1242,7 +1242,6 @@ static int __devinit meye_probe(struct pci_dev *pcidev,
sonypi_camera_command(SONYPI_COMMAND_SETCAMERA, 1);
meye.mchip_dev = pcidev;
meye.mchip_irq = pcidev->irq;
memcpy(&meye.video_dev, &meye_template, sizeof(meye_template));
if (mchip_dma_alloc()) {
......@@ -1256,6 +1255,7 @@ static int __devinit meye_probe(struct pci_dev *pcidev,
goto out3;
}
meye.mchip_irq = pcidev->irq;
mchip_adr = pci_resource_start(meye.mchip_dev,0);
if (!mchip_adr) {
printk(KERN_ERR "meye: mchip has no device base address\n");
......@@ -1420,6 +1420,27 @@ static void __exit meye_cleanup_module(void) {
pci_unregister_driver(&meye_driver);
}
#ifndef MODULE
static int __init meye_setup(char *str) {
int ints[4];
str = get_options(str, ARRAY_SIZE(ints), ints);
if (ints[0] <= 0)
goto out;
gbuffers = ints[1];
if (ints[0] == 1)
goto out;
gbufsize = ints[2];
if (ints[0] == 2)
goto out;
video_nr = ints[3];
out:
return 1;
}
__setup("meye=", meye_setup);
#endif
MODULE_AUTHOR("Stelian Pop <stelian.pop@fr.alcove.com>");
MODULE_DESCRIPTION("video4linux driver for the MotionEye camera");
MODULE_LICENSE("GPL");
......
......@@ -29,7 +29,7 @@
#define _MEYE_PRIV_H_
#define MEYE_DRIVER_MAJORVERSION 1
#define MEYE_DRIVER_MINORVERSION 3
#define MEYE_DRIVER_MINORVERSION 4
/****************************************************************************/
/* Motion JPEG chip registers */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment