diff options
author | Kuninori Morimoto <morimoto.kuninori@renesas.com> | 2009-12-11 09:53:54 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-12-16 06:27:38 -0500 |
commit | 7874b9038da3ff54dd1667e6bab307e66030950e (patch) | |
tree | ec43cf20346d721462b02ac52f114782306bdcb1 | |
parent | 398994c1e104324acc836894290f2453d7f75ff5 (diff) |
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>
-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 1fdc758041d..3f96cb55dbb 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, | |||
806 | 806 | ||
807 | mf->width = priv->scale->width; | 807 | mf->width = priv->scale->width; |
808 | mf->height = priv->scale->height; | 808 | mf->height = priv->scale->height; |
809 | mf->code = V4L2_MBUS_FMT_YVYU8_2X8_BE; | 809 | mf->code = V4L2_MBUS_FMT_YUYV8_2X8_BE; |
810 | mf->colorspace = V4L2_COLORSPACE_JPEG; | 810 | mf->colorspace = V4L2_COLORSPACE_JPEG; |
811 | mf->field = V4L2_FIELD_INTERLACED_BT; | 811 | mf->field = V4L2_FIELD_INTERLACED_BT; |
812 | 812 | ||
@@ -835,7 +835,7 @@ static int tw9910_s_fmt(struct v4l2_subdev *sd, | |||
835 | /* | 835 | /* |
836 | * check color format | 836 | * check color format |
837 | */ | 837 | */ |
838 | if (mf->code != V4L2_MBUS_FMT_YVYU8_2X8_BE) | 838 | if (mf->code != V4L2_MBUS_FMT_YUYV8_2X8_BE) |
839 | return -EINVAL; | 839 | return -EINVAL; |
840 | 840 | ||
841 | mf->colorspace = V4L2_COLORSPACE_JPEG; | 841 | mf->colorspace = V4L2_COLORSPACE_JPEG; |
@@ -862,7 +862,7 @@ static int tw9910_try_fmt(struct v4l2_subdev *sd, | |||
862 | return -EINVAL; | 862 | return -EINVAL; |
863 | } | 863 | } |
864 | 864 | ||
865 | mf->code = V4L2_MBUS_FMT_YVYU8_2X8_BE; | 865 | mf->code = V4L2_MBUS_FMT_YUYV8_2X8_BE; |
866 | mf->colorspace = V4L2_COLORSPACE_JPEG; | 866 | mf->colorspace = V4L2_COLORSPACE_JPEG; |
867 | 867 | ||
868 | /* | 868 | /* |
@@ -947,7 +947,7 @@ static int tw9910_enum_fmt(struct v4l2_subdev *sd, int index, | |||
947 | if (index) | 947 | if (index) |
948 | return -EINVAL; | 948 | return -EINVAL; |
949 | 949 | ||
950 | *code = V4L2_MBUS_FMT_YVYU8_2X8_BE; | 950 | *code = V4L2_MBUS_FMT_YUYV8_2X8_BE; |
951 | return 0; | 951 | return 0; |
952 | } | 952 | } |
953 | 953 | ||