libcamera: pipeline: uvcvideo: Set sensor model property

Set the sensor model property from the model reported in the media
graph.

Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
Niklas Söderlund
2020-08-06 13:50:03 +02:00
parent a60020c3c3
commit 93401c036d

View File

@@ -511,6 +511,7 @@ int UVCCameraData::init(MediaDevice *media)
* Until then, treat all UVC cameras as external.
*/
properties_.set(properties::Location, properties::CameraLocationExternal);
properties_.set(properties::Model, utils::toAscii(media->model()));
/* Initialise the supported controls. */
ControlInfoMap::Map ctrls;