diff options
author | Guennadi Liakhovetski <lyakh@axis700.grange> | 2010-07-22 15:52:51 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-08-02 15:43:36 -0400 |
commit | ace6e9799f585994c92ac3c0696bc336e50077e6 (patch) | |
tree | b271f7c965f66d8180109ca223b129a868829001 /drivers/media/video/rj54n1cb0c.c | |
parent | 0f9313ad068af4156109661fb8e94ee7fcb79001 (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/rj54n1cb0c.c')
-rw-r--r-- | drivers/media/video/rj54n1cb0c.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/video/rj54n1cb0c.c b/drivers/media/video/rj54n1cb0c.c index 47fd207ba3b1..d319aef7527e 100644 --- a/drivers/media/video/rj54n1cb0c.c +++ b/drivers/media/video/rj54n1cb0c.c | |||
@@ -127,8 +127,8 @@ static const struct rj54n1_datafmt *rj54n1_find_datafmt( | |||
127 | } | 127 | } |
128 | 128 | ||
129 | static const struct rj54n1_datafmt rj54n1_colour_fmts[] = { | 129 | static const struct rj54n1_datafmt rj54n1_colour_fmts[] = { |
130 | {V4L2_MBUS_FMT_YUYV8_2X8_LE, V4L2_COLORSPACE_JPEG}, | 130 | {V4L2_MBUS_FMT_YUYV8_2X8, V4L2_COLORSPACE_JPEG}, |
131 | {V4L2_MBUS_FMT_YVYU8_2X8_LE, V4L2_COLORSPACE_JPEG}, | 131 | {V4L2_MBUS_FMT_YVYU8_2X8, V4L2_COLORSPACE_JPEG}, |
132 | {V4L2_MBUS_FMT_RGB565_2X8_LE, V4L2_COLORSPACE_SRGB}, | 132 | {V4L2_MBUS_FMT_RGB565_2X8_LE, V4L2_COLORSPACE_SRGB}, |
133 | {V4L2_MBUS_FMT_RGB565_2X8_BE, V4L2_COLORSPACE_SRGB}, | 133 | {V4L2_MBUS_FMT_RGB565_2X8_BE, V4L2_COLORSPACE_SRGB}, |
134 | {V4L2_MBUS_FMT_SBGGR10_2X8_PADHI_LE, V4L2_COLORSPACE_SRGB}, | 134 | {V4L2_MBUS_FMT_SBGGR10_2X8_PADHI_LE, V4L2_COLORSPACE_SRGB}, |
@@ -1046,12 +1046,12 @@ static int rj54n1_s_fmt(struct v4l2_subdev *sd, | |||
1046 | 1046 | ||
1047 | /* RA_SEL_UL is only relevant for raw modes, ignored otherwise. */ | 1047 | /* RA_SEL_UL is only relevant for raw modes, ignored otherwise. */ |
1048 | switch (mf->code) { | 1048 | switch (mf->code) { |
1049 | case V4L2_MBUS_FMT_YUYV8_2X8_LE: | 1049 | case V4L2_MBUS_FMT_YUYV8_2X8: |
1050 | ret = reg_write(client, RJ54N1_OUT_SEL, 0); | 1050 | ret = reg_write(client, RJ54N1_OUT_SEL, 0); |
1051 | if (!ret) | 1051 | if (!ret) |
1052 | ret = reg_set(client, RJ54N1_BYTE_SWAP, 8, 8); | 1052 | ret = reg_set(client, RJ54N1_BYTE_SWAP, 8, 8); |
1053 | break; | 1053 | break; |
1054 | case V4L2_MBUS_FMT_YVYU8_2X8_LE: | 1054 | case V4L2_MBUS_FMT_YVYU8_2X8: |
1055 | ret = reg_write(client, RJ54N1_OUT_SEL, 0); | 1055 | ret = reg_write(client, RJ54N1_OUT_SEL, 0); |
1056 | if (!ret) | 1056 | if (!ret) |
1057 | ret = reg_set(client, RJ54N1_BYTE_SWAP, 0, 8); | 1057 | ret = reg_set(client, RJ54N1_BYTE_SWAP, 0, 8); |