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:
Niklas Söderlund 2020-08-06 13:00:14 +02:00
parent b33ec34331
commit e0913d56c2

View file

@ -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();