usb: gadget: f_uvc: increase the data buf of uvc_request_data

The rockchip IQ tool uses the data buf of the uvc_request_data
to send vendor specific uvc control data to uvc host, or receive
data from uvc host. The max data payload maybe 4096 bytes, so we
increase the data buf of uvc_request_data to 4096, and also change
the UVC_MAX_REQUEST_SIZE to 4100 correspondingly.

Change-Id: I9820a5f531a655eb53232096fad131ad7a05e349
Signed-off-by: William Wu <william.wu@rock-chips.com>
This commit is contained in:
William Wu
2018-11-27 16:56:27 +08:00
committed by Tao Huang
parent f61d769615
commit 31f0ea59ba

View File

@@ -29,7 +29,11 @@
struct uvc_request_data
{
__s32 length;
#ifdef CONFIG_USB_CONFIGFS_F_UVC_ROCKCHIP
__u8 data[4096];
#else
__u8 data[60];
#endif
};
struct uvc_event
@@ -97,8 +101,12 @@ extern unsigned int uvc_gadget_trace_param;
*/
#define UVC_NUM_REQUESTS 4
#define UVC_MAX_REQUEST_SIZE 64
#define UVC_MAX_EVENTS 4
#ifdef CONFIG_USB_CONFIGFS_F_UVC_ROCKCHIP
#define UVC_MAX_REQUEST_SIZE 4100
#else
#define UVC_MAX_REQUEST_SIZE 64
#endif
/* ------------------------------------------------------------------------
* Structures