[libcamera-devel,v2,5/5] libcamera: pipeline: rkisp1: Set device's flip controls as previously
diff mbox series

Message ID 20221121154421.11732-6-david.plowman@raspberrypi.com
State New
Headers show
Series
  • Resolve invalid attempts to set sensor flip controls
Related show

Commit Message

David Plowman Nov. 21, 2022, 3:44 p.m. UTC
Set the horizontal and vertical flip controls by calling the device's
setTransform method now that this no longer happens in
CameraSensor::init(). The aim here is to preserve the previous
behaviour.

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..f144fabd 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;
 
+	/* Set up the device's horizontal and vertical flips. */
+	sensor->device()->setTransform(c->transform);
+
 	/*
 	 * Configure the format on the sensor output and propagate it through
 	 * the pipeline.