media: i2c: ov5647: Sensor should report RAW color space

Tested on Raspberry Pi running libcamera.

Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
This commit is contained in:
David Plowman
2021-10-21 14:47:00 +01:00
committed by Dom Cobley
parent 9fce87e824
commit aadd10fe55

View File

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