rcar_vin: add support for V4L2_FIELD_ALTERNATE
Subsystems (2)
PATCH 1/1 rcar_vin: add support for V4L2_FIELD_ALTERNATE
The hardware can capture both odd and even fields in the separate buffers, so it's possible to support this field mode. However, if the subdevice presents data in this mode, we prefer to use the hardware deinterlacing...
Signed-off-by Sergei Shtylyov <[email protected]>
---
This patch is against the 'media_tree.git' repo's 'master' branch. This patch needs to be merged before the following ADV7180 driver patch is
merged: http://www.mail-archive.com/[email protected]/msg100410.html
drivers/media/platform/soc_camera/rcar_vin.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/media/platform/soc_camera/rcar_vin.c +2 -0
@@ -585,6 +585,7 @@ static int rcar_vin_setup(struct rcar_vi vnmc =VNMC_IM_FULL |VNMC_FOC ;break ;case V4L2_FIELD_NONE : +case V4L2_FIELD_ALTERNATE :if (is_continuous_transfer (priv)) { vnmc =VNMC_IM_ODD_EVEN ; progressive = true;
@@ -1595,6 +1596,7 @@ static int rcar_vin_set_fmt(struct soc_ccase V4L2_FIELD_INTERLACED_BT : field = pix->field;break ; +case V4L2_FIELD_ALTERNATE :case V4L2_FIELD_INTERLACED :/* Query for standard if not explicitly mentioned _TB/_BT */ ret =v4l2_subdev_call (sd, video, querystd, &std);