Microsoft LifeCam needs the framesize quirk as well.
authormk <mk@openbsd.org>
Mon, 26 Jul 2010 22:17:13 +0000 (22:17 +0000)
committermk <mk@openbsd.org>
Mon, 26 Jul 2010 22:17:13 +0000 (22:17 +0000)
ok mglocker

sys/dev/usb/uvideo.c

index 127367e..1873b9b 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: uvideo.c,v 1.135 2010/07/26 07:12:21 mglocker Exp $ */
+/*     $OpenBSD: uvideo.c,v 1.136 2010/07/26 22:17:13 mk Exp $ */
 
 /*
  * Copyright (c) 2008 Robert Nagy <robert@openbsd.org>
@@ -335,6 +335,13 @@ struct uvideo_devs {
            NULL,
            UVIDEO_FLAG_FIX_MAX_VIDEO_FRAME_SIZE
        },
+       {
+           /* Needs to fix dwMaxVideoFrameSize */
+           { USB_VENDOR_MICROSOFT, USB_PRODUCT_MICROSOFT_LIFECAM },
+           NULL,
+           NULL,
+           UVIDEO_FLAG_FIX_MAX_VIDEO_FRAME_SIZE
+       },
 };
 #define uvideo_lookup(v, p) \
        ((struct uvideo_devs *)usb_lookup(uvideo_devs, v, p))