Commit 20a7f799 authored by Hans de Goede's avatar Hans de Goede Committed by Mauro Carvalho Chehab

media: atomisp: Propagate v4l2_mbus_framefmt.field to CSI port sink pad

Most sensor drivers report V4L2_FIELD_NONE as v4l2_mbus_framefmt.field
value. Propagate this to the v4l2_mbus_framefmt for the CSI port to pass
the link validation done by media_pipeline_start().

Keep the v4l2_mbus_framefmt.field for the source pad of the CSI port
as V4L2_FIELD_ANY to match the ISP sink pad.
Reviewed-by: default avatarAndy Shevchenko <andy@kernel.org>
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent 52cc673b
...@@ -107,9 +107,12 @@ int atomisp_csi2_set_ffmt(struct v4l2_subdev *sd, ...@@ -107,9 +107,12 @@ int atomisp_csi2_set_ffmt(struct v4l2_subdev *sd,
actual_ffmt->height = clamp_t(u32, ffmt->height, actual_ffmt->height = clamp_t(u32, ffmt->height,
ATOM_ISP_MIN_HEIGHT, ATOM_ISP_MIN_HEIGHT,
ATOM_ISP_MAX_HEIGHT); ATOM_ISP_MAX_HEIGHT);
actual_ffmt->field = ffmt->field;
tmp_ffmt = *ffmt = *actual_ffmt; tmp_ffmt = *ffmt = *actual_ffmt;
/* Always use V4L2_FIELD_ANY to match the ISP sink pad */
tmp_ffmt.field = V4L2_FIELD_ANY;
return atomisp_csi2_set_ffmt(sd, sd_state, which, return atomisp_csi2_set_ffmt(sd, sd_state, which,
CSI2_PAD_SOURCE, CSI2_PAD_SOURCE,
&tmp_ffmt); &tmp_ffmt);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment