From patchwork Tue Nov 19 16:44:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 2324 Return-Path: Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 814D660BEA for ; Tue, 19 Nov 2019 17:42:25 +0100 (CET) X-Originating-IP: 93.34.114.233 Received: from uno.lan (93-34-114-233.ip49.fastwebnet.it [93.34.114.233]) (Authenticated sender: jacopo@jmondi.org) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 0B9D620008; Tue, 19 Nov 2019 16:42:24 +0000 (UTC) From: Jacopo Mondi To: libcamera-devel@lists.libcamera.org Date: Tue, 19 Nov 2019 17:44:15 +0100 Message-Id: <20191119164421.68983-1-jacopo@jmondi.org> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Subject: [libcamera-devel] [RFC 0/6] Collect Camera properties 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: , X-List-Received-Date: Tue, 19 Nov 2019 16:42:25 -0000 Hello, this series introduces libcamera Properties, which are generated re-using the Control generation infrastructure, and implement creation of the location and rotation property by inspecting the camera sensor v4l2 controls. Sending as RFC mostly to get feedback on the generation of the Properties from the property_ids.yaml file. The series depends on the kernel patches that add camera properties as v4l2 controls and on the coreboot patches for the Soraka DSTD tables that add LOCATION and ROTATION properties to the camera ACPI nodes. https://patchwork.kernel.org/cover/11235197/ https://jmondi.org/cgit/coreboot/commit/?id=2a6b9b51f0e2e7b4ca5f4eadf21df8468ebc1b3f https://jmondi.org/cgit/coreboot/commit/?id=53a5fc6450bd45992f14a41848b72350f257c151 Thanks j Jacopo Mondi (6): [TEMP] include: linux: Update v4l2-controls.h libcamera: controls: Add 'values' to Control libcamera: properties: Generate Properties libcamera: controls: Add default to ControlRange libcamera: v4l2_controls: Store default value libcamera: camera_sensor: Collect camera properties include/libcamera/controls.h | 7 ++++- include/libcamera/meson.build | 9 ++++++ include/libcamera/property_ids.h.in | 33 ++++++++++++++++++++ include/linux/v4l2-controls.h | 7 +++++ src/libcamera/camera_sensor.cpp | 32 ++++++++++++++++++++ src/libcamera/controls.cpp | 17 +++++++++-- src/libcamera/gen-controls.py | 35 ++++++++++++++++++++++ src/libcamera/include/camera_sensor.h | 3 ++ src/libcamera/meson.build | 6 ++++ src/libcamera/property_ids.cpp.in | 43 +++++++++++++++++++++++++++ src/libcamera/property_ids.yaml | 32 ++++++++++++++++++++ src/libcamera/v4l2_controls.cpp | 3 ++ 12 files changed, 224 insertions(+), 3 deletions(-) create mode 100644 include/libcamera/property_ids.h.in create mode 100644 src/libcamera/property_ids.cpp.in create mode 100644 src/libcamera/property_ids.yaml --- 2.23.0