Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp313786ybe; Mon, 2 Sep 2019 01:58:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqxdJZ4EZbB7mH6NJFKPEKGuoosNu46H9BoIE8l6y84phFEE8YwMLs4QEpipkQqjuZaS2aQA X-Received: by 2002:a62:52d0:: with SMTP id g199mr16660736pfb.120.1567414712517; Mon, 02 Sep 2019 01:58:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567414712; cv=none; d=google.com; s=arc-20160816; b=JNTxs0Y2kI56zN/7TRXMfkKkJrAvMdKGYJ9Haom8URKbAMbn8iPTGEgjsyBfZD5sd+ iOUeAZxV3kmrHnqwHCQLRkOHzzDUpDUJJP8iNmlGgxzBXI5ACq40g5Af8u+YJecL+xt7 +HmVjFvOew0zS0mZrHxadvMvbi53Ec1VOX7+Mcyfe9dG5EuQhVenn9wzCVJTdAKbphVL AKvgXNSDFOUj7x8DawA2I5TLHJT/RyJP/lAWAUnxj2F1o+FaaGIQByAqhmu29m8QRro7 PVKAugnL5wD0fphCci8a0Apxd4KnaRGOM6eYPMj/en2/JTZtpZCQKOv9uH1WtezWCmZB HHug== 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=Z4DAYLKzk5XCoSiJtNqPzGUF7mcyRl9fvHFnFS8UFWw=; b=SOsnBGu6FojvhWLe1MJd0IKGaMiy+MlUjavCovocgP9RWXgucXLs96bkNmvw4bah0K EnxPLBDAhV/P3ZP7PQE1m/BWz5tkv+GPgwm1XGoYo/35PzlXlmA0anYcyCMEZ//VPILh feamMA9FevdKz2r/1iejZ785WGebYSzfWZGn7KDaak1o/xds64uw4hj0r+A0eEZgcM5g tl+98/UmTyqsHrvh7FeU/WTjlyrtOIywMXHs4VDKZmEJM+Rb5vghQ0IScCdUbEYvv1lB Rt8/7896phvsiSZoKxjdxtiOmRkfifzqfMgITr2YXb4y856jT9WtoHNgcnZJ+ZbYIvMV Ysbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=pLvLkYux; 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 h186si10880967pge.110.2019.09.02.01.58.17; Mon, 02 Sep 2019 01:58:32 -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=pLvLkYux; 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 S1730799AbfIBIxN (ORCPT + 99 others); Mon, 2 Sep 2019 04:53:13 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:58754 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729849AbfIBIxM (ORCPT ); Mon, 2 Sep 2019 04:53:12 -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 95936303; Mon, 2 Sep 2019 10:53:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1567414390; bh=L7HfyK6AoCRBwfi7sSsavkmrIFgZvYJeM1TmWRV84A0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pLvLkYuxhClpk6qiiHyro9cQILbPHJyPNKdx/3LkmR5z74f9jXMr544uWI1jLqpeo R21dcz3QNHON2GB+ax6swl0OzoOlr2V1X6C1ZitVklecAbr+fwlADnCj83WqZxOpM1 cJBlbGOAftzet23JO7p57mWYjcauMFgth11NRtoQ= Date: Mon, 2 Sep 2019 11:53:03 +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: <20190902085303.GG4777@pendragon.ideasonboard.com> References: <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> <20190902081942.GE4777@pendragon.ideasonboard.com> <20190902082739.GE15850@amd> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190902082739.GE15850@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 Hi Pawel, On Mon, Sep 02, 2019 at 10:27:39AM +0200, Pavel Machek wrote: > On Mon 2019-09-02 11:19:42, Laurent Pinchart wrote: > > 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. > > Well, the mechanism is there just to rotate the camera. But we don't know how it's implemented, it could be heavily firmware-based for instance. > Anyway, that phone is probably nowhere close to having mainline > support, so... If we need to support such a device in the future (and I hope we will :-)) then I'm totally fine expanding the features of the location control. My only concern is that I don't want to over-design it right now without having enough information about the hardware that would make use of it. -- Regards, Laurent Pinchart