[libcamera-devel,v2,3/3] ipa: raspberrypi: Rename vblank field in SensorConfig to vblankDelay
diff mbox series

Message ID 20210308223939.2088-4-david.plowman@raspberrypi.com
State Accepted
Headers show
Series
  • Raspberry Pi support for new sensors
Related show

Commit Message

David Plowman March 8, 2021, 10:39 p.m. UTC
The name vblankDelay is clearer.

Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
---
 include/libcamera/ipa/raspberrypi.mojom            | 2 +-
 src/ipa/raspberrypi/raspberrypi.cpp                | 2 +-
 src/libcamera/pipeline/raspberrypi/raspberrypi.cpp | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

Patch
diff mbox series

diff --git a/include/libcamera/ipa/raspberrypi.mojom b/include/libcamera/ipa/raspberrypi.mojom
index f733a2cd..c3d614b8 100644
--- a/include/libcamera/ipa/raspberrypi.mojom
+++ b/include/libcamera/ipa/raspberrypi.mojom
@@ -22,7 +22,7 @@  enum ConfigOutputParameters {
 struct SensorConfig {
 	uint32 gainDelay;
 	uint32 exposureDelay;
-	uint32 vblank;
+	uint32 vblankDelay;
 	uint32 sensorMetadata;
 };
 
diff --git a/src/ipa/raspberrypi/raspberrypi.cpp b/src/ipa/raspberrypi/raspberrypi.cpp
index 741bff4c..85a2b846 100644
--- a/src/ipa/raspberrypi/raspberrypi.cpp
+++ b/src/ipa/raspberrypi/raspberrypi.cpp
@@ -349,7 +349,7 @@  void IPARPi::configure(const CameraSensorInfo &sensorInfo,
 		result->params |= ipa::RPi::ConfigSensorParams;
 		result->sensorConfig.gainDelay = gainDelay;
 		result->sensorConfig.exposureDelay = exposureDelay;
-		result->sensorConfig.vblank = vblankDelay;
+		result->sensorConfig.vblankDelay = vblankDelay;
 		result->sensorConfig.sensorMetadata = sensorMetadata;
 	}
 
diff --git a/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp b/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp
index db91f1b5..6387fae5 100644
--- a/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp
+++ b/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp
@@ -1266,7 +1266,7 @@  int RPiCameraData::configureIPA(const CameraConfiguration *config)
 		std::unordered_map<uint32_t, unsigned int> delays = {
 			{ V4L2_CID_ANALOGUE_GAIN, result.sensorConfig.gainDelay },
 			{ V4L2_CID_EXPOSURE, result.sensorConfig.exposureDelay },
-			{ V4L2_CID_VBLANK, result.sensorConfig.vblank }
+			{ V4L2_CID_VBLANK, result.sensorConfig.vblankDelay }
 		};
 
 		delayedCtrls_ = std::make_unique<DelayedControls>(unicam_[Unicam::Image].dev(), delays);