提交 7874b903 编写于 作者: K Kuninori Morimoto 提交者: Mauro Carvalho Chehab

V4L/DVB (13667): tw9910: modify output format

Correct tw9910 output format is Cb - Y - Cr - Y
which is defined in ITU-R BT.656.
Signed-off-by: NKuninori Morimoto <morimoto.kuninori@renesas.com>
Signed-off-by: NGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 398994c1
...@@ -806,7 +806,7 @@ static int tw9910_g_fmt(struct v4l2_subdev *sd, ...@@ -806,7 +806,7 @@ static int tw9910_g_fmt(struct v4l2_subdev *sd,
mf->width = priv->scale->width; mf->width = priv->scale->width;
mf->height = priv->scale->height; mf->height = priv->scale->height;
mf->code = V4L2_MBUS_FMT_YVYU8_2X8_BE; mf->code = V4L2_MBUS_FMT_YUYV8_2X8_BE;
mf->colorspace = V4L2_COLORSPACE_JPEG; mf->colorspace = V4L2_COLORSPACE_JPEG;
mf->field = V4L2_FIELD_INTERLACED_BT; mf->field = V4L2_FIELD_INTERLACED_BT;
...@@ -835,7 +835,7 @@ static int tw9910_s_fmt(struct v4l2_subdev *sd, ...@@ -835,7 +835,7 @@ static int tw9910_s_fmt(struct v4l2_subdev *sd,
/* /*
* check color format * check color format
*/ */
if (mf->code != V4L2_MBUS_FMT_YVYU8_2X8_BE) if (mf->code != V4L2_MBUS_FMT_YUYV8_2X8_BE)
return -EINVAL; return -EINVAL;
mf->colorspace = V4L2_COLORSPACE_JPEG; mf->colorspace = V4L2_COLORSPACE_JPEG;
...@@ -862,7 +862,7 @@ static int tw9910_try_fmt(struct v4l2_subdev *sd, ...@@ -862,7 +862,7 @@ static int tw9910_try_fmt(struct v4l2_subdev *sd,
return -EINVAL; return -EINVAL;
} }
mf->code = V4L2_MBUS_FMT_YVYU8_2X8_BE; mf->code = V4L2_MBUS_FMT_YUYV8_2X8_BE;
mf->colorspace = V4L2_COLORSPACE_JPEG; mf->colorspace = V4L2_COLORSPACE_JPEG;
/* /*
...@@ -947,7 +947,7 @@ static int tw9910_enum_fmt(struct v4l2_subdev *sd, int index, ...@@ -947,7 +947,7 @@ static int tw9910_enum_fmt(struct v4l2_subdev *sd, int index,
if (index) if (index)
return -EINVAL; return -EINVAL;
*code = V4L2_MBUS_FMT_YVYU8_2X8_BE; *code = V4L2_MBUS_FMT_YUYV8_2X8_BE;
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册