Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp340589ybe; Mon, 2 Sep 2019 02:27:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqyUx9TJLRYEoDHlVnbMuvBpLr4bDhsTecjOPnqOyGoZTBmEMQpeuaQWNCBdWGjl3IXT0gD8 X-Received: by 2002:a17:90a:2e86:: with SMTP id r6mr11990813pjd.67.1567416460728; Mon, 02 Sep 2019 02:27:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567416460; cv=none; d=google.com; s=arc-20160816; b=UdAO6B89dOGLzlUrK/sHy+/HwKhu2gr485kb9iC9d9nrNR2ux/ZYkhBT7JrxV5nkgE 0Mi99dM6/zrqpJMoHlb7BPaoLbXY72hp4pDRDBI1mnRhqCYZg8CBqMteagdLTTWPL84A IUdcq2uNCPuDyMMledpzWWRBWE1xOYWnrMr4+GG0c0B5YvljFjeFzFeejoX1DQy0k38n JRBbajjoMXOQkuWSb8FLD8rn/BaFosPMwl7NdkN14V9Zkw7Gki7gOvNS0zX6NmSaWcyI svkmjfgVybolk7OIfbsU8KF9X4QMrB9G9X6jyDUYxZdCcTZ+fKT2OBjYepg0wvA21I5Q cboQ== 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; bh=ufwy6MFnCtsfDlDr6dI9PTB3/pW4zdbXshX5UQTCSuQ=; b=W3zfR9hjd9PQrpQheKzQ9p+x/AnJcgNi5anePQbjb8rswFGSPO7C+bZo5sBNYXYr5L 2SjU8g577PF8H/cxrAoWl/usxzJqYVD2I7OlfDUT9OOyt7RbPvuH/+IhtNDhGUn5FA16 wuzlE/q4tjqVCLA0akms73NEsUD24zQ3RCeVfWea3vg42G7/jY0FczmJcUKVsRT0m6+f wAm/9VJJCPmdwTxvEfzKgQ/dhw+vWbgFOSHb+yWebk0lUcMT7lNEOsE0aRrJg+G6tolY nncX1ItE0GcqJny9mc/4h9B7S2ECoQ6+dGh/yHZawwaxsNdjmW/p9gLWKonE60UbCvmC PR0w== ARC-Authentication-Results: i=1; mx.google.com; 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 e24si2857278pjp.51.2019.09.02.02.27.25; Mon, 02 Sep 2019 02:27:40 -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; 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 S1730032AbfIBI1m (ORCPT + 99 others); Mon, 2 Sep 2019 04:27:42 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:35701 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729423AbfIBI1m (ORCPT ); Mon, 2 Sep 2019 04:27:42 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 2273A821DA; Mon, 2 Sep 2019 10:27:26 +0200 (CEST) Date: Mon, 2 Sep 2019 10:27:39 +0200 From: Pavel Machek To: Laurent Pinchart 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: <20190902082739.GE15850@amd> References: <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> <20190902081942.GE4777@pendragon.ideasonboard.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="2hMgfIw2X+zgXrFs" Content-Disposition: inline In-Reply-To: <20190902081942.GE4777@pendragon.ideasonboard.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --2hMgfIw2X+zgXrFs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. > > >>>=20 > > >>> 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. > > >>>=20 > > >>> But it doesn't make sense to set the location from software. Howeve= r, the > > >>> location might change as a result of other changes: e.g. if the cam= era > > >>> has motor control of the tilt and the tilt changes from forward fac= ing to > > >>> downward facing, then the driver might change the location from FRO= NT > > >>> to DOWN. A convoluted example perhaps, but this is just brainstormi= ng. > > >>=20 > > >> 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. > > >=20 > > > Out of curiosity, what phones are those ? > >=20 > > This one: > >=20 > > https://www.samsung.com/global/galaxy/galaxy-a80/ >=20 > 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. Anyway, that phone is probably nowhere close to having mainline support, so... Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --2hMgfIw2X+zgXrFs Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAl1s0nsACgkQMOfwapXb+vLK8wCeOolmxDwSiEfrrMCLr1uKyMwC x7oAnj1SKkwBc++DIAb84Xp8unM2RoHV =noqu -----END PGP SIGNATURE----- --2hMgfIw2X+zgXrFs--