media: i2c: ov5647: Sensor should report RAW color space
authorDavid Plowman <david.plowman@raspberrypi.com>
Thu, 21 Oct 2021 13:47:00 +0000 (14:47 +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/ov5647.c

index 98a5329..03c92e4 100644 (file)
@@ -601,7 +601,7 @@ static struct ov5647_mode supported_modes_8bit[] = {
        {
                .format = {
                        .code = MEDIA_BUS_FMT_SBGGR8_1X8,
-                       .colorspace = V4L2_COLORSPACE_SRGB,
+                       .colorspace = V4L2_COLORSPACE_RAW,
                        .field = V4L2_FIELD_NONE,
                        .width = 640,
                        .height = 480
@@ -627,7 +627,7 @@ static struct ov5647_mode supported_modes_10bit[] = {
        {
                .format = {
                        .code = MEDIA_BUS_FMT_SBGGR10_1X10,
-                       .colorspace = V4L2_COLORSPACE_SRGB,
+                       .colorspace = V4L2_COLORSPACE_RAW,
                        .field = V4L2_FIELD_NONE,
                        .width = 2592,
                        .height = 1944
@@ -651,7 +651,7 @@ static struct ov5647_mode supported_modes_10bit[] = {
        {
                .format = {
                        .code = MEDIA_BUS_FMT_SBGGR10_1X10,
-                       .colorspace = V4L2_COLORSPACE_SRGB,
+                       .colorspace = V4L2_COLORSPACE_RAW,
                        .field = V4L2_FIELD_NONE,
                        .width = 1920,
                        .height = 1080
@@ -674,7 +674,7 @@ static struct ov5647_mode supported_modes_10bit[] = {
        {
                .format = {
                        .code = MEDIA_BUS_FMT_SBGGR10_1X10,
-                       .colorspace = V4L2_COLORSPACE_SRGB,
+                       .colorspace = V4L2_COLORSPACE_RAW,
                        .field = V4L2_FIELD_NONE,
                        .width = 1296,
                        .height = 972
@@ -698,7 +698,7 @@ static struct ov5647_mode supported_modes_10bit[] = {
        {
                .format = {
                        .code = MEDIA_BUS_FMT_SBGGR10_1X10,
-                       .colorspace = V4L2_COLORSPACE_SRGB,
+                       .colorspace = V4L2_COLORSPACE_RAW,
                        .field = V4L2_FIELD_NONE,
                        .width = 640,
                        .height = 480