From patchwork Mon May 15 12:45:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 18633 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 65B4EBDE6B for ; Mon, 15 May 2023 12:46:00 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id CAC8B62874; Mon, 15 May 2023 14:45:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1684154758; bh=nkmIwIDV+c6Zm28BaUrSUiED+XpiaHVz4gwzJTTmlmU=; 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=RXTShXqDCJm8hzCBmebSzNqROdtBWutdQ/98KcgNbkFjnqp3lpJB1GqcxJ5ETIStS EIaJGUycvgfEqojTx68lkK6LZvaNXfh5YiDjUvZeyEBMOKqUMclVr1Y3vfD4Y+ArGr s89mKYyrZwDBmdeAlV0cR3+UvehgBd9Miu3VV/50rRnxXfb/ezj6J1BsKv80pIfmf7 u6XFraw/w/3wRAMn0wtpljiI2x+U3BiHdXvKgGapH2bfrrJtvOFcJSxv5yBVqH6+XR OBkl3JlVUR2BxXINLm2smTGyzGBTNleHox8uT/BRTUKro6B9AOgxWTIeOqGdBPnaBt V/mIXQ/bofdsA== 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 E499A6039F for ; Mon, 15 May 2023 14:45:54 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="ZvINU7fu"; 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 29D1F7E1; Mon, 15 May 2023 14:45:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1684154744; bh=nkmIwIDV+c6Zm28BaUrSUiED+XpiaHVz4gwzJTTmlmU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZvINU7fuexH6SO67eLvS9936bH0qhxQUerjO1vap7aDq1EU0+phShSxe7Tj2QsCtp M7i28tzv/y1tb8AjvITUUpq+uI5vzeglTZ/vKdfAA4XJrLlk4PekA8YRcA3MDqFTZB rw2X+AFr8lW41MiyvjAgyp+nzIjU9FxykwySLgUw= To: libcamera devel Date: Mon, 15 May 2023 13:45:49 +0100 Message-Id: <20230515124550.3601128-5-kieran.bingham@ideasonboard.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230515124550.3601128-1-kieran.bingham@ideasonboard.com> References: <20230515124550.3601128-1-kieran.bingham@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v3 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 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 Reviewed-by: Jacopo Mondi Tested-by: Ashok Sidipotu Signed-off-by: Kieran Bingham Reviewed-by: Jacopo Mondi Reviewed-by: Laurent Pinchart --- src/libcamera/property_ids.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/libcamera/property_ids.yaml b/src/libcamera/property_ids.yaml index cb55e0ed2283..6141942969f9 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: 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