Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2098443ybl; Thu, 15 Aug 2019 06:32:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqyNlvI7uMF+dI315rZl1JG/79MtjB64FhSW9vJvz9Aq7Jdd+pFTXztkKTdxoABG9Zi9seyc X-Received: by 2002:a65:6281:: with SMTP id f1mr3316802pgv.400.1565875974369; Thu, 15 Aug 2019 06:32:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565875974; cv=none; d=google.com; s=arc-20160816; b=Ykx396+tw8ipEtEmFGjhOVv1BEnxmoNfxkIpQWpDb6SCMB0c8a0GMJRDjfHfR9SwCP F34cfTgPfWwDd5YTiy0XDFGdAo7+1U2bL87IUQX1eMYb3OFdIuuH1wRn5EIb1NvgxY1F HOn81eRDYLJjTuPe3VdPVSq8RZIwplujvBZtfCUmmKl3CtrwSYY9uWsi1Ak6Z2FagOjC 5K6G6i48jitDMop90iYdXbTkKr3VXQA7Jau0TX3QYsoBZuQn9ggA+HyJu+QrsylLewqe HQecpb7vNdFnpstOFA4Es16KUBU7JER3DcBBGtRAHxdP+QbCYsD4WjwkA1M9WdR5U7YQ zwmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=bVFA925na/6rT/JrABWAw6AFGwiD5fMKH0wGrRxo1vA=; b=vV0o8fdcOhgrj96HTMDZU1DXqUfqBqmh6hIbBGMvR8wC9Pf/CPPsVXbIc1X/LixVLZ GTq+78gtfRnLq3nTaIPVMaopgYvT0xY+YW9G0z2wL2qecifwsygF47JpLDmYiFsankD1 ZcQFjWqtAFCIgO0/0fFpU00/guw71yoIk2ndD6n1F91cnItcwrGdM8BuoSUG4Usc/xEq yYJlQ3pQT/7iMjPebOCGnNa+DI4j1pf7pcZfZUmNfrkfsDgAYku8k9RHdmmuav+zBMsG v6D7SlZ48FJlSN0tkjYjBt0+pzUILBr9N8UfrQDE6Uyb4op4hq+TdwnUZyGExz8OTyu0 dZnA== 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 d8si2046070pfr.182.2019.08.15.06.32.37; Thu, 15 Aug 2019 06:32:54 -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 S1732301AbfHONbF (ORCPT + 99 others); Thu, 15 Aug 2019 09:31:05 -0400 Received: from lb3-smtp-cloud8.xs4all.net ([194.109.24.29]:38627 "EHLO lb3-smtp-cloud8.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730304AbfHONbF (ORCPT ); Thu, 15 Aug 2019 09:31:05 -0400 Received: from [IPv6:2001:420:44c1:2579:f038:4b04:f67a:276f] ([IPv6:2001:420:44c1:2579:f038:4b04:f67a:276f]) by smtp-cloud8.xs4all.net with ESMTPA id yFqFhvymaDqPeyFqIhYJJF; Thu, 15 Aug 2019 15:31:03 +0200 Subject: Re: [RFC 2/5] media: v4l2-ctrl: Document V4L2_CID_LOCATION To: Jacopo Mondi , Mauro Carvalho Chehab , Sakari Ailus , Laurent Pinchart Cc: "open list:MEDIA INPUT INFRASTRUCTURE (V4L/DVB)" , open list References: <20190814202815.32491-1-jacopo@jmondi.org> <20190814202815.32491-3-jacopo@jmondi.org> From: Hans Verkuil Message-ID: <02b40da5-c30c-f1f3-2351-c04da932e94a@xs4all.nl> Date: Thu, 15 Aug 2019 15:30:59 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <20190814202815.32491-3-jacopo@jmondi.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfBdaL9CUlLAxiTYaWce8qe1j1V1MqCdBUtDToW+yQU9QKTKVNpxJlwx/BkbsApxRyqXD/QEXGRYXDHz0vKzuYhtMnrQYsJGkozQB8K8wGvKNNf3aSPfu iiO97ULMfRaxQpZPVsBB95BYo9jZuLgU4r/4LT38LxwbgXB/bklxeXkq34Wa/1Rvee6gJhDIzTADF+MNDiUyqpJNYIs2p9VCh3f7xGZ7f2q0yavq21xMKXh5 mGQOCZAr6TzxcHHy3OOutbszghMX+SqUuOVvRSdrwTBpb7+uUrglV0qX9D3pwTcY9rm1wIIkLrBV/oLGuRv3WffJW6I6Rt4W0/MbcX4XdoLZ05iW4zP8Nl+t OEKfsIyWE9ygEZi76JO7GunTub5gDrSPJ0Su2ndxSEqOP+mIi4LLS64EEhLLqwazZY5HMCeYTakddqGRPv9UxK5w6g/QGvOdixlFFKsZSDeYeqDwKWz1VvIv XbMBCU2nadJw4hrI Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/14/19 10:28 PM, 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)`` > + This read-only control describes the camera location by reporting its > + 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. When should this control be created? If there is only one location (e.g. all sensors are front-facing) would you still expose this? Or does it depend on the type of device? And is the sensor in a digital camera front or back facing? (Just curious about what you think about that situation!) Regards, Hans > + > + > + > +.. 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. > -- > 2.22.0 >