summaryrefslogtreecommitdiff
path: root/src/ipa/mali-c55/mali-c55.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ipa/mali-c55/mali-c55.cpp')
-rw-r--r--src/ipa/mali-c55/mali-c55.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ipa/mali-c55/mali-c55.cpp b/src/ipa/mali-c55/mali-c55.cpp
index e332c7a7..c6941a95 100644
--- a/src/ipa/mali-c55/mali-c55.cpp
+++ b/src/ipa/mali-c55/mali-c55.cpp
@@ -193,6 +193,16 @@ void IPAMaliC55::updateSessionConfiguration(const IPACameraSensorInfo &info,
context_.configuration.agc.defaultExposure = defExposure;
context_.configuration.agc.minAnalogueGain = camHelper_->gain(minGain);
context_.configuration.agc.maxAnalogueGain = camHelper_->gain(maxGain);
+
+ if (camHelper_->blackLevel().has_value()) {
+ /*
+ * The black level from CameraSensorHelper is a 16-bit value.
+ * The Mali-C55 ISP expects 20-bit settings, so we shift it to
+ * the appropriate width
+ */
+ context_.configuration.sensor.blackLevel =
+ camHelper_->blackLevel().value() << 4;
+ }
}
void IPAMaliC55::updateControls(const IPACameraSensorInfo &sensorInfo,