{"id":9332,"url":"https://patchwork.libcamera.org/api/1.1/patches/9332/?format=json","web_url":"https://patchwork.libcamera.org/patch/9332/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/1.1/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20200817202629.4277-2-email@uajain.com>","date":"2020-08-17T20:26:37","name":"[libcamera-devel,v3,1/5] libcamera: pipeline: uvcvideo: Treat all UVC cameras as external","commit_ref":null,"pull_url":null,"state":"accepted","archived":false,"hash":"cabc071127a4c631e98a174dec39b4be3f7f2817","submitter":{"id":1,"url":"https://patchwork.libcamera.org/api/1.1/people/1/?format=json","name":"Umang Jain","email":"email@uajain.com"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/9332/mbox/","series":[{"id":1224,"url":"https://patchwork.libcamera.org/api/1.1/series/1224/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=1224","date":"2020-08-17T20:26:35","name":"android: Camera hotplug support","version":3,"mbox":"https://patchwork.libcamera.org/series/1224/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/9332/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/9332/checks/","tags":{},"headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 0A816BD87C\n\tfor <parsemail@patchwork.libcamera.org>;\n\tMon, 17 Aug 2020 20:26:44 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 9D78161ACF;\n\tMon, 17 Aug 2020 22:26:42 +0200 (CEST)","from o1.f.az.sendgrid.net (o1.f.az.sendgrid.net [208.117.55.132])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 460E1616B1\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 17 Aug 2020 22:26:39 +0200 (CEST)","by filterdrecv-p3las1-5785d94c6b-bvlsc with SMTP id\n\tfilterdrecv-p3las1-5785d94c6b-bvlsc-18-5F3AE7FC-5D\n\t2020-08-17 20:26:37.107163937 +0000 UTC m=+359830.985496349","from mail.uajain.com (unknown)\n\tby ismtpd0004p1hnd1.sendgrid.net (SG) with ESMTP\n\tid LlweKJuDSfO0WtCXrc15ig Mon, 17 Aug 2020 20:26:36.758 +0000 (UTC)"],"Authentication-Results":"lancelot.ideasonboard.com;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=uajain.com header.i=@uajain.com\n\theader.b=\"ZMxkGgPK\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=uajain.com;\n\th=from:subject:in-reply-to:references:mime-version:to:cc:content-type:\n\tcontent-transfer-encoding;\n\ts=s1; bh=bDhthrO6iz7youdFrsP8Xzu7GFBabmYGQfFNjuzf8Lc=;\n\tb=ZMxkGgPKx71iSBCEPP5+WnmOf14IvfhvFcvqUjGcBdPHbGVMN34n6fibRB3/yyrl1Z3Q\n\t/u2tP9+16JTg6UA9BDbOnZk2DYBsnjePEYSlQD5KBhFBdpC9g447YeTeJ4hv5XOHlKXkL1\n\teq+r7NjtRBLY1LI7Dy2PuKaNbFsABJ46I=","From":"Umang Jain <email@uajain.com>","Date":"Mon, 17 Aug 2020 20:26:37 +0000 (UTC)","Message-Id":"<20200817202629.4277-2-email@uajain.com>","In-Reply-To":"<20200817202629.4277-1-email@uajain.com>","References":"<20200817202629.4277-1-email@uajain.com>","Mime-Version":"1.0","X-SG-EID":"1Q40EQ7YGir8a9gjSIAdTjhngY657NMk9ckeo4dbHZDiOpywc/L3L9rFqlwE4KPcQ/i1ji5k4eTSSnQ1oTeZ4i1aWIanNJ7JI05Ha9PbbrgFf8kpucW9yJ2zlas7vnBB5xuFZNKxHpNRM4jDaPQToCquzxL8LZehSOkCzCCtGrVKx25DlgKo4bbaKkoH+D1GsueEkEB/bKoC08mPIlNYFsSGhIsp2jZJtcMxcXeywBJuhuI/jTjFFJcNzRYtZ/LSxnv3K1gg0lwTYYSTZvMZhw==","To":"libcamera-devel@lists.libcamera.org","Subject":"[libcamera-devel] [PATCH v3 1/5] libcamera: pipeline: uvcvideo:\n\tTreat all UVC cameras as external","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","Content-Type":"text/plain; charset=\"iso-8859-1\"","Content-Transfer-Encoding":"quoted-printable","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"We currently have no way to identify if the UVC device is external\nor internal(i.e. non-removable) to the system to set this property.\nUntil we have a starting point to resolve this, treat  all UVC cameras.\nAdd a \\todo explaining the situation for the same.\n\nSigned-off-by: Umang Jain <email@uajain.com>\nReviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>\nReviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\nReviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>\n---\n src/libcamera/pipeline/uvcvideo/uvcvideo.cpp | 7 +++++++\n 1 file changed, 7 insertions(+)","diff":"diff --git a/src/libcamera/pipeline/uvcvideo/uvcvideo.cpp b/src/libcamera/pipeline/uvcvideo/uvcvideo.cpp\nindex bc892ec..bafe6f1 100644\n--- a/src/libcamera/pipeline/uvcvideo/uvcvideo.cpp\n+++ b/src/libcamera/pipeline/uvcvideo/uvcvideo.cpp\n@@ -14,6 +14,7 @@\n #include <libcamera/camera.h>\n #include <libcamera/control_ids.h>\n #include <libcamera/controls.h>\n+#include <libcamera/property_ids.h>\n #include <libcamera/request.h>\n #include <libcamera/stream.h>\n \n@@ -500,6 +501,12 @@ int UVCCameraData::init(MediaEntity *entity)\n \n \tvideo_->bufferReady.connect(this, &UVCCameraData::bufferReady);\n \n+\t/*\n+\t * \\todo Find a way to tell internal and external UVC cameras apart.\n+\t * Until then, treat all UVC cameras as external.\n+\t */\n+\tproperties_.set(properties::Location, properties::CameraLocationExternal);\n+\n \t/* Initialise the supported controls. */\n \tControlInfoMap::Map ctrls;\n \n","prefixes":["libcamera-devel","v3","1/5"]}