aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Neukum <[email protected]>2016-05-02 08:23:21 -0300
committerMauro Carvalho Chehab <[email protected]>2016-06-07 11:34:24 -0300
commit92a63459c396386664b30415d1751593ee91a2cc (patch)
tree0820e6a3494e34408573bfec7b04e33cc9e11b03
parentf222467a2c51a46f51516975f9b096f903c26ce4 (diff)
[media] uvcvideo: Correct speed testing
Allow for SS+ USB devices. Signed-off-by: Oliver Neukum <[email protected]> Signed-off-by: Laurent Pinchart <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
-rw-r--r--drivers/media/usb/uvc/uvc_video.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/usb/uvc/uvc_video.c b/drivers/media/usb/uvc/uvc_video.c
index 075a0fe77485..b5589d5f5da4 100644
--- a/drivers/media/usb/uvc/uvc_video.c
+++ b/drivers/media/usb/uvc/uvc_video.c
@@ -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);