sensor: Add static properties for OV08X40
diff mbox series

Message ID 0fac6c52-6c6c-42a7-8ad4-8061d315a8ee@gmail.com
State New
Headers show
Series
  • sensor: Add static properties for OV08X40
Related show

Commit Message

Oleg Mikheev Aug. 30, 2026, 1:52 a.m. UTC
Adding the missing static sensor properties for the OV08X40 front camera
(0.7um OV08X, front cameras on Intel Meteor Lake laptops). Full report 
on the
now-working IPU6 + ov08x40 setup (kernel 7.2, libcamera, v4l2-compat shim in
Firefox/Zoom): https://gitlab.freedesktop.org/camera/libcamera/-/issues/237
Same change as branch ov08x40-properties in fork omikheev/libcamera,
commit 51a7a5c.

 From 51a7a5c90f5ae98e1aaf4bebdb06475c44368cb2 Mon Sep 17 00:00:00 2001
From: Oleg Mikheev <omikheev@gmail.com>
Date: Thu, 27 Aug 2026 21:51:15 -0400
Subject: [PATCH] sensor: Add static properties for OV08X40

The OV08X40 9.2MP sensor (0.7um pixel, front-facing camera on
multiple Intel Meteor Lake laptop platforms) has no static sensor
properties, so libcamera falls back to generic defaults (including
an unverified unit cell size) for its AEC/AWB computation.

Add the unit cell size (700nm, per the OVT OV08X product spec) and
the test pattern modes matching the in-tree ov08x40 driver's
test_pattern control (0 = Off, 1 = Color Bars,
2 = Color Bars Fade To Gray).

Signed-off-by: Oleg Mikheev <omikheev@gmail.com>
---
  src/libcamera/sensor/camera_sensor_properties.cpp | 13 +++++++++++++
  1 file changed, 13 insertions(+)

  			.testPatternModes = {

Patch
diff mbox series

diff --git a/src/libcamera/sensor/camera_sensor_properties.cpp 
b/src/libcamera/sensor/camera_sensor_properties.cpp
index 819f07b..fab8f7c 100644
--- a/src/libcamera/sensor/camera_sensor_properties.cpp
+++ b/src/libcamera/sensor/camera_sensor_properties.cpp
@@ -389,6 +389,19 @@  const CameraSensorProperties 
*CameraSensorProperties::get(const std::string &sen
  				.hblankDelay = 2
  			},
  		} },
+		{ "ov08x40", {
+			.unitCellSize = { 700, 700 },
+			.testPatternModes = {
+				{ controls::draft::TestPatternModeOff, 0 },
+				{ controls::draft::TestPatternModeColorBars, 1 },
+				{ controls::draft::TestPatternModeColorBarsFadeToGray, 2 },
+				/*
+				 * No corresponding test pattern mode for:
+				 * 3: "Vertical Color Bar Type 3",
+				 * 4: "Vertical Color Bar Type 4"
+				 */
+			},
+		} },
  		{ "ov2685", {
  			.unitCellSize = { 1750, 1750 },