{"id":3411,"url":"https://patchwork.libcamera.org/api/patches/3411/?format=json","web_url":"https://patchwork.libcamera.org/patch/3411/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20200407163825.1766483-3-jacopo@jmondi.org>","date":"2020-04-07T16:38:16","name":"[libcamera-devel,v8,02/11] media: v4l2-ctrl: Document V4L2_CID_CAMERA_SENSOR_LOCATION","commit_ref":null,"pull_url":null,"state":"not-applicable","archived":false,"hash":"28acf6ed974502fb163fd0ddaebd056d334f7f9c","submitter":{"id":3,"url":"https://patchwork.libcamera.org/api/people/3/?format=json","name":"Jacopo Mondi","email":"jacopo@jmondi.org"},"delegate":{"id":15,"url":"https://patchwork.libcamera.org/api/users/15/?format=json","username":"jmondi","first_name":"Jacopo","last_name":"Mondi","email":"jacopo@jmondi.org"},"mbox":"https://patchwork.libcamera.org/patch/3411/mbox/","series":[{"id":801,"url":"https://patchwork.libcamera.org/api/series/801/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=801","date":"2020-04-07T16:38:14","name":"media: Report camera sensor properties","version":8,"mbox":"https://patchwork.libcamera.org/series/801/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/3411/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/3411/checks/","tags":{},"headers":{"Return-Path":"<jacopo@jmondi.org>","Received":["from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net\n\t[217.70.183.194])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id F2B5E600F0\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue,  7 Apr 2020 18:35:33 +0200 (CEST)","from localhost.localdomain (2-224-242-101.ip172.fastwebnet.it\n\t[2.224.242.101]) (Authenticated sender: jacopo@jmondi.org)\n\tby relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 4114E4000F;\n\tTue,  7 Apr 2020 16:35:32 +0000 (UTC)"],"X-Originating-IP":"2.224.242.101","From":"Jacopo Mondi <jacopo@jmondi.org>","To":"Mauro Carvalho Chehab <mchehab@kernel.org>,\n\tHans Verkuil <hverkuil-cisco@xs4all.nl>,\n\tSakari Ailus <sakari.ailus@linux.intel.com>,\n\tLaurent Pinchart <laurent.pinchart@ideasonboard.com>, tfiga@google.com,\n\tpavel@ucw.cz","Cc":"Jacopo Mondi <jacopo@jmondi.org>,\n\tlinux-media@vger.kernel.org (open list:MEDIA INPUT INFRASTRUCTURE\n\t(V4L/DVB)), libcamera-devel@lists.libcamera.org","Date":"Tue,  7 Apr 2020 18:38:16 +0200","Message-Id":"<20200407163825.1766483-3-jacopo@jmondi.org>","X-Mailer":"git-send-email 2.26.0","In-Reply-To":"<20200407163825.1766483-1-jacopo@jmondi.org>","References":"<20200407163825.1766483-1-jacopo@jmondi.org>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH v8 02/11] media: v4l2-ctrl: Document\n\tV4L2_CID_CAMERA_SENSOR_LOCATION","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","X-List-Received-Date":"Tue, 07 Apr 2020 16:35:34 -0000"},"content":"Add documentation for the V4L2_CID_CAMERA_SENSOR_LOCATION camera\ncontrol. The newly added read-only control reports the camera device\nmounting position.\n\nSigned-off-by: Jacopo Mondi <jacopo@jmondi.org>\n---\n .../media/uapi/v4l/ext-ctrls-camera.rst       | 32 +++++++++++++++++++\n 1 file changed, 32 insertions(+)","diff":"diff --git a/Documentation/media/uapi/v4l/ext-ctrls-camera.rst b/Documentation/media/uapi/v4l/ext-ctrls-camera.rst\nindex 51c1d5c9eb00..b151c016256c 100644\n--- a/Documentation/media/uapi/v4l/ext-ctrls-camera.rst\n+++ b/Documentation/media/uapi/v4l/ext-ctrls-camera.rst\n@@ -510,6 +510,38 @@ enum v4l2_scene_mode -\n     value down. A value of zero stops the motion if one is in progress\n     and has no effect otherwise.\n \n+``V4L2_CID_CAMERA_SENSOR_LOCATION (integer)``\n+    This read-only control describes the camera sensor location by reporting\n+    its mounting position on the device where the camera is installed. The\n+    control value is constant and not modifiable by software. This control is\n+    particularly meaningful for devices which have a well defined orientation,\n+    such as phones, laptops and portable devices since the camera location is\n+    expressed as a position relative to the device's intended usage orientation.\n+    For example, a camera sensor installed on the user-facing side of a phone,\n+    a tablet or a laptop device is said to be installed in the\n+    ``V4L2_LOCATION_FRONT`` location while camera sensors installed on the side\n+    opposite the front one are said to be installed in the\n+    ``V4L2_LOCATION_BACK`` location. Camera sensors not directly attached to\n+    the device or attached in a way that allows them to move freely, such as\n+    webcams and digital cameras, are said to have the ``V4L2_LOCATION_EXTERNAL``\n+    location.\n+\n+\n+\n+.. flat-table::\n+    :header-rows:  0\n+    :stub-columns: 0\n+\n+    * - ``V4L2_LOCATION_FRONT``\n+      - The camera sensor is located on the front side of the device.\n+    * - ``V4L2_LOCATION_BACK``\n+      - The camera sensor is located on the back side of the device.\n+    * - ``V4L2_LOCATION_EXTERNAL``\n+      - The camera sensor is not directly attached to the device and is\n+        freely movable.\n+\n+\n+\n .. [#f1]\n    This control may be changed to a menu control in the future, if more\n    options are required.\n","prefixes":["libcamera-devel","v8","02/11"]}