diff options
author | Kuninori Morimoto <morimoto.kuninori@renesas.com> | 2009-12-11 11:53:54 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-12-16 09:27:38 -0200 |
commit | 7874b9038da3ff54dd1667e6bab307e66030950e (patch) | |
tree | ec43cf20346d721462b02ac52f114782306bdcb1 /drivers/media/video/tw9910.c | |
parent | 398994c1e104324acc836894290f2453d7f75ff5 (diff) | |
download | blackbird-op-linux-7874b9038da3ff54dd1667e6bab307e66030950e.tar.gz blackbird-op-linux-7874b9038da3ff54dd1667e6bab307e66030950e.zip |
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: 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/video/tw9910.c')
-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 1fdc758041d5..3f96cb55dbbf 100644 --- a/drivers/media/video/tw9910.c +++ b/drivers/media/video/tw9910.c @@ -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; @@ -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; @@ -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; /* @@ -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; } |