From patchwork Wed Apr 19 08:58:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 18539 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 D2F9DBE173 for ; Wed, 19 Apr 2023 08:58:32 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 29D5D627B9; Wed, 19 Apr 2023 10:58:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1681894712; bh=2SZV/HXm48mRKPH454165mSjxlov33HKYy+jYS8vHdM=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=ahmBRDr7HGOaLCz7Oh/p2n+A0UThHRkV6n5TvHiBKHltqx8pGxQH5oX+dOKerSIHk 4HiC+xCKa8YDYAu5E09kwY5CugGGJlHh4eTJNvm7zA8fXiacwKNpzdTJSE+oA63QtB 0Fvkon4nqRQkP1cWbEZSQerhIlc9Yhczd/akrYbLLMF3BVAFngv94pLh96ayO0B9/S Dy5uv23ZxrWTnyWGsasAQL4iaS7uPh+zOyW6Q8CQuSNR/TZT3q8P4laQn+2or2RcFv gQOXPvMR5i5S4LJQ0hx2Zw5PULPp0YOgVPc/QnsU0Ok6YYyBJz3PwQmbVeCX2Y5hKW OrBdG3qeWb7Jw== 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 52112627AB for ; Wed, 19 Apr 2023 10:58:30 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="FAv9krwr"; dkim-atps=neutral Received: from Monstersaurus.tail69b4.ts.net (aztw-30-b2-v4wan-166917-cust845.vm26.cable.virginm.net [82.37.23.78]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 8DE7C12F; Wed, 19 Apr 2023 10:58:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1681894703; bh=2SZV/HXm48mRKPH454165mSjxlov33HKYy+jYS8vHdM=; h=From:To:Cc:Subject:Date:From; b=FAv9krwrcnBd0vjLHAlCt5Sl1Yk5oCAn9LUC11DLga26ziDP5MDRhzWfvDxWeq2bj tfkjmC1x+qoU6PIu6+BZ18BXgQ9vTb+RewoGwFNSCIYgBA8ulfZghPjBlAmhBBFBGh XKGlZZy94Ip/UHkn0o+jYVrI6FmeYUdlxq9pLlFY= To: libcamera devel Date: Wed, 19 Apr 2023 09:58:18 +0100 Message-Id: <20230419085821.2682901-1-kieran.bingham@ideasonboard.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 0/3] libcamera: Add new Camera devices 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 Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" It can be beneficial to allow reporting the devices used by a camera to facilitate de-duplication of resources when handling cameras from a centralised infrastructure such as PipeWire. Expose a new property on all cameras which reports a list of dev_t values representing devices used by the camera. Pipelines supported by media-controller will automatically register an entry for any video node present in the media graphs registered with the Pipeline Handler. Kieran Bingham (3): libcamera: controls: Support dev_t in an Integer32 type. libcamera: properties: Provide a Devices camera property libcamera: pipeline: Register device numbers with camera include/libcamera/controls.h | 5 +++++ src/libcamera/pipeline_handler.cpp | 8 ++++++++ src/libcamera/property_ids.yaml | 8 ++++++++ 3 files changed, 21 insertions(+)