[v3,14/16] pipeline: rkisp1: Add more debug logging
diff mbox series

Message ID 20240319120517.362082-15-stefan.klug@ideasonboard.com
State New
Headers show
Series
  • Preparation for per-frame-controls and initial tests
Related show

Commit Message

Stefan Klug March 19, 2024, 12:05 p.m. UTC
Signed-off-by: Stefan Klug <stefan.klug@ideasonboard.com>
---
 src/ipa/rkisp1/algorithms/agc.cpp | 4 ++--
 src/ipa/rkisp1/rkisp1.cpp         | 2 ++
 2 files changed, 4 insertions(+), 2 deletions(-)

Patch
diff mbox series

diff --git a/src/ipa/rkisp1/algorithms/agc.cpp b/src/ipa/rkisp1/algorithms/agc.cpp
index 47a6f7b2..f737ba92 100644
--- a/src/ipa/rkisp1/algorithms/agc.cpp
+++ b/src/ipa/rkisp1/algorithms/agc.cpp
@@ -125,14 +125,14 @@  void Agc::queueRequest(IPAContext &context,
 				    / context.configuration.sensor.lineDuration;
 
 		LOG(RkISP1Agc, Debug)
-			<< "Set exposure to " << agc.manual.exposure;
+			<< "Set manual exposure to " << agc.manual.exposure;
 	}
 
 	const auto &gain = controls.get(controls::AnalogueGain);
 	if (gain && !agc.autoEnabled) {
 		agc.manual.gain = *gain;
 
-		LOG(RkISP1Agc, Debug) << "Set gain to " << agc.manual.gain;
+		LOG(RkISP1Agc, Debug) << "Set manual gain to " << agc.manual.gain;
 	}
 
 	frameContext.agc.autoEnabled = agc.autoEnabled;
diff --git a/src/ipa/rkisp1/rkisp1.cpp b/src/ipa/rkisp1/rkisp1.cpp
index 44d03eb8..6bc09198 100644
--- a/src/ipa/rkisp1/rkisp1.cpp
+++ b/src/ipa/rkisp1/rkisp1.cpp
@@ -314,6 +314,7 @@  void IPARkISP1::unmapBuffers(const std::vector<unsigned int> &ids)
 void IPARkISP1::queueRequest(const uint32_t frame, const ControlList &controls)
 {
 	IPAFrameContext &frameContext = context_.frameContexts.alloc(frame);
+	LOG(IPARkISP1, Debug) << "queueRequest: " << frame;
 
 	for (auto const &a : algorithms()) {
 		Algorithm *algo = static_cast<Algorithm *>(a.get());
@@ -354,6 +355,7 @@  void IPARkISP1::processStatsBuffer(const uint32_t frame, const uint32_t bufferId
 		stats = reinterpret_cast<rkisp1_stat_buffer *>(
 			mappedBuffers_.at(bufferId).planes()[0].data());
 
+	LOG(IPARkISP1, Debug) << "processStatsBuffer for frame " << frame;
 	frameContext.sensor.exposure =
 		sensorControls.get(V4L2_CID_EXPOSURE).get<int32_t>();
 	frameContext.sensor.gain =