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