media: rkisp1: Initialize color space on resizer sink and source pads
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 12 Aug 2022 22:44:14 +0000 (00:44 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sat, 24 Sep 2022 06:37:49 +0000 (08:37 +0200)
commit83b9296e399367862845d3b19984444fc756bd61
tree99908e70cf359f2774d1e4c3ae8ec1b3c9fc5bae
parentf7aa2d234377c8e69bfcc52d7384b784ab513460
media: rkisp1: Initialize color space on resizer sink and source pads

Initialize the four color space fields on the sink and source video pads
of the resizer in the .init_cfg() operation. The resizer can't perform
any color space conversion, so set the sink and source color spaces to
the same defaults, which match the ISP source video pad default.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Reviewed-by: Dafna Hirschfeld <dafna@fastmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/rockchip/rkisp1/rkisp1-resizer.c