Received: by 2002:a05:7412:8d09:b0:fa:4c10:6cad with SMTP id bj9csp644956rdb; Tue, 16 Jan 2024 11:10:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IGE04hb55szMQQ39jKiKPaN0jPNirU2ZK6cj7uTuE0wQTTXTujdpaeSKpMlRq2FxbuvWJRa X-Received: by 2002:a05:6a00:3d4f:b0:6d9:bf50:1c71 with SMTP id lp15-20020a056a003d4f00b006d9bf501c71mr4617777pfb.48.1705432219750; Tue, 16 Jan 2024 11:10:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705432219; cv=pass; d=google.com; s=arc-20160816; b=yr/CI3dhbAztIDT0Y9ufw9A56Wc2U0yDlAjVwmo1eE/zytW/O6SBLKDoaMw6AL9tcP xmh6V4JzXiDFFcXqpp8MSkanA10sBZDGRB1RCO64f0p5KJPlbkdEMr18szkPX7Qn5dVo rBK5raicSoDwvFaARSzndf/WowpOO0ku/VYUaLu3oea6JoGB5U2dlMVVadeb3JxWR5AK 3DrX9YzbB3H59n/YGJMmrJwOvTZSHPqNG5f0ZF2Vm5tgRedYq/KzK/kPJY//rlLgYbOI Rg7b4hQc+5OnA3kj3D3ZK3ah7kjEfSuWvRYhQsb3Zq8u35JP/ol1kktv6n8nkhQ4h7BY mm4w== 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=DMoK5Gz3gZ3WEMhIMkcvDtk6gVIFBMwAEjGD18mT/f0=; fh=LzQ4p/nzBrypHGSMlksqCjAUpHymDEZO3GabD+Gk180=; b=L8qLmOU7Jc3B4At8YUJB49wRianFrX/0qslt3FtYkxDeK/edLMqDgUAt7KNdL83XrF lXf6UEwV4sOHKpVW38IBH2NQLF+m068UGLerDUCvul5v0P567Bv3Psn5CXzbjBUPH6Bu 8pWLDwi8hA26phcar/0BK5IJytDzPYCc++QiiZ5761rF12SivjdCgtdAMNJ3TNLJDKJ5 0Vr9Gs8GBnV+ofo0Sa1pM3Lux5Jd/bX+ld2YlQ7t/JUNZxjSatfOSDspGAml19HguvRx IkwxEF7el7mkUy8jrJdZBjZPtgMW0zKCaoD6VHAZdUW29nP6qhrakePdM8doZfSLEeFz IW+A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DCyFyKX0; arc=pass (i=1 dkim=pass dkdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-27733-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27733-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id le13-20020a056a004fcd00b006dab980126dsi11919391pfb.227.2024.01.16.11.10.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 11:10:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-27733-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DCyFyKX0; arc=pass (i=1 dkim=pass dkdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-27733-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27733-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 4E4C4B22E03 for ; Tue, 16 Jan 2024 19:10:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3C1921D524; Tue, 16 Jan 2024 19:10:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="DCyFyKX0" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) (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 B64241CF9A; Tue, 16 Jan 2024 19:10:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705432206; cv=none; b=oL7ymza18n/3I1uXuQOZ/p9Qkv2M8j4OSVAfkLqIRSS2bnO6xVUZuujZodNyqorRM0l33OP3E2ojG19jj0Fq8jkcquuTOwKgIbQQcEIv8WmZ9CkVV3sQpBlbVSmWvTzvD9/FM3pFk4Mzw2VJc21H1GrrnobIN2bBprz6nFCtVwA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705432206; c=relaxed/simple; bh=sZ+MCwU6oGGcQWQZQIrYoyGgx0lzP8uZ1STGNge7O7o=; h=DKIM-Signature:X-IronPort-AV:X-IronPort-AV:Received:X-ExtLoop1: X-IronPort-AV:X-IronPort-AV:Received:Received:Date:From:To:Cc: Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=TW3s7B6aI+8x/jDv7AZyRWowtvOoUQbNT9ik+YGfIq2MDoM0J1jaJfGuexTIlVumWsq1G7p/PMnvRZ/GDH1TjS86elGG0C2srVgWNTRJribKUQxdvB94I6Oxs4yrRlauBiEXZSgkjtuXSiGakmmB9fZVeoXg916/32udP23L+NY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=DCyFyKX0; arc=none smtp.client-ip=198.175.65.10 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1705432205; x=1736968205; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=sZ+MCwU6oGGcQWQZQIrYoyGgx0lzP8uZ1STGNge7O7o=; b=DCyFyKX0lUmYZfZvrtWnfiIui47LRb/gAmD269Lq8Vfo+daixFwc0cOB oq7qOlw2pJvnD98UGIK9imoEe47zkzDMxVUCCMk8Q0gMAS5p960M9KU13 2G/WRmMU6KVJ7/lOF8n73PhCyTrjIKdfXj/SLdvbcsS6vol/ArSuES1Y8 Xvp2xGyh/IQhPl0b9eAcfFSPJWw8Krn5UA/15PDSh77gla0vZ1buGH4j7 7bX9vQYh4cC9kzB6zWPGK4WegeQRR1FIiO2SJo9kr8iz06fQ8VgtrrI2v L4TcVtJ0721I0A1sOvOwf/KhupV7iQduGExgwOuYljqNbjm0HNObm3wAi Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10955"; a="13313317" X-IronPort-AV: E=Sophos;i="6.05,200,1701158400"; d="scan'208";a="13313317" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jan 2024 11:10:04 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10955"; a="1115399966" X-IronPort-AV: E=Sophos;i="6.05,200,1701158400"; d="scan'208";a="1115399966" Received: from turnipsi.fi.intel.com (HELO kekkonen.fi.intel.com) ([10.237.72.44]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jan 2024 11:10:02 -0800 Received: from kekkonen.localdomain (localhost [127.0.0.1]) by kekkonen.fi.intel.com (Postfix) with SMTP id 13DE611F86A; Tue, 16 Jan 2024 21:09:59 +0200 (EET) Date: Tue, 16 Jan 2024 19:09:59 +0000 From: Sakari Ailus To: Jacopo Mondi Cc: Laurent Pinchart , 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: 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=us-ascii Content-Disposition: inline In-Reply-To: <3q6andka2su7i43xz2ok44ejvtb3hdjdn6xretyde7sdcvtd7l@lz2syngckivi> Hi Jacopo, 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. 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, Sakari Ailus