ipa: rpi: cam_helper: Set IMX477 mistrustMetadataStartup to 0
diff mbox series

Message ID 20260907090120.2249140-1-naush@raspberrypi.com
State New
Headers show
Series
  • ipa: rpi: cam_helper: Set IMX477 mistrustMetadataStartup to 0
Related show

Commit Message

Naushir Patuck Sept. 7, 2026, 9:01 a.m. UTC
Override the default value of 1 for mistrustMetadataStartup. This has
been emprically validated.

Bug: https://github.com/raspberrypi/rpicam-apps/issues/929
Fixes: 93bed4da915c ("ipa: rpi: Gate CamHelper::prepare() by the mistrust count")
Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
---
 src/ipa/rpi/cam_helper/cam_helper_imx477.cpp | 6 ++++++
 1 file changed, 6 insertions(+)

Patch
diff mbox series

diff --git a/src/ipa/rpi/cam_helper/cam_helper_imx477.cpp b/src/ipa/rpi/cam_helper/cam_helper_imx477.cpp
index dfc0f602e23b..3f2c93c4011f 100644
--- a/src/ipa/rpi/cam_helper/cam_helper_imx477.cpp
+++ b/src/ipa/rpi/cam_helper/cam_helper_imx477.cpp
@@ -52,6 +52,7 @@  public:
 	std::pair<uint32_t, uint32_t> getBlanking(Duration &exposure, Duration minFrameDuration,
 						  Duration maxFrameDuration) const override;
 	bool sensorEmbeddedDataPresent() const override;
+	unsigned int mistrustMetadataStartup() const override;
 
 private:
 	/*
@@ -162,6 +163,11 @@  bool CamHelperImx477::sensorEmbeddedDataPresent() const
 	return true;
 }
 
+unsigned int CamHelperImx477::mistrustMetadataStartup() const
+{
+	return 0;
+}
+
 void CamHelperImx477::populateMetadata(const MdParser::RegisterMap &registers,
 				       Metadata &metadata) const
 {