ca85d29f2e59873bc0ad4b32db47a7a123fe1338
[openwrt/staging/blogic.git] /
1 From e3f8ed2721c6de37fa72e596cc956fc06d479473 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
5 space
6
7 Tested on Raspberry Pi running libcamera.
8
9 Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
10 ---
11 drivers/media/i2c/ov5647.c | 8 ++++----
12 1 file changed, 4 insertions(+), 4 deletions(-)
13
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
17 {
18 .format = {
19 .code = MEDIA_BUS_FMT_SBGGR10_1X10,
20 - .colorspace = V4L2_COLORSPACE_SRGB,
21 + .colorspace = V4L2_COLORSPACE_RAW,
22 .field = V4L2_FIELD_NONE,
23 .width = 2592,
24 .height = 1944
25 @@ -515,7 +515,7 @@ static const struct ov5647_mode ov5647_m
26 {
27 .format = {
28 .code = MEDIA_BUS_FMT_SBGGR10_1X10,
29 - .colorspace = V4L2_COLORSPACE_SRGB,
30 + .colorspace = V4L2_COLORSPACE_RAW,
31 .field = V4L2_FIELD_NONE,
32 .width = 1920,
33 .height = 1080
34 @@ -536,7 +536,7 @@ static const struct ov5647_mode ov5647_m
35 {
36 .format = {
37 .code = MEDIA_BUS_FMT_SBGGR10_1X10,
38 - .colorspace = V4L2_COLORSPACE_SRGB,
39 + .colorspace = V4L2_COLORSPACE_RAW,
40 .field = V4L2_FIELD_NONE,
41 .width = 1296,
42 .height = 972
43 @@ -557,7 +557,7 @@ static const struct ov5647_mode ov5647_m
44 {
45 .format = {
46 .code = MEDIA_BUS_FMT_SBGGR10_1X10,
47 - .colorspace = V4L2_COLORSPACE_SRGB,
48 + .colorspace = V4L2_COLORSPACE_RAW,
49 .field = V4L2_FIELD_NONE,
50 .width = 640,
51 .height = 480