]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: rkisp1: Implement extensible params support
authorJacopo Mondi <jacopo.mondi@ideasonboard.com>
Thu, 8 Aug 2024 20:40:59 +0000 (22:40 +0200)
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 14 Aug 2024 13:42:53 +0000 (16:42 +0300)
commit6c53a7b68c5d2a1dd4e8df52f01d75072ebc13bc
tree311dd188699eba82cc326c1397f1c56fb98ece09
parent16398399b62bee12a4bdfbc51f432243e41537f7
media: rkisp1: Implement extensible params support

Implement support in rkisp1-params for the extensible configuration
parameters format.

Create a list of handlers for each ISP block that wraps the existing
configuration functions and handles the ISP block enablement.

Parse the configuration parameters buffer in rkisp1_ext_params_config
and filter the enable blocks by group, to allow setting the 'other'
groups separately from the 'lsc' group to support the pre/post-configure
operations.

Implement parameter buffer validation for the extensible format at
.buf_prepare() time.

Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Tested-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
drivers/media/platform/rockchip/rkisp1/rkisp1-common.h
drivers/media/platform/rockchip/rkisp1/rkisp1-params.c