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 B9BC6324B1F for ; Fri, 10 Apr 2026 09:31:11 +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=1775813472; cv=none; b=dD85aPbXZAWatvXTmF6HShIqREW0aEAAKYRHv83rsBVTUHgVf/BzsMLEWh5xYZWkYICT9vlK+TEjDYCQWi7GYCtyk5HbeG34kIUIcLaELz2TE/IC9Bkt0ZWr+IDPSWF6XDWzUZPH5FwIZ1eNxCG1Xe3sscldcJb1AwQR/MXnzIM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775813472; c=relaxed/simple; bh=51NSPHZ5PqBPzGohiMgHpBNXmi1D7Y23XKhllFrMEfU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rpP9j0z04bnEvJq5bYcXnm8dDYKgdpFAekLKA85T06CErirZCueOEPJkfgslEjw9/92v+7Ny3MTJJ1tH264/lWutBPkxACxw4AZS3pXvQPU9TrkR1D0KvYyCVTML1kAEFnD3wgsKplCEMICyfT4++Ch+bsOVyXrcNkXqyIdwSIk= 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=n9B0VnNl; 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="n9B0VnNl" Received: from ideasonboard.com (net-93-65-100-155.cust.vodafonedsl.it [93.65.100.155]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 877F1225; Fri, 10 Apr 2026 11:29:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1775813380; bh=51NSPHZ5PqBPzGohiMgHpBNXmi1D7Y23XKhllFrMEfU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=n9B0VnNlHbRBMqDliYsXYwzjSTP9IzEGXG3DRBIoQUfWskjBKIR/BmnVkKpmqnGcZ R8syv+jJQhR3TGMoO4FgEEjkiLvjLvvOVUTkQD4XY+wOwo9nynVfxgkGM8XqhqcyeU i5zYRbq1hekPqClMVfKZliIil9xKOTbOOSkKpXMk= Date: Fri, 10 Apr 2026 11:31:06 +0200 From: Jacopo Mondi To: Sakari Ailus Cc: linux-media@vger.kernel.org, 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?B?QW5kcsOp?= Apitzsch , 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 Subject: Re: [PATCH v4 20/29] media: uapi: Bump the STREAMS bit a little Message-ID: 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: <20260408153939.969381-21-sakari.ailus@linux.intel.com> Hi Sakari 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! > + > /* 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 > -- > 2.47.3 > >