]> git.baikalelectronics.ru Git - kernel.git/commit
[media] uvcvideo: Update uvc_endpoint_max_bpi to handle USB_SPEED_WIRELESS devices
authorThomas Pugliese <thomas.pugliese@gmail.com>
Fri, 24 Jan 2014 21:17:28 +0000 (18:17 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Fri, 28 Feb 2014 16:21:57 +0000 (13:21 -0300)
commitb8b3d4c6c6137915d98d5b05db55f3f92ee14d14
treeaa0087798cf43ca712362a5f5c3c8da1f43a26e2
parent037961120ff7f8dbf0e81c5d3fd90f33fc8162e6
[media] uvcvideo: Update uvc_endpoint_max_bpi to handle USB_SPEED_WIRELESS devices

Isochronous endpoints on devices with speed == USB_SPEED_WIRELESS can
have a max packet size ranging from 1-3584 bytes.  Add a case to
uvc_endpoint_max_bpi to handle USB_SPEED_WIRELESS.  Otherwise endpoints
for those devices will fall to the default case which masks off any
values > 2047.  This causes uvc_init_video to underestimate the
bandwidth available and fail to find a suitable alt setting for high
bandwidth video streams.

Signed-off-by: Thomas Pugliese <thomas.pugliese@gmail.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/usb/uvc/uvc_video.c