1 From 257c415d35c2941855b8429bff591487551e8678 Mon Sep 17 00:00:00 2001
2 From: David Plowman <david.plowman@raspberrypi.com>
3 Date: Thu, 21 Oct 2021 14:44:01 +0100
4 Subject: [PATCH] media: i2c: imx290: Sensor should report RAW color
7 Tested on Raspberry Pi running libcamera.
9 Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
11 drivers/media/i2c/imx290.c | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
14 --- a/drivers/media/i2c/imx290.c
15 +++ b/drivers/media/i2c/imx290.c
16 @@ -885,7 +885,7 @@ static int imx290_set_fmt(struct v4l2_su
18 fmt->format.code = imx290->formats[i].code;
19 fmt->format.field = V4L2_FIELD_NONE;
20 - fmt->format.colorspace = V4L2_COLORSPACE_SRGB;
21 + fmt->format.colorspace = V4L2_COLORSPACE_RAW;
22 fmt->format.ycbcr_enc =
23 V4L2_MAP_YCBCR_ENC_DEFAULT(fmt->format.colorspace);
24 fmt->format.quantization =