Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp870614rwl; Wed, 12 Apr 2023 05:25:22 -0700 (PDT) X-Google-Smtp-Source: AKy350YPjlAiGRTtbesoLISp/D63KC4jEJiHmNI/izr/ODEMlS6giKGMfdmFXgejm/Ren4N9dNQ6 X-Received: by 2002:a05:6a20:1890:b0:dc:38d3:676e with SMTP id bm16-20020a056a20189000b000dc38d3676emr6756440pzb.20.1681302322667; Wed, 12 Apr 2023 05:25:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1681302322; cv=pass; d=google.com; s=arc-20160816; b=JH1setvjPyTT/zClt0sbXRhotsP3nCyjcgb/KStHkEDr7v2tjBtyjcEEYqEZVehyOX 9j3UEA6MnTjy/mA2QINDfk+zi5x7JJ9f1H6CskkVeGQpC6342qvPQN44vJuCxxkL9VL9 gEC9OpwNUdfM9df2zyhnyaVATrS/X5xb1L1DJLj0WAsutzdhpRc0fVFC31LD2qBjScwE 0WjZtuWyR3c2DeCxOA42LeUh6m/xqJ6+GD54xO7BdgBNPDi1pAKUM+56YffWYPfj9XtT SFMlwaYhUkSlX+N/fgZjXiIFAQwC6geBvh8+PknhOUxZAcbLYomRWDaKWXm2CxcJLrUT 7L6w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:organization:from:references:cc:to:content-language :subject:user-agent:date:message-id:dkim-signature; bh=ggl+rPwLCtwKP7eyHLvj+vpcJ3IiUI0obGJOxcvOuXA=; b=fXc8asHFKIGJh0pxa4CUpZa/ZhfLTaI7MYQTRQThtbLzX4aO3ZsGUtZCZV5BrTeeRo JbCNl1xDKZa8xDsKiwoNv4nJ4Qw9PyoGZUr2fz006oEd2OeL+y7TnsbyBIf1dXiTxI01 G0jDWK8vTo+QMWlBDBfVD68bCnmGZ4h4XkJtcjf3hdLDVyVZfG/S1IAzNfPayx3AxLKh r+yJuOecFoYVuRHIsDxyuzC4ZkadfN5kwEAvOUBVUoIRVE+K7gzLAZrBAu2h1NOM0HDM oq9FJE5XoIV023g9BQLf/IsD7k9g/6zbzDxIb0FcmQa402N4ssLgIjv+GAps/Z8lIKOm KPDQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@wolfvision.net header.s=selector2 header.b=o+tiwQby; arc=pass (i=1 spf=pass spfdomain=wolfvision.net dkim=pass dkdomain=wolfvision.net dmarc=pass fromdomain=wolfvision.net); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wolfvision.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i186-20020a6387c3000000b005184d7fc006si10894999pge.674.2023.04.12.05.25.11; Wed, 12 Apr 2023 05:25: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=@wolfvision.net header.s=selector2 header.b=o+tiwQby; arc=pass (i=1 spf=pass spfdomain=wolfvision.net dkim=pass dkdomain=wolfvision.net dmarc=pass fromdomain=wolfvision.net); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wolfvision.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231426AbjDLL66 (ORCPT + 99 others); Wed, 12 Apr 2023 07:58:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230368AbjDLL65 (ORCPT ); Wed, 12 Apr 2023 07:58:57 -0400 Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0627.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe1e::627]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FCEC7ABA; Wed, 12 Apr 2023 04:58:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dVuHAEq2xD+SOUxOyQjiNvlcq0JhSt/DuD7VES6VYspklV1RakoG8hkHzGlcoYCc2GzlK16ITPEzs5qG5DVHMNBdZazTfAUEtzPF5MIvl7I4piR+fHBI3lD4nZ7rveLJvl+Rg68fOKILugpBw/6nv+RjYOOab8A6MBKrsEKuaJx5Z2lRSCiZC6rNkd1KjfKoznkg3Mn0zdkoStfZizV4PWuroKnlsMpYs92U9kgj9kqLU7jzmunihZhGCz79EdQbwtgnVZPiMCFqkFINQXADozwwpWFl9EKBZxCwyPZw6uCTbCIetuZQ5SeXC1AXaGq2ifVOwjp/ertx7kWpCJepMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ggl+rPwLCtwKP7eyHLvj+vpcJ3IiUI0obGJOxcvOuXA=; b=T2WhgKBJnflAR2bhoxj77mEIE0QqvQaHPr51kHRBHBGj6HMrL2Nx8FxoPpldLCiwJDV2M9gPFVC2+AyT9LkdFDHiFUlGTkQhg91u5TQ0lNauQebwn5fcQWC/ALvFv58T3STC/pkqFwPiw7tnjw8MC7BMDQnGrOnfrMEbwFZY0s2O3LdP9L3Dqw/V7D9E1HsHCmviJRCnCwWskPfRLYD3qIcdopv32hPXgNQbyUod4JJQu8PEfLq0PrtO4swGmgxACLLv9cWR7LKLhl0+zwoaeFcb5p3OR1GWW+O+lOIC5oyF9m4egwdMswWKWxDyfRzFqe+9F30MgaE78jEuYpl4tw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wolfvision.net; dmarc=pass action=none header.from=wolfvision.net; dkim=pass header.d=wolfvision.net; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wolfvision.net; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ggl+rPwLCtwKP7eyHLvj+vpcJ3IiUI0obGJOxcvOuXA=; b=o+tiwQbyn5x71GFkt4ZvizWp15ePRADZYJWtzQKvco1mFfaZIgJXXMBUc+bnBBzHW3Oz5yfxbvCA5v5sJ5+wa1BDmmV5xemcPqKviIZKEyio0lyjVMXE7Da2xKRHGegOwChfgGhhvrbZcxz+iu1Ld2rmmlGklVGRPexTlxRmBB4= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wolfvision.net; Received: from DU0PR08MB9155.eurprd08.prod.outlook.com (2603:10a6:10:416::5) by GV2PR08MB8076.eurprd08.prod.outlook.com (2603:10a6:150:7a::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.38; Wed, 12 Apr 2023 11:57:38 +0000 Received: from DU0PR08MB9155.eurprd08.prod.outlook.com ([fe80::77dd:14e4:a772:d85f]) by DU0PR08MB9155.eurprd08.prod.outlook.com ([fe80::77dd:14e4:a772:d85f%4]) with mapi id 15.20.6277.038; Wed, 12 Apr 2023 11:57:38 +0000 Message-ID: <8fe5c9c5-6eb0-86ae-9e5d-fbaa72be25fe@wolfvision.net> Date: Wed, 12 Apr 2023 13:57:36 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [libcamera-devel] [PATCH RFC 1/4] media: v4l2-ctrls: add lens group status controls for zoom and focus Content-Language: en-US To: Sakari Ailus 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 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> From: Michael Riesch Organization: WolfVision GmbH In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: VI1PR0501CA0042.eurprd05.prod.outlook.com (2603:10a6:800:60::28) To DU0PR08MB9155.eurprd08.prod.outlook.com (2603:10a6:10:416::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR08MB9155:EE_|GV2PR08MB8076:EE_ X-MS-Office365-Filtering-Correlation-Id: 86b6efd6-65a8-4d83-8c7e-08db3b4d1ca5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: IFtqGz4VYpOZNb3B6ozSKtaDlpEbsMMkYow4g8ua7+ZtpRj1JclJD/z3v+Danab6A7tbdbm8dF3YbfuiNFWHMe+Mo+p8wwk5eJY7LdN/PecFR/jQ7oXzyB5Wb8yJFOpx2pJV6D3AgjwngtOLwqWfLxhJBcpZU8ElpcoPyck++1xt5SYlq9hY9aIvs4RI5xafDvEvfKgyG+UxrA2A/R3ZUdSUOx28ddLexeBn3kq+sbkOAYhX8zUp7eB4bf/fBSZOMSQ6HjUV8Kb5R+G/jPQ9EWEpzwyDCm6Q/zhaCKCfK0yTvaWZz2GlD0xgkxo1BsgBws0ocXjKlBgg5eGgfiOJW9LMSgmVefaoTQepqpT04YtcAZdfxDFS81vz0S+dMlkTQp5BbmKZbJ/3dcLQpPFcGOEZe2aXbnyBp3kwBNQYw1wqOgiwNy5McNWwZq7OmTKWGVYPsMxC03GN/A1KG6AJGGpB2ozUQSdrWjo4E/EenENl1MqKYewHayXd2QfBMubOHDLMMNFlEpI+e6zrFDnqCLdneqrIq59+17U3ro3LwI3zebDWTQDh1AVLPpdMoPA306uvhNTT2sQaJXWgOTVtKusHV6RkA3iRXA65VXoZxanUgl6/IWyJeLavAHnqUNYXrSBy+9HQpEwO3n+XeO1R6Q== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR08MB9155.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(346002)(376002)(136003)(396003)(366004)(39850400004)(451199021)(36756003)(86362001)(31696002)(316002)(6486002)(41300700001)(8676002)(36916002)(4326008)(66476007)(54906003)(6916009)(478600001)(66556008)(66946007)(5660300002)(8936002)(2906002)(4744005)(44832011)(186003)(38100700002)(6512007)(6506007)(26005)(2616005)(53546011)(31686004)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?SGdyQUxEa21pMmFkNDJrOUdFMVJyMVdTeGpZb0VaRWIvTm55alhlTkpDdTJr?= =?utf-8?B?dm9YZEp0emlLK2F5bTU0bHZTeDdxcDBPM2lLM0FJbVdweEtPeTdIM1BtN1B3?= =?utf-8?B?aHI0ZWJkSVpSNU9jRGJVREh5cEUzaU8rUVV2WlRlcjkwUlRHYldXaFRjMlZO?= =?utf-8?B?NkRLeVdheHQzc3RQekdxSmNlekhZc1dTKzlTS0xhdUszVnZreENKUW1FdCsw?= =?utf-8?B?bTM2bHEyd2Z1MnlTYWRUQ2laUUw0VFdVYnNvb2tsRXdaZjR3dGdZbTB4RnR0?= =?utf-8?B?RDNvbzdYUmFlUlVHUlVZcVlaZXZlUFcwVDgxbTBPYlBYYWZpbytPeS9PaXhj?= =?utf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VCOHhJVlhBczl5dUVhc3pqVmowRzVPY0RN?= =?utf-8?B?V2c9PQ==?= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: 86b6efd6-65a8-4d83-8c7e-08db3b4d1ca5 X-MS-Exchange-CrossTenant-AuthSource: DU0PR08MB9155.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Apr 2023 11:57:38.3765 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e94ec9da-9183-471e-83b3-51baa8eb804f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 0vGarHXEyGttMNr4wm8d+T2b0kNY+af8kBU4AJCCU+L6eaixMh2QPo5GtQPhLb8NScm2XUQGTrlA+y0AvmYFXJxvIqlqc5UFNyAumX7GFlM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV2PR08MB8076 X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_PASS, SPF_PASS,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 Sakari, On 4/12/23 13:50, Sakari Ailus wrote: > 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. Probably not, but on the other hand there is nothing the prevents a driver developer from doing so, right? Point is that should there be a driver which does implement both controls, we are in trouble AFAIU. Best regards, Michael