From patchwork Tue May 13 13:37:50 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 23362 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 D40C5C3220 for ; Tue, 13 May 2025 13:38:00 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id E6F6F68B40; Tue, 13 May 2025 15:37:59 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="NzFMm5XC"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id A31886175C for ; Tue, 13 May 2025 15:37:58 +0200 (CEST) Received: from pyrite.lan (unknown [IPv6:2001:861:3a80:3300:4f2f:8c2c:b3ef:17d4]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id B44D44C9; Tue, 13 May 2025 15:37:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1747143462; bh=/hsk2BU8RVdknuaNQaLGTRP66ZAENQAIQh2ELfYvCN4=; h=From:To:Cc:Subject:Date:From; b=NzFMm5XC+iQDH+CRsaWD1XdXGsQRbE5F+h+Q10ualXBbtH7ZPOCGJSqGJmRIBiNwG g1+1fUypQ0GH7f6TyppiCu+/t9/iTX0rK29LiYBGrEn1pRyB0x5h4oxy5knq2Wloca R1+NreBVlMepwuQLSWzHVLXGLaWECXvbEiK8qq/k= From: Paul Elder To: libcamera-devel@lists.libcamera.org Cc: Paul Elder , laurent.pinchart@ideasonboard.com, kieran.bingham@ideasonboard.com Subject: [PATCH v3 0/1] pipeline: simple: Fix matching with an empty media graph Date: Tue, 13 May 2025 15:37:50 +0200 Message-Id: <20250513133751.1381724-1-paul.elder@ideasonboard.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 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: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" The simple pipeline handler may encounter systems with multiple media devices that can be supported. If the first media graph it could support is invalid or empty and a subsequent media graph could handle it - the simple pipeline handler would not continue matching to complete the creation of cameras on those later devices. Update the pipeline handler to iterate attempts to acquire a supported MediaDevice until they are exhausted, ensureing that all supportable cameras in a system will be created. Paul Elder (1): pipeline: simple: Fix matching with empty media graphs src/libcamera/pipeline/simple/simple.cpp | 62 +++++++++++++++++------- 1 file changed, 45 insertions(+), 17 deletions(-)