From patchwork Tue Mar 30 14:21:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 11790 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 87995C0DA3 for ; Tue, 30 Mar 2021 14:20:43 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id E1F5868781; Tue, 30 Mar 2021 16:20:42 +0200 (CEST) Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id C3D48602D2 for ; Tue, 30 Mar 2021 16:20:41 +0200 (CEST) X-Originating-IP: 93.34.118.233 Received: from uno.lan (93-34-118-233.ip49.fastwebnet.it [93.34.118.233]) (Authenticated sender: jacopo@jmondi.org) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 53C736000E; Tue, 30 Mar 2021 14:20:40 +0000 (UTC) From: Jacopo Mondi To: libcamera-devel@lists.libcamera.org Date: Tue, 30 Mar 2021 16:21:08 +0200 Message-Id: <20210330142113.37457-1-jacopo@jmondi.org> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v3 0/5] android: Introduce HAL configuration file 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" Hello, mostly re-worked the parser and the plumbing - Remove yaml.h from header, make parsing internal to the cpp file with a bunch of static functions - Other parser changes: - yaml_token_t is local to each function - yaml_parser_t only used in open() - Rework error conditions in switch() blocks - Change the CameraHalConfig interface to only return CameraProps - Use camera properties to initialize the camera device - drop 'maker' and 'model' and device properties in general as they're not needed - rework camera_hal.yaml file accordingly Thanks j Jacopo Mondi (4): libcamera: List dependency for Android Camera3 HAL android: Add CameraHalConfig class android: camera_device: Get properties from configuration android: soraka: Add camera HAL configuration Kieran Bingham (1): src: meson: Define system paths README.rst | 3 + src/android/camera_device.cpp | 9 +- src/android/camera_device.h | 3 +- src/android/camera_hal_config.cpp | 407 ++++++++++++++++++++++++ src/android/camera_hal_config.h | 36 +++ src/android/camera_hal_manager.cpp | 21 +- src/android/camera_hal_manager.h | 3 + src/android/data/soraka/camera_hal.yaml | 10 + src/android/meson.build | 2 + src/ipa/meson.build | 17 +- src/meson.build | 9 + 11 files changed, 504 insertions(+), 16 deletions(-) create mode 100644 src/android/camera_hal_config.cpp create mode 100644 src/android/camera_hal_config.h create mode 100644 src/android/data/soraka/camera_hal.yaml --- 2.30.0