Web lists-archives.org

[Spca50x-devs] spca508 SPCA50X_ENABLE_EXP_BRIGHTNESS does not compile, fix / someone knows registers for spca536a, Aiptek DV 3500 ?




make[1]: Entering directory `/usr/src/linux-2.6'
  CC [M]  /usr/src/spca5xx-20060301/drivers/usb/spca5xx.o
/usr/src/spca5xx-20060301/drivers/usb/spca5xx.c: In function 'spca50x_set_brightness':
/usr/src/spca5xx-20060301/drivers/usb/spca5xx.c:2782: error: 'autoadjust' undeclared (first use in this function)
/usr/src/spca5xx-20060301/drivers/usb/spca5xx.c:2782: error: (Each undeclared identifier is reported only once
/usr/src/spca5xx-20060301/drivers/usb/spca5xx.c:2782: error: for each function it appears in.)
/usr/src/spca5xx-20060301/drivers/usb/spca5xx.c: In function 'spca50x_move_data':
/usr/src/spca5xx-20060301/drivers/usb/spca5xx.c:3434: error: 'autoadjust' undeclared (first use in this function)
make[2]: *** [/usr/src/spca5xx-20060301/drivers/usb/spca5xx.o] Error 1
make[1]: *** [_module_/usr/src/spca5xx-20060301] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6'
make: *** [default] Error 2
tom1:/usr/src/spca5xx-20060301#

fix:

/* Video Size 640 x 480 x 4 bytes for RGB */
#define MAX_FRAME_SIZE (640 * 480 * 4)
#define MAX_DATA_SIZE (MAX_FRAME_SIZE + sizeof(struct timeval))

+ #ifdef SPCA50X_ENABLE_EXP_BRIGHTNESS
+ static int autoadjust = 1;
+ #endif				/* SPCA50X_ENABLE_EXP_BRIGHTNESS */

/* Hardware auto exposure / whiteness (PC-CAM 600) */
static int autoexpo = 1;

pls test, got no such cam.
someone knows registers for spca536a, Aiptek DV 3500 ?

would like to have autobright and exposure too.

if not i do usb snoop under windows.

y
tom




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Spca50x-devs mailing list
Spca50x-devs@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/spca50x-devs