mirror of
https://github.com/torvalds/linux.git
synced 2026-09-13 15:40:03 +02:00
media: rppx1: describe the MAIN_POST white balance gains block
rppx1_ext_params_blocks_info[] is indexed by block type and is built with designated initialisers, so a block type without an entry is left as a zero-sized hole. RPPX1_PARAMS_BLOCK_TYPE_AWBG_POST is the only such hole: a block reporting that type and a size of zero passes v4l2_isp_params_validate_buffer(), which then has nothing to advance the walk with. Describe the block, so the array covers all block types the uAPI defines. The MAIN_POST white balance gains module is probed and started with the rest of the POST pipe, and RPPX1_PARAMS_MAX_SIZE already reserves room for all three white balance gains blocks. The block is not dispatched by rppx1_params(), in line with the other described blocks that have no users yet. Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com> Signed-off-by: Linmao Li <lilinmao@kylinos.cn> Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
This commit is contained in:
parent
cee9395acd
commit
a1530ef451
|
|
@ -25,6 +25,7 @@ rppx1_ext_params_blocks_info[] = {
|
|||
RPPX1_PARAMS_BLOCK_INFO(LSC_PRE2, lsc),
|
||||
RPPX1_PARAMS_BLOCK_INFO(AWBG_PRE1, awbg),
|
||||
RPPX1_PARAMS_BLOCK_INFO(AWBG_PRE2, awbg),
|
||||
RPPX1_PARAMS_BLOCK_INFO(AWBG_POST, awbg),
|
||||
RPPX1_PARAMS_BLOCK_INFO(CCOR_POST, ccor),
|
||||
RPPX1_PARAMS_BLOCK_INFO(HIST_PRE1, hist),
|
||||
RPPX1_PARAMS_BLOCK_INFO(HIST_PRE2, hist),
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user