[libcamera-devel] [PATCH 3/3] libcamera: pipeline: ipu3: Reset sensor HBLANK control

David Plowman david.plowman at raspberrypi.com
Tue Nov 22 13:03:43 CET 2022


Resetting the sensor's HBLANK to its minimum value is no longer
performed for us, so the pipeline handler must call the helper method
to do it.

Signed-off-by: David Plowman <david.plowman at raspberrypi.com>
---
 src/libcamera/pipeline/ipu3/ipu3.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/libcamera/pipeline/ipu3/ipu3.cpp b/src/libcamera/pipeline/ipu3/ipu3.cpp
index e4d79ea4..47ec6bd0 100644
--- a/src/libcamera/pipeline/ipu3/ipu3.cpp
+++ b/src/libcamera/pipeline/ipu3/ipu3.cpp
@@ -566,6 +566,9 @@ int PipelineHandlerIPU3::configure(Camera *camera, CameraConfiguration *c)
 	if (ret)
 		return ret;
 
+	/* Reset the horizontal blanking to minimum in case it has changed. */
+	cio2->sensor()->resetHblank();
+
 	/*
 	 * Pass the requested stream size to the CIO2 unit and get back the
 	 * adjusted format to be propagated to the ImgU output devices.
-- 
2.30.2



More information about the libcamera-devel mailing list