6a026d259a6cb1de48f6a01c8337c864de65ac0e
[openwrt/staging/neocturne.git] /
1 From 083e5464b828cfbcb8c2a38a776267ce575d157d Mon Sep 17 00:00:00 2001
2 From: David Plowman <david.plowman@raspberrypi.com>
3 Date: Thu, 21 Oct 2021 14:45:07 +0100
4 Subject: [PATCH] media: i2c: imx519: 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/imx519.c | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14 --- a/drivers/media/i2c/imx519.c
15 +++ b/drivers/media/i2c/imx519.c
16 @@ -1317,7 +1317,7 @@ static int imx519_enum_frame_size(struct
17
18 static void imx519_reset_colorspace(struct v4l2_mbus_framefmt *fmt)
19 {
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,