Message ID | 20240610012238.30462-1-laurent.pinchart@ideasonboard.com (mailing list archive) |
---|---|
Headers |
Received: from sv.mirrors.kernel.org ([139.178.88.99]) by linuxtv.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from <linux-media+bounces-12796-patchwork=linuxtv.org@vger.kernel.org>) id 1sGTkg-0003AM-25 for patchwork@linuxtv.org; Mon, 10 Jun 2024 01:23:15 +0000 Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 2E81F281217 for <patchwork@linuxtv.org>; Mon, 10 Jun 2024 01:23:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3E91417C2; Mon, 10 Jun 2024 01:23:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="u0IDqLhP" X-Original-To: linux-media@vger.kernel.org Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 464D81860 for <linux-media@vger.kernel.org>; Mon, 10 Jun 2024 01:22:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.167.242.64 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717982581; cv=none; b=kHfe6FAenvOtQg0i7kfKzFlboeYb8cJ6e67mUADoqlQeLkyaTTPoaoMfUkM6551XZ3+5ZfTrdtjSI3j42/7nE6ynSM9a7VDukpOgA5nATjEm916ximRhVbJGyTj9x0LlZ41gc1TmQ7ZWEGHlQI1DKzL15BYr4c2wCWF4Su5t+cs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717982581; c=relaxed/simple; bh=24IU3gPO62sk/Fsq1UlG4fvcMuDlYKh4oEFIdu5bpeY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=hggXh9CBS28MHC6KEkxysEBsYTscyH6OcfQiMrCR1BEB/LtYf0uBviQVRVQnSHj12kB818w30NCpa8Dv6Nlf9sc2b1VmFbyWGReCwFUJvPOkgskv7jvS38csKPjq8ws1oqrenL6mU7s23zJHhtJSRaL5aJuhUYwGehcYDs0iAK8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com; spf=pass smtp.mailfrom=ideasonboard.com; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b=u0IDqLhP; arc=none smtp.client-ip=213.167.242.64 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ideasonboard.com Received: from pendragon.ideasonboard.com (81-175-209-231.bb.dnainternet.fi [81.175.209.231]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 642DB230; Mon, 10 Jun 2024 03:22:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1717982566; bh=24IU3gPO62sk/Fsq1UlG4fvcMuDlYKh4oEFIdu5bpeY=; h=From:To:Cc:Subject:Date:From; b=u0IDqLhPgWp7ZFW4urLlPEL+BzoYKCCHoKFUdmZNTmRuij/H4OVj8Z5fLn1l6r6cI 7FLx0QcsyNdKJ+DmcSmTZyy8cEMn6O+ZBHajOk2wia8bjYuKPDNDHMZEJE0bt5UsIz qmZtBgk3RUphwoGOTg9In3SPhH0hsT7fAuJeCN3U= From: Laurent Pinchart <laurent.pinchart@ideasonboard.com> To: linux-media@vger.kernel.org Cc: Sakari Ailus <sakari.ailus@iki.fi>, Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>, Hans Verkuil <hverkuil-cisco@xs4all.nl> Subject: [v4l-utils] [PATCH v1 0/3] media-ctl: Add support for subdev TRY state Date: Mon, 10 Jun 2024 04:22:35 +0300 Message-ID: <20240610012238.30462-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.44.2 Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: <linux-media.vger.kernel.org> List-Subscribe: <mailto:linux-media+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-media+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-LSpam-Score: -4.9 (----) X-LSpam-Report: No, score=-4.9 required=5.0 tests=ARC_SIGNED=0.001,ARC_VALID=-0.1,BAYES_00=-1.9,DKIM_SIGNED=0.1,DKIM_VALID=-0.1,DKIM_VALID_AU=-0.1,DMARC_MISSING=0.001,HEADER_FROM_DIFFERENT_DOMAINS=0.5,MAILING_LIST_MULTI=-1,RCVD_IN_DNSWL_MED=-2.3,SPF_HELO_NONE=0.001,SPF_PASS=-0.001 autolearn=ham autolearn_force=no |
Series |
media-ctl: Add support for subdev TRY state
|
|
Message
Laurent Pinchart
June 10, 2024, 1:22 a.m. UTC
Hello, This small patch series extends media-ctl to support subdev TRY states. Doing so allows retrieving the default state of subdevs, or trying configurations. The approach is quite straightforward: patch 1/3 replaces the hardcoded ACTIVE state in libv4l2subdev with a 'which' argument, patch 2/3 does the same for the internal functions of media-ctl, and patch 3/3 adds a -W/--which argument to media-ctl. When the argument is not set, the ACTIVE state is selected, preserving the existing behaviour. Laurent Pinchart (3): libv4l2subdev: Extend API with 'which' argument where missing utils: media-ctl: Prepare for TRY state support utils: media-ctl: Support accessing the subdev TRY state utils/media-ctl/libv4l2subdev.c | 65 +++++++++++++++++++++------------ utils/media-ctl/media-ctl.c | 37 +++++++++++-------- utils/media-ctl/options.c | 18 ++++++++- utils/media-ctl/options.h | 1 + utils/media-ctl/v4l2subdev.h | 49 ++++++++++++++++++++++--- 5 files changed, 123 insertions(+), 47 deletions(-) base-commit: f4cf30a8b50f54210e181ecadbffaee4ce088e5e
Comments
Hi Laurent, On Mon, Jun 10, 2024 at 04:22:35AM +0300, Laurent Pinchart wrote: > Hello, > > This small patch series extends media-ctl to support subdev TRY states. > Doing so allows retrieving the default state of subdevs, or trying > configurations. > > The approach is quite straightforward: patch 1/3 replaces the hardcoded > ACTIVE state in libv4l2subdev with a 'which' argument, patch 2/3 does > the same for the internal functions of media-ctl, and patch 3/3 adds a > -W/--which argument to media-ctl. When the argument is not set, the > ACTIVE state is selected, preserving the existing behaviour. Thanks! For the set: Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>