diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ipa/rkisp1/params.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ipa/rkisp1/params.cpp b/src/ipa/rkisp1/params.cpp index 3a16e3b3..8fec3d1c 100644 --- a/src/ipa/rkisp1/params.cpp +++ b/src/ipa/rkisp1/params.cpp @@ -105,10 +105,10 @@ void RkISP1ParamsBlockBase::setEnabled(bool enabled) */ struct rkisp1_ext_params_block_header *header = reinterpret_cast<struct rkisp1_ext_params_block_header *>(header_.data()); - header->flags &= ~(RKISP1_EXT_PARAMS_BLOCK_ENABLE | - RKISP1_EXT_PARAMS_BLOCK_DISABLE); - header->flags |= enabled ? RKISP1_EXT_PARAMS_BLOCK_ENABLE - : RKISP1_EXT_PARAMS_BLOCK_DISABLE; + header->flags &= ~(RKISP1_EXT_PARAMS_FL_BLOCK_ENABLE | + RKISP1_EXT_PARAMS_FL_BLOCK_DISABLE); + header->flags |= enabled ? RKISP1_EXT_PARAMS_FL_BLOCK_ENABLE + : RKISP1_EXT_PARAMS_FL_BLOCK_DISABLE; } RkISP1Params::RkISP1Params(uint32_t format, Span<uint8_t> data) |