Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp542742lqd; Wed, 24 Apr 2024 09:34:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXiKRU0BmlwU71B734xJFnytBlPqZaY6GP0HNAHgHUT+sMoZTXyXn+VYnqosykwqgw2lFjoWudii48qG7kmE6eJmO/4vYNhzHUi9uyhwA== X-Google-Smtp-Source: AGHT+IGIpZRe1yF0Hxd1v0cBJC+q/iWNzgGY/jg65RtUl2r9w0cAWBHDC1IebZ4E0GtuLaQYpWKW X-Received: by 2002:a05:620a:5ca2:b0:790:64bb:d867 with SMTP id xq2-20020a05620a5ca200b0079064bbd867mr2903089qkn.47.1713976458121; Wed, 24 Apr 2024 09:34:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713976458; cv=pass; d=google.com; s=arc-20160816; b=0CbS1c154TnVU+B+Zyg3IoKdJurokzy5cPjJRJd4QhO19qRBEq1rxwTlvrrAyhAFUI QcEqqOsiTZz+qYgHU8HY2iAnf/6xTgZezwJu8RdGjADutRUgOpDayras2rhUvnNLMIh5 4KJZNq2XFmApHH2pCItfJ407d0zK0qrGZWaZTt1fO8uGHdLNJ0Z8Xj/FyQlLBxjFMOGN V4jqRFxS6tC4LXqt4pqCsJ2NxgzdZjlEdjzFXWz/GsAo7JuGXgj36hMQEiN1+sQBSjJH 9ZwoHIkOInsC/kmbCgJKfDJMxXqg2dontBuWvkLhjmxEYwVCeO+JZNoM3eRBvvvOFIFA fIig== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=KWsEIcgTIn4IPq0Ius6VFWfC3Ruu3eXO135uiMf7NG8=; fh=Lk00RAwXfEdrvl02y/oikuAjnGx1DnhK+LC4UHSvN80=; b=hwhPm19GcrBcjJdnQOpYRsZU1u+NJC5PpGJViNP35Fb8AIH/FVOhPNyTDdwfleupYF wwBP6PimQ0bPM1uuviSzd4dhkjKdcZjVfdWRlM7DGKHm+F4kwHdhECP+qCseR5RtiqHN 0sbjB/Z4GxBMmnKV/cjRVd7Ue2IMarCOnrrgQZEegll6UOVZ7sg4MQnupo18nN+QMpqO 6oeDe0A/TLNJ4UhMWnSeGKVLan31MWQwSaPXjaMypdoeUkRmIjpeoxbTWji27ZYPVLTR cbgWQNnlxyOe5xoYGR+xFUwGe1Q3KVTsV9xotR3pzvNEWnWmXeUxuEiNU4yOz0T9AhK4 wPTw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=toQELOnD; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-157329-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157329-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id y23-20020a05620a0e1700b007905e3a4538si11401202qkm.93.2024.04.24.09.34.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 09:34:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-157329-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=toQELOnD; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-157329-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157329-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id D2C931C20CE1 for ; Wed, 24 Apr 2024 16:34:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EEF7E16C6B0; Wed, 24 Apr 2024 16:34:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="toQELOnD" Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) (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 C73E21598EA; Wed, 24 Apr 2024 16:34:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.167.242.64 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713976447; cv=none; b=Y0+M6RKPym5OCai2hQMi2tSgrna9ELOP9XmBux42Xdaj4XHmPQTCuNQIfc53tNgkAbO5NSbP5TqO4o2JiMHuC8kW27Cp2DXeddROcyBkqRre8bcmS/ica0A3ZCSCMRDdnq5aZz3h/gD7wOeVKpE6WwEfFbKGJVt3KsMQUOX63a8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713976447; c=relaxed/simple; bh=sPxnpCDg/JQccPFyT4hEMhVpH5Dzk+4bYfHs/7rseoA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=AiJplY5aarDzcRZ68HC6WZ0ou6keo5eKg7ppKfaWHhMHX9DSgmYDSufSgRokH3XVdz9rYlH8T8WQtEq+X/q02gxRTASdUSzZDd3DbSJoY0AM859vbxoCG5/8LfWz0iaTzLz/zC7LTuirQfHmULfFtopM9X8mKD2Bcebokz2Lxdk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com; spf=pass smtp.mailfrom=ideasonboard.com; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b=toQELOnD; arc=none smtp.client-ip=213.167.242.64 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ideasonboard.com Received: from [192.168.1.106] (unknown [103.251.226.10]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 0BB27674; Wed, 24 Apr 2024 18:33:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1713976392; bh=sPxnpCDg/JQccPFyT4hEMhVpH5Dzk+4bYfHs/7rseoA=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=toQELOnDdFXTN2Wf0C8bfT7E7kcPmCt95AeHtn5/2+Yk1VqYc5eCp5BLjyaIQherx hF6f+Yv2XuF4F29Bgmo3adCO3Btofdn86Nn/75UYV4dh6F8tWXGOYJtMjS67BRMhwT hEifIngHKOyqQDNN2rOjiu3xAXn6riDVl98nfCJc= Message-ID: Date: Wed, 24 Apr 2024 22:03:52 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v6 11/11] media: subdev: Improve s_stream documentation To: Tomi Valkeinen , Mauro Carvalho Chehab , Hans Verkuil , Laurent Pinchart , Sakari Ailus Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240424-enable-streams-impro-v6-0-5fb14c20147d@ideasonboard.com> <20240424-enable-streams-impro-v6-11-5fb14c20147d@ideasonboard.com> Content-Language: en-US From: Umang Jain In-Reply-To: <20240424-enable-streams-impro-v6-11-5fb14c20147d@ideasonboard.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi Tomi, On 24/04/24 9:09 pm, Tomi Valkeinen wrote: > Now that enable/disable_streams operations are available for > single-stream subdevices too, there's no reason to use the old s_stream > operation on new drivers. Extend the documentation reflecting this. > > Signed-off-by: Tomi Valkeinen Reviewed-by: Umang Jain > --- > include/media/v4l2-subdev.h | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/include/media/v4l2-subdev.h b/include/media/v4l2-subdev.h > index 14a3c91cce93..99564a2ef71c 100644 > --- a/include/media/v4l2-subdev.h > +++ b/include/media/v4l2-subdev.h > @@ -450,6 +450,15 @@ enum v4l2_subdev_pre_streamon_flags { > * already started or stopped subdev. Also see call_s_stream wrapper in > * v4l2-subdev.c. > * > + * New drivers should instead implement &v4l2_subdev_pad_ops.enable_streams > + * and &v4l2_subdev_pad_ops.disable_streams operations, and use > + * v4l2_subdev_s_stream_helper for the &v4l2_subdev_video_ops.s_stream > + * operation to support legacy users. > + * > + * Drivers should also not call the .s_stream() subdev operation directly, > + * but use the v4l2_subdev_enable_streams() and > + * v4l2_subdev_disable_streams() helpers. > + * > * @g_pixelaspect: callback to return the pixelaspect ratio. > * > * @s_rx_buffer: set a host allocated memory buffer for the subdev. The subdev >