{"id":8809,"url":"https://patchwork.libcamera.org/api/1.1/patches/8809/?format=json","web_url":"https://patchwork.libcamera.org/patch/8809/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/1.1/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":"<20200715011833.24600-4-laurent.pinchart@ideasonboard.com>","date":"2020-07-15T01:18:23","name":"[libcamera-devel,v2,03/13] media: v4l2-ctrl: Document V4L2_CID_CAMERA_ORIENTATION","commit_ref":null,"pull_url":null,"state":"accepted","archived":false,"hash":"cf6613ae97c96153ae74f7207dbbe0e867962f32","submitter":{"id":2,"url":"https://patchwork.libcamera.org/api/1.1/people/2/?format=json","name":"Laurent Pinchart","email":"laurent.pinchart@ideasonboard.com"},"delegate":{"id":14,"url":"https://patchwork.libcamera.org/api/1.1/users/14/?format=json","username":"pinchartl","first_name":"Laurent","last_name":"Pinchart","email":"laurent.pinchart@ideasonboard.com"},"mbox":"https://patchwork.libcamera.org/patch/8809/mbox/","series":[{"id":1108,"url":"https://patchwork.libcamera.org/api/1.1/series/1108/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=1108","date":"2020-07-15T01:18:21","name":"raspberrypi: Report sensor orientation through DT","version":2,"mbox":"https://patchwork.libcamera.org/series/1108/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/8809/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/8809/checks/","tags":{},"headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 4E393BD790\n\tfor <parsemail@patchwork.libcamera.org>;\n\tWed, 15 Jul 2020 01:18:50 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 7262D6093A;\n\tWed, 15 Jul 2020 03:18:49 +0200 (CEST)","from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 72A0660925\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 15 Jul 2020 03:18:45 +0200 (CEST)","from pendragon.bb.dnainternet.fi (81-175-216-236.bb.dnainternet.fi\n\t[81.175.216.236])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id BF80811F0;\n\tWed, 15 Jul 2020 03:18:44 +0200 (CEST)"],"Authentication-Results":"lancelot.ideasonboard.com;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"vZVVwMHd\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1594775925;\n\tbh=G900UP9sTLQ4p1j4VsNl/CyaAt9ftS16DIZOcLISUZ8=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=vZVVwMHd47EpX5UW2+BgQFqnl29achgiXnbb9F8jsZr7kdKr7mwPHxneddIzXycBH\n\tZmcB5besi43eIRF0RhvUm3I8EInWzJCXxIldJcLHLuPNymvC5bm8aeITrPcVmkz4Hy\n\to7dCnBGgfyJ+8ezWvbp9KMAlWD6/aZ+Wq61gpRLc=","From":"Laurent Pinchart <laurent.pinchart@ideasonboard.com>","To":"Dave Stevenson <dave.stevenson@raspberrypi.com>","Date":"Wed, 15 Jul 2020 04:18:23 +0300","Message-Id":"<20200715011833.24600-4-laurent.pinchart@ideasonboard.com>","X-Mailer":"git-send-email 2.27.0","In-Reply-To":"<20200715011833.24600-1-laurent.pinchart@ideasonboard.com>","References":"<20200715011833.24600-1-laurent.pinchart@ideasonboard.com>","MIME-Version":"1.0","Subject":"[libcamera-devel] [PATCH v2 03/13] media: v4l2-ctrl: Document\n\tV4L2_CID_CAMERA_ORIENTATION","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>","Cc":"libcamera-devel@lists.libcamera.org","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"From: Jacopo Mondi <jacopo@jmondi.org>\n\nAdd documentation for the V4L2_CID_CAMERA_ORIENTATION camera\ncontrol. The newly added read-only control reports the camera device\norientation relative to the usage orientation of the system the camera\nis installed on.\n\nSigned-off-by: Jacopo Mondi <jacopo@jmondi.org>\nSigned-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>\nSigned-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>\n\nCommit 9397a83f40183eeafd5c787af2240ed0d6b26daa upstream\n\nSigned-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n---\n .../media/uapi/v4l/ext-ctrls-camera.rst       | 30 +++++++++++++++++++\n 1 file changed, 30 insertions(+)","diff":"diff --git a/Documentation/media/uapi/v4l/ext-ctrls-camera.rst b/Documentation/media/uapi/v4l/ext-ctrls-camera.rst\nindex 51c1d5c9eb00..c65a2b66232e 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,36 @@ 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_ORIENTATION (menu)``\n+    This read-only control describes the camera orientation by reporting its\n+    mounting position on the device where the camera is installed. The control\n+    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 control is expressed\n+    as a position relative to the device's intended usage orientation. For\n+    example, a camera installed on the user-facing side of a phone, a tablet or\n+    a laptop device is said to be have ``V4L2_CAMERA_ORIENTATION_FRONT``\n+    orientation, while a camera installed on the opposite side of the front one\n+    is said to be have ``V4L2_CAMERA_ORIENTATION_BACK`` orientation. Camera\n+    sensors not directly attached to the device, or attached in a way that\n+    allows them to move freely, such as webcams and digital cameras, are said to\n+    have the ``V4L2_CAMERA_ORIENTATION_EXTERNAL`` orientation.\n+\n+\n+\n+.. flat-table::\n+    :header-rows:  0\n+    :stub-columns: 0\n+\n+    * - ``V4L2_CAMERA_ORIENTATION_FRONT``\n+      - The camera is oriented towards the user facing side of the device.\n+    * - ``V4L2_CAMERA_ORIENTATION_BACK``\n+      - The camera is oriented towards the back facing side of the device.\n+    * - ``V4L2_CAMERA_ORIENTATION_EXTERNAL``\n+      - The camera is not directly attached to the device and is 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","v2","03/13"]}