Commit 538e7a00 authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Mauro Carvalho Chehab

V4L/DVB (10102): uvcvideo: Ignore interrupt endpoint for built-in iSight webcams.

Built-in iSight webcams have an interrupt endpoint but spit proprietary data
that don't conform to the UVC status endpoint messages. Don't try to handle
the interrupt endpoint for those cameras.
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@skynet.be>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent f8dd4af6
...@@ -1147,8 +1147,13 @@ next_descriptor: ...@@ -1147,8 +1147,13 @@ next_descriptor:
buffer += buffer[0]; buffer += buffer[0];
} }
/* Check if the optional status endpoint is present. */ /* Check if the optional status endpoint is present. Built-in iSight
if (alts->desc.bNumEndpoints == 1) { * webcams have an interrupt endpoint but spit proprietary data that
* don't conform to the UVC status endpoint messages. Don't try to
* handle the interrupt endpoint for those cameras.
*/
if (alts->desc.bNumEndpoints == 1 &&
!(dev->quirks & UVC_QUIRK_BUILTIN_ISIGHT)) {
struct usb_host_endpoint *ep = &alts->endpoint[0]; struct usb_host_endpoint *ep = &alts->endpoint[0];
struct usb_endpoint_descriptor *desc = &ep->desc; struct usb_endpoint_descriptor *desc = &ep->desc;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment