[libcamera-devel,6/6] libcamera: pipeline: rkisp1: Set device's flip controls correctly
diff mbox series

Message ID 20221110144556.7858-7-david.plowman@raspberrypi.com
State Superseded
Headers show
Series
  • Resolve invalid attempts to set sensor flip controls
Related show

Commit Message

David Plowman Nov. 10, 2022, 2:45 p.m. UTC
Set the horizontal and vertical flip controls correctly by
calling the device's setTransform method now that this no longer
happens in CameraSensor::init().

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.