OSDN Git Service

media: staging: media: imx: imx7_mipi_csis: Store colorspace in set_fmt as well
authorAlexander Stein <alexander.stein@ew.tq-group.com>
Fri, 11 Feb 2022 14:27:48 +0000 (15:27 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Thu, 17 Feb 2022 09:26:19 +0000 (10:26 +0100)
commita7a52e146d0ec6f9fa45db9472c2024a06f1216c
treed05c01eda4268d759c2d786ac39829beb498fe41
parentabd77889851d2ead0d0c9c4d29f1808801477b00
media: staging: media: imx: imx7_mipi_csis: Store colorspace in set_fmt as well

Without this the default (SMPTE 170M) from init_cfg stays unchanged.
Even after configuring 'srgb' colorspace (or 'raw')
$ media-ctl -V "'csis-32e30000.mipi-csi':0 [colorspace:srgb]"
the colorspace does not change at all:
$ media-ctl --get-v4l2 "'csis-32e30000.mipi-csi':0"
  [fmt:SRGGB10_1X10/1920x1080 field:none colorspace:smpte170m xfer:709
   ycbcr:601 quantization:lim-range]

Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/imx/imx7-mipi-csis.c