[2/4] libcamera: camera_sensor_properties: Add OV9734
diff mbox series

Message ID 20261105230708.14601-3-afonso.figuinha@gmail.com
State New
Headers show
Series
  • Support the OV9734 on the IPU3 (Surface Laptop 1)
Related show

Commit Message

Afonso Figuinha Nov. 5, 2026, 11:07 p.m. UTC
Add the OmniVision OV9734 to the camera sensor properties database.
The pixel size is 1.4 um x 1.4 um according to the OmniVision product
brief. The Linux driver exposes five test patterns. Only "Disabled"
and "Standard Color Bar" have a matching libcamera test pattern mode.

The change and this description were drafted with an AI coding
assistant (Claude Code, model Claude Opus 5.5). The author reviewed
them and tested them on a Microsoft Surface Laptop 1.

Signed-off-by: Afonso Figuinha <afonso.figuinha@gmail.com>
---
 src/libcamera/sensor/camera_sensor_properties.cpp | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

Patch
diff mbox series

diff --git a/src/libcamera/sensor/camera_sensor_properties.cpp b/src/libcamera/sensor/camera_sensor_properties.cpp
index 20cfd0bc..33f1ab7c 100644
--- a/src/libcamera/sensor/camera_sensor_properties.cpp
+++ b/src/libcamera/sensor/camera_sensor_properties.cpp
@@ -553,6 +553,20 @@  const CameraSensorProperties *CameraSensorProperties::get(const std::string &sen
 			},
 			.sensorDelays = { },
 		} },
+		{ "ov9734", {
+			.unitCellSize = { 1400, 1400 },
+			.testPatternModes = {
+				{ controls::draft::TestPatternModeOff, 0 },
+				{ controls::draft::TestPatternModeColorBars, 1 },
+				/*
+				 * No corresponding test pattern mode for:
+				 * 2: "Top-Bottom Darker Color Bar"
+				 * 3: "Right-Left Darker Color Bar"
+				 * 4: "Bottom-Top Darker Color Bar"
+				 */
+			},
+			.sensorDelays = { },
+		} },
 		{ "ov9281", {
 			.unitCellSize = { 3000, 3000 },
 			.testPatternModes =  { },