media: i2c: imx477: Sensor should report RAW color space
authorDavid Plowman <david.plowman@raspberrypi.com>
Thu, 21 Oct 2021 13:44:43 +0000 (14:44 +0100)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Fri, 22 Oct 2021 09:13:57 +0000 (10:13 +0100)
Tested on Raspberry Pi running libcamera.

Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
drivers/media/i2c/imx477.c

index 05cb530..cd3296f 100644 (file)
@@ -1471,7 +1471,7 @@ static int imx477_enum_frame_size(struct v4l2_subdev *sd,
 
 static void imx477_reset_colorspace(struct v4l2_mbus_framefmt *fmt)
 {
-       fmt->colorspace = V4L2_COLORSPACE_SRGB;
+       fmt->colorspace = V4L2_COLORSPACE_RAW;
        fmt->ycbcr_enc = V4L2_MAP_YCBCR_ENC_DEFAULT(fmt->colorspace);
        fmt->quantization = V4L2_MAP_QUANTIZATION_DEFAULT(true,
                                                          fmt->colorspace,