Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp276247lqb; Tue, 16 Apr 2024 15:52:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUyVaEFxkaDynIWY9IHNtLKTNyKLgqM+oXl58qtD+goT0CD5vJAlLaF8/5cwzkpL5oufmF3jzw3skH5iuT9ZycVUKi69to22JvnF7JsNw== X-Google-Smtp-Source: AGHT+IGViHrwVuXMsXeOk69SGfT0uJu6BZUP1YfK8wCc3weae8VGlk8Vy3oPii6GDHTj7tY1Q9Fb X-Received: by 2002:a05:6a00:3d42:b0:6ea:7b29:3ab7 with SMTP id lp2-20020a056a003d4200b006ea7b293ab7mr16957087pfb.23.1713307966127; Tue, 16 Apr 2024 15:52:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713307966; cv=pass; d=google.com; s=arc-20160816; b=rCfMFKHMKAo4LP/CTUlx4p7r8fE/N9J+7yobo0V1n1rOKeLf0iJu1oV+F2cYl+SxTv SMHnqRuaur7leGOg5VqRmWNlOIFxMT0UEyvBFVgVlBfelI/6KdzMS99KysPoqSxFfDZh 3dRYcd8Gp3iEGeLeGbrTi8MDzH5xumKCOO3uGvTQo6OdnIQrEXtGQhr2OS/xVPzTXw8M MnM9pHif3FCQhjNUyH+hQBGY98uq5g7G0Df/Cg6h2EBcJOEpQHfHj07WwW/8oKSRvwhk frcYyXgTnjiDvQldWOOFeHhnCi8Vd0/J8mX+cO4qtUsuDwQaEbfr/tpN+9vrV0/U+yfL kJkg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:in-reply-to:date:subject:cc:to:from:user-agent :references:dkim-signature; bh=8CmaAHJ8fyCKUaR/yDyoxLnNdYL/VOQyhvKaNxuvxrk=; fh=RPjeuBInRCS7jAjoFw529mXzGkzeoWq36v1CIwlP/u0=; b=FPkGcwuWwzrftwHqAExI6J5PwBfO3Rqg4YN10T6jAGm3oNioy1zx/NxG/Z+zbfGYSE y8tSyrqTQ5KwWHbOKNRLVEcRssHwBTB2cLS0udgCKq05ZLEVcPUHzqcRmjQl2K1AwFPL bkORkJVhhk7FNvz6A6ycGHyUG1Bx3+mwn0xHpUcwysGa5Dbi0uv3iTYWRn9cyPipb9sj BvLd48UEo5XM1rLYNlzDmc8p1vqxgu9X1fJmdczhjIdr55xA1zJH2f4xA/0o1g8rtcJC Idi4zF46t7rCzjcIpl/x6JCjUVsmtzI4sLCVijm3EYXDyOD9x3OQ6b7KSlL+MHr/fsbp Pzvw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=BAXy4T2O; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-147723-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147723-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id t21-20020aa78f95000000b006ecea2c6a4csi10379432pfs.380.2024.04.16.15.52.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 15:52:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-147723-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 header.i=@gmail.com header.s=20230601 header.b=BAXy4T2O; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-147723-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147723-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id BD31F2824D4 for ; Tue, 16 Apr 2024 22:52:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6F82A13A3F1; Tue, 16 Apr 2024 22:52:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="BAXy4T2O" Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0B2CC78B49; Tue, 16 Apr 2024 22:52:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713307954; cv=none; b=mts9MObV/SUiRNiodCG7i2C0F6T2Ad5ACXCbr0ersc31Z0TwC2m4aWRxNrv77Kt4AwrcwmCRRo0Bh+xIYQzJHFCnYaEWGTdlwAyvoTYzRywSZJRN8030TkEZBkUjC14pNvcfLivcdTiEanzbBJ9pL3ix+ezkdlccyg0iUkorbqg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713307954; c=relaxed/simple; bh=8CmaAHJ8fyCKUaR/yDyoxLnNdYL/VOQyhvKaNxuvxrk=; h=References:From:To:Cc:Subject:Date:In-reply-to:Message-ID: MIME-Version:Content-Type; b=HpjNRG/y/NHENRuY19+83vogcD+Lz0m0YmxQ7G0j1qdQX3TwDFMuOsF87tFzeD77PL5IG9V8PNoSwGTDnORVaqZb3axh1sadEgrvYlduLjdqAcqd7GWfBF1RtODTXG4VksXjWyIpZ4X+usY1/3bs3sxjXmLztGIT06Y+7tu5jso= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=BAXy4T2O; arc=none smtp.client-ip=209.85.167.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-f50.google.com with SMTP id 2adb3069b0e04-518d98b9620so3703947e87.3; Tue, 16 Apr 2024 15:52:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713307951; x=1713912751; darn=vger.kernel.org; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:from:to:cc:subject:date:message-id:reply-to; bh=8CmaAHJ8fyCKUaR/yDyoxLnNdYL/VOQyhvKaNxuvxrk=; b=BAXy4T2OwC4+BnkXODC3jYUlznCaY3mH0HbLsSwRyf2On1cllRTBy6v1Tk6ZdEvVdC D9mAhqYaLIKv65dNi/tqSnLJFxQt3kGfvKnfCow3yv52MG+byX1uJfaX2uRoio29djiW 7/g8jxQLCePyjzH+QL0tyUubEIGO0rmUenIx+RrE3uT2Zw5XmpcjY3RVT7eIIHx/S7ee Wl9RAAZSA5GDbczbtKzKMzkQYiligqPoID+2SGLh1a+GlLRSCMD6YZYHhHtamCB6fg0F F0th1oueHTRbxy8+mfMM0Bghpmq+M1R0YN2pimePW1G53sj/FeaVEIpuXPYZeuedoCca z1xQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713307951; x=1713912751; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=8CmaAHJ8fyCKUaR/yDyoxLnNdYL/VOQyhvKaNxuvxrk=; b=eGWhNqnqj5bHY+/wsVUlM744L9R5HfUdkGX6rnWUu+m+Zb2WG2wdO2CWw2Af3TvDSd MjPPOBvbYnxs1yDvqxOBZxam/VEF614pIza3N/lziEHFfPkkCD2WHkL9iuiGXoUuuU0T hxL5Yav8mdRmzOoD9LW4L0rsnG3cEXSi9a9wvKy+Ds97ETeDa6j02jiITGV2NsGWcplv Lf9fwvACtbDYhlkHKmadOokvmECc7Z/vhGoTOnpU66Y44cpG7sOwzSUBh4ayeX7F+ndl KqMoSn31ubN1Mlj8QkV0HlCc3/TEk1hpGEQXgljLfOXU22DaNbNsCJuV37kPIMZDpge+ 6wBg== X-Forwarded-Encrypted: i=1; AJvYcCXfCA+iiEj+vJcTE7AgX792JjkZZb7qouJwMZUNhZh46lomBOCBLplWL2DYkab0KcJ5k6JFc9Oep/p4B5PHVKYiMRSjOLWrLC92GC/a X-Gm-Message-State: AOJu0YxzZk/hXUftdPTnSKp1GJy0aJu5+fJnZiiBQPnOV+SuDbySRmS5 2FYJOFJPhEBMpty8fxozq8AMYOcw8hDBaROYuZOhit4DqfciVuNo X-Received: by 2002:ac2:4253:0:b0:519:36ba:2229 with SMTP id m19-20020ac24253000000b0051936ba2229mr966616lfl.28.1713307950777; Tue, 16 Apr 2024 15:52:30 -0700 (PDT) Received: from razdolb (95-24-153-47.broadband.corbina.ru. [95.24.153.47]) by smtp.gmail.com with ESMTPSA id n19-20020a056512311300b005158d77665asm1737965lfb.30.2024.04.16.15.52.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 15:52:30 -0700 (PDT) References: <20240402164552.19171-1-mike.rudenko@gmail.com> <20240402164552.19171-18-mike.rudenko@gmail.com> <87ttk274e6.fsf@gmail.com> User-agent: mu4e 1.10.8; emacs 29.2.50 From: Mikhail Rudenko To: Sakari Ailus 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 Date: Wed, 17 Apr 2024 01:51:40 +0300 In-reply-to: Message-ID: <87pluo7weq.fsf@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 On 2024-04-16 at 06:47 GMT, Sakari Ailus wrote: > On Mon, Apr 15, 2024 at 11:22:09PM +0300, Mikhail Rudenko wrote: >> >> Hi Sakari, >> >> On 2024-04-15 at 06:08 GMT, Sakari Ailus wrote: >> >> > 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. >> >> Okay, so I'll post a v5 of patches 1-16 with whitespace fixes (as you >> suggested in patch 20) soon, and the remaining patches affected by the >> metadata-related API changes as a separate series as soon those changes >> land in media_stage. Do I get you right? > > Yes, please. Done, see [1]. [1] https://lore.kernel.org/all/20240416224524.1511357-1-mike.rudenko@gmail.com/ -- Best regards, Mikhail Rudenko