mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-16 17:05:08 +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
|
||||
model_ = entityName;
|
||||
|
||||
properties_.set(properties::Model, utils::toAscii(model_));
|
||||
|
||||
/* Create and open the subdev. */
|
||||
subdev_ = std::make_unique<V4L2Subdevice>(entity_);
|
||||
int ret = subdev_->open();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue