Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2057725ybl; Thu, 15 Aug 2019 05:59:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqzgiyCTGmQ1CnllBcMYh9KGYHxT6mS6j62dDcGoOcSgMyD0upa3hgtI1dSnS4B5dvozbm0d X-Received: by 2002:a17:90a:77c9:: with SMTP id e9mr1983924pjs.141.1565873981279; Thu, 15 Aug 2019 05:59:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565873981; cv=none; d=google.com; s=arc-20160816; b=JAfjdG32cIETvVsvbsKN8C8tIz29B2NiKaLDHJpO0S9Bz9/Q0mLz/MPvKGwZ3eIlzo +aN3U2BLM8584HKEf3MrVtmPj8/kyVuKZlKI2kVkXTNOKrr1IHQFK6ZuC0hlwIBsqYjH u0khJXqTaXj47xUQEeZOf35egCYwULXEopPw/qxFVtyiDUzKeXp8FryVhEiMSwzn8+4h eH6NiBa5TvkNjp+eJlKnaCVOIyBsWQ21pbBsoip+vGK4WffIhYjlP3C0rHiXEkJOwSoP TGdNNswRKFAEnWBt15eZ1p4EiN9q0yJSERGaAxRORFBcnFcSOVqWvrUci0ZuGAKB2Rst wgdg== 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=TT8EAtXe5DrGp0yHLUcoNu9Rpayg+ZAwhqnTVnhApVE=; b=SNIZ37JRuiNqJbCTxWxewGKHjj3H18Q8nlTzl4wQobd1/eBPVzuYwWZ0kJvD6y67AW z1nBMIkBLfhBnx+LTC4e5I154kR2PD9tVRnRQL/IGoBaNsnoKDb7Vt2G1c8pixJMVuJP nXej3NoVQW+h2tExYUk6I2VJfNpAUHF2hMa5XknAPkbwQ3mEqp4rLDy9KIWihd4l+boj WyKkE/UU/Sl5cG4eKsF+itNwEkQ2hMC9p7P8uahnVpL+3Ff0KvtNavD/2rX3RC9zVNVG lpnfl/BjW3EGcNRt6uRm0N+QskLIcQ4oILs3/p/2ubwmahcL9IrRxh6z/rXbVi2dBats +Agw== 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 d34si1364456pld.54.2019.08.15.05.59.25; Thu, 15 Aug 2019 05:59:41 -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 S1731253AbfHOM5A (ORCPT + 99 others); Thu, 15 Aug 2019 08:57:00 -0400 Received: from relay10.mail.gandi.net ([217.70.178.230]:40495 "EHLO relay10.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725977AbfHOM5A (ORCPT ); Thu, 15 Aug 2019 08:57:00 -0400 Received: from uno.localdomain (host64-130-dynamic.5-87-r.retail.telecomitalia.it [87.5.130.64]) (Authenticated sender: jacopo@jmondi.org) by relay10.mail.gandi.net (Postfix) with ESMTPSA id E2778240007; Thu, 15 Aug 2019 12:56:55 +0000 (UTC) Date: Thu, 15 Aug 2019 14:58:22 +0200 From: Jacopo Mondi To: Laurent Pinchart Cc: Mauro Carvalho Chehab , Hans Verkuil , 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: <20190815125822.ik6mlcaolxdyhyd6@uno.localdomain> References: <20190814202815.32491-1-jacopo@jmondi.org> <20190814202815.32491-3-jacopo@jmondi.org> <20190814224340.GD5015@pendragon.ideasonboard.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="fo4e5w67urwfcyy2" Content-Disposition: inline In-Reply-To: <20190814224340.GD5015@pendragon.ideasonboard.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --fo4e5w67urwfcyy2 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Hi Laurent, On Thu, Aug 15, 2019 at 01:43:40AM +0300, Laurent Pinchart wrote: > Hi Jacopo, > > Thank you for the patch. > > On Wed, Aug 14, 2019 at 10:28:12PM +0200, Jacopo Mondi wrote: > > Add documentation for the V4L2_CID_LOCATION camera control. The newly > > added read-only control reports the camera device mounting position. > > > > Signed-off-by: Jacopo Mondi > > --- > > .../media/uapi/v4l/ext-ctrls-camera.rst | 23 +++++++++++++++++++ > > 1 file changed, 23 insertions(+) > > > > diff --git a/Documentation/media/uapi/v4l/ext-ctrls-camera.rst b/Documentation/media/uapi/v4l/ext-ctrls-camera.rst > > index 51c1d5c9eb00..fc0a02eee6d4 100644 > > --- a/Documentation/media/uapi/v4l/ext-ctrls-camera.rst > > +++ b/Documentation/media/uapi/v4l/ext-ctrls-camera.rst > > @@ -510,6 +510,29 @@ enum v4l2_scene_mode - > > value down. A value of zero stops the motion if one is in progress > > and has no effect otherwise. > > > > +``V4L2_CID_LOCATION (integer)`` > > Maybe V4L2_CID_CAMERA_SENSOR_LOCATION ? Same for the values below. > > > + This read-only control describes the camera location by reporting its > > Here too I would mention camera sensor instead of just camera (or > possibly imaging sensor). > Let's sort this out in the discussion on the dt property. > > + mounting position on the device where the camera is installed. This > > + control is particularly meaningful for devices which have a well defined > > + orientation, such as phones, laptops and portable devices as the camera > > + location is expressed as a position relative to the device intended > > + usage position. In example, a camera installed on the user-facing side > > + of a phone device is said to be installed in the ``V4L2_LOCATION_FRONT`` > > + position. > > The DT bindings could use such an example :-) I would extend this to > tablets and laptops. I could copy part of the text there and expand the example device list. > > > + > > + > > + > > Do we need three blank lines ? > I don't know :) I copied this style from the other tables in the file. There doesn't seem to a requirement about this, I just tried to keep the style consistent :) > > +.. flat-table:: > > + :header-rows: 0 > > + :stub-columns: 0 > > + > > + * - ``V4L2_LOCATION_FRONT`` > > + - The camera device is located on the front side of the device. > > + * - ``V4L2_LOCATION_BACK`` > > + - The camera device is located on the back side of the device. > > + > > + > > + > > .. [#f1] > > This control may be changed to a menu control in the future, if more > > options are required. > > -- > Regards, > > Laurent Pinchart --fo4e5w67urwfcyy2 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEtcQ9SICaIIqPWDjAcjQGjxahVjwFAl1VVu4ACgkQcjQGjxah Vjwveg/+JKy6+TrvF1i7DUeIFc2WRXtrmT4PHKMFySy6A1AaMdKNyuES2s/GD1Vn JdtbhCaWZ2Lo7WXRbx1xNJlDLfGUPx55raR/G8JuRRaBdR1PYt6S1bjpDXlNLkCn CeBdL379wxhbHuAal4mZoXW9iMlRj4WVco+K2DpdSwQULbeq9zisBWTwV32j9ArS kT+9Wikaeu4rTieHRkbZb3prIyyEaCRnhorFYXVk4vrpjJ4M0ksfSCF9Trj19FP4 Qa/twQVHWXPksbNEoLUDgV4nUK4PPFoUiY1Vo68EpuSO0IlUsHsPJ6aOCPxjEuE/ yrvbgbjCzC+oqbmfyaunWzkrxkAPAFYutLFjnzTUJ3m15KXd5VdA8mycVk7pxee8 vTlpQ7h0U/zJVkQGgw8IjFOh1bw6ssq01YN88g/Z5jHdEqs2e4SX3gPxkSUw5Z/b TMYJJ48aqxvekt+h7p91lpDJxdIM/0PhTCPftSynX8jx7BH40i8NdnOMqIoSlk2f e9DcZSE/NaL3/kgJAoOv3trwjd3xOPBD4Q2qsGksu0Vej5jL1ss32zlNFpffiCs9 Echpa4m1HPfgTfCivjIOk3Gdl9pQSmHvA2k64Kyg4BPzqI+lPRM0UbnO3gzGd1YU b1iOZB/L6SPKIRyw72ewQ1tps1+kozDTAOZHbAnDDrBoNHwkA8Q= =geG3 -----END PGP SIGNATURE----- --fo4e5w67urwfcyy2--