![Álvaro Fernández Rojas](/assets/img/avatar_default.png)
Build system: x86_64 Build-tested: bcm2708, bcm2709, bcm2710, bcm2711 Run-tested: bcm2708/RPiB+, bcm2709/RPi3B, bcm2710/RPi3B, bcm2711/RPi4B Signed-off-by: Marty Jones <mj8263788@gmail.com> Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
52 lines
1.5 KiB
Diff
52 lines
1.5 KiB
Diff
From e3f8ed2721c6de37fa72e596cc956fc06d479473 Mon Sep 17 00:00:00 2001
|
|
From: David Plowman <david.plowman@raspberrypi.com>
|
|
Date: Thu, 21 Oct 2021 14:47:00 +0100
|
|
Subject: [PATCH] media: i2c: ov5647: Sensor should report RAW color
|
|
space
|
|
|
|
Tested on Raspberry Pi running libcamera.
|
|
|
|
Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
|
|
---
|
|
drivers/media/i2c/ov5647.c | 8 ++++----
|
|
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
|
|
--- a/drivers/media/i2c/ov5647.c
|
|
+++ b/drivers/media/i2c/ov5647.c
|
|
@@ -494,7 +494,7 @@ static const struct ov5647_mode ov5647_m
|
|
{
|
|
.format = {
|
|
.code = MEDIA_BUS_FMT_SBGGR10_1X10,
|
|
- .colorspace = V4L2_COLORSPACE_SRGB,
|
|
+ .colorspace = V4L2_COLORSPACE_RAW,
|
|
.field = V4L2_FIELD_NONE,
|
|
.width = 2592,
|
|
.height = 1944
|
|
@@ -515,7 +515,7 @@ static const struct ov5647_mode ov5647_m
|
|
{
|
|
.format = {
|
|
.code = MEDIA_BUS_FMT_SBGGR10_1X10,
|
|
- .colorspace = V4L2_COLORSPACE_SRGB,
|
|
+ .colorspace = V4L2_COLORSPACE_RAW,
|
|
.field = V4L2_FIELD_NONE,
|
|
.width = 1920,
|
|
.height = 1080
|
|
@@ -536,7 +536,7 @@ static const struct ov5647_mode ov5647_m
|
|
{
|
|
.format = {
|
|
.code = MEDIA_BUS_FMT_SBGGR10_1X10,
|
|
- .colorspace = V4L2_COLORSPACE_SRGB,
|
|
+ .colorspace = V4L2_COLORSPACE_RAW,
|
|
.field = V4L2_FIELD_NONE,
|
|
.width = 1296,
|
|
.height = 972
|
|
@@ -557,7 +557,7 @@ static const struct ov5647_mode ov5647_m
|
|
{
|
|
.format = {
|
|
.code = MEDIA_BUS_FMT_SBGGR10_1X10,
|
|
- .colorspace = V4L2_COLORSPACE_SRGB,
|
|
+ .colorspace = V4L2_COLORSPACE_RAW,
|
|
.field = V4L2_FIELD_NONE,
|
|
.width = 640,
|
|
.height = 480
|