25 lines
850 B
Diff
25 lines
850 B
Diff
From 257c415d35c2941855b8429bff591487551e8678 Mon Sep 17 00:00:00 2001
|
|
From: David Plowman <david.plowman@raspberrypi.com>
|
|
Date: Thu, 21 Oct 2021 14:44:01 +0100
|
|
Subject: [PATCH] media: i2c: imx290: Sensor should report RAW color
|
|
space
|
|
|
|
Tested on Raspberry Pi running libcamera.
|
|
|
|
Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
|
|
---
|
|
drivers/media/i2c/imx290.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- a/drivers/media/i2c/imx290.c
|
|
+++ b/drivers/media/i2c/imx290.c
|
|
@@ -885,7 +885,7 @@ static int imx290_set_fmt(struct v4l2_su
|
|
|
|
fmt->format.code = imx290->formats[i].code;
|
|
fmt->format.field = V4L2_FIELD_NONE;
|
|
- fmt->format.colorspace = V4L2_COLORSPACE_SRGB;
|
|
+ fmt->format.colorspace = V4L2_COLORSPACE_RAW;
|
|
fmt->format.ycbcr_enc =
|
|
V4L2_MAP_YCBCR_ENC_DEFAULT(fmt->format.colorspace);
|
|
fmt->format.quantization =
|