[cpia] 2.3.99-pre5 and EZCam USB

Johannes Erdfelt jerdfelt@valinux.com
Mon, 17 Apr 2000 19:15:48 -0700


--OpLPJvDmhXTZE4Lg
Content-Type: text/plain; charset=us-ascii

On Mon, Apr 17, 2000, Joseph C. Kopec <kopecjc@att.net> wrote:
> I swapped my Aiptek (which Peter Pregler informs me was wrongly thought
> to be a CPiA-based camera) for a Ezonics EZCam USB (not a Pro or a
> Plus), but I am still having a hard time getting it to work with
> 2.3.99-pre5 -- my dmesg file is attached.  First the good news -- its
> Vendor:Product code is 0553:0002, which appears to be a good CPiA.  But
> it still does not get recognized.  Note that I compiled everything into
> the kernel -- Johannes Erdfelt stated in an earlier message:
> 
> "I bet you the CPiA USB support won't work statically since the USB core
> doesn't know about the drivers outside of it's tree. I'm sure if you
> compile everything dynamically (as modules) it will work."
> 
> I guess I will give modules a shot.  By "everything" did he mean
> usb-uhci, cpia, video4linux, usb preliminary filesystem ... what else?
> 
> Any suggestions would be much appreciated.

What I really meant to say was that I forgot to make one change during the
merge for CPiA to allow CPiA to be compiled into the kernel versus being
a module. This is all my fault :)

Here's the patch.

Randy, could you please submit this.

JE


--OpLPJvDmhXTZE4Lg
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="cpia-usb-init.patch"

--- drivers/usb/usb-core.c.old	Mon Apr 17 19:12:31 2000
+++ drivers/usb/usb-core.c	Mon Apr 17 19:13:53 2000
@@ -28,6 +28,7 @@
  * USB device drivers
  */
 
+int usb_cpia_init(void);
 int usb_audio_init(void);
 int usb_ibmcam_init(void);
 int dabusb_init(void);
@@ -68,6 +69,9 @@
 	usb_hub_init();
 
 #ifndef CONFIG_USB_MODULE
+#ifdef CONFIG_VIDEO_CPIA_USB
+	usb_cpia_init();
+#endif
 #ifdef CONFIG_USB_AUDIO
 	usb_audio_init();
 #endif

--OpLPJvDmhXTZE4Lg--