Skip to content

Commit

Permalink
Revert "Dirty trick - I have changed the declared format form UyVY to…
Browse files Browse the repository at this point in the history
… YuYV."

This modification should be not needed after Helen Koike has provided the definition
of the UYVY8_2X8 format.
This reverts commit 5a3ecaa.
  • Loading branch information
wzab committed Feb 1, 2020
1 parent f7eb748 commit 876e6db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/media/i2c/adv7180.c
Expand Up @@ -662,7 +662,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;
}
Expand All @@ -673,7 +673,7 @@ static int adv7180_mbus_fmt(struct v4l2_subdev *sd,
printk(KERN_ALERT "I'm in adv7180_mbus_fmt");
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;
Expand Down

0 comments on commit 876e6db

Please sign in to comment.