Skip to content

Commit

Permalink
drivers: media: imx296: Fix Bayer order
Browse files Browse the repository at this point in the history
Switch the Bayer ordering advertised by the device driver from BGGR to RGGB.

Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
  • Loading branch information
naushir committed May 17, 2022
1 parent e775f2c commit 1bfcd09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/media/i2c/imx296.c
Expand Up @@ -610,7 +610,7 @@ static int imx296_enum_mbus_code(struct v4l2_subdev *sd,
return -EINVAL;

code->code = sensor->mono ? MEDIA_BUS_FMT_Y10_1X10
: MEDIA_BUS_FMT_SBGGR10_1X10;
: MEDIA_BUS_FMT_SRGGB10_1X10;

return 0;
}
Expand Down Expand Up @@ -715,7 +715,7 @@ static int imx296_set_format(struct v4l2_subdev *sd,
}

format->code = sensor->mono ? MEDIA_BUS_FMT_Y10_1X10
: MEDIA_BUS_FMT_SBGGR10_1X10;
: MEDIA_BUS_FMT_SRGGB10_1X10;
format->field = V4L2_FIELD_NONE;
format->colorspace = V4L2_COLORSPACE_RAW;
format->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT;
Expand Down

0 comments on commit 1bfcd09

Please sign in to comment.