summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-04-28 21:09:21 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-04-28 23:13:27 +0300
commit6ed463911defa512725a521f827e63517c6a6419 (patch)
treeebd2bcb8aeb67633bb68bef561a7111b224dcac7
parent5c8570cf3719260d58a7a8cf44a655dbf9dcb131 (diff)
libcamera: pipeline: vimc: Name camera based on sensor model
Use the sensor model to create the camera name. The resulting name should still be "VIMC Sensor B", but prepares for support of Sensor A. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
-rw-r--r--src/libcamera/pipeline/vimc/vimc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcamera/pipeline/vimc/vimc.cpp b/src/libcamera/pipeline/vimc/vimc.cpp
index 6707c5a0..ccfd7f86 100644
--- a/src/libcamera/pipeline/vimc/vimc.cpp
+++ b/src/libcamera/pipeline/vimc/vimc.cpp
@@ -394,9 +394,9 @@ bool PipelineHandlerVimc::match(DeviceEnumerator *enumerator)
return false;
/* Create and register the camera. */
+ std::string name{ "VIMC " + data->sensor_->model() };
std::set<Stream *> streams{ &data->stream_ };
- std::shared_ptr<Camera> camera = Camera::create(this, "VIMC Sensor B",
- streams);
+ std::shared_ptr<Camera> camera = Camera::create(this, name, streams);
registerCamera(std::move(camera), std::move(data));
return true;