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