From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.14]) (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 33C0836C593 for ; Fri, 6 Feb 2026 13:13:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770383624; cv=none; b=Gt8zOu83Bhwkk7InN0r8/DVadVIUBCpxQnmuzX8lWA7XTgkTeFRjmlNytPzwe1DKuNSyxkW9ECvckhmBejQQo3CmPUhbq1KYLPBUiY9CvHpXhHSEZEzBDQkah5ze+SWPh7r0FBdQ/B6AURO6Jk/shdf9tsnXJwTzyA1KGpMD1Pg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770383624; c=relaxed/simple; bh=Vx8A7FZTtYn2Jxf9hMYBpQgiCLbZiFDydP9VTOLEUFs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=p80EbWBUz8akAQ4YxyAH9Cs6lJPb8O6sDavGv4gvC8JbjQZ9RUZrROh0X7qHsZksR7P9LsUNJI3g42eBvvBhPJkVct0Nws53g7CYKmkQj4RWR5RgwlvkK6RQE3svyqCT8DD3C2pkmIFQjLRlxIVTmANW8RFQgeMtoySNOa3PKOg= 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=PcdGn8Oc; arc=none smtp.client-ip=198.175.65.14 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="PcdGn8Oc" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1770383624; x=1801919624; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Vx8A7FZTtYn2Jxf9hMYBpQgiCLbZiFDydP9VTOLEUFs=; b=PcdGn8OcjAsNJQZmpQlSPqVCjlamC61MLYAMYC8Aku9p0ioltbEnnwjA BEIk48r8efHACqXoFCTtbinxMRqE51ouUo/4sEClY7plQJ4Tl+RBPjZo4 mj5NNnDPNj+PzKW9O6edA/phM3zvmdUPkTTJXHvIa4nQIrIpuTEt0sltC n5njEdp2YDHgVGFJFaAL74CGHc0nrKCHN3J6NBNGBUbhzeAgnG9/WU77Y XI6GWBV+ypshmX3jaJcv8VfaBCPGSYEQCRwstMZJ6ubHesjrLtWKux59Z 1IIGqxFK1UPIHZ5T6hoD+59K4mkg8Eo6kO6vEwLt5PVdf8mG1NjAsKjsc Q==; X-CSE-ConnectionGUID: rWffwPQBSViu8P3VW1iokA== X-CSE-MsgGUID: hNhMcfMZS8aYwdbYbwaGDg== X-IronPort-AV: E=McAfee;i="6800,10657,11693"; a="75441181" X-IronPort-AV: E=Sophos;i="6.21,276,1763452800"; d="scan'208";a="75441181" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by orvoesa106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Feb 2026 05:13:43 -0800 X-CSE-ConnectionGUID: 7OdOehAMTFiCZtOSrNYgdw== X-CSE-MsgGUID: vJ/TXngVRaG67hn4jdXz+Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,276,1763452800"; d="scan'208";a="215391288" Received: from vpanait-mobl.ger.corp.intel.com (HELO kekkonen.fi.intel.com) ([10.245.244.219]) by orviesa004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Feb 2026 05:13:38 -0800 Received: from punajuuri.localdomain (unknown [192.168.240.130]) by kekkonen.fi.intel.com (Postfix) with ESMTP id 81B76121EA1; Fri, 06 Feb 2026 15:13:40 +0200 (EET) Received: from sailus by punajuuri.localdomain with local (Exim 4.98.2) (envelope-from ) id 1voLeL-00000005Tsa-1X4y; Fri, 06 Feb 2026 15:13:29 +0200 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 , Alexander Shiyan , Dave Stevenson , Tommaso Merciai , Benjamin Mugnier , Sylvain Petinot , Christophe JAILLET , Julien Massot , Naushir Patuck , "Yan, Dongcheng" , "Cao, Bingbu" , "Qiu, Tian Shu" , 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" Subject: [PATCH 09/13] media: Document enable_streams and disable_streams behaviour Date: Fri, 6 Feb 2026 15:13:26 +0200 Message-ID: <20260206131329.1306429-10-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260206131329.1306429-1-sakari.ailus@linux.intel.com> References: <20260206131329.1306429-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 --- include/media/v4l2-subdev.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/media/v4l2-subdev.h b/include/media/v4l2-subdev.h index a37d9a847196..de2684b15b96 100644 --- a/include/media/v4l2-subdev.h +++ b/include/media/v4l2-subdev.h @@ -814,6 +814,10 @@ struct v4l2_subdev_state { * V4L2_SUBDEV_CAP_STREAMS sub-device capability flag can ignore the mask * argument. * + * Starting the requested streams may require starting additional + * streams. Streams that are started together due to 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 +827,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. + * + * A stream group is disabled when one or more streams in the stream + * group are disabled. */ struct v4l2_subdev_pad_ops { int (*enum_mbus_code)(struct v4l2_subdev *sd, -- 2.47.3