summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNiklas Söderlund <niklas.soderlund@ragnatech.se>2020-08-06 13:50:03 +0200
committerNiklas Söderlund <niklas.soderlund@ragnatech.se>2020-10-02 15:04:41 +0200
commit93401c036dd9ca166b26ff589c79d2645e0998f0 (patch)
treef48da898a452d0a601cdd22109cc0e3eaf18cd32 /src
parenta60020c3c3ee051de9aaa053cf07879cbd5abd3e (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>
Diffstat (limited to 'src')
-rw-r--r--src/libcamera/pipeline/uvcvideo/uvcvideo.cpp1
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;