From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) (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 5336339B96B for ; Wed, 25 Mar 2026 10:58:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.19 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774436331; cv=none; b=sDNpG4U+Y3UuwN9Whm7RrebsVl1z2Tlvn3gJ0GgTRmxz7t4eObaEI/30ivEoNGbbBy1I3zqNkiePZ1lTpRMMbdvA4UT+tUF5QqOw3Np6MP4GUUfyofTMRPwPXvajTRkyUpQPBojYNE8rQ0oDwbGSZdRmIzTle5Ytn7LPL2CNowA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774436331; c=relaxed/simple; bh=eC/g/BB3ptL9As+MQeQclsXvXodNTzzp+uj4SLpGek0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=koLrCQ3V4eYZwKzC6EVf30zeyXsemn4dYoWcC2ka50WdYHBYGyVRFUX78HXZP/kJ8MhK9rA3yO9sZRoT8b9/ncJ5q4uj/jyfZoSYeH1Sz4sZoh9kH+L2F+m3I39cWXlqJYVO5xidHuQRfRtJ/hjE+hgPd9jpKX75grqfxXl10SU= 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=ds+U8yDE; arc=none smtp.client-ip=192.198.163.19 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="ds+U8yDE" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1774436330; x=1805972330; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=eC/g/BB3ptL9As+MQeQclsXvXodNTzzp+uj4SLpGek0=; b=ds+U8yDE3ZTGQ63ljWvI/phj74NRNSnLeFGxEG7dvofRSSUC/ZQDbpfO o8k1T+zkiTlub6CsFJBl7AcJuoPuVh2PgqRzGPuFaB0B+dwWZzPvm4JND 3ycgRTPToqUxwqp3U1ZdBSrPBWz2c4HaKejBEEeG0aO24r/rkXhIblaAy 6F3rFA+2nGn/rvdlRcq/GzV8YtHMkg+5yU3HEsA2IBZ2ICMhO/E+sfSup mZ4c21xn86n6PfDrNMSC1AffL9cGjFuffPU1yx5VA0u2ahyql/QThYALf gYLFmpzl2LvD9f4FP/ph0Pjs9hFiOGVKlSoLvoRprfEWanxgAuz4GH/OH Q==; X-CSE-ConnectionGUID: GuSN6/woQXWcfxQUz7bd/g== X-CSE-MsgGUID: UgQnj4DrRvCh46/9KMR5fg== X-IronPort-AV: E=McAfee;i="6800,10657,11739"; a="74496432" X-IronPort-AV: E=Sophos;i="6.23,140,1770624000"; d="scan'208";a="74496432" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Mar 2026 03:58:49 -0700 X-CSE-ConnectionGUID: cyqMg5d+RO29CqDom/UQzg== X-CSE-MsgGUID: eLrozSQvSDio9Ab7txBjtg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,140,1770624000"; d="scan'208";a="221763533" Received: from dalessan-mobl3.ger.corp.intel.com (HELO kekkonen.fi.intel.com) ([10.245.245.64]) by fmviesa008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Mar 2026 03:58:43 -0700 Received: from punajuuri.localdomain (unknown [192.168.240.130]) by kekkonen.fi.intel.com (Postfix) with ESMTP id B961F1224B3; Wed, 25 Mar 2026 12:58:30 +0200 (EET) Received: from sailus by punajuuri.localdomain with local (Exim 4.98.2) (envelope-from ) id 1w5LwJ-00000004wAx-0kEH; Wed, 25 Mar 2026 12:58:19 +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 , 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" , Jai Luthra Subject: [PATCH v3 17/22] media: Improve enable_streams and disable_streams documentation Date: Wed, 25 Mar 2026 12:58:14 +0200 Message-ID: <20260325105818.1176816-19-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260325105818.1176816-1-sakari.ailus@linux.intel.com> References: <20260325105818.1176816-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 --- 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 d256b7ec8f84..4588992b4417 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