[media] uvcvideo: Correct speed testing
authorOliver Neukum <oneukum@suse.com>
Mon, 2 May 2016 11:23:21 +0000 (08:23 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 7 Jun 2016 14:34:24 +0000 (11:34 -0300)
Allow for SS+ USB devices.

Signed-off-by: Oliver Neukum <ONeukum@suse.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/uvc/uvc_video.c

index 075a0fe774857ca65773432e9c092f2607d93549..b5589d5f5da495224f9bbd83717707adc7070b4d 100644 (file)
@@ -1470,6 +1470,7 @@ static unsigned int uvc_endpoint_max_bpi(struct usb_device *dev,
 
        switch (dev->speed) {
        case USB_SPEED_SUPER:
+       case USB_SPEED_SUPER_PLUS:
                return le16_to_cpu(ep->ss_ep_comp.wBytesPerInterval);
        case USB_SPEED_HIGH:
                psize = usb_endpoint_maxp(&ep->desc);