Switch the Bayer ordering advertised by the device driver from BGGR to RGGB.
Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
return -EINVAL;
code->code = sensor->mono ? MEDIA_BUS_FMT_Y10_1X10
- : MEDIA_BUS_FMT_SBGGR10_1X10;
+ : MEDIA_BUS_FMT_SRGGB10_1X10;
return 0;
}
}
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;