From patchwork Thu May 11 22:48:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 18620 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 8E0B9C32A6 for ; Thu, 11 May 2023 22:48:43 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 4EBDF633C7; Fri, 12 May 2023 00:48:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1683845322; bh=vy1Ns1YPPPvE46lJsIlIhPHHpO+Ctd2fzg4jdEeajPk=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=ngUYfdoCGgJmfArKbjmIw7QweEg5Z9RMpPhIpzCSFVilje+r2TznsV2vnMwEoS7R2 MW3K6cUBE31FKysRqbKunWBmGlAT6JWyHS7+xbpjiEIMoqabpwKx+tAQrjkO5473Or ES2Ruzx6xP1tmAT6XC6wJ2Ei8SH83qQKXIAtvScMJzcjqmFHZ2UZyErsOG7A9abW3d t+wXVwX+C7HoPZEzX+K08ShRvZfLKyFlv5doS4Kz+9+19WUyHfb9s/AaBDGx6k6PPe 6yF4jjVtjJCMTIUxP5R3IYyA6x0wZVFMUvJG9xvT10YreNt/trgIJH0NMNKPrw3rtQ oGGbCSRRf0yfA== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 7BD56627DE for ; Fri, 12 May 2023 00:48:37 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="ngKCK34R"; dkim-atps=neutral Received: from Monstersaurus.local (aztw-30-b2-v4wan-166917-cust845.vm26.cable.virginm.net [82.37.23.78]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 0BF8E1544; Fri, 12 May 2023 00:48:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1683845309; bh=vy1Ns1YPPPvE46lJsIlIhPHHpO+Ctd2fzg4jdEeajPk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ngKCK34RkNku/ye00V0k2HF70ODDBLW/jgolJRjA5HdZ+s9fYxfI2zu5USSnnFXK8 4nZxxm9KFzRFFE/gYzI/hLn29zkbbHxwGbma00vAPhFinHJ2fl3YGL/IbvFDvvrz7K 9jXD2fPW6J37Xov3XglLG8RzXUOWcGRCTxC757lQ= To: libcamera devel Date: Thu, 11 May 2023 23:48:29 +0100 Message-Id: <20230511224830.356416-7-kieran.bingham@ideasonboard.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230511224830.356416-1-kieran.bingham@ideasonboard.com> References: <20230511224830.356416-1-kieran.bingham@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 3/4] 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 Cc: George Kiagiadakis , Robert Mader , Wim Taymans 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, 8 insertions(+) diff --git a/src/libcamera/property_ids.yaml b/src/libcamera/property_ids.yaml index cb55e0ed2283..4fed8f862efb 100644 --- a/src/libcamera/property_ids.yaml +++ b/src/libcamera/property_ids.yaml @@ -690,6 +690,14 @@ controls: that is twice that of the full resolution mode. This value will be valid after the configure method has returned successfully. + + - Devices: + type: int64_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