1 From 448cd18658f69e4af0e4504cd9f525e72a461e23 Mon Sep 17 00:00:00 2001
2 From: David Plowman <david.plowman@raspberrypi.com>
3 Date: Thu, 21 Oct 2021 14:47:00 +0100
4 Subject: [PATCH] media: i2c: ov5647: 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/ov5647.c | 8 ++++----
12 1 file changed, 4 insertions(+), 4 deletions(-)
14 --- a/drivers/media/i2c/ov5647.c
15 +++ b/drivers/media/i2c/ov5647.c
16 @@ -494,7 +494,7 @@ static const struct ov5647_mode ov5647_m
19 .code = MEDIA_BUS_FMT_SBGGR10_1X10,
20 - .colorspace = V4L2_COLORSPACE_SRGB,
21 + .colorspace = V4L2_COLORSPACE_RAW,
22 .field = V4L2_FIELD_NONE,
25 @@ -515,7 +515,7 @@ static const struct ov5647_mode ov5647_m
28 .code = MEDIA_BUS_FMT_SBGGR10_1X10,
29 - .colorspace = V4L2_COLORSPACE_SRGB,
30 + .colorspace = V4L2_COLORSPACE_RAW,
31 .field = V4L2_FIELD_NONE,
34 @@ -536,7 +536,7 @@ static const struct ov5647_mode ov5647_m
37 .code = MEDIA_BUS_FMT_SBGGR10_1X10,
38 - .colorspace = V4L2_COLORSPACE_SRGB,
39 + .colorspace = V4L2_COLORSPACE_RAW,
40 .field = V4L2_FIELD_NONE,
43 @@ -557,7 +557,7 @@ static const struct ov5647_mode ov5647_m
46 .code = MEDIA_BUS_FMT_SBGGR10_1X10,
47 - .colorspace = V4L2_COLORSPACE_SRGB,
48 + .colorspace = V4L2_COLORSPACE_RAW,
49 .field = V4L2_FIELD_NONE,