summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorUmang Jain <umang.jain@ideasonboard.com>2021-07-19 15:27:24 +0530
committerUmang Jain <umang.jain@ideasonboard.com>2021-07-23 22:48:12 +0530
commit48a380b389f32a672f3440b66f93de2eadcec022 (patch)
tree27fc2b97ae7589c4cf0e9ab53331f0353043aa17 /src
parent951df850ad700327d733f0934225e863141663e7 (diff)
libipa: Add CameraSensorHelper for IMX258
Extend the CameraSensorHelper factory with support for the IMX258 sensor found in the Nautilus Chromebook. The values are read by manually tweaking the IMX258 kernel driver. The IMX258 kernel driver hints that the sensor may be compatible with the MIPI CCS specification, as the register set matches. The values for analog gain constants are obtained by reading the register indexes, corresponding to the analog gain constants, as mentioned in MIPI CCS v1.1 specification. The values have further been confirmed by Dave Stevenson as being those specified in the datasheet. Signed-off-by: Umang Jain <umang.jain@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src')
-rw-r--r--src/ipa/libipa/camera_sensor_helper.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ipa/libipa/camera_sensor_helper.cpp b/src/ipa/libipa/camera_sensor_helper.cpp
index 709835a8..c43368df 100644
--- a/src/ipa/libipa/camera_sensor_helper.cpp
+++ b/src/ipa/libipa/camera_sensor_helper.cpp
@@ -295,6 +295,16 @@ public:
};
REGISTER_CAMERA_SENSOR_HELPER("imx219", CameraSensorHelperImx219)
+class CameraSensorHelperImx258 : public CameraSensorHelper
+{
+public:
+ CameraSensorHelperImx258()
+ {
+ analogueGainConstants_ = { AnalogueGainLinear, 0, 512, -1, 512 };
+ }
+};
+REGISTER_CAMERA_SENSOR_HELPER("imx258", CameraSensorHelperImx258)
+
class CameraSensorHelperOv5670 : public CameraSensorHelper
{
public: