]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
media: i2c: ov5647: Sensor should report RAW color space
authorDavid Plowman <david.plowman@raspberrypi.com>
Mon, 22 Dec 2025 08:15:28 +0000 (13:45 +0530)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Wed, 14 Jan 2026 22:33:03 +0000 (23:33 +0100)
As this sensor captures RAW bayer frames, the colorspace should be
V4L2_COLORSPACE_RAW instead of SRGB.

Fixes: a8df5af695a1 ("media: ov5647: Add SGGBR10_1X10 modes")
Cc: stable@vger.kernel.org
Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Signed-off-by: Jai Luthra <jai.luthra@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/i2c/ov5647.c

index 191954497e3dba4b1de4094b2ea1328a6e287003..c0f1121b025e5592d6fd4d5fd23e4262dde2d84c 100644 (file)
@@ -508,7 +508,7 @@ static const struct ov5647_mode ov5647_modes[] = {
        {
                .format = {
                        .code           = MEDIA_BUS_FMT_SBGGR10_1X10,
-                       .colorspace     = V4L2_COLORSPACE_SRGB,
+                       .colorspace     = V4L2_COLORSPACE_RAW,
                        .field          = V4L2_FIELD_NONE,
                        .width          = 2592,
                        .height         = 1944
@@ -529,7 +529,7 @@ static const struct ov5647_mode ov5647_modes[] = {
        {
                .format = {
                        .code           = MEDIA_BUS_FMT_SBGGR10_1X10,
-                       .colorspace     = V4L2_COLORSPACE_SRGB,
+                       .colorspace     = V4L2_COLORSPACE_RAW,
                        .field          = V4L2_FIELD_NONE,
                        .width          = 1920,
                        .height         = 1080
@@ -550,7 +550,7 @@ static const struct ov5647_mode ov5647_modes[] = {
        {
                .format = {
                        .code           = MEDIA_BUS_FMT_SBGGR10_1X10,
-                       .colorspace     = V4L2_COLORSPACE_SRGB,
+                       .colorspace     = V4L2_COLORSPACE_RAW,
                        .field          = V4L2_FIELD_NONE,
                        .width          = 1296,
                        .height         = 972
@@ -571,7 +571,7 @@ static const struct ov5647_mode ov5647_modes[] = {
        {
                .format = {
                        .code           = MEDIA_BUS_FMT_SBGGR10_1X10,
-                       .colorspace     = V4L2_COLORSPACE_SRGB,
+                       .colorspace     = V4L2_COLORSPACE_RAW,
                        .field          = V4L2_FIELD_NONE,
                        .width          = 640,
                        .height         = 480