summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/functions.c
diff options
context:
space:
mode:
authorRoger Quadros <rogerq@ti.com>2017-03-08 16:05:43 +0200
committerFelipe Balbi <felipe.balbi@linux.intel.com>2017-03-22 11:21:09 +0200
commit09424c50b7dff40cb30011c09114404a4656e023 (patch)
treee48ed2d80dce86f37cc771e359c1ea352eae22e6 /drivers/usb/gadget/functions.c
parent74098c4ac782afd71b35ac56f9536ae2f5cd7da7 (diff)
usb: gadget: f_uvc: Fix SuperSpeed companion descriptor's wBytesPerInterval
The streaming_maxburst module parameter is 0 offset (0..15) so we must add 1 while using it for wBytesPerInterval calculation for the SuperSpeed companion descriptor. Without this host uvcvideo driver will always see the wrong wBytesPerInterval for SuperSpeed uvc gadget and may not find a suitable video interface endpoint. e.g. for streaming_maxburst = 0 case it will always fail as wBytePerInterval was evaluating to 0. Cc: stable@vger.kernel.org Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Roger Quadros <rogerq@ti.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/gadget/functions.c')
0 files changed, 0 insertions, 0 deletions