From patchwork Thu Aug 28 13:09:38 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Fend X-Patchwork-Id: 24253 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 5075FBD87C for ; Thu, 28 Aug 2025 13:09:50 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id D818169300; Thu, 28 Aug 2025 15:09:45 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=emfend.at header.i=@emfend.at header.b="BR6+WkpH"; dkim-atps=neutral Received: from lx20.hoststar.hosting (lx20.hoststar.hosting [168.119.41.54]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 20DD1692E1 for ; Thu, 28 Aug 2025 15:09:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=emfend.at; s=mail; h=Cc:To:In-Reply-To:References:Message-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:Subject:Date:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=H97QC7t5K+/IG6ZeI3tIjt8VWvL8BCztQQL5WRs7ahY=; b=BR6+WkpHe0CTHWZkxGadS6O4DP obFTHKYrq8sB1upqBYpaMZ1hR+kqBGLQlaY8iskpzQsurQSdIpSvNJURhoPEe1od8k+xbMRt1Wbpa mjewzL6FevFzKp1Tx0bNmpU/lvTgdTMkt35aMKCZRmlmxXWT4Q5qerMhPQxVPIIBWTls=; Received: from 194-208-208-245.tele.net ([194.208.208.245]:56023 helo=[127.0.1.1]) by lx20.hoststar.hosting with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1urcNq-00BORr-7n; Thu, 28 Aug 2025 15:09:42 +0200 From: Matthias Fend Date: Thu, 28 Aug 2025 15:09:38 +0200 Subject: [PATCH 1/5] libcamera: control_ids_draft: Add flash controls MIME-Version: 1.0 Message-Id: <20250828-flash-support-v1-1-4c5dc674a05b@emfend.at> References: <20250828-flash-support-v1-0-4c5dc674a05b@emfend.at> In-Reply-To: <20250828-flash-support-v1-0-4c5dc674a05b@emfend.at> To: libcamera-devel@lists.libcamera.org Cc: Matthias Fend X-Mailer: b4 0.14.2 X-Spam-Score: -1.0 X-Spam-Bar: - X-Spam-Report: Spam detection software, running on the system "lx20.hoststar.hosting", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: This series brings initial support for v4l2 flash devices. With these patches, v4l2 flash devices can be controlled by applications via libcamera controls. Applications therefore only require one API and do not have to worry about details such as finding the [...] Content analysis details: (-1.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: meson.build] 0.0 URIBL_DBL_BLOCKED_OPENDNS ADMINISTRATOR NOTICE: The query to dbl.spamhaus.org was blocked due to usage of an open resolver. See https://www.spamhaus.org/returnc/pub/ [URIs: meson.build] 0.0 URIBL_ZEN_BLOCKED_OPENDNS ADMINISTRATOR NOTICE: The query to zen.spamhaus.org was blocked due to usage of an open resolver. See https://www.spamhaus.org/returnc/pub/ [URIs: meson.build] -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.0 TVD_RCVD_IP Message was received from an IP address 0.0 Local_hs1_NotHoststar Sender is not from hoststar.ch|de|com 0.0 KAM_DMARC_STATUS Test Rule for DKIM or SPF Failure with Strict Alignment 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" Define a set of controls to control camera flash devices. Signed-off-by: Matthias Fend --- src/libcamera/control_ids_draft.yaml | 69 ++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/src/libcamera/control_ids_draft.yaml b/src/libcamera/control_ids_draft.yaml index 03309eeac34fa76eee4bb5d1c87d6467b890c9a7..c10b774bfd59b26980475bb9706fffa6961b3b1b 100644 --- a/src/libcamera/control_ids_draft.yaml +++ b/src/libcamera/control_ids_draft.yaml @@ -294,4 +294,73 @@ controls: Currently identical to ANDROID_STATISTICS_FACE_IDS. size: [n] + - FlashMode: + type: int32_t + direction: inout + description: | + Flash mode. + enum: + - name: FlashModeNone + value: 0 + description: | + None. + - name: FlashModeFlash + value: 1 + description: | + Flash. + - name: FlashModeTorch + value: 2 + description: | + Torch. + + - FlashIntensity: + type: int32_t + direction: inout + description: | + Flash intensity in mA. + + - FlashTimeout: + type: int32_t + direction: inout + description: | + Flash timeout in us. + + - FlashStrobeSource: + type: int32_t + direction: inout + description: | + Flash mode. + enum: + - name: FlashStrobeSourceSoftware + value: 0 + description: | + Software. + - name: FlashStrobeSourceExternal + value: 1 + description: | + External. + + - FlashStrobe: + type: int32_t + direction: in + description: | + Start/stop flash strobe. + + enum: + - name: FlashStrobeStart + value: 0 + description: | + Start flash strobe. + + - name: FlashStrobeStop + value: 1 + description: | + Stop flash strobe. + + - FlashTorchIntensity: + type: int32_t + direction: inout + description: | + Torch intensity in mA. + ...