From patchwork Fri Feb 12 05:48:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 11245 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 B1645BD162 for ; Fri, 12 Feb 2021 05:48:29 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 40AFC6375D; Fri, 12 Feb 2021 06:48:29 +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="Yx6lvkAF"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 88D6963758 for ; Fri, 12 Feb 2021 06:48:27 +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 A3B478B5; Fri, 12 Feb 2021 06:48:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1613108905; bh=QoWnb+McT3RJGIa6RfzlaaJu0NFu0xCC+/EvL1bwW+g=; h=From:To:Cc:Subject:Date:From; b=Yx6lvkAFb6v/x9lyKwBwVkiE3ZbKIcIh2TDHxnqCu/s+tED8mlUEYL2uMYHqoqG61 1VImO5WMP3UiU/bCM398xybCoIw5zZVGe/24EPCBMVzmorWkqLVX7obxWQcwvfHzDo /7+oN/DWof9mQqFgN8lGMPzC1C4lwgRHNv+wawjA= From: Paul Elder To: libcamera-devel@lists.libcamera.org Date: Fri, 12 Feb 2021 14:48:12 +0900 Message-Id: <20210212054816.53561-1-paul.elder@ideasonboard.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 0/4] Add Unknown camera location 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" Add Unknown camera location to libcamera, set it to default, and set the android camera location to Front in this case. This allows the following CTS test to pass: - android.hardware.camera2.cts.CameraManagerTest#testCameraManagerGetDeviceIdList Changes in v2: - change Unknown to 0 in the num, and shift the others by one - handle Unknown location in cam Paul Elder (4): libcamera: properties: Add Unknown value to camera Location libcamera: camera_sensor: Set default sensor location to Unknown android: camera_device: Default the camera location to Front cam: Default camera location to external src/android/camera_device.cpp | 3 +++ src/cam/main.cpp | 1 + src/libcamera/camera_sensor.cpp | 2 +- src/libcamera/property_ids.yaml | 10 +++++++--- 4 files changed, 12 insertions(+), 4 deletions(-)