[libcamera-devel] [PATCH v3 3/7] libcamera: camera_sensor: Set sensor model property
Niklas Söderlund
niklas.soderlund at ragnatech.se
Thu Aug 13 11:57:22 CEST 2020
Set the sensor model property.
Signed-off-by: Niklas Söderlund <niklas.soderlund at ragnatech.se>
---
* Changes since v1
- Ensure model string only contains ASCII characters.
---
src/libcamera/camera_sensor.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/libcamera/camera_sensor.cpp b/src/libcamera/camera_sensor.cpp
index d2679a4b80ce0d42..cb06c486a5e7f9d0 100644
--- a/src/libcamera/camera_sensor.cpp
+++ b/src/libcamera/camera_sensor.cpp
@@ -200,6 +200,8 @@ int CameraSensor::init()
else
model_ = entityName;
+ properties_.set(properties::Model, utils::stripUnicode(model_));
+
/* Create and open the subdev. */
subdev_ = std::make_unique<V4L2Subdevice>(entity_);
int ret = subdev_->open();
--
2.28.0
More information about the libcamera-devel
mailing list