From: Dave Stevenson Date: Wed, 15 Feb 2023 22:29:52 +0000 (+0100) Subject: media: i2c: imx290: Set the colorspace fields in the format X-Git-Tag: v6.4-rc1~161^2~392 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=077d1b328d610f596cea0bfe6d1033fd2cb9e0be;p=thirdparty%2Flinux.git media: i2c: imx290: Set the colorspace fields in the format The colorspace fields were left untouched in imx290_set_fmt which lead to a v4l2-compliance failure. Signed-off-by: Dave Stevenson Signed-off-by: Laurent Pinchart Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/i2c/imx290.c b/drivers/media/i2c/imx290.c index 8b6e316c18b2b..a4a87472eb2e5 100644 --- a/drivers/media/i2c/imx290.c +++ b/drivers/media/i2c/imx290.c @@ -922,6 +922,10 @@ static int imx290_set_fmt(struct v4l2_subdev *sd, fmt->format.code = imx290_formats[0].code[imx290->model->colour_variant]; fmt->format.field = V4L2_FIELD_NONE; + fmt->format.colorspace = V4L2_COLORSPACE_RAW; + fmt->format.ycbcr_enc = V4L2_YCBCR_ENC_601; + fmt->format.quantization = V4L2_QUANTIZATION_FULL_RANGE; + fmt->format.xfer_func = V4L2_XFER_FUNC_NONE; format = v4l2_subdev_get_pad_format(sd, sd_state, 0);