summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo.mondi@ideasonboard.com>2024-08-06 12:46:15 +0200
committerJacopo Mondi <jacopo.mondi@ideasonboard.com>2024-08-06 12:51:07 +0200
commit43312f026e857771485276676e82dacad95bdcf2 (patch)
tree244a95bbd596ffb2d90af059efe57198c78b49f8
parent755539956e21f3456f30dd2ba57fbbb37e31abb9 (diff)
ipa: rkisp1: params: Update to v8imx8mp/extensible-format-v8
https://gitlab.freedesktop.org/linux-media/users/jmondi/-/commits/imx8mp/media-state/extensible-format-v8 Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
-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;
}