mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-17 17:35:06 +03:00
libcamera: camera_sensor: Set sensor model property
Set the sensor model property. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
b33ec34331
commit
e0913d56c2
1 changed files with 2 additions and 0 deletions
|
@ -200,6 +200,8 @@ int CameraSensor::init()
|
||||||
else
|
else
|
||||||
model_ = entityName;
|
model_ = entityName;
|
||||||
|
|
||||||
|
properties_.set(properties::Model, utils::toAscii(model_));
|
||||||
|
|
||||||
/* Create and open the subdev. */
|
/* Create and open the subdev. */
|
||||||
subdev_ = std::make_unique<V4L2Subdevice>(entity_);
|
subdev_ = std::make_unique<V4L2Subdevice>(entity_);
|
||||||
int ret = subdev_->open();
|
int ret = subdev_->open();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue