From patchwork Thu Jan 24 10:16:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 364 Return-Path: Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 2A67460CA5 for ; Thu, 24 Jan 2019 11:17:00 +0100 (CET) Received: from pendragon.bb.dnainternet.fi (dfj612yhrgyx302h3jwwy-3.rev.dnainternet.fi [IPv6:2001:14ba:21f5:5b00:ce28:277f:58d7:3ca4]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id B390B23A; Thu, 24 Jan 2019 11:16:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1548325019; bh=wuiCFL94jMZ7GB3MS6fK6XHOyx0EidxESTbr0aEWsa0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Gt2j0IqF3C8tqm2HCFpgx8g0gmZAalcaO8i3wdusm6pBpqNjUzvsX8rUDsmPwD0ul Fz05ZC8PwD/TYkwkNlPsGDn4dAqWveE3zpbDTNZSSWKtCPiHsoW8vujMlPbW7PK9J6 ukR1URUYxS8W0dfstKM1J6pYdRpXZn8NHrHXyv5k= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Date: Thu, 24 Jan 2019 12:16:50 +0200 Message-Id: <20190124101651.9993-10-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20190124101651.9993-1-laurent.pinchart@ideasonboard.com> References: <20190124101651.9993-1-laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 09/10] libcamera: pipeline: uvc: Mark the media device as hotpluggable X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jan 2019 10:17:01 -0000 UVC devices can be hot-unplugged. Mark the corresponding media device as hotpluggable to ensure proper disconnection support. Signed-off-by: Laurent Pinchart Reviewed-by: Niklas Söderlund --- 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::create(this, dev_->model()); registerCamera(std::move(camera)); + hotplugMediaDevice(dev_.get()); return true; }