[libcamera-devel] [PATCH 09/10] libcamera: pipeline: uvc: Mark the media device as hotpluggable
Niklas Söderlund
niklas.soderlund at ragnatech.se
Thu Jan 24 19:06:55 CET 2019
Hi Laurent,
Thanks for your efforts.
On 2019-01-24 12:16:50 +0200, Laurent Pinchart wrote:
> UVC devices can be hot-unplugged. Mark the corresponding media device as
> hotpluggable to ensure proper disconnection support.
>
> Signed-off-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund at ragnatech.se>
> ---
> src/libcamera/pipeline/uvcvideo.cpp | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/src/libcamera/pipeline/uvcvideo.cpp b/src/libcamera/pipeline/uvcvideo.cpp
> index c8f1bf553bfe..f84fa41515f1 100644
> --- a/src/libcamera/pipeline/uvcvideo.cpp
> +++ b/src/libcamera/pipeline/uvcvideo.cpp
> @@ -49,6 +49,7 @@ bool PipelineHandlerUVC::match(DeviceEnumerator *enumerator)
>
> std::shared_ptr<Camera> camera = Camera::create(this, dev_->model());
> registerCamera(std::move(camera));
> + hotplugMediaDevice(dev_.get());
>
> return true;
> }
> --
> Regards,
>
> Laurent Pinchart
>
> _______________________________________________
> libcamera-devel mailing list
> libcamera-devel at lists.libcamera.org
> https://lists.libcamera.org/listinfo/libcamera-devel
--
Regards,
Niklas Söderlund
More information about the libcamera-devel
mailing list