randy_dunlap wrote:

The only problem that I see with it now is that it uses
spaces instead of tabs... so it won't apply cleanly,
since the original source uses tabs.  That means that either
you used cut-n-paste to put the patch into email (which usually
destroys tabs) or your email client otherwise decided to
destroy the tabs... ???  How did you generate the patch and
insert it in tbird?  Thunderbird doesn't have a good
'insert text file' method that I know of (and I used it for
about 3 months and then gave up on it).

It was copy paste. Well now it should be with tabs instead of spaces.
I have mailed the patch to myself and then copy pasted from tbird. wuh.


oh, and the patch should be made against 2.6.12-rc5 or
2.6.12-rc5-git9 or git-current, not against 2.6.11.11,
although that may not matter in this case.
The new patch is made against 2.6.12-rc5

---
~Randy


Lets see did I got it right this time.

Changelog:
Added support for Creative WebCam Go Mini.
Camera has STV680 chip and just different Product ID(0x4007) and Vendor ID 
(0x041e).

So here is the patch:

Signed-off-by: Kiril Jovchev <[EMAIL PROTECTED]>

---

--- linux-2.6.12-rc5/drivers/usb/media/stv680.h 2005-05-25 06:31:20.000000000 
+0300
+++ linux/drivers/usb/media/stv680.h    2005-06-03 13:36:57.000000000 +0300
@@ -41,12 +41,17 @@

 #define USB_PENCAM_VENDOR_ID   0x0553
 #define USB_PENCAM_PRODUCT_ID  0x0202
+
+#define USB_CREATIVEGOMINI_VENDOR_ID 0x041e
+#define USB_CREATIVEGOMINI_PRODUCT_ID 0x4007
+
 #define PENCAM_TIMEOUT          1000
 /* fmt 4 */
 #define STV_VIDEO_PALETTE       VIDEO_PALETTE_RGB24

 static struct usb_device_id device_table[] = {
        {USB_DEVICE (USB_PENCAM_VENDOR_ID, USB_PENCAM_PRODUCT_ID)},
+       {USB_DEVICE (USB_CREATIVEGOMINI_VENDOR_ID, 
USB_CREATIVEGOMINI_PRODUCT_ID)},
        {}
 };
 MODULE_DEVICE_TABLE (usb, device_table);
--- linux-2.6.12-rc5/drivers/usb/media/stv680.c 2005-05-25 06:31:20.000000000 
+0300
+++ linux/drivers/usb/media/stv680.c    2005-06-04 21:09:02.000000000 +0300
@@ -1375,9 +1375,13 @@ static int stv680_probe (struct usb_inte
            (le16_to_cpu(dev->descriptor.idProduct) == USB_PENCAM_PRODUCT_ID)) {
                camera_name = "STV0680";
                PDEBUG (0, "STV(i): STV0680 camera found.");
+       } else if ((le16_to_cpu(dev->descriptor.idVendor) == 
USB_CREATIVEGOMINI_VENDOR_ID) &&
+            (le16_to_cpu(dev->descriptor.idProduct) == 
USB_CREATIVEGOMINI_PRODUCT_ID)) {
+                camera_name = "Creative WebCam Go Mini";
+                PDEBUG (0, "STV(i): Creative WebCam Go Mini found.");
        } else {
-               PDEBUG (0, "STV(e): Vendor/Product ID do not match STV0680 
values.");
-               PDEBUG (0, "STV(e): Check that the STV0680 camera is connected to 
the computer.");
+               PDEBUG (0, "STV(e): Vendor/Product ID do not match STV0680 or 
Creative WebCam Go Mini values.");
+               PDEBUG (0, "STV(e): Check that the STV0680 or Creative WebCam Go 
Mini camera is connected to the computer.");
                retval = -ENODEV;
                goto error;
        }


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to