summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Kepplinger <martin.kepplinger@puri.sm>2021-09-02 08:44:16 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-09-07 02:11:15 +0300
commit06e53199c2563105030bda4c72752b853da7edc8 (patch)
tree4067cd966c013a266733d5a620a14353ac1389ae
parent8ae20f38bf89fb007c9fd7eeb1e10a1a9c00f40e (diff)
libcamera: Add hi846 camera sensor properties
Add camera sensor properties for the Hynix hi846 sensor. The part is also called YACG4D0C9SHC and a datasheet can be found at https://product.skhynix.com/products/cis/cis.go This is the selfie camera in the Librem 5 phone. Signed-off-by: Martin Kepplinger <martin.kepplinger@puri.sm> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r--src/libcamera/camera_sensor_properties.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/libcamera/camera_sensor_properties.cpp b/src/libcamera/camera_sensor_properties.cpp
index 4ee45e72..39bb282d 100644
--- a/src/libcamera/camera_sensor_properties.cpp
+++ b/src/libcamera/camera_sensor_properties.cpp
@@ -52,6 +52,24 @@ LOG_DEFINE_CATEGORY(CameraSensorProperties)
const CameraSensorProperties *CameraSensorProperties::get(const std::string &sensor)
{
static const std::map<std::string, const CameraSensorProperties> sensorProps = {
+ { "hi846", {
+ .unitCellSize = { 1120, 1120 },
+ .testPatternModes = {
+ { 0, controls::draft::TestPatternModeOff },
+ { 1, controls::draft::TestPatternModeSolidColor },
+ { 2, controls::draft::TestPatternModeColorBars },
+ { 3, controls::draft::TestPatternModeColorBarsFadeToGray },
+ { 4, controls::draft::TestPatternModePn9 },
+ /*
+ * No corresponding test pattern mode for:
+ * 5: "Gradient Horizontal"
+ * 6: "Gradient Vertical"
+ * 7: "Check Board"
+ * 8: "Slant Pattern"
+ * 9: "Resolution Pattern"
+ */
+ },
+ } },
{ "imx219", {
.unitCellSize = { 1120, 1120 },
.testPatternModes = {