提交 92a63459 编写于 作者: O Oliver Neukum 提交者: Mauro Carvalho Chehab

[media] uvcvideo: Correct speed testing

Allow for SS+ USB devices.
Signed-off-by: NOliver Neukum <ONeukum@suse.com>
Signed-off-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
上级 f222467a
...@@ -1470,6 +1470,7 @@ static unsigned int uvc_endpoint_max_bpi(struct usb_device *dev, ...@@ -1470,6 +1470,7 @@ static unsigned int uvc_endpoint_max_bpi(struct usb_device *dev,
switch (dev->speed) { switch (dev->speed) {
case USB_SPEED_SUPER: case USB_SPEED_SUPER:
case USB_SPEED_SUPER_PLUS:
return le16_to_cpu(ep->ss_ep_comp.wBytesPerInterval); return le16_to_cpu(ep->ss_ep_comp.wBytesPerInterval);
case USB_SPEED_HIGH: case USB_SPEED_HIGH:
psize = usb_endpoint_maxp(&ep->desc); psize = usb_endpoint_maxp(&ep->desc);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册