From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.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 CD6573542F1 for ; Wed, 11 Feb 2026 09:09:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770800971; cv=none; b=RGFrRYmLDqRnJoMemJh1fwhUryBYT+hwgPGhYOADidrKEKHDCyUQN6NBg1YNR1MdSv06bfOC+663tdf86D6sKjfJAJyU4CHOApuXbgZhmB4aIVDlnzWFpa6y7yX8LFbOxtAAXFK4f4JoG1HNTPHAbXtwzcGevfgSNzj7PXOuXHQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770800971; c=relaxed/simple; bh=Vx8A7FZTtYn2Jxf9hMYBpQgiCLbZiFDydP9VTOLEUFs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=DY/lTnitdtFbjoxWs76rZwYmlurcmbrHR4o0pHSpnTUljczumteUEulkYnt4vlEMbFMFvLW03OrpXelzm4BlqKikruAXp8OHN4ok/6HfOgwXfa8gsDnwFPH0MMUkvAoyKooiv2dsCTw7dKkz/VL9WTbt3TBdbkfpoK6mcHOuwQI= 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=VpMPcXFs; arc=none smtp.client-ip=192.198.163.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="VpMPcXFs" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1770800970; x=1802336970; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Vx8A7FZTtYn2Jxf9hMYBpQgiCLbZiFDydP9VTOLEUFs=; b=VpMPcXFsQ/4BNlb+JMPRzuS5H3IQBRtvfEdfRCqJLadghO7cg4gLfkvo /gcPVKxlkAwzgzsah1ZXzVuCQtKbgekBJJbYChTCWRHviwoaIsnj8/KHM cR9LEBSs4rZ1+rNhAcLyVUcVX81gmJRnuIqrudSKw/BlQFCKRwXpDwdj8 VwwuH9h3TR5A1qAZbLwVDHYs8tGE/Z4WFz//tHJFfnIPmOuRcTsNxnsYp u4aaYSBEhuAlno+kZ4vVwLUiom2D7tXcRCEQ6eR1aU+O1ANWCyXawVxqA C21kdu8Mo5y+WnlmMs1k4O4Au4ETwo9dWvSPxpmf6kvOcIAofkYXzIcba g==; X-CSE-ConnectionGUID: 3SaJxkp5SPKjrqQfrpqI5Q== X-CSE-MsgGUID: gWUsWkUTSPmKX+vFJv/opw== X-IronPort-AV: E=McAfee;i="6800,10657,11697"; a="72018976" X-IronPort-AV: E=Sophos;i="6.21,283,1763452800"; d="scan'208";a="72018976" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Feb 2026 01:09:30 -0800 X-CSE-ConnectionGUID: wjnVWqlhQrGI+d5NU9P6Wg== X-CSE-MsgGUID: elcp6dTlTkOv1DCd1sixpw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,283,1763452800"; d="scan'208";a="212222850" Received: from pgcooper-mobl3.ger.corp.intel.com (HELO kekkonen.fi.intel.com) ([10.245.244.208]) by orviesa008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Feb 2026 01:09:24 -0800 Received: from punajuuri.localdomain (unknown [192.168.240.130]) by kekkonen.fi.intel.com (Postfix) with ESMTP id C20C9121D53; Wed, 11 Feb 2026 11:09:31 +0200 (EET) Received: from sailus by punajuuri.localdomain with local (Exim 4.98.2) (envelope-from ) id 1vq6Do-00000007laK-2hJ7; Wed, 11 Feb 2026 11:09:20 +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 v2 09/14] media: Document enable_streams and disable_streams behaviour Date: Wed, 11 Feb 2026 11:09:15 +0200 Message-ID: <20260211090920.1851141-10-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260211090920.1851141-1-sakari.ailus@linux.intel.com> References: <20260211090920.1851141-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