Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp286321ybe; Mon, 2 Sep 2019 01:22:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqzZy3kfGJtszjX+PZ1TWMhaA5p8vpGcyZJcAfLCCWTxHTgmyGRv5xe+Rs7GKzAaz93PEmpt X-Received: by 2002:a17:90a:24a1:: with SMTP id i30mr11730068pje.128.1567412540543; Mon, 02 Sep 2019 01:22:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567412540; cv=none; d=google.com; s=arc-20160816; b=ZiXWV3aD+Dg+AOjY1kIpGiLWnYC1EeBF7kLXfjYLwKomTBi7z/mWiMc+jbJQtFX1aU O93q5orPH5vnG/+kxpZfT1cOQT3Y9UqtLQPX800DDfz9dRaq/sDogeQ6B3BzpORETyg/ VUCBHaeNoRf6qvPpfEnt699AKu8+LMJTfw1ZGJZS0OnMmbpNXIForsFqw/eB9cSXa+zU Ii/tuqBJyrDvMneYBjm+XpFPBsOq1X9Km/+eoiA9M6V74JWY020vL1jCPfy5zp6GPTo6 98TB3WV3i4wXdE2q0+vmJZQ+LsRwBHyCeiLJPjl/X51+LQ/UHSTfPtNDSMlOkGATMJFx lNmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=MGihrk5oOIHYLuYGrVSh3ToO+DWgCLrgQ29cG/czdrw=; b=vdZ5sO+++ThXoIBXMTKT5Fdt1WXn93ZZ/b5rn9OYegrzHz3T02Qf5+cbzXXTwipJ5T N7RftYenJoQLoaJeyh7RSAffsDHT6Mu6PD8DUbGZC6/w7scA29SSMAUl8tuIskiDvgu4 V4bZI+hNkAwx9x5VHMHLNPiVkI2wGs5XgUEG/hj1DQFTbT9esSCxHn9RZ1cdmpRTfYwi HfBDxB6ZJJnY5Ge3QozxEyV36L0qBC6SGnkVRdRju9/69fqkh5NdU1Mxy1UpLmeUVLry 0aKxs95EFrRtHraA+s33J17lWt2SYMwNHrYrfi1nRu2r1UhEf5LPk760Zp2E3JgHIOlV bHvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=ddESnutp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c5si2692807pjs.54.2019.09.02.01.22.05; Mon, 02 Sep 2019 01:22:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=ddESnutp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730615AbfIBITv (ORCPT + 99 others); Mon, 2 Sep 2019 04:19:51 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:58484 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729964AbfIBITv (ORCPT ); Mon, 2 Sep 2019 04:19:51 -0400 Received: from pendragon.ideasonboard.com (231.125-247-81.adsl-dyn.isp.belgacom.be [81.247.125.231]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 54748303; Mon, 2 Sep 2019 10:19:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1567412389; bh=5HBvswllGaiODYjSIoZK0GflOekHiZSNfmmM72aXnHo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ddESnutpxySaQ/3OkWOw3E0FVnOw68ZIr0ANYsVmiRXVIziGPIOVS4k0hcZquq8yP tcAbH9x6nM6+Tf7h3nu9gNOw0JjmVEcqqIrA6IH2Lp9iEVehsHh3/GILJbqOIeEFQ3 RHnEDJc/VTN463sjn5hHj4hojUwkb9SHET+w1x28= Date: Mon, 2 Sep 2019 11:19:42 +0300 From: Laurent Pinchart To: Pavel Machek Cc: Hans Verkuil , Jacopo Mondi , Mauro Carvalho Chehab , Sakari Ailus , "open list:MEDIA INPUT INFRASTRUCTURE (V4L/DVB)" , open list Subject: Re: [RFC 2/5] media: v4l2-ctrl: Document V4L2_CID_LOCATION Message-ID: <20190902081942.GE4777@pendragon.ideasonboard.com> References: <20190814202815.32491-1-jacopo@jmondi.org> <20190814202815.32491-3-jacopo@jmondi.org> <20190814224340.GD5015@pendragon.ideasonboard.com> <664fe7b3-9051-30da-736e-710a4e9cecde@xs4all.nl> <20190815143423.vaoswb4jvzd2blxp@uno.localdomain> <20190901172457.GC1047@bug> <20190902080002.GC4777@pendragon.ideasonboard.com> <20190902080657.GC15850@amd> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190902080657.GC15850@amd> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 02, 2019 at 10:06:57AM +0200, Pavel Machek wrote: > >>> Single integer. It's read-only, so it just reports the location. > >>> > >>> It would be different if this was a writable control: then you need to > >>> know which locations are possible to set, and that requires a menu type. > >>> > >>> But it doesn't make sense to set the location from software. However, the > >>> location might change as a result of other changes: e.g. if the camera > >>> has motor control of the tilt and the tilt changes from forward facing to > >>> downward facing, then the driver might change the location from FRONT > >>> to DOWN. A convoluted example perhaps, but this is just brainstorming. > >> > >> There are phones with exactly such camera setup. And yes, it makes > >> sense to be writable in that case, as software can move the camera in > >> such case. > > > > Out of curiosity, what phones are those ? > > This one: > > https://www.samsung.com/global/galaxy/galaxy-a80/ Interesting device. I'm not sure we should control that through a location control though, as it seems there's more than the rotation of the camera involved. In any case I wouldn't care about it for now, and turn the location control from read-only to read-write later if needed. We need more information and more thought to support that use case. -- Regards, Laurent Pinchart