From mboxrd@z Thu Jan 1 00:00:00 1970 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 31980217F27 for ; Thu, 16 Apr 2026 14:31:16 +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=1776349878; cv=none; b=b6Rcg0lU/DUsRIyI5TwgeEkZ55R3i3wgVTDuDKxcT1KpYNBRYlwiBsLMvxCr68BuQ5j80q4CUM8JhCFg9k0+EHhJNpXUsv/PsXwhYQOMmj4327A0esgMMJP5GvMFp19zFXU5/TpZQAvGjRRNG3j/p4PcagW3buGWeP8+pJisILo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776349878; c=relaxed/simple; bh=ADkjxbgT7XOj4gw5+x8AdSiRM9/+0fi+ecmRvPRlq80=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=A8mJpbYb61sXiZUH4miqw5IGsY1fH47vHtNvzS6i4FVrUhKtMDuCrjEf+wLKM+DUxMTHht2PL126hmNNwC6GITpDkRI6QyzAY1zLC8cYc8mltHP2LNSBALUfmxBSOZSZXWJc+QJ5FEn6bn6moFDVWqtpA6hB//nUrQbmswmHlsY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (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=fsuxKiek; arc=none smtp.client-ip=213.167.242.64 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ideasonboard.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ideasonboard.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="fsuxKiek" Received: from killaraus.ideasonboard.com (2001-14ba-703d-e500--2a1.rev.dnainternet.fi [IPv6:2001:14ba:703d:e500::2a1]) by perceval.ideasonboard.com (Postfix) with UTF8SMTPSA id C9788132; Thu, 16 Apr 2026 16:29:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1776349780; bh=ADkjxbgT7XOj4gw5+x8AdSiRM9/+0fi+ecmRvPRlq80=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fsuxKiekfaglNk9cwhFtsY2PtneHTBjl/kx3QX4KFN0zzzgyIsEHklnG+21yKsNEz qiCbNG2+BO0tTJMh9i0Hwafok+pc1sLKpAX1FgbHSyLU86vivztqkM+hyTJJqqwOL+ 8uvHOvUlEfi7HSHiwWNCrORUxaRv5ARqEXH6neXo= Date: Thu, 16 Apr 2026 17:31:12 +0300 From: Laurent Pinchart To: Jacopo Mondi Cc: Sakari Ailus , linux-media@vger.kernel.org, hans@jjverkuil.nl, 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?B?QW5kcsOp?= Apitzsch , Heimir Thor Sverrisson , Kieran Bingham , Mehdi Djait , Ricardo Ribalda Delgado , Hans de Goede , Tomi Valkeinen , David Plowman , "Yu, Ong Hock" , "Ng, Khai Wen" , Jai Luthra , Rishikesh Donadkar Subject: Re: [PATCH v4 20/29] media: uapi: Bump the STREAMS bit a little Message-ID: <20260416143112.GL1775831@killaraus.ideasonboard.com> References: <20260408153939.969381-1-sakari.ailus@linux.intel.com> <20260408153939.969381-21-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-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: On Fri, Apr 10, 2026 at 11:31:06AM +0200, Jacopo Mondi wrote: > On Wed, Apr 08, 2026 at 06:39:29PM +0300, Sakari Ailus wrote: > > Bump the V4L2_SUBDEV_CAP_STREAMS by one bit up, order to avoid confusing > > libcamera with streams that has moved forward from the original libcamera > > implementation. The bit can presumably be taken into use but only after > > the other free bits. > > > > Signed-off-by: Sakari Ailus > > Thanks! > Reviewed-by: Jacopo Mondi > > > --- > > include/uapi/linux/v4l2-subdev.h | 5 ++++- > > 1 file changed, 4 insertions(+), 1 deletion(-) > > > > diff --git a/include/uapi/linux/v4l2-subdev.h b/include/uapi/linux/v4l2-subdev.h > > index 2347e266cf75..6160c3e21436 100644 > > --- a/include/uapi/linux/v4l2-subdev.h > > +++ b/include/uapi/linux/v4l2-subdev.h > > @@ -196,8 +196,11 @@ struct v4l2_subdev_capability { > > /* The v4l2 sub-device video device node is registered in read-only mode. */ > > #define V4L2_SUBDEV_CAP_RO_SUBDEV 0x00000001 > > > > +/* Reserved, old STREAMS bit libcamera used before API stabilisation. */ > > +/* #define V4L2_SUBDEV_CAP_STREAMS_PRELIMINARY 0x00000002 */ > > This should make sure libcamera versions which support the new flag > won't match agains older kernel which use the old value! Reviewed-by: Laurent Pinchart Could we delay merging this patch until we work on implementing the new behaviour in libcamera ? > > + > > /* The v4l2 sub-device supports routing and multiplexed streams. */ > > -#define V4L2_SUBDEV_CAP_STREAMS 0x00000002 > > +#define V4L2_SUBDEV_CAP_STREAMS 0x00000004 > > > > /* > > * Is the route active? An active route will start when streaming is enabled -- Regards, Laurent Pinchart