Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp830912rwl; Wed, 12 Apr 2023 04:53:23 -0700 (PDT) X-Google-Smtp-Source: AKy350ai7Bj+hpu31vnvdB7uFFmQgof6oKe02NHkSrY2pTt6dBYdjO6YKjy/k6FfzcOc/ijqI/iU X-Received: by 2002:a05:6a20:c289:b0:d9:896b:8c0f with SMTP id bs9-20020a056a20c28900b000d9896b8c0fmr3053624pzb.24.1681300402897; Wed, 12 Apr 2023 04:53:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681300402; cv=none; d=google.com; s=arc-20160816; b=t98oYJoDkAhQb5iLV57FcGRlGI7+XY6E5peJ5oMJzNAwOBYcG9J5yLdSsA/XDGSfab k65t0MS+img0QpDPULo8yB+1ScwvCzbPjO8FPoCwVDSPrql72IQTRIyqOwADiV2MfUbh pPreGy1/INJomhLApwM8tzkG75WehsZeOcEiMSacUVTaApvZGBczrKBfx8KXpb9p2NUZ lTZOYoa87/OhRWjE6PNe2Ih5WzSpI9ujLqZZlq0Q/Raufiy02o8B+xoxYD8tmnE2LEkr ZBIXIv/zuopf+UvRg9CVoJGEG4hE6Ban+v5iFZpypt+RTIFjAyiOtEznkj1jC3uUJyJK 5hnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=3Y4OrSbmH7qd/li+mc+pC2gnZfAbZEA2KAKuI19tHGo=; b=dvVUmwJh0/MUqByGsw0lGFYVIH7tBb5e/dStqr02KB8f/snpJSCWrcvglQkfMSIPf2 SMrLZGoH8hl9mvYsYKRPIKHH96aadJ7aoQATJA9vdJ+0MOXE0aMw3HXbIc+7CRylt8ue eaugIsAYRZDWhq6jH/FQ5r3mWBNCHW12J6CP+kVpKbkhIwFqRhJ5K4QLqQUwEfsZ1lAX k71jN8n84GgqxLiKYki2OvijLC0yZbYZMCJGnIl6BZeuOvKNFn1flBHx6c/LxLAkkZqE 2Zj0kTR1me8dbNfwm1rXYoRdhG41tKEjT5pUmGAGO1RvrwvwpR8kNv+Z4BO+YZ3OlER9 bB6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ANyWOjNC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x24-20020a63db58000000b0050be02c590asi16134943pgi.666.2023.04.12.04.53.11; Wed, 12 Apr 2023 04:53:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ANyWOjNC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230310AbjDLLuk (ORCPT + 99 others); Wed, 12 Apr 2023 07:50:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229810AbjDLLuf (ORCPT ); Wed, 12 Apr 2023 07:50:35 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99C1949C7; Wed, 12 Apr 2023 04:50:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1681300228; x=1712836228; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=eJguQgfPrCzOL1UinkrZOLLmdKnj7zrU8lo6WlYHIEs=; b=ANyWOjNCdnyJh+m6m4GZn/dwv2tyfTMODVhLp3P5R/CdNweR4tU4NpVI i/ecFSPonXbnKAM1jLIxyunUYwRYXTLrqiFR6DK/QDobfcm7W6p44a2nx exg1Tp9qJnIEi2NPv6Zw9GEVfxh1Cs9sml89T59EKqqKCsFw6YDLoj93Z 1rBQD2YvWEbnMSskt+ho04reZ0nC+ivzTp6xXVWHROOUPr9QKhWGUflvX IPpvSUz2HuienR2JVjwLl++DtRdaRqOr/L16W2DE10VsmZx9vGeN2LpQp JjwXYjdFXUz9ne24zly79GfuaJXke8nW7YRaHgm3A+R/5M30Y8nUCPhJd g==; X-IronPort-AV: E=McAfee;i="6600,9927,10677"; a="341362754" X-IronPort-AV: E=Sophos;i="5.98,339,1673942400"; d="scan'208";a="341362754" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Apr 2023 04:50:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10677"; a="758207430" X-IronPort-AV: E=Sophos;i="5.98,339,1673942400"; d="scan'208";a="758207430" Received: from turnipsi.fi.intel.com (HELO kekkonen.fi.intel.com) ([10.237.72.44]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Apr 2023 04:50:20 -0700 Received: from kekkonen.localdomain (localhost [IPv6:::1]) by kekkonen.fi.intel.com (Postfix) with SMTP id 06736120D2E; Wed, 12 Apr 2023 14:50:18 +0300 (EEST) Date: Wed, 12 Apr 2023 14:50:18 +0300 From: Sakari Ailus To: Michael Riesch Cc: Dave Stevenson , Mauro Carvalho Chehab , Michael Riesch via B4 Relay , linux-kernel@vger.kernel.org, Matthias Fend , libcamera-devel@lists.libcamera.org, linux-media@vger.kernel.org Subject: Re: [libcamera-devel] [PATCH RFC 1/4] media: v4l2-ctrls: add lens group status controls for zoom and focus Message-ID: References: <20230406-feature-controls-lens-v1-0-543189a680de@wolfvision.net> <20230406-feature-controls-lens-v1-1-543189a680de@wolfvision.net> <0f1baf5e-2ff6-e10b-5c3e-0a82c71d0ce6@wolfvision.net> <3ab7bfc4-aaae-2e39-b420-40ad8d71dda4@wolfvision.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3ab7bfc4-aaae-2e39-b420-40ad8d71dda4@wolfvision.net> X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Michael, On Wed, Apr 12, 2023 at 10:00:26AM +0200, Michael Riesch wrote: > - Different controls: If moving = (V4L2_CID_FOCUS_ABSOLUTE == current), > then what happens if the application performs a > V4L2_CID_FOCUS_RELATIVE with -3? current should reach 39, > V4L2_CID_FOCUS_ABSOLUTE is still at 42, the lens is still moving from > the application's point of view. Would there be a reason to implement both of these controls in a single driver? AFAIU, the relative one should be used if there absolute value isn't known to the driver. -- Kind regards, Sakari Ailus