www.pudn.com > usb-2.6.12.rar
To Read all the content
[file head]:
diff -ruN usb_old/Makefile usb/Makefile
--- usb_old/Makefile 2005-06-19 19:09:13.000000000 +0200
+++ usb/Makefile 2005-11-06 00:44:46.000000000 +0100
@@ -44,6 +44,7 @@
obj-$(CONFIG_USB_STV680) += media/
obj-$(CONFIG_USB_VICAM) += media/
obj-$(CONFIG_USB_W9968CF) += media/
+obj-$(CONFIG_USB_SPCA5XX) += media/
obj-$(CONFIG_USB_CATC) += net/
obj-$(CONFIG_USB_KAWETH) += net/
diff -ruN usb_old/media/Kconfig usb/media/Kconfig
--- usb_old/media/Kconfig 2005-06-19 17:49:07.000000000 +0200
+++ usb/media/Kconfig 2005-11-25 21:14:39.000000000 +0100
@@ -210,4 +210,19 @@
To compile this driver as a module, choose M here: the
module will be called pwc.
+config USB_SPCA5XX
+ tristate "USB SPCA5XX Sunplus/Vimicro/Sonix jpeg Cameras"
+ depends on USB &amt;&amt; VIDEO_DEV
+ ---help---
+ Say Y or M here if you want to use one of these webcams:
+
+ The built-in microphone is enabled by selecting USB Audio support.
+
+ This driver uses the Video For Linux API. You must say Y or
... ...
[file tail]:
... ...
zc3xxWriteVector(spca50x,pas106b_scale_data);
+ }
+ break;
+ }
+ zc3xx_setbrightness(spca50x);
+
+}
+
+static void zc3xx_stop(struct usb_spca50x *spca50x )
+{
+
+ //struct usb_device *dev=spca50x->dev;
+ //__u8 buffread;
+ // dont use that will disconnect the cam from usb bus :(
+ // from unkown reason replug the cam did not help
+ // hcd don't accept the device seem only affect via controler
+ // stop is get by set the interface to 0 packetsize 0
+ // and unlink or kill the urb
+ // spca5xxRegWrite(dev,0xa0,0x01,0x0000,NULL,0);
+ //spca5xxRegRead(dev,0xa1,0x01,0x0180,&amt;buffread,1);
+ //spca5xxRegWrite(dev,0xa0,0x00,0x0180,NULL,0);
+ //spca5xxRegWrite(dev,0xa0,0x01,0x0000,NULL,0);
+}
+static void zc3xx_shutdown(struct usb_spca50x *spca50x )
+{
+
+ struct usb_device *dev=spca50x->dev;
+ __u8 buffread;
+
+ spca5xxRegRead(dev,0xa1,0x01,0x0180,&amt;buffread,1);
+ spca5xxRegWrite(dev,0xa0,0x00,0x0180,NULL,0);
+ spca5xxRegWrite(dev,0xa0,0x01,0x0000,NULL,0);
+}
+#endif // ZC3XXUSB_H