media: rockchip: vicap increase v4l2 event length

Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I4e41d445f4c1d13dc8232b80306e2ff992e0b037
This commit is contained in:
Zefa Chen
2022-01-28 11:23:28 +08:00
committed by Tao Huang
parent a04ad7f646
commit 7609787206
3 changed files with 4 additions and 2 deletions

View File

@@ -5279,7 +5279,7 @@ static int rkcif_sof_subscribe_event(struct v4l2_subdev *sd, struct v4l2_fh *fh,
if (sub->type != V4L2_EVENT_FRAME_SYNC)
return -EINVAL;
return v4l2_event_subscribe(fh, sub, 0, NULL);
return v4l2_event_subscribe(fh, sub, RKCIF_V4L2_EVENT_ELEMS, NULL);
}
static const struct media_entity_operations rkcif_lvds_sd_media_ops = {

View File

@@ -499,7 +499,7 @@ static int rkcif_csi2_subscribe_event(struct v4l2_subdev *sd, struct v4l2_fh *fh
if (sub->type != V4L2_EVENT_FRAME_SYNC)
return -EINVAL;
return v4l2_event_subscribe(fh, sub, 0, NULL);
return v4l2_event_subscribe(fh, sub, RKCIF_V4L2_EVENT_ELEMS, NULL);
}
static int rkcif_csi2_s_power(struct v4l2_subdev *sd, int on)

View File

@@ -12,6 +12,8 @@
#define CSI2_ERR_FSFE_MASK (0xff << 8)
#define CSI2_ERR_COUNT_ALL_MASK (0xff)
#define RKCIF_V4L2_EVENT_ELEMS 4
/*
* there must be 5 pads: 1 input pad from sensor, and
* the 4 virtual channel output pads