From 43312f026e857771485276676e82dacad95bdcf2 Mon Sep 17 00:00:00 2001 From: Jacopo Mondi Date: Tue, 6 Aug 2024 12:46:15 +0200 Subject: ipa: rkisp1: params: Update to v8 https://gitlab.freedesktop.org/linux-media/users/jmondi/-/commits/imx8mp/media-state/extensible-format-v8 Signed-off-by: Jacopo Mondi --- src/ipa/rkisp1/params.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/ipa/rkisp1') 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(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; } -- cgit v1.2.1