mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 12:57:06 +09:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user