From patchwork Thu Jun 15 17:26:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 18741 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 CAAB7C32AA for ; Thu, 15 Jun 2023 17:26:21 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 1248F628C2; Thu, 15 Jun 2023 19:26:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1686849981; bh=0R5YKzYC5n93O77+U5+2ee2mRlkQTCDfBakiwliYpfs=; 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=lmpvMS1kRWf3c7Ezbm6il4ztFwlGiTMW1x2xVn+00RFCIPCGnsStQC9wzDSd1co/7 yQFsLuwvJePxwoR57s6eGd0P8yWnwEcJDOHvCJDhLU5PZV2OL1Sjf2TmSbJ49rjt1k hmtKx5Ir3AmfKOwOAfceaK1+deGAdM5zjxg4XpOGhjK/khjm8o6JHfu8omIJJG9vb0 beFf2IYOCzVYoCjnN3+4ebanGnYOqr3sABVvZCAfq/mAiPWs046zv1/G4muIIqEg2L Y2glQO2D0u3MyMplNJ1a7FCuEhzrCHTedJ0y9Cq6B5s1nvkbIiY5ahwPNLYzIW48xd Z4hLkjpc/v7ww== 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 1E351628B5 for ; Thu, 15 Jun 2023 19:26:17 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="HAYBwW6f"; 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 74C58DA8; Thu, 15 Jun 2023 19:25:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1686849945; bh=0R5YKzYC5n93O77+U5+2ee2mRlkQTCDfBakiwliYpfs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HAYBwW6fPsah4T8Omdhi48ybmmp4aPe/5NGeMgGP1Vl/uZGzRnH/Q3VNX5BGWKtWo iufpY8oqmZlkbFbtZcrtaZN/3F/JCLf8QbUGGGoFliccryYXkLPQMwZQm1BU5xc/mR C/kP+gTzvYDozJmfRvx+dP6Wc9a3ZyyX1v2AT14c= To: libcamera devel Date: Thu, 15 Jun 2023 18:26:07 +0100 Message-Id: <20230615172608.378258-5-kieran.bingham@ideasonboard.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230615172608.378258-1-kieran.bingham@ideasonboard.com> References: <20230615172608.378258-1-kieran.bingham@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v4 4/5] 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: Jacopo Mondi , Ashok Sidipotu Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Provide a new Camera property that allows pipeline handlers to list any kernel device used to operate the camera. 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. Tested-by: Ashok Sidipotu Reviewed-by: Jacopo Mondi Reviewed-by: Laurent Pinchart Signed-off-by: Kieran Bingham --- v4: - Report that different cameras may report identical devices - Rename to SystemDevices Signed-off-by: Kieran Bingham --- src/libcamera/property_ids.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/libcamera/property_ids.yaml b/src/libcamera/property_ids.yaml index cb55e0ed2283..ef1dfd322db1 100644 --- a/src/libcamera/property_ids.yaml +++ b/src/libcamera/property_ids.yaml @@ -690,6 +690,15 @@ controls: that is twice that of the full resolution mode. This value will be valid after the configure method has returned successfully. + - SystemDevices: + 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. + + Different cameras may report identical devices. + # ---------------------------------------------------------------------------- # Draft properties section