[libcamera-devel] [PATCH v2 2/4] libcamera: camera_sensor: Set default sensor location to Unknown
Paul Elder
paul.elder at ideasonboard.com
Fri Feb 12 06:48:14 CET 2021
Instead of choosing some arbitrary location for the sensor when its
location is unknown, set it explicitly to unknown.
Signed-off-by: Paul Elder <paul.elder at ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham at ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
---
No change in v2
---
src/libcamera/camera_sensor.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libcamera/camera_sensor.cpp b/src/libcamera/camera_sensor.cpp
index c9e8d49b..474055ba 100644
--- a/src/libcamera/camera_sensor.cpp
+++ b/src/libcamera/camera_sensor.cpp
@@ -446,7 +446,7 @@ int CameraSensor::initProperties()
break;
}
} else {
- propertyValue = properties::CameraLocationExternal;
+ propertyValue = properties::CameraLocationUnknown;
}
properties_.set(properties::Location, propertyValue);
--
2.27.0
More information about the libcamera-devel
mailing list