mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
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>
This commit is contained in:
parent
1edcc10d7f
commit
34cae30b84
1 changed files with 4 additions and 4 deletions
|
@ -830,7 +830,7 @@ static int tw9910_g_fmt(struct v4l2_subdev *sd,
|
||||||
mf->height = priv->scale->height;
|
mf->height = priv->scale->height;
|
||||||
mf->code = V4L2_MBUS_FMT_YVYU8_2X8_BE;
|
mf->code = V4L2_MBUS_FMT_YVYU8_2X8_BE;
|
||||||
mf->colorspace = V4L2_COLORSPACE_JPEG;
|
mf->colorspace = V4L2_COLORSPACE_JPEG;
|
||||||
mf->field = V4L2_FIELD_INTERLACED;
|
mf->field = V4L2_FIELD_INTERLACED_BT;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -852,7 +852,7 @@ static int tw9910_s_fmt(struct v4l2_subdev *sd,
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
WARN_ON(mf->field != V4L2_FIELD_ANY &&
|
WARN_ON(mf->field != V4L2_FIELD_ANY &&
|
||||||
mf->field != V4L2_FIELD_INTERLACED);
|
mf->field != V4L2_FIELD_INTERLACED_BT);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* check color format
|
* check color format
|
||||||
|
@ -878,8 +878,8 @@ static int tw9910_try_fmt(struct v4l2_subdev *sd,
|
||||||
const struct tw9910_scale_ctrl *scale;
|
const struct tw9910_scale_ctrl *scale;
|
||||||
|
|
||||||
if (V4L2_FIELD_ANY == mf->field) {
|
if (V4L2_FIELD_ANY == mf->field) {
|
||||||
mf->field = V4L2_FIELD_INTERLACED;
|
mf->field = V4L2_FIELD_INTERLACED_BT;
|
||||||
} else if (V4L2_FIELD_INTERLACED != mf->field) {
|
} else if (V4L2_FIELD_INTERLACED_BT != mf->field) {
|
||||||
dev_err(&client->dev, "Field type %d invalid.\n", mf->field);
|
dev_err(&client->dev, "Field type %d invalid.\n", mf->field);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue