From patchwork Fri Feb 12 05:48:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 11249 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id E2313BD162 for ; Fri, 12 Feb 2021 05:48:39 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id AF9AB63761; Fri, 12 Feb 2021 06:48:39 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="LRulRXhx"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id D4B3A6375F for ; Fri, 12 Feb 2021 06:48:37 +0100 (CET) Received: from pyrite.rasen.tech (unknown [IPv6:2400:4051:61:600:2c71:1b79:d06d:5032]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 3FDEFA49; Fri, 12 Feb 2021 06:48:35 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1613108917; bh=dT+AXZJ+6QWkRueJrtMDP3KF6EPQYDbM1CWeLFAKrc0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LRulRXhxybunUAMzZM4iWcRN7a4Jex2+QR+Ha59JI7g9B/3urjlbi0ToU+vxPM6g8 u4GLRi5GJLzhO4Qhd2yY1KBWGp049xZiraXv7Nk9rrVsxP7I1HWkgSnRR3p2XOVJD6 Jtz286Y5SYbTzpF1R4/2IBBrbqIBzTdxEUuqSsfs= From: Paul Elder To: libcamera-devel@lists.libcamera.org Date: Fri, 12 Feb 2021 14:48:16 +0900 Message-Id: <20210212054816.53561-5-paul.elder@ideasonboard.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210212054816.53561-1-paul.elder@ideasonboard.com> References: <20210212054816.53561-1-paul.elder@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 4/4] cam: Default camera location to external X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Now that we default the camera sensor location to Unknown, handle it in cam the same way external is handled. Signed-off-by: Paul Elder --- New in v2 --- src/cam/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cam/main.cpp b/src/cam/main.cpp index e01be63a..261ed0c8 100644 --- a/src/cam/main.cpp +++ b/src/cam/main.cpp @@ -387,6 +387,7 @@ std::string const CamApp::cameraName(const Camera *camera) name = "Internal back camera"; break; case properties::CameraLocationExternal: + case properties::CameraLocationUnknown: name = "External camera"; if (props.contains(properties::Model)) name += " '" + props.get(properties::Model) + "'";