c63a136ac90f08f8f2c74c43e7747379c7a55d4c
[openwrt/staging/neocturne.git] /
1 From 6af6b6388de431727161a40770f69c028bff5eb3 Mon Sep 17 00:00:00 2001
2 From: David Plowman <david.plowman@raspberrypi.com>
3 Date: Thu, 21 Oct 2021 14:41:55 +0100
4 Subject: [PATCH] media: i2c: imx219: Sensor should report RAW color
5 space
6
7 Tested on Raspberry Pi running libcamera.
8
9 Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
10 ---
11 drivers/media/i2c/imx219.c | 4 ++--
12 1 file changed, 2 insertions(+), 2 deletions(-)
13
14 --- a/drivers/media/i2c/imx219.c
15 +++ b/drivers/media/i2c/imx219.c
16 @@ -584,7 +584,7 @@ static void imx219_set_default_format(st
17
18 fmt = &imx219->fmt;
19 fmt->code = MEDIA_BUS_FMT_SRGGB10_1X10;
20 - fmt->colorspace = V4L2_COLORSPACE_SRGB;
21 + fmt->colorspace = V4L2_COLORSPACE_RAW;
22 fmt->ycbcr_enc = V4L2_MAP_YCBCR_ENC_DEFAULT(fmt->colorspace);
23 fmt->quantization = V4L2_MAP_QUANTIZATION_DEFAULT(true,
24 fmt->colorspace,
25 @@ -754,7 +754,7 @@ static int imx219_enum_frame_size(struct
26
27 static void imx219_reset_colorspace(struct v4l2_mbus_framefmt *fmt)
28 {
29 - fmt->colorspace = V4L2_COLORSPACE_SRGB;
30 + fmt->colorspace = V4L2_COLORSPACE_RAW;
31 fmt->ycbcr_enc = V4L2_MAP_YCBCR_ENC_DEFAULT(fmt->colorspace);
32 fmt->quantization = V4L2_MAP_QUANTIZATION_DEFAULT(true,
33 fmt->colorspace,