Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1455940
| From | Steve Longerbeam <slongerbeam@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v4 6/8] media: adv7180: change mbus format to UYVY |
| Date | 2016-08-03 20:10 +0200 |
| Message-ID | <s28Ma-62m-27@gated-at.bofh.it> (permalink) |
| References | <s28Ma-62m-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Change the media bus format from YUYV8_2X8 to UYVY8_2X8. Colors
now look correct when capturing with the i.mx6 backend.
Signed-off-by: Steve Longerbeam <steve_longerbeam@mentor.com>
Tested-by: Tim Harvey <tharvey@gateworks.com>
Acked-by: Tim Harvey <tharvey@gateworks.com>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
---
v4: no changes
v3: no changes
v2: no changes
---
drivers/media/i2c/adv7180.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/media/i2c/adv7180.c b/drivers/media/i2c/adv7180.c
index 9705e24..abdc519 100644
--- a/drivers/media/i2c/adv7180.c
+++ b/drivers/media/i2c/adv7180.c
@@ -636,7 +636,7 @@ static int adv7180_enum_mbus_code(struct v4l2_subdev *sd,
if (code->index != 0)
return -EINVAL;
- code->code = MEDIA_BUS_FMT_YUYV8_2X8;
+ code->code = MEDIA_BUS_FMT_UYVY8_2X8;
return 0;
}
@@ -646,7 +646,7 @@ static int adv7180_mbus_fmt(struct v4l2_subdev *sd,
{
struct adv7180_state *state = to_state(sd);
- fmt->code = MEDIA_BUS_FMT_YUYV8_2X8;
+ fmt->code = MEDIA_BUS_FMT_UYVY8_2X8;
fmt->colorspace = V4L2_COLORSPACE_SMPTE170M;
fmt->width = 720;
fmt->height = state->curr_norm & V4L2_STD_525_60 ? 480 : 576;
--
1.9.1
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v4 0/8] adv7180 subdev fixes, v4 Steve Longerbeam <slongerbeam@gmail.com> - 2016-08-03 20:10 +0200 [PATCH v4 5/8] media: adv7180: implement g_parm Steve Longerbeam <slongerbeam@gmail.com> - 2016-08-03 20:10 +0200 [PATCH v4 4/8] media: adv7180: add power pin control Steve Longerbeam <slongerbeam@gmail.com> - 2016-08-03 20:10 +0200 [PATCH v4 6/8] media: adv7180: change mbus format to UYVY Steve Longerbeam <slongerbeam@gmail.com> - 2016-08-03 20:10 +0200
csiph-web