diff options
author | Niklas Söderlund <niklas.soderlund@ragnatech.se> | 2020-08-06 13:50:03 +0200 |
---|---|---|
committer | Niklas Söderlund <niklas.soderlund@ragnatech.se> | 2020-10-02 15:04:41 +0200 |
commit | 93401c036dd9ca166b26ff589c79d2645e0998f0 (patch) | |
tree | f48da898a452d0a601cdd22109cc0e3eaf18cd32 | |
parent | a60020c3c3ee051de9aaa053cf07879cbd5abd3e (diff) |
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>
-rw-r--r-- | src/libcamera/pipeline/uvcvideo/uvcvideo.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcamera/pipeline/uvcvideo/uvcvideo.cpp b/src/libcamera/pipeline/uvcvideo/uvcvideo.cpp index eff866b6..8ec0dac1 100644 --- a/src/libcamera/pipeline/uvcvideo/uvcvideo.cpp +++ b/src/libcamera/pipeline/uvcvideo/uvcvideo.cpp @@ -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; |