From patchwork Thu May 11 22:48:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 18615 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 DD9D7BD16B for ; Thu, 11 May 2023 22:48:41 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 07838633B6; Fri, 12 May 2023 00:48:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1683845319; 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=qcDiZccL3FTT9w3dBrQ7mYdZWXQScq+/kqgq3M5focpjbZnCpNKfSs0KFSG2xLlTl tslpJfdJ383Cgtp8gMt704+WC0gsn3Orkc2GyIwnQaOV229jQJ09/hKMojwCRstpTp mCyZaa3LMMrwPVS2YMGy7Zwc8PNxqcueVKPQtUlRQWJtKcKHbLcXg6LlUHZUkiKIiS fTdok8vUk6ydbPnuBVFbb2TlHHgTiLtxQHL4Fo958isl9Q9h0LPi5AoLSEjovV8us6 FN0FxEJAYZxApF5ibI/sFrpAsdaLgpem3arpUwyDdtsv97Ooh0+E3Akzh6NIPYAHFN OjRBPhmOy2HDg== 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 9B491633A8 for ; Fri, 12 May 2023 00:48:35 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="qMRW0FhO"; 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 3124C13D2; Fri, 12 May 2023 00:48:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1683845307; bh=vy1Ns1YPPPvE46lJsIlIhPHHpO+Ctd2fzg4jdEeajPk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qMRW0FhOW8yFUnhFa14JzX45Wr5v2YmHsSEoUwbEeBTXyGYyagmgEznqta6YuEcQX trv/kBgWWXRoGOvI7ITYbGIpiNmEFezPv7tSWTp36dlZG1Dz0j/sPP+kEWtkGGftVs oNeNK7ATVWlyQDDm1ZyQHhpLhtZZAL5+Y0UelHnw= To: libcamera devel Date: Thu, 11 May 2023 23:48:25 +0100 Message-Id: <20230511224830.356416-3-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 1/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