aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/tw9910.c
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <lyakh@axis700.grange>2010-07-22 15:52:51 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-08-02 15:43:36 -0400
commitace6e9799f585994c92ac3c0696bc336e50077e6 (patch)
treeb271f7c965f66d8180109ca223b129a868829001 /drivers/media/video/tw9910.c
parent0f9313ad068af4156109661fb8e94ee7fcb79001 (diff)
V4L/DVB: mediabus: fix ambiguous pixel code names
Endianness notation is meaningless for 8 bit YUYV codes. Switch pixel code names to explicitly state the order of colour components in the data stream. 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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/video/tw9910.c b/drivers/media/video/tw9910.c
index 445dc93413e3..a727962781a3 100644
--- a/drivers/media/video/tw9910.c
+++ b/drivers/media/video/tw9910.c
@@ -768,7 +768,7 @@ static int tw9910_g_fmt(struct v4l2_subdev *sd,
768 768
769 mf->width = priv->scale->width; 769 mf->width = priv->scale->width;
770 mf->height = priv->scale->height; 770 mf->height = priv->scale->height;
771 mf->code = V4L2_MBUS_FMT_YUYV8_2X8_BE; 771 mf->code = V4L2_MBUS_FMT_UYVY8_2X8;
772 mf->colorspace = V4L2_COLORSPACE_JPEG; 772 mf->colorspace = V4L2_COLORSPACE_JPEG;
773 mf->field = V4L2_FIELD_INTERLACED_BT; 773 mf->field = V4L2_FIELD_INTERLACED_BT;
774 774
@@ -797,7 +797,7 @@ static int tw9910_s_fmt(struct v4l2_subdev *sd,
797 /* 797 /*
798 * check color format 798 * check color format
799 */ 799 */
800 if (mf->code != V4L2_MBUS_FMT_YUYV8_2X8_BE) 800 if (mf->code != V4L2_MBUS_FMT_UYVY8_2X8)
801 return -EINVAL; 801 return -EINVAL;
802 802
803 mf->colorspace = V4L2_COLORSPACE_JPEG; 803 mf->colorspace = V4L2_COLORSPACE_JPEG;
@@ -824,7 +824,7 @@ static int tw9910_try_fmt(struct v4l2_subdev *sd,
824 return -EINVAL; 824 return -EINVAL;
825 } 825 }
826 826
827 mf->code = V4L2_MBUS_FMT_YUYV8_2X8_BE; 827 mf->code = V4L2_MBUS_FMT_UYVY8_2X8;
828 mf->colorspace = V4L2_COLORSPACE_JPEG; 828 mf->colorspace = V4L2_COLORSPACE_JPEG;
829 829
830 /* 830 /*
@@ -909,7 +909,7 @@ static int tw9910_enum_fmt(struct v4l2_subdev *sd, unsigned int index,
909 if (index) 909 if (index)
910 return -EINVAL; 910 return -EINVAL;
911 911
912 *code = V4L2_MBUS_FMT_YUYV8_2X8_BE; 912 *code = V4L2_MBUS_FMT_UYVY8_2X8;
913 return 0; 913 return 0;
914} 914}
915 915