ipa: simple: Initialize ccmEnabled to false

ccmEnabled variable is not initialized by default, which results in
usage of CCM when the algorithm itself is not enabled and configured.

The bug manifests itself as seldom reproducible corrupted video stream.
Fix by initialize ccmEnabled member where it is declared.

Reviewed-by: Milan Zamazal <mzamazal@redhat.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Fixes: ac30686556 ("libcamera: software_isp: Track whether CCM is enabled")
Signed-off-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
Stanislaw Gruszka 2025-04-02 09:31:33 +02:00 committed by Kieran Bingham
parent 8b2533d0ac
commit 7cd8818da8

View file

@ -93,7 +93,7 @@ struct IPAContext {
IPAActiveState activeState; IPAActiveState activeState;
FCQueue<IPAFrameContext> frameContexts; FCQueue<IPAFrameContext> frameContexts;
ControlInfoMap::Map ctrlMap; ControlInfoMap::Map ctrlMap;
bool ccmEnabled; bool ccmEnabled = false;
}; };
} /* namespace ipa::soft */ } /* namespace ipa::soft */