From patchwork Wed Apr 19 08:58:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 18541 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 47AE9C32A4 for ; Wed, 19 Apr 2023 08:58:35 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 4558A627BC; Wed, 19 Apr 2023 10:58:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1681894713; bh=JS0aK5EJnbYvFpYM5ottKPKOfn/6KsgdlR8Suygsv7Q=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=yjICudSdq/bBXha+JecrdoGuL7MFR1z8z0eae8CZWb5Lk9rkfQv4bOS/21HxEPSie keUzawaquqvaLCzOtlNW8Riv3kF8PxBcvz8+oFEDbjjt3u6m3d7xFLzD7B4a1LxWqw aFoKlxRuHED/NhG96L/yJgGmT1UgMLrJIPCPDs97vZc/AhS5Y5ttK6661NI0rphqvg KTjQ0gNu8G3DkIrhVl+RkZDY4ZwVxtbAOSAtm7TRF8wmOr/YTAzRU9pgcIx/2vdIMM FhYe8/8/EZoPFGl89eSoI/t2TwREhipzFN0U3ind1NhOSPDep5TTSJoVNppx66hV8i 3h/6LRw7XGTew== 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 CBAFD627B7 for ; Wed, 19 Apr 2023 10:58:30 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="cUdQNjj8"; dkim-atps=neutral Received: from Monstersaurus.tail69b4.ts.net (aztw-30-b2-v4wan-166917-cust845.vm26.cable.virginm.net [82.37.23.78]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 2CE4E1180; Wed, 19 Apr 2023 10:58:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1681894704; bh=JS0aK5EJnbYvFpYM5ottKPKOfn/6KsgdlR8Suygsv7Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cUdQNjj8B59N8/E6oFnyGyo02bnKMoC0J4L6FmYfd/BlZ5eNWsj8NILKCmZt+Ne1W D6+92AWoyhcarY+m1fzeSk1JHygj3noJTcpwiTJ+PNyWqeQzrcein13/nMPlMpjLV1 S3zpV5fn3ee63v0mCWnXbxaRQvquSqXp3BVpBS7I= To: libcamera devel Date: Wed, 19 Apr 2023 09:58:20 +0100 Message-Id: <20230419085821.2682901-3-kieran.bingham@ideasonboard.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230419085821.2682901-1-kieran.bingham@ideasonboard.com> References: <20230419085821.2682901-1-kieran.bingham@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 2/3] libcamera: properties: Provide a Devices camera property 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-Patchwork-Original-From: Kieran Bingham via libcamera-devel From: Kieran Bingham Reply-To: Kieran Bingham Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Provide a new Camera property that allows pipeline handlers to list any devices used to operate the device. This allows other frameworks and daemons such as Pipewire to better understand the resources consumed by a Camera and consider ignoring those resources when enumerating camera devices on a system. Signed-off-by: Kieran Bingham --- src/libcamera/property_ids.yaml | 8 ++++++++ 1 file changed, 7 insertions(+) diff --git a/src/libcamera/property_ids.yaml b/src/libcamera/property_ids.yaml index cb55e0ed2283..5b511ea934f7 100644 --- a/src/libcamera/property_ids.yaml +++ b/src/libcamera/property_ids.yaml @@ -690,6 +690,13 @@ controls: that is twice that of the full resolution mode. This value will be valid after the configure method has returned successfully. + - Devices: + type: dev_t + size: [n] + description: | + A list of integer values of type dev_t denoting major and minor device + number of the underlying devices used in the operation of this camera. + # ---------------------------------------------------------------------------- # Draft properties section