Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1290980lqp; Mon, 15 Apr 2024 01:36:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXHzQ7Cs9+QPqAFD4bDMVPdzadxPseN3pNm911D7ASqoyyQCEXnsUH8Gza9S+VS5lpWwXeBsVFLDIvxO5YusMw+TW0eShzwgnHBsSDJjQ== X-Google-Smtp-Source: AGHT+IGHNmLJtfo0Em8gTuC//z8qo6bmxMZonzkYMDcY2JWtYNsYh8U0ypT7zXFkXOBKVqqaWmLG X-Received: by 2002:a05:620a:5719:b0:78d:6b8e:18d with SMTP id wi25-20020a05620a571900b0078d6b8e018dmr10192774qkn.64.1713170208635; Mon, 15 Apr 2024 01:36:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713170208; cv=pass; d=google.com; s=arc-20160816; b=UHwYHMHAo1ZdpnYM4rQUUoyvjk2Tp4DjeCdcsFAQkJBhg8yl3zRH+4zviFWaORKG4y 1ktYy3+HUcJmoTrXC1g6NlATYJLme7aL2QC7QUZgON/MG7WhUIUATdAowfWSHecaArN5 sstnprgw/6C83ZkDU7Wgau7ecIwa7CCWvtvg5ZH3x6Wk8wWmdluSQ/V6bfKrPBRcenmm KnCE8wif6G/r6jt4lyH4U6y9xsj85w3gzAn0tIyeXqA0medC1JyB8qqWhTFDXg4KITAQ QBojPtAvcuIViw3YepvaSGq79PBvH4pVYztzGD3pzCwI5lm/gVw9KynvcQZ4SR8Zxr/b TYUw== 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=piOk95SolCX7iNmo1aBdkyn7W8gX6W7n77toK8gUd3U=; fh=mYeyNJtmDBPRh/7liAaLfsLUgkblCcEk7GENrR+GRoo=; b=Kb4i53Mj/6xZjvEBDHCAQgeaAzRnHZN1B1LzwZUk7AeCuoyBSr1DFzmBGpL0+zf7mb aEMCWm/qjdbp6DUpKM9PLwhPiCqUuN31C8aonobmQ1zIEut39oXZlUXeLbvQR4wGY27h +Pr/rEWNl6ghCyagj6O8CsQhSHGk17+MeO4uAQTfSc3LMFUbvSHh37jtLU/k4VpOhE6i /Rxf1WIqLWW4MpCxelBaTKcMM6/Dkl+1ZfmzU9C6zJpRwpekfK0P6Tzt0gOd3qxjNNrc rSfmQ1Bf0quQaT0+HWsJuVDVhsZ4cIEvUWjGUPL4n6QiI6lMXpDCvitC/qjF2Ly5MyD/ VfXQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=lsNOK2YV; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-144564-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144564-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id w21-20020ae9e515000000b0078ed2e3ab53si6024214qkf.727.2024.04.15.01.36.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 01:36:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-144564-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 header.i=@intel.com header.s=Intel header.b=lsNOK2YV; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-144564-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144564-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 8794B1C21EA7 for ; Mon, 15 Apr 2024 06:09:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BBD50DDD7; Mon, 15 Apr 2024 06:09:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="lsNOK2YV" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) (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 8531B6112; Mon, 15 Apr 2024 06:09:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713161341; cv=none; b=ZZpEIZzZKBD/dbS71V7SGcYJb9F8uMIzEc39VZAUMFMxiGeO4W0qDX1bACTPGB5bGVeebTYJCzBoP9Ak6CpKerbNYmfrnVNGw5OrE9EIrKVPXxOPqJLvZAjnT+MCgCaxUvRZ8mzlfiTIARxIPtUt+8FEsIzYlzSbqjkq8e8Jdd0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713161341; c=relaxed/simple; bh=e9ABONc1WXl3FPnYnjI6Nc2vONxLJsw3QN/efR/K9Z4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=P1wMSjzZyVLPJrIMn16lwqvWBV55wjhN2dDt/sJoJVhzu/BnEwRksO17IHPN0mVLcMeXI2ZQe35vLRP40alQ07nJB2IeI9H0QI16Uyht8ucGwZ4zpJq3qwaQxTafAOE363uU4yxJMw2Vts2mPg65nWl+QwL5k0pgExQVjwb+2AY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=lsNOK2YV; arc=none smtp.client-ip=198.175.65.12 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1713161341; x=1744697341; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=e9ABONc1WXl3FPnYnjI6Nc2vONxLJsw3QN/efR/K9Z4=; b=lsNOK2YVjAXPYsic1+l74ZwQ81Pqt9AtwhC7p2bt4t+LmDEUuHaEJn11 +quwPrGuXlJ8xdK2kcbELpgM/VoW2Wpwlv7vx8BvPHQ07extBL0pabjM4 vr+5s0q6bfeY++mpJbPKjKv5Vx1IB87PUiRpg+Q/B1QLzW8XMfQMlaN6B atSMfGmlxCps6ZZ0ycQ6XEdfapQjnV1mLEcaSZUbP2ETok4aYu6dbpKJx Hi/cw/3ILs1nRfY9wMEeWhFxI2KzBXHYD2p39cR0SzVpZyTFywFdLOG23 NRHmR+j5TmABhd2HMIfu2P0GNFgjL0Z8lpaOSrQWDLiQda24BgtyywNWd w==; X-CSE-ConnectionGUID: FbPC424GQrufTFL9PErpzQ== X-CSE-MsgGUID: CODdiGc1QmaYWcEniw/bQQ== X-IronPort-AV: E=McAfee;i="6600,9927,11044"; a="19956085" X-IronPort-AV: E=Sophos;i="6.07,202,1708416000"; d="scan'208";a="19956085" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Apr 2024 23:08:58 -0700 X-CSE-ConnectionGUID: zsGB3klfRvCpiAEsXsh+HA== X-CSE-MsgGUID: JECtCCC/R4KJZDpgsYrYWg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,202,1708416000"; d="scan'208";a="45077498" Received: from turnipsi.fi.intel.com (HELO kekkonen.fi.intel.com) ([10.237.72.44]) by fmviesa002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Apr 2024 23:08:55 -0700 Received: from kekkonen.localdomain (localhost [127.0.0.1]) by kekkonen.fi.intel.com (Postfix) with SMTP id 1109711F8AF; Mon, 15 Apr 2024 09:08:53 +0300 (EEST) Date: Mon, 15 Apr 2024 06:08:53 +0000 From: Sakari Ailus To: Mikhail Rudenko Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Laurent Pinchart , Jacopo Mondi , Tommaso Merciai , Christophe JAILLET , Dave Stevenson , Mauro Carvalho Chehab , Kieran Bingham Subject: Re: [PATCH v4 17/20] media: i2c: ov4689: Configurable analogue crop Message-ID: References: <20240402164552.19171-1-mike.rudenko@gmail.com> <20240402164552.19171-18-mike.rudenko@gmail.com> 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: <20240402164552.19171-18-mike.rudenko@gmail.com> Hi Mikhail, On Tue, Apr 02, 2024 at 07:45:48PM +0300, Mikhail Rudenko wrote: > Implement configurable analogue crop via .set_selection call. > ov4689_init_cfg is modified to initialize default subdev selection. > Offsets are aligned to 2 to preserve Bayer order, selection width is > aligned to 4 and height to 2 to meet hardware requirements. > > Experimentally discovered values of the cropping-related registers and > vfifo_read_start for various output sizes are used. Default BLC anchor > positions are used for the default analogue crop, scaling down > proportionally for the smaller crop sizes. > > When analogue crop is adjusted, several consequential actions take > place: the output format is reset, exposure/vblank/hblank control > ranges and default values are adjusted accordingly. Additionally, > ov4689_set_ctrl utilizes pad crop instead of cur_mode width and > height for HTS and VTS calculation. Also, ov4689_enum_frame_sizes is > modified to report crop size as available frame size. We're amidst of a change to the APIs touching sensors with the the introduction of the internal pads. . I'd therefore postpone this bit so it would align with the new practices (also subject to change in the metadata set). The rest of the patches would seem more or less ready for merging to me. -- Kind regards, Sakari Ailus