[PATCH 2/2] soc-camera: tw9910: use V4L2_FIELD_INTERLACED_BT
Kuninori Morimoto <[email protected]>
| Newsgroups | gmane.comp.video.video4linux |
|---|---|
| Message-ID | <uws1wcmws.wl%[email protected]> |
tw9910 output is interlaced and its correct order is Bottom - Top Signed-off-by: Kuninori Morimoto <[email protected]> --- drivers/media/video/tw9910.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/media/video/tw9910.c b/drivers/media/video/tw9910.c index 3697833..4bd12e5 100644 --- a/drivers/media/video/tw9910.c +++ b/drivers/media/video/tw9910.c @@ -767,7 +767,7 @@ static int tw9910_g_fmt(struct v4l2_subdev *sd, imgf->width = priv->scale->width; imgf->height = priv->scale->height; imgf->code = V4L2_IMGBUS_FMT_UYVY; - imgf->field = V4L2_FIELD_INTERLACED; + imgf->field = V4L2_FIELD_INTERLACED_BT; return 0; } @@ -789,7 +789,7 @@ static int tw9910_s_fmt(struct v4l2_subdev *sd, int i, ret; WARN_ON(imgf->field != V4L2_FIELD_ANY && - imgf->field != V4L2_FIELD_INTERLACED); + imgf->field != V4L2_FIELD_INTERLACED_BT); /* * check color format @@ -817,8 +817,8 @@ static int tw9910_try_fmt(struct v4l2_subdev *sd, const struct tw9910_scale_ctrl *scale; if (V4L2_FIELD_ANY == imgf->field) { - imgf->field = V4L2_FIELD_INTERLACED; - } else if (V4L2_FIELD_INTERLACED != imgf->field) { + imgf->field = V4L2_FIELD_INTERLACED_BT; + } else if (V4L2_FIELD_INTERLACED_BT != imgf->field) { dev_err(&client->dev, "Field type %d invalid.\n", imgf->field); return -EINVAL; } -- 1.6.3.3 -- video4linux-list mailing list Unsubscribe mailto:[email protected]?subject=unsubscribe https://www.redhat.com/mailman/listinfo/video4linux-list