[PATCH] Add libipa camera sensor helper support for Sony IMX208 sensor

Petar Lishov peter.lishov at gmail.com
Sun Apr 6 21:15:49 CEST 2025


Added imx208 camera sensor helper to libipa and tested on a
Google Pixelbook Go (Atlas) running barebones Fedora 41 with
stock kernel (6.11.4) which has an Intel IPU3 and Sony IMX208.

Camera sensor parameters were taken from Sony IMX214 parameters
in the same file, so they are not backed by a sensor datasheet
and may be slightly inaccurate.
---
 src/ipa/libipa/camera_sensor_helper.cpp | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/src/ipa/libipa/camera_sensor_helper.cpp b/src/ipa/libipa/camera_sensor_helper.cpp
index 7c66cd57..5580a530 100644
--- a/src/ipa/libipa/camera_sensor_helper.cpp
+++ b/src/ipa/libipa/camera_sensor_helper.cpp
@@ -497,6 +497,18 @@ public:
 };
 REGISTER_CAMERA_SENSOR_HELPER("gc08a3", CameraSensorHelperGc08a3)
 
+class CameraSensorHelperImx208 : public CameraSensorHelper
+{
+public:
+	CameraSensorHelperImx208()
+	{
+		// These values are pure guesses, datasheet yet to be found
+		blackLevel_ = 4096;
+		gain_ = AnalogueGainLinear{ 0, 512, -1, 512 };
+	}
+};
+REGISTER_CAMERA_SENSOR_HELPER("imx208", CameraSensorHelperImx208)
+
 class CameraSensorHelperImx214 : public CameraSensorHelper
 {
 public:
-- 
2.49.0



More information about the libcamera-devel mailing list