diff options
author | Kuninori Morimoto <morimoto.kuninori@renesas.com> | 2009-12-11 17:53:53 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-12-16 14:27:34 +0300 |
commit | 34cae30b8457cf090f215e212ba019e7c303f8fd (patch) | |
tree | 3758d80fa7d2a178e0c541b5ce7b8801d53dbf3d /drivers/media | |
parent | 1edcc10d7f4fd4085fcdcdd68afec258c3427530 (diff) | |
download | linux-34cae30b8457cf090f215e212ba019e7c303f8fd.tar.xz |
V4L/DVB (13664): tw9910: use V4L2_FIELD_INTERLACED_BT
tw9910 output is interlaced and its correct order is Bottom - Top
Signed-off-by: Kuninori Morimoto <morimoto.kuninori@renesas.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | 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 341d0e035cbf..5e7672abe815 100644 --- a/drivers/media/video/tw9910.c +++ b/drivers/media/video/tw9910.c @@ -830,7 +830,7 @@ static int tw9910_g_fmt(struct v4l2_subdev *sd, mf->height = priv->scale->height; mf->code = V4L2_MBUS_FMT_YVYU8_2X8_BE; mf->colorspace = V4L2_COLORSPACE_JPEG; - mf->field = V4L2_FIELD_INTERLACED; + mf->field = V4L2_FIELD_INTERLACED_BT; return 0; } @@ -852,7 +852,7 @@ static int tw9910_s_fmt(struct v4l2_subdev *sd, int ret; WARN_ON(mf->field != V4L2_FIELD_ANY && - mf->field != V4L2_FIELD_INTERLACED); + mf->field != V4L2_FIELD_INTERLACED_BT); /* * check color format @@ -878,8 +878,8 @@ static int tw9910_try_fmt(struct v4l2_subdev *sd, const struct tw9910_scale_ctrl *scale; if (V4L2_FIELD_ANY == mf->field) { - mf->field = V4L2_FIELD_INTERLACED; - } else if (V4L2_FIELD_INTERLACED != mf->field) { + mf->field = V4L2_FIELD_INTERLACED_BT; + } else if (V4L2_FIELD_INTERLACED_BT != mf->field) { dev_err(&client->dev, "Field type %d invalid.\n", mf->field); return -EINVAL; } |