credo che sia un fatto di kernel.....posto il readme
How do I use it?
================
Well, first you need to compile the driver (see below), then you need to make
sure that the v4l infrastructure is set up and then load the driver. After
you've done that, any v4l enabled application, such as spcaview, gqcam, xawtv,
gnomemeeting, camE etc should work.
Supported kernel versions
=========================
The driver should compile and run successfully against most stable versions of
the official Linux kernel (from <http://www.kernel.org/>), within the range
2.4.10 to 2.6.14 inclusive. exept kernel 2.4.22, 2.4.23, 2.6.3
--------------------------------------------------------
-Distro patched Kernel should work but are unsupported.-
--------------------------------------------------------
Specifically, it has been tested against:
2.4.10 Compiles ok, with 1 warning
2.4.25 Compiles ok, with 1 warning.
2.4.26 Compiles ok, with 1 warning.
2.4.31 Compiles ok, with 1 warning.
/lib/modules/2.4.25/build/include/linux/highmem.h: Dans la fonction « bh_kmap »:
/lib/modules/2.4.25/build/include/linux/highmem.h:20: attention : usage en arithmétique d'un pointeur de type « void * »
Don't care module should load and works fine :)
2.6.7 Compiles ok, with no warnings.
2.6.8.1 Compiles ok, with no warnings.
2.6.9 Compiles ok, with no warnings.
2.6.11.7 Compiles ok, with no warnings.
2.6.12.6 Compiles ok, with no warnings.
2.6.13 Compiles ok, with no warnings.
2.6.14 Compiles ok, with no warnings.
2.6.15 rc6 Compiles ok, with no warnings.
2.6.15.4 Compiles ok, with no warnings.
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< KERNEL 2.4.22 2.4.23 2.6.3 are UNSUPPORTED !!>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Compiling it
============
The driver module can be built without modifying your kernel source tree.
Before trying to compile the driver, ensure that you've configured your
kernel, and updated the dependencies:
'make [config|menuconfig|xconfig]; make dep'.
Make sure, when compiling the driver, you use the same version of compiler as
was used to compile your kernel. Not doing so can create incompatible binaries.
If you wish to compile the driver against a kernel other than the currently
installed one, build the driver with
'make KINCLUDE=/usr/src/linux-<version>/include', or similar.
Please note, the default location for the kernel, according to the driver, is
/usr/src/linux.
To build just the driver, simply use 'make'.
Compiling against the linux kernel 2.4 source tree, there should be no
warnings at all.
This version of the driver offers an automatic installation facility.
Use 'make install' to have the driver installed into your kernel modules
directory, which is assumed to be /lib/modules/<version>/kernel/drivers/usb.
<version> is picked up from the currently running kernel, so if that's not
the right place, then don't use 'make install'!
Making sure the usb and v4l stuff is there
==========================================
For the module to function correctly, the video for linux subsystem needs to
be loaded. As root, check the output of lsmod for videodev. If its not there,
do: modprobe videodev.
Also, you need to make sure that the usbcore module is loaded (or compiled
into your kernel) and similarly the module appropriate for your usb controller
(uhci or ohci).
Loading it
==========
If you have compiled the module, but haven't done 'make install' you can load
the module in the top build directory by doing as root: insmod spca5xx.o
If you have made install, do as root: modprobe spca5xx
There are several parameter that can be passed in:
force_rgb = 1 Set reverse rgb order
OffRed = -16 Initial red offset -16 range [-128..+128]
OffBlue = -16 Initial blue offset -16 range [-128..+128]
OffGreen = -16 Initial green offset -16 range [-128..+128]
GRed = 256 Initial gain setting to 1 range [0..512]
GBlue = 256 Initial gain setting to 1 range [0..512]
GGreen = 256 Initial gain setting to 1 range [0..512]
gamma = 3 Set gamma table to 1 range [0..7]
usbgrabber = 1 if you use an usb grabber usbid 0x0733:0x430 otherwise
usbgrabber=0
debug=<n> <-- set debug level
special note for kernel 2.6.x users:
you can change the parameters trought sysfs you need to be root
close your application
echo "1" > /sys/module/spca50x/gamma
change the gamma parameters to 1
run your application
to read a parameters
cat /sys/module/spca50x/gamma
***********************************************************************
Remember to use
insmod spca5xx.o usbgrabber=1 for an usb grabber usbid 0x733:0x430
for Intel PC Camera Pro set usbgrabber to 0 in webcam mode
***********************************************************************
Trying a v4l app
================
Spcaview or Spcagui are designed to test our driver
http://mxhaard.free.fr .