--- linux-2.6.11.11/drivers/usb/media/stv680.c 2005-05-27 08:06:46.000000000 +0300 +++ linux/drivers/usb/media/stv680.c 2005-06-02 17:59:52.000000000 +0300 @@ -9,6 +9,9 @@ * Endpoints (formerly known as AOX) se401 USB Camera Driver * Copyright (c) 2000 Jeroen B. Vreeken (pe1rxq@amsat.org) * + * Creative WebCam Go Mini Driver, modified by Kiril Jovchev + * (jovchev@gmail.com) + * * Still somewhat based on the Linux ov511 driver. * * This program is free software; you can redistribute it and/or modify it @@ -56,6 +59,11 @@ * to set to a non-supported size. This allowed * gnomemeeting to work. * Fixed proc entry removal bug. + * + * ver 0.26 Sep, 2004 (kjv) + * Added support for Creative WebCam Go mini. + * Camera is based on same chip. + * */ #include @@ -1375,9 +1383,14 @@ (le16_to_cpu(dev->descriptor.idProduct) == USB_PENCAM_PRODUCT_ID)) { camera_name = "STV0680"; PDEBUG (0, "STV(i): STV0680 camera 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."); + } 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 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; }