[PATCH 2/2] soc-camera: tw9910: use V4L2_FIELD_INTERLACED_BT

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


tw9910 output is interlaced and its correct order is Bottom - Top

Signed-off-by: Kuninori Morimoto <morimoto.kuninori@xxxxxxxxxxx>
---
 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:video4linux-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

[Linux Media]     [Older V4L]     [Linux DVB]     [Video Disk Recorder]     [Linux Kernel]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [SSH]     [DVB Maintainers]     [Linux USB]     [Yosemite Information]

Add to Google Powered by Linux