From patchwork Thu May 11 22:58:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 18624 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 33E6EBD16B for ; Thu, 11 May 2023 22:58:44 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 86E78633BD; Fri, 12 May 2023 00:58:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1683845923; 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=vZPC+AFYo+XUOdAmYJI9EgXdx8dZSw6FbIU7Qsf/qLIV7IQmnw/Yy6jgubP/brUel BoE064Esd28ZfqSjvprvHR5VCmp5XNeYESbCzp49igeelKg7A2MlVkNWPbA7zEZaFJ S8IaMsPztQTiob7AvJges7miK2fVDt82BEZ/nwBTsQUCBCvH0EiTRFJ8ZxBqab+848 4cBDWV0yVawwBC5dVlAecjzdwwtIW1u02EA4W3LKJ6M0VGGp4WUFf5VNz23Ajov5uS P7eAF/CU4c89V/Ld3L5LRDZmy5uiZbVGseLKva/w6c5fYkNLuEof2PvWYzYPgRGCRn 5v5bx92jKAong== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id C2AB5633BA for ; Fri, 12 May 2023 00:58:39 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="WXcm0fiw"; 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 5DE90132F; Fri, 12 May 2023 00:58:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1683845911; bh=vy1Ns1YPPPvE46lJsIlIhPHHpO+Ctd2fzg4jdEeajPk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WXcm0fiwN4p+6Ky0GluUDvdQc5FnDDmYYznwvOUl4mAWROSohnvKHcq01lDmRgk1R XZOEmMJLLOT0dI+dLQWxfgqtatR0oaWoI5EUsV8ww2497MQ86YSPFwnhIUDrPU+4sp t3kN2+9DVDDhr2UPwudxVDNp5cevP3YSRFMBSReg= To: libcamera devel Date: Thu, 11 May 2023 23:58:32 +0100 Message-Id: <20230511225833.361699-4-kieran.bingham@ideasonboard.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230511225833.361699-1-kieran.bingham@ideasonboard.com> References: <20230511225833.361699-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 Reviewed-by: Jacopo Mondi --- 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