Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6917193rwd; Tue, 6 Jun 2023 04:01:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4vvDJJ08HIq+6CK7d1Ah9X+lDnYoYEd/PrEDSY9Mcc8Guhf4T5yj0je0DXM7+1m6RFoHZt X-Received: by 2002:ad4:5aaa:0:b0:615:29ab:e4a8 with SMTP id u10-20020ad45aaa000000b0061529abe4a8mr1886781qvg.31.1686049304604; Tue, 06 Jun 2023 04:01:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686049304; cv=none; d=google.com; s=arc-20160816; b=YVyyqG5+k4emhG4jq7KnT219aXEjDfQB2orUc6OQokpyrq3LRtFF63E9ZV2EpDPiWf juvbyjPJEl3w2lhu5NzyTno5zzIIAKsbgvnf9PfHGnSC1erCw60VPAXkKy48J8hj5tQz 82T+pE6uiKPNMycKSsVbSkG+on/F3/md2qNJjmoGfDT7IuKAj+UQYN/fzLpkB/CRcdbU OZ4ixyAlYQbgx8dti4uovdy8eFrPPlQiDmD8Mpxc5iaSH5dA09kkSR8p9UFwiAExCQU1 FLBURgNuv9TuvxzxPg7PkmKydJBf0GU9H7gT/Q9sf1kiJlfg6bs5J2ClSf1MxgheRTTB LuSg== 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=BteBEKZu0LtOpAP0v7tQlgSukTinhdn88NlXE8TTiTg=; b=Y+qZ/0/wdzXVgcwUujk3dGwrZAnyN3kx3/TjJRalKyER+dewWAxIDWFfIc19Ejr/GK H4pr94vEHyQDNHbTFXByVFk868i+fUKDigJx7fRu8FDHNgawb7NttQjentww6l2FtM2+ /dONA542RUgtsLazctB5JhpLlaHM6pU26/ZRrG8eBctAdlZEMPSAnNjQtzJMiokd73DK Vdyb7itEFXXegAaJjQvc5PUhtz2+SNOHy14ZSPIqtif60WE4qfxHUbbzSIB/A4fRnxgI GoqmTWacw4ONErTfCQU4TbLk69d6RcfH+l3S5kPe5Fztwk8qbiBV6OiJHBMzpO4oKa5l 9IJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=kMo32Ppi; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p19-20020a05622a049300b003e4ce105af5si6059614qtx.534.2023.06.06.04.01.30; Tue, 06 Jun 2023 04:01:44 -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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=kMo32Ppi; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236360AbjFFKhq (ORCPT + 99 others); Tue, 6 Jun 2023 06:37:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236033AbjFFKhA (ORCPT ); Tue, 6 Jun 2023 06:37:00 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F88B10FB; Tue, 6 Jun 2023 03:36:22 -0700 (PDT) Received: from pendragon.ideasonboard.com (om126253223039.31.openmobile.ne.jp [126.253.223.39]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id D356A1221; Tue, 6 Jun 2023 12:35:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1686047755; bh=biVLKsT44hZdITyP0tgFesm18vuBods/TDQ/DGnqbVQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=kMo32PpiPT6GyJLXuZOrPei9Uztqe/JW3nOkL3fO/YVxXKItPyK8S5PktZX3FfbQ7 5UB0lP52cBUvMBO23hh91xRpKL6ZBbajA2wHvOG5l1eB37HHNP8pm2UYnjqSNAdw8V dab1OhIP8MssRPcnLLVHV0tQj83PrENqtXpNTFrw= Date: Tue, 6 Jun 2023 13:36:18 +0300 From: Laurent Pinchart To: Michael Riesch Cc: Mauro Carvalho Chehab , libcamera-devel@lists.libcamera.org, Sakari Ailus , Hans Verkuil , Matthias Fend , Dave Stevenson , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH RFC v2 2/6] media: v4l2-ctrls: clarify documentation of V4L2_CID_FOCUS_RELATIVE Message-ID: <20230606103618.GB25774@pendragon.ideasonboard.com> References: <20230406-feature-controls-lens-v2-0-faa8ad2bc404@wolfvision.net> <20230406-feature-controls-lens-v2-2-faa8ad2bc404@wolfvision.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230406-feature-controls-lens-v2-2-faa8ad2bc404@wolfvision.net> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,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, Thank you for the patch. On Tue, Apr 25, 2023 at 11:45:12AM +0200, Michael Riesch wrote: > The control V4L2_CID_FOCUS_RELATIVE only makes sense if the device cannot > handle absolute focal point positioning with V4L2_CID_FOCUS_ABSOLUTE. > Clarify this in the documentation. > > Signed-off-by: Michael Riesch > --- > Documentation/userspace-api/media/v4l/ext-ctrls-camera.rst | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/Documentation/userspace-api/media/v4l/ext-ctrls-camera.rst b/Documentation/userspace-api/media/v4l/ext-ctrls-camera.rst > index df29150dce7b..42cf4c3cda0c 100644 > --- a/Documentation/userspace-api/media/v4l/ext-ctrls-camera.rst > +++ b/Documentation/userspace-api/media/v4l/ext-ctrls-camera.rst > @@ -147,7 +147,9 @@ enum v4l2_exposure_metering - > This control moves the focal point of the camera by the specified > amount. The unit is undefined. Positive values move the focus closer > to the camera, negative values towards infinity. This is a > - write-only control. > + write-only control. It should be implemented only if the device cannot > + handle absolute values. > + Extra blank line. I don't think this is right. The control was added for the UVC driver, and there are devices that implement both absolute and relative focus. > > ``V4L2_CID_FOCUS_AUTO (boolean)`` > Enables continuous automatic focus adjustments. The effect of manual > -- Regards, Laurent Pinchart