[libcamera-devel,3/3] libcamera: pipeline: ipu3: Reset sensor HBLANK control
diff mbox series

Message ID 20221122120343.4825-4-david.plowman@raspberrypi.com
State New
Headers show
Series
  • Resolve invalid attempt to set sensor HBLANK control
Related show

Commit Message

David Plowman Nov. 22, 2022, 12:03 p.m. UTC
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@raspberrypi.com>
---
 src/libcamera/pipeline/ipu3/ipu3.cpp | 3 +++
 1 file changed, 3 insertions(+)

Patch
diff mbox series

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.