[PATCH] ipa: rkisp1: agc: Fix build on debian 11 (gcc-9)
Stefan Klug
stefan.klug at ideasonboard.com
Tue Feb 11 18:20:56 CET 2025
Apparently not every compiler is able to deduce types the same way. Fix
compile on gcc-9 by explicitly specifying the type.
Fixes: ee918b370a08 ("ipa: rkisp1: agc: Initialize enum controls with a list of values")
Signed-off-by: Stefan Klug <stefan.klug at ideasonboard.com>
---
Hi all,
Unfortunately I broke the CI build of mainline :-(. This patch fixes it.
A corresponding CI run is here:
https://gitlab.freedesktop.org/camera/libcamera/-/pipelines/1362476
Best regards,
Stefan
src/ipa/rkisp1/algorithms/agc.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/ipa/rkisp1/algorithms/agc.cpp b/src/ipa/rkisp1/algorithms/agc.cpp
index e7c6de757593..45ec72188b3a 100644
--- a/src/ipa/rkisp1/algorithms/agc.cpp
+++ b/src/ipa/rkisp1/algorithms/agc.cpp
@@ -151,11 +151,11 @@ int Agc::init(IPAContext &context, const YamlObject &tuningData)
context.ctrlMap[&controls::ExposureTimeMode] =
ControlInfo({ { ControlValue(controls::ExposureTimeModeAuto),
ControlValue(controls::ExposureTimeModeManual) } },
- controls::ExposureTimeModeAuto);
+ ControlValue(controls::ExposureTimeModeAuto));
context.ctrlMap[&controls::AnalogueGainMode] =
ControlInfo({ { ControlValue(controls::AnalogueGainModeAuto),
ControlValue(controls::AnalogueGainModeManual) } },
- controls::AnalogueGainModeAuto);
+ ControlValue(controls::AnalogueGainModeAuto));
/* \todo Move this to the Camera class */
context.ctrlMap[&controls::AeEnable] = ControlInfo(false, true, true);
context.ctrlMap.merge(controls());
--
2.43.0
More information about the libcamera-devel
mailing list