25 lines
863 B
Diff
25 lines
863 B
Diff
From 6a0b7fefa963ad413f6b4554138aac9107995daf Mon Sep 17 00:00:00 2001
|
|
From: David Plowman <david.plowman@raspberrypi.com>
|
|
Date: Thu, 21 Oct 2021 14:44:43 +0100
|
|
Subject: [PATCH] media: i2c: imx477: Sensor should report RAW color
|
|
space
|
|
|
|
Tested on Raspberry Pi running libcamera.
|
|
|
|
Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
|
|
---
|
|
drivers/media/i2c/imx477.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- a/drivers/media/i2c/imx477.c
|
|
+++ b/drivers/media/i2c/imx477.c
|
|
@@ -1471,7 +1471,7 @@ static int imx477_enum_frame_size(struct
|
|
|
|
static void imx477_reset_colorspace(struct v4l2_mbus_framefmt *fmt)
|
|
{
|
|
- fmt->colorspace = V4L2_COLORSPACE_SRGB;
|
|
+ fmt->colorspace = V4L2_COLORSPACE_RAW;
|
|
fmt->ycbcr_enc = V4L2_MAP_YCBCR_ENC_DEFAULT(fmt->colorspace);
|
|
fmt->quantization = V4L2_MAP_QUANTIZATION_DEFAULT(true,
|
|
fmt->colorspace,
|