[PATCH] quickcam_messenger.c: add support for all quickcam Messengers of the same family

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hey Mauro-

I sent this patch long ago and it seemed to have gotten lost along the
way.

Jaya acked the patch so it is in my mercurial tree now:

 http://ifup.org/hg/v4l-dvb/
 http://ifup.org/hg/v4l-dvb/rev/335a6ccbacb3

Please pull the patch when you get a chance.

Thanks,

	Brandon

On 14:38 Tue 02 Dec 2008, bphilips@xxxxxxx wrote:
> Add three devices that are supported by out of tree drivers to the
> quickcam_messenger driver. Also, remove the sensor_id check since it seems to
> just check the PID.
> 
> The quickcam messenger plus (0x08F6) is supported by Christian's out of tree
> driver[1] but two users have confirmed that the in tree quickcam_messenger
> driver works for their devices if the IDs are added:
> 
>  https://bugzilla.novell.com/show_bug.cgi?id=441650#c3
>  https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.15/+bug/22070/comments/33
>  https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.15/+bug/22070/comments/34
> 
> If Christian or Jaya sign off I think this should be merged.
> 
> [1] http://home.mag.cx/messenger/source/
> 
> Signed-off-by: Brandon Philips <bphilips@xxxxxxx>
> 
> ---
>  drivers/media/video/usbvideo/quickcam_messenger.c |   13 ++++---------
>  1 file changed, 4 insertions(+), 9 deletions(-)
> 
> Index: linux-2.6/drivers/media/video/usbvideo/quickcam_messenger.c
> ===================================================================
> --- linux-2.6.orig/drivers/media/video/usbvideo/quickcam_messenger.c
> +++ linux-2.6/drivers/media/video/usbvideo/quickcam_messenger.c
> @@ -56,9 +56,6 @@ static const int debug;
>  #define DRIVER_VERSION "v0.01"
>  #define DRIVER_DESC "Logitech Quickcam Messenger USB"
>  
> -#define USB_LOGITECH_VENDOR_ID	0x046D
> -#define USB_QCM_PRODUCT_ID	0x08F0
> -
>  #define MAX_CAMERAS	1
>  
>  #define MAX_COLOUR	32768
> @@ -77,7 +74,10 @@ static int whiteness =	MAX_WHITENESS;
>  static struct usbvideo *cams;
>  
>  static struct usb_device_id qcm_table [] = {
> -	{ USB_DEVICE(USB_LOGITECH_VENDOR_ID, USB_QCM_PRODUCT_ID) },
> +	{ USB_DEVICE(0x046D, 0x08F0) },         /* QuickCam Messenger */
> +	{ USB_DEVICE(0x046D, 0x08F5) },         /* QuickCam Communicate */
> +	{ USB_DEVICE(0x046D, 0x08F6) },         /* QuickCam Messenger (new) */
> +	{ USB_DEVICE(0x046D, 0x08DA) },         /* QuickCam Messenger (new) */
>  	{ }
>  };
>  MODULE_DEVICE_TABLE(usb, qcm_table);
> @@ -998,11 +998,6 @@ good_videoep:
>  		err("Couldn't read sensor values. Err %d\n",err);
>  		return err;
>  	}
> -	if (sensor_id != cpu_to_le16(0x08F0)) {
> -		err("Sensor ID %x != %x. Unsupported. Sorry\n",
> -			le16_to_cpu(sensor_id), (0x08F0));
> -		return -ENODEV;
> -	}
>  
>  	uvd = usbvideo_AllocateDevice(cams);
>  	if (!uvd)
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux