media: v4l: increase the data length of v4l2_event

The rockchip IQ tool sends data via usb uvc. The data buf
of v4l2_event is used for IQ tool userspace on uvc device
side to receive vendor specific data from host, the max
length of data maybe 4096 bytes, so increase the data length
of v4l2_event to 4100.

I have already tested the usb host uvc function, it works
well with this patch.

Note:
The userspace need to update the data length of v4l2_event
to 4100 synchronously.

Change-Id: I1a4673d50137760e190a17c6981740952fac2ca7
Signed-off-by: William Wu <william.wu@rock-chips.com>
This commit is contained in:
William Wu
2018-11-27 16:52:08 +08:00
committed by Tao Huang
parent 3d41efffff
commit f61d769615
2 changed files with 8 additions and 0 deletions

View File

@@ -913,7 +913,11 @@ struct v4l2_event32 {
__u32 type;
union {
compat_s64 value64;
#ifdef CONFIG_USB_CONFIGFS_F_UVC_ROCKCHIP
__u8 data[4100];
#else
__u8 data[64];
#endif
} u;
__u32 pending;
__u32 sequence;

View File

@@ -2153,7 +2153,11 @@ struct v4l2_event {
struct v4l2_event_frame_sync frame_sync;
struct v4l2_event_src_change src_change;
struct v4l2_event_motion_det motion_det;
#ifdef CONFIG_USB_CONFIGFS_F_UVC_ROCKCHIP
__u8 data[4100];
#else
__u8 data[64];
#endif
} u;
__u32 pending;
__u32 sequence;