summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ipa/rkisp1/params.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ipa/rkisp1/params.cpp b/src/ipa/rkisp1/params.cpp
index 9a619ef8..3a16e3b3 100644
--- a/src/ipa/rkisp1/params.cpp
+++ b/src/ipa/rkisp1/params.cpp
@@ -105,7 +105,9 @@ void RkISP1ParamsBlockBase::setEnabled(bool enabled)
*/
struct rkisp1_ext_params_block_header *header =
reinterpret_cast<struct rkisp1_ext_params_block_header *>(header_.data());
- header->enable = enabled ? RKISP1_EXT_PARAMS_BLOCK_ENABLE
+ 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;
}