Skip to content

Commit

Permalink
[media] uvcvideo: Correct speed testing
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
oneukum authored and mchehab committed Jun 7, 2016
1 parent f222467 commit 92a6345
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/media/usb/uvc/uvc_video.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 92a6345

Please sign in to comment.