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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user