From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.9]) (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 207C34499B4 for ; Mon, 14 Sep 2026 11:42:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.9 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789386133; cv=none; b=AxtSEZ8qkxU9Reqv0V9BhQVRDQq/bnntE4lI+Q255Nt9xCfj+663RoqIaGAe0jwV0D+IzzeeJ2VjezZE4PspKeLqDAS8grJBeDWOL4seSLhQx/Bl7k3O5wm0Bb3RiyIeyHVcO5Yyifp/xbkGsQ8XU5/2XQfVkbKMTxiftjQAuhc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789386133; c=relaxed/simple; bh=p859UQvbh9NHR3T43JMLJNq95Z5SVWAasDCZX3iFL/M=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=DUvZt5oSZw1n1emm1bbu8M3WG10HS3iPY1obDBbNSZdVY1ie44sAWF5KzxfjmsETQbOz37FnO2FnSFEyk4G/a2g+08DTRFZGe6d7eQeF2NpmyDdI4OGB2vceElvKPC4fcGPPFd+V+/jwarTGAbZoTn3KUaqo4XmY8pwf89YYvmA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=GpQAVeBT; arc=none smtp.client-ip=192.198.163.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="GpQAVeBT" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1789386131; x=1820922131; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=p859UQvbh9NHR3T43JMLJNq95Z5SVWAasDCZX3iFL/M=; b=GpQAVeBTI2f3y7fFY2AWIZSHNMZKQ72fBCPhMq+DicztpthAt1KxZVA8 BeCwK2HuNYumgF+ku8gkfyOyWUbGlW5whaT/Yjpx2tPWVm9n74n06kfrP 33lTyyjj94llYZvFNXR2L62su6nhGrSWHshrdlw1SLDQR+N1jAfzcNg9r DvTFNjyYV9tGYjAkvcjYYRepgS6IXNr01MYZZF8NcNLGVwh5VGMVhtvkP X+cAgfXRY40m9N1Vuo1lsJBXFjS8+vy6gj/N0zU396/pbjoWl71tUMDHJ 3HFjR9ssaiLENHWbzTjluSZSH4TmLDq6PqAsZib4exM4HvBonhEcCdvtH w==; X-CSE-ConnectionGUID: 2PQB5mT6SV+BTUTOheTexw== X-CSE-MsgGUID: FtBmBHpGScSnbuqp9khIVA== X-IronPort-AV: E=McAfee;i="6800,10657,11904"; a="100397087" X-IronPort-AV: E=Sophos;i="6.27,102,1787036400"; d="scan'208";a="100397087" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Sep 2026 04:42:07 -0700 X-CSE-ConnectionGUID: N5kWWOmkSn24EStuw2Uzjw== X-CSE-MsgGUID: /0medcKQSzuogL7Gvfb+KQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,102,1787036400"; d="scan'208";a="274538819" Received: from klitkey1-mobl1.ger.corp.intel.com (HELO kekkonen.fi.intel.com) ([10.245.245.61]) by fmviesa004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Sep 2026 04:42:01 -0700 Received: from punajuuri.localdomain (unknown [192.168.240.130]) by kekkonen.fi.intel.com (Postfix) with ESMTP id B2858121BBB; Mon, 14 Sep 2026 14:41:56 +0300 (EEST) Received: from sailus by punajuuri.localdomain with local (Exim 4.98.2) (envelope-from ) id 1x654D-00000002PXn-0nW3; Mon, 14 Sep 2026 14:41:45 +0300 Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: linux-media@vger.kernel.org Cc: hans@jjverkuil.nl, laurent.pinchart@ideasonboard.com, Prabhakar , Kate Hsuan , Dave Stevenson , Tommaso Merciai , Benjamin Mugnier , Sylvain Petinot , Christophe JAILLET , Julien Massot , Naushir Patuck , "Yan, Dongcheng" , Stefan Klug , Mirela Rabulea , =?UTF-8?q?Andr=C3=A9=20Apitzsch?= , Heimir Thor Sverrisson , Kieran Bingham , Mehdi Djait , Ricardo Ribalda Delgado , Hans de Goede , Jacopo Mondi , Tomi Valkeinen , David Plowman , "Yu, Ong Hock" , "Ng, Khai Wen" , Jai Luthra , Rishikesh Donadkar , Mattijs Korpershoek , Antti Laakso Subject: [PATCH v8 06/13] media: Improve enable_streams and disable_streams documentation Date: Mon, 14 Sep 2026 14:41:37 +0300 Message-ID: <20260914114145.574791-7-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260914114145.574791-1-sakari.ailus@linux.intel.com> References: <20260914114145.574791-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Document that enable_streams may start additional streams and disable_streams may not disable requested streams if other related streams are still enabled. Signed-off-by: Sakari Ailus Reviewed-by: Jacopo Mondi Reviewed-by: Mirela Rabulea Reviewed-by: Laurent Pinchart --- include/media/v4l2-subdev.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/media/v4l2-subdev.h b/include/media/v4l2-subdev.h index d256b7ec8f84..d9dca6905b33 100644 --- a/include/media/v4l2-subdev.h +++ b/include/media/v4l2-subdev.h @@ -814,6 +814,11 @@ struct v4l2_subdev_state { * V4L2_SUBDEV_CAP_STREAMS sub-device capability flag can ignore the mask * argument. * + * Due to device constraints, starting the requested streams may result in + * additional streams also being started by the driver. Streams that are + * started and stopped together due to the nature of the hardware are + * called a stream group. + * * @disable_streams: Disable the streams defined in streams_mask on the given * source pad. Subdevs that implement this operation must use the active * state management provided by the subdev core (enabled through a call to @@ -823,6 +828,9 @@ struct v4l2_subdev_state { * Drivers that support only a single stream without setting the * V4L2_SUBDEV_CAP_STREAMS sub-device capability flag can ignore the mask * argument. + * + * When the requested stream are part of a stream group, they will be + * stopped once all streams in the group are stopped. */ struct v4l2_subdev_pad_ops { int (*enum_mbus_code)(struct v4l2_subdev *sd, -- 2.47.3