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

Message ID 20221122120343.4825-3-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/rkisp1/rkisp1.cpp | 3 +++
 1 file changed, 3 insertions(+)

Patch
diff mbox series

diff --git a/src/libcamera/pipeline/rkisp1/rkisp1.cpp b/src/libcamera/pipeline/rkisp1/rkisp1.cpp
index 3d3a7086..4163cc27 100644
--- a/src/libcamera/pipeline/rkisp1/rkisp1.cpp
+++ b/src/libcamera/pipeline/rkisp1/rkisp1.cpp
@@ -632,6 +632,9 @@  int PipelineHandlerRkISP1::configure(Camera *camera, CameraConfiguration *c)
 	if (ret)
 		return ret;
 
+	/* Reset the horizontal blanking to minimum in case it has changed. */
+	sensor->resetHblank();
+
 	/*
 	 * Configure the format on the sensor output and propagate it through
 	 * the pipeline.