From patchwork Tue Feb 5 00:07:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Niklas_S=C3=B6derlund?= X-Patchwork-Id: 510 X-Patchwork-Delegate: niklas.soderlund@ragnatech.se Return-Path: Received: from bin-mail-out-06.binero.net (bin-mail-out-06.binero.net [195.74.38.229]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id BDEFD60DC5 for ; Tue, 5 Feb 2019 01:07:59 +0100 (CET) X-Halon-ID: 177e89ee-28da-11e9-b530-005056917a89 Authorized-sender: niklas@soderlund.pp.se Received: from localhost.localdomain (unknown [81.164.19.127]) by bin-vsp-out-01.atm.binero.net (Halon) with ESMTPA id 177e89ee-28da-11e9-b530-005056917a89; Tue, 05 Feb 2019 01:07:57 +0100 (CET) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: libcamera-devel@lists.libcamera.org Date: Tue, 5 Feb 2019 01:07:02 +0100 Message-Id: <20190205000702.15370-8-niklas.soderlund@ragnatech.se> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190205000702.15370-1-niklas.soderlund@ragnatech.se> References: <20190205000702.15370-1-niklas.soderlund@ragnatech.se> MIME-Version: 1.0 Subject: [libcamera-devel] [RFC 7/7] libcamera: pipeline: uvcvideo: add camera start and stop 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: Tue, 05 Feb 2019 00:08:00 -0000 Expand the stubs to actually start and stop the UVC video device. Signed-off-by: Niklas Söderlund --- src/libcamera/pipeline/uvcvideo.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/libcamera/pipeline/uvcvideo.cpp b/src/libcamera/pipeline/uvcvideo.cpp index 632a4b4b09189240..8c0d2c09aafa5f37 100644 --- a/src/libcamera/pipeline/uvcvideo.cpp +++ b/src/libcamera/pipeline/uvcvideo.cpp @@ -116,13 +116,16 @@ int PipelineHandlerUVC::freeBuffers(Camera *camera) int PipelineHandlerUVC::start(const Camera *camera) { - LOG(UVC, Error) << "TODO: start camera"; - return 0; + LOG(UVC, Debug) << "Stream On"; + + return video_->streamOn(); } void PipelineHandlerUVC::stop(const Camera *camera) { - LOG(UVC, Error) << "TODO: stop camera"; + LOG(UVC, Debug) << "Stream Off"; + + video_->streamOff(); } int PipelineHandlerUVC::queueRequest(const Camera *camera, Request *request)