Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1103492rwl; Wed, 12 Apr 2023 08:17:54 -0700 (PDT) X-Google-Smtp-Source: AKy350ay3djfagvYfOWm0d6yOV+AH9JXm5DJPfgxlaQ3nejTNC/JqhEr6ECz2k7Rewfaf2vmcBGj X-Received: by 2002:a17:903:294c:b0:1a5:167f:620f with SMTP id li12-20020a170903294c00b001a5167f620fmr6089910plb.15.1681312673834; Wed, 12 Apr 2023 08:17:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681312673; cv=none; d=google.com; s=arc-20160816; b=rC2UGcP2EQSTg+EOzp+FXlv94vW++T6lXFTKwze1oQ1Qu8IHrSolLgdDv7lHXqdSGV TZPoFXMaTZIAX6P21aEiYR89qfcEU3aGdtb5T8lOEf90fndq5qrJuVVJrj2IMgQxNfRv N0HWI3OoWpRTadeaRm8+yXde2AKuq2v8ZrI36elabYz8iY888tExBMI3JZqqf1ZxWeYX 6s0YqlKxIa5tUysWA/+xWtJx7GUYsxZiDv6cfbypKD2pVbSBhU0+C1mresebBqu/d4lQ OpXP3Qvhz9RuGdIiQjdoqzv/Q1xUr0cQ0N1gENr4vrcxJkc49UIB9Bi64vmFneAfBcAk n47g== 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=7rvalQ179InoUDWPANUNLGiNlmZowO7SKUu5YxJHWgQ=; b=MEmTYbPowXlq9BMCrXCdvZ195xwZkDZfe33zbjp+Wwuf734qMnhY/SW+a/PoHb4OSz /GxocFebX0BqWXpClW+NEIWNZ6JOJYlkLWLusBQ0ZM9HMebfGbMKv+wngOMz+I7DKUaQ jEPdD+BTXKCjd351c+ljJW+GwraJPzJVXCbP2SpWeL3SdemlIHzCijz8+UoGKi1FsEiJ /k06bRIUIunbM20TmSoJlkq6V749NL7asoTACFfTNsHimr+jLFpzWpUf1laucTCdjyrU KBZcYFqiBdOvCbU6Ya52nX5P6rooDWXL+wFl4VaDuVPXTmxDG0frXXiR8fvZanEmiTzb kPeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=HpX3rBGF; 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 ld15-20020a170902facf00b001a643d9f1b8si6703626plb.643.2023.04.12.08.17.41; Wed, 12 Apr 2023 08:17:53 -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=HpX3rBGF; 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 S231400AbjDLPM3 (ORCPT + 99 others); Wed, 12 Apr 2023 11:12:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230345AbjDLPM1 (ORCPT ); Wed, 12 Apr 2023 11:12:27 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A29A59F3; Wed, 12 Apr 2023 08:12:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1681312345; x=1712848345; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=ritMmFWx/EQv07wbQLyVpyzAhqQ3TR59ZTTAlw28V1U=; b=HpX3rBGFBZegClLCDiVFZ0SxwbHIqBtl54RkivxGdnG7yWna0jVF4lCk Nl3jY+7tsxUPatN6erCIvJt0UGw0lHtgeC9vCk7zEsZdiUBUPCA8bqg6/ bB9/h8qRFMhGdCFj1agufCimDjPsmNaFtKa4GuJbkdRynWrKm4d5nzqEa puDQXQtprt2AklENjigoYgEv1gwQIED/6Djv2wWmyN8lVQMIF01BrAI+i gXkqYhkX6WP+I/gXDs89g8YUkq5aXYwV52KKdlY0SVx0D35XBymKczF3B xrXEBHxvjVpiBuBtciezH7LLQ7e1Bgy0ZTNW5j8B8SDL4C1ONgoM7xGBz A==; X-IronPort-AV: E=McAfee;i="6600,9927,10678"; a="341419660" X-IronPort-AV: E=Sophos;i="5.98,339,1673942400"; d="scan'208";a="341419660" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Apr 2023 08:12:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10678"; a="682501553" X-IronPort-AV: E=Sophos;i="5.98,339,1673942400"; d="scan'208";a="682501553" Received: from turnipsi.fi.intel.com (HELO kekkonen.fi.intel.com) ([10.237.72.44]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Apr 2023 08:12:22 -0700 Received: from kekkonen.localdomain (localhost [IPv6:::1]) by kekkonen.fi.intel.com (Postfix) with SMTP id D0A5611F78C; Wed, 12 Apr 2023 18:12:19 +0300 (EEST) Date: Wed, 12 Apr 2023 18:12:19 +0300 From: Sakari Ailus To: Dave Stevenson Cc: Michael Riesch , 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: 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 Dave, Michael, On Wed, Apr 12, 2023 at 02:55:56PM +0100, Dave Stevenson wrote: > > > If the ranges aren't updated, where should that out-of-range lens > > > movement leave the lens? > > > > This is up to the hardware controller, but I would guess it typically > > stops one step before disaster. Wherever that may be, the error > > condition and the current position can be read out via this new STATUS > > control. > > > > Does this sound good so far? > > Sounds reasonable, but I'm not the gatekeeper (that would be Sakari or > Laurent), and I'm just expressing my views based on the lenses I've > encountered. > All of my lenses have a single drive for focus, a single drive for > zoom, and where there are multiple elements they are all connected > mechanically. Your setup sounds far more complex and is likely to need > a more extensive driver, but it'd be nice to not unnecessarily > overcomplicate the interface. Could we also have a driver that uses these new controls? The controls themselves appear reasonable to me as well. I guess there are changes to be made based on the discussion? -- Regards, Sakari Ailus