From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=192.198.163.17 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795008548; b=ZmLpgs9hswCDsNDdzLBgaw4LES269anyryrapR3ohaKzyDw7yqLbJJsDwUuuH4Cc3oES Y3JAJYw8LH/BePdoLmVOFdeW4DeAuztPcnkIc5M3P3OBgkgImul6Nk5uHLL/9kyEYibqt 7Kz0a2UNNSfS+lPxzNxMMtEdV5hb/ra2Lpu9pbDwwtjsX0xXqe2752wbtO5g/YGq1D1jJ emUAIZ/ohZYKU39cjQlmJVmiUPXDSjm2ioNNhoK1g5FHcS7TmdGhVRWwdv1FTFWXMI9xg Zc5t8W+aFoMb9iwewpxc9/P+SJN40FO0OwZp8j2htdEd7Zm+cMJovSdo5W98MMlQgPw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795008548; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Received:Received: Organization:From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To: References:MIME-Version:Content-Transfer-Encoding; bh=CAskGrxbWFZ3/YkhX1tb3pmEFIrzzpUaEKtFKD3NloM=; b=YSmQpUlEXRW3WzmlaFwavnGcy7LjqTodgU7pa3bT0vKJqeP1GgpiQOILxB5znjHTXQxi /3PWpqvTBsyqK76/satqOAvkOVDzc9RficAoXAiTqtiJrK+ocfwX8gBfwDnSd3w8R8omT IaD7txDEvMV6tVW4gV3FODMHUaz6qtABaNOC1u6TbfQ36wtiD1xeIbRYCYmHh1cVoFOY0 WrR0NKps1flCHvNcl0EoN/SnCGJSmYOycx3s9/iaCpmZwO6jUkbJeG/m+LwSR3KDrVQpU vWUkD+1OiStq81wR+hfIMolIDa57sfZ6kaz9EK4W1/5kHvTqIrNkj2IrIRjyrDEXXpw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=n8mosZnD; arc=none smtp.remote-ip=192.198.163.17 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9DD7360A2605 for ; Wed, 18 Nov 2026 13:29:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9DD7360A2605 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.a=rsa-sha256 header.s=Intel header.b=n8mosZnD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1795008548; x=1826544548; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=6j6jYzmuJznq9+GSXNahyxM/HU+JbT/oeoi7osTf0nk=; b=n8mosZnDBuv7zBGTY9rdmtIjuTuTrikMjhiJ2EgEfYutuj/ZFTuHkm62 ObFqVeefPDqT6nOTHKNSW7yzw515Vy+CtQdverQGuf9ERriGH0G7CISWR RzvYRAYuTnG1ZSC0q8LPo/v7euhWoKykPgHozlW1k12Ub8sHjUtOwsFlm jOaUfLGTBo9wslGWqPekaSzMiNe9KjVmezI3ghShCdswmHEZAESsTX4kv ni+wuNstd2rdRbySrshiJYyEMYS9RkYNJd4902eKSLjZ2JPTjSC9eEXyJ PvvD4q/eyIoxUrjJbEvv1rG2uNk92YZitQ1psS3AO81TWPhuFfFE8CVe9 g==; X-CSE-ConnectionGUID: T+Z8DsVARU2r20gTAm8m1A== X-CSE-MsgGUID: doWt0RavTFKlsaZT1JAmiw== X-IronPort-AV: E=McAfee;i="6800,10657,11969"; a="3808909" X-IronPort-AV: E=Sophos;i="6.27,219,1787036400"; d="scan'208";a="3808909" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Nov 2026 05:29:04 -0800 X-CSE-ConnectionGUID: tsx13hcaTKWBaa8ajhV6ew== X-CSE-MsgGUID: FpTHrq2ZSEms6gmLj/dw0Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,219,1787036400"; d="scan'208";a="10376778" Received: from ettammin-mobl3.ger.corp.intel.com (HELO kekkonen.fi.intel.com) ([10.245.244.183]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Nov 2026 05:28:58 -0800 Received: from punajuuri.localdomain (unknown [192.168.240.130]) by kekkonen.fi.intel.com (Postfix) with ESMTP id 94BB6123011; Wed, 18 Nov 2026 15:28:31 +0200 (EET) Received: from sailus by punajuuri.localdomain with local (Exim 4.98.2) (envelope-from ) id 1xTfi0-00000000tbt-0uEK; Wed, 18 Nov 2026 15:28: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 , 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 , "Bajpai, Manik" , Divyamani Tripathi Subject: [PATCH v13 35/73] media: uapi: v4l: subdev: Enable streams API Date: Wed, 18 Nov 2026 15:27:41 +0200 Message-ID: <20261118132819.213473-36-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261118132819.213473-1-sakari.ailus@linux.intel.com> References: <20261118132819.213473-1-sakari.ailus@linux.intel.com> X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Remove v4l2_subdev_enable_streams_api variable that was used to easily enable streams API for development, and conditions that use the variable. This patch enables the streams API for V4L2 sub-device interface which allows transporting multiple streams on a single MC link. Signed-off-by: Sakari Ailus Reviewed-by: Jacopo Mondi Reviewed-by: Mirela Rabulea --- drivers/media/v4l2-core/v4l2-subdev.c | 30 --------------------------- 1 file changed, 30 deletions(-) diff --git a/drivers/media/v4l2-core/v4l2-subdev.c b/drivers/media/v4l2-core/v4l2-subdev.c index b0eaa59104dc..648ed92e7d03 100644 --- a/drivers/media/v4l2-core/v4l2-subdev.c +++ b/drivers/media/v4l2-core/v4l2-subdev.c @@ -50,15 +50,6 @@ struct v4l2_subdev_stream_config { struct v4l2_fract interval; }; -#if defined(CONFIG_VIDEO_V4L2_SUBDEV_API) -/* - * The Streams API is an experimental feature. To use the Streams API, set - * 'v4l2_subdev_enable_streams_api' to 1 below. - */ - -static bool v4l2_subdev_enable_streams_api; -#endif - /* * Maximum stream ID is 63 for now, as we use u64 bitmask to represent a set * of streams. @@ -747,13 +738,6 @@ static long subdev_do_ioctl(struct file *file, unsigned int cmd, void *arg, V4L2_SUBDEV_CLIENT_CAP_STREAMS; int rval; - /* - * If the streams API is not enabled, remove V4L2_SUBDEV_CAP_STREAMS. - * Remove this when the API is no longer experimental. - */ - if (!v4l2_subdev_enable_streams_api) - streams_subdev = false; - switch (cmd) { case VIDIOC_SUBDEV_QUERYCAP: { struct v4l2_subdev_capability *cap = arg; @@ -1112,9 +1096,6 @@ static long subdev_do_ioctl(struct file *file, unsigned int cmd, void *arg, case VIDIOC_SUBDEV_G_ROUTING: { struct v4l2_subdev_routing *routing = arg; - if (!v4l2_subdev_enable_streams_api) - return -ENOIOCTLCMD; - if (!(sd->flags & V4L2_SUBDEV_FL_STREAMS)) return -ENOIOCTLCMD; @@ -1136,9 +1117,6 @@ static long subdev_do_ioctl(struct file *file, unsigned int cmd, void *arg, unsigned int num_active_routes = 0; unsigned int i; - if (!v4l2_subdev_enable_streams_api) - return -ENOIOCTLCMD; - if (!(sd->flags & V4L2_SUBDEV_FL_STREAMS)) return -ENOIOCTLCMD; @@ -1224,14 +1202,6 @@ static long subdev_do_ioctl(struct file *file, unsigned int cmd, void *arg, case VIDIOC_SUBDEV_S_CLIENT_CAP: { struct v4l2_subdev_client_capability *client_cap = arg; - /* - * Clear V4L2_SUBDEV_CLIENT_CAP_STREAMS if streams API is not - * enabled. Remove this when streams API is no longer - * experimental. - */ - if (!v4l2_subdev_enable_streams_api) - client_cap->capabilities &= ~V4L2_SUBDEV_CLIENT_CAP_STREAMS; - /* Filter out unsupported capabilities */ client_cap->capabilities &= (V4L2_SUBDEV_CLIENT_CAP_STREAMS | V4L2_SUBDEV_CLIENT_CAP_INTERVAL_USES_WHICH | -- 2.47.3