Received: by 2002:a05:7412:8d1c:b0:fa:4c10:6cad with SMTP id bj28csp57651rdb; Tue, 16 Jan 2024 15:01:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IGdOaKhE8y+btWNTZ+E/65tUX8vU/KZlBgwOSSMdYUOjXcqgepP5h5nDqCdG+S9PwhVDRv1 X-Received: by 2002:a05:6870:516:b0:205:ffc0:44ac with SMTP id j22-20020a056870051600b00205ffc044acmr12191314oao.63.1705446106984; Tue, 16 Jan 2024 15:01:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705446106; cv=pass; d=google.com; s=arc-20160816; b=qwkojucrUB1xdgCpO64vJZTj8WOa2oRUtE40Npi46C/bLRq3M68TxokTDmHnT7103P 1GWbSF7Z/7YRfWc5Eu8vIzq2mXHGDDiwUmmN3YiPLBwq8ttJg1GZGavMR6XqjkdHmbOL TySeZ/JDb9MRy4Go9mv+9cpL+AsOnQjkTqVdGtN1vlgbkncY1CoztdMYsvFT5kGcVv9X 6SisNLZXdeh+mTQZtp6lNocIResKZ/W6kU3wxft6l8BnlP8AFJqRytsYJZU9lGID/aDU 6506gNtG8WorM7QOjZ+oOTc3CErQzqXEzv5FScb0o5MxwkH3QR24ElQGa5ZAfdymLzmo OygA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=51bS9OFloiEYtkh2agmti+ab36Np7Sn8PmQsG8BSieQ=; fh=6akpG8LBEe5iHc+Vh16YjSt9uGbIM4rFSFL8GK7MBO0=; b=Y6TOZ1W8ovhNjs5O5YTRycFmW6NyabpAUzI6Q84JYgWg1gsAtuSdTVPO7cW/R2Zmzz URfyXlzmlJPishLgC+nTBYIt9/DCr0kFa4ZxlvbpdjX3dMp1NlxTWwuXa7GkhuHLYj7/ keFgoJYuzB2/9/5Dk1FWKuZrfvtshqnOrwhd3yjR+jF5/N/zMOnczDiNRHnCay9ZAuAW iQFunmrrvJqfOK/8DdQmxY51SpERaV0rybDuQTc3ItIXzeBxvGJc89+sNh1T/kI4hCtI 22bhioXzICRhMYffzgp1oU06fJKPIftHVvgk4ZMjrXYey1tKF2x9dopqmeoNE4BIyjL4 rW8w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=NnL9SKcT; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-28363-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-28363-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id ng26-20020a056871339a00b00206b3d8bb0esi3705171oac.85.2024.01.16.15.01.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 15:01:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-28363-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=NnL9SKcT; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-28363-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-28363-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 30E8A28C311 for ; Tue, 16 Jan 2024 22:56:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A33731B97E; Tue, 16 Jan 2024 22:56:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="NnL9SKcT" 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 8391F67C4D; Tue, 16 Jan 2024 22:56: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=1705445778; cv=none; b=uXTL6z/QikC6x8rKNIC3V19jWACzebNwJafaRt8ATu5rrwZoyBP04RB6xRWr27IUITlC6tbwEHlU9SSLMBk66rEnuOSJAsImq4LPN2jqGZU3GwoCZpYWw/AvjZ8IUnCK3suzMSfzwhxibGL9iBgM9Pu7tBhIZaDHCn6vdbyXeA0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705445778; c=relaxed/simple; bh=IRwRUQdwBTS2kA8qjwAaxRwBLfowiexvmeyjaSk3fac=; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; b=da1ciGzw0t4IZhtUI4BDtWVOtC70yBFGU7i9Sc6peViB3eHPoZNsUw/WQ3ERXC1Y7YMGh69mVwxxnlqxWtQpW5YDURf4rnAcGrfBwkXzY7XNQW3yD0bH3jmZOG0DlbRDZqWVtGa2dFD3XtPv8iVQqtb0rfhN9BwA83g0Ac6fe5Q= 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=NnL9SKcT; 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 pendragon.ideasonboard.com (89-27-53-110.bb.dnainternet.fi [89.27.53.110]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 5940BB2A; Tue, 16 Jan 2024 23:55:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1705445705; bh=IRwRUQdwBTS2kA8qjwAaxRwBLfowiexvmeyjaSk3fac=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NnL9SKcTkKobGkyR4WrheJwAIF15Z4nZEsqjsFLRxFWVxBUKsxefLH5JFUzkPGQgt 4HvyShIWtSuWBFIDB5IWl2PiUl9+LS3H6H19sop54T90O9ZvHdfi/0HaxT7vVpYgNj nu6PPj81LJq5XhAMDtsqoCSPbB5dESMZa2f3qK2M= Date: Wed, 17 Jan 2024 00:56:18 +0200 From: Laurent Pinchart To: Sakari Ailus Cc: Jacopo Mondi , Vinay Varma , Dave Stevenson , Mauro Carvalho Chehab , "open list:SONY IMX219 SENSOR DRIVER" , open list Subject: Re: [PATCH] media: i2c: imx219: implement the v4l2 selection api Message-ID: <20240116225618.GA4860@pendragon.ideasonboard.com> References: <3q6andka2su7i43xz2ok44ejvtb3hdjdn6xretyde7sdcvtd7l@lz2syngckivi> Precedence: bulk X-Mailing-List: linux-kernel@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: Hello, On Tue, Jan 16, 2024 at 07:09:59PM +0000, Sakari Ailus wrote: > On Mon, Jan 08, 2024 at 10:19:35AM +0100, Jacopo Mondi wrote: > > Hi Sakari, Vinay, > > > > a more foundamental question is how this usage of the crop/compose > > API plays with the fact we enumerate only a limited set of frame > > sizes, and now you can get an arbitrary output size. We could get away > > by modifying enum_frame_sizes to return a size range (or ranges) but I > > wonder if it wouldn't be better to introduce an internal pad to > > represent the pixel array where to apply TGT_CROP in combination with > > a source pad where we could apply TGT_COMPOSE and an output format. I'm working on patches that implement an internal image pad, as part of the work to add embedded data support. I hope to post this in the near future. > My earlier review wasn't focussed on the interface at all... > > To depart from the current restrictions on single-subdev sensor drivers, > this is one option. > > Sensors implement various steps in different orders and different drivers > have different capabilities, too. Mainly there are two classes: freely > configurable drivers such cas CCS and then register list based drivers > where virtually any dependencies between configurations are possible. > > We probably can't support both classes with the same API semantics and due > to hardware differencies. The sensor UAPI will be less than uniform it has > been in the past but I don't think this should be an issue. > > I wonder how much common understanding we have at this point on how this > API would look like. Probably not much? -- Regards, Laurent Pinchart