Skip to content

Commit

Permalink
V4L/DVB (13667): tw9910: modify output format
Browse files Browse the repository at this point in the history
Correct tw9910 output format is Cb - Y - Cr - Y
which is defined in ITU-R BT.656.

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>
  • Loading branch information
Kuninori Morimoto authored and Mauro Carvalho Chehab committed Dec 16, 2009
1 parent 398994c commit 7874b90
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/media/video/tw9910.c
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,7 @@ static int tw9910_g_fmt(struct v4l2_subdev *sd,

mf->width = priv->scale->width;
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->field = V4L2_FIELD_INTERLACED_BT;

Expand Down Expand Up @@ -835,7 +835,7 @@ static int tw9910_s_fmt(struct v4l2_subdev *sd,
/*
* check color format
*/
if (mf->code != V4L2_MBUS_FMT_YVYU8_2X8_BE)
if (mf->code != V4L2_MBUS_FMT_YUYV8_2X8_BE)
return -EINVAL;

mf->colorspace = V4L2_COLORSPACE_JPEG;
Expand All @@ -862,7 +862,7 @@ static int tw9910_try_fmt(struct v4l2_subdev *sd,
return -EINVAL;
}

mf->code = V4L2_MBUS_FMT_YVYU8_2X8_BE;
mf->code = V4L2_MBUS_FMT_YUYV8_2X8_BE;
mf->colorspace = V4L2_COLORSPACE_JPEG;

/*
Expand Down Expand Up @@ -947,7 +947,7 @@ static int tw9910_enum_fmt(struct v4l2_subdev *sd, int index,
if (index)
return -EINVAL;

*code = V4L2_MBUS_FMT_YVYU8_2X8_BE;
*code = V4L2_MBUS_FMT_YUYV8_2X8_BE;
return 0;
}

Expand Down

0 comments on commit 7874b90

Please sign in to comment.