Show a patch.

GET /api/patches/3728/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 3728,
    "url": "https://patchwork.libcamera.org/api/patches/3728/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/3728/",
    "project": {
        "id": 1,
        "url": "https://patchwork.libcamera.org/api/projects/1/?format=api",
        "name": "libcamera",
        "link_name": "libcamera",
        "list_id": "libcamera_core",
        "list_email": "libcamera-devel@lists.libcamera.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": ""
    },
    "msgid": "<20200509090456.3496481-4-jacopo@jmondi.org>",
    "date": "2020-05-09T09:04:46",
    "name": "[libcamera-devel,v11,03/13] media: v4l2-ctrl: Document V4L2_CID_CAMERA_ORIENTATION",
    "commit_ref": null,
    "pull_url": null,
    "state": "not-applicable",
    "archived": false,
    "hash": "996ff66b100aadf46d86fe6db23aa5f31e7c75a1",
    "submitter": {
        "id": 3,
        "url": "https://patchwork.libcamera.org/api/people/3/?format=api",
        "name": "Jacopo Mondi",
        "email": "jacopo@jmondi.org"
    },
    "delegate": {
        "id": 15,
        "url": "https://patchwork.libcamera.org/api/users/15/?format=api",
        "username": "jmondi",
        "first_name": "Jacopo",
        "last_name": "Mondi",
        "email": "jacopo@jmondi.org"
    },
    "mbox": "https://patchwork.libcamera.org/patch/3728/mbox/",
    "series": [
        {
            "id": 889,
            "url": "https://patchwork.libcamera.org/api/series/889/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=889",
            "date": "2020-05-09T09:04:43",
            "name": "media: report camera properties",
            "version": 11,
            "mbox": "https://patchwork.libcamera.org/series/889/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/3728/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/3728/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<jacopo@jmondi.org>",
        "Received": [
            "from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net\n\t[217.70.183.197])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 9D187603E2\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSat,  9 May 2020 11:02:02 +0200 (CEST)",
            "from uno.homenet.telecomitalia.it (a-ur1-85.tin.it\n\t[212.216.150.148]) (Authenticated sender: jacopo@jmondi.org)\n\tby relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 22A621C000C;\n\tSat,  9 May 2020 09:01:59 +0000 (UTC)"
        ],
        "X-Originating-IP": "212.216.150.148",
        "From": "Jacopo Mondi <jacopo@jmondi.org>",
        "To": "linux-media@vger.kernel.org (open list:MEDIA INPUT INFRASTRUCTURE\n\t(V4L/DVB)), libcamera-devel@lists.libcamera.org,\n\tMauro 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>",
        "Cc": "Jacopo Mondi <jacopo@jmondi.org>,\n\ttfiga@google.com,\n\tpavel@ucw.cz",
        "Date": "Sat,  9 May 2020 11:04:46 +0200",
        "Message-Id": "<20200509090456.3496481-4-jacopo@jmondi.org>",
        "X-Mailer": "git-send-email 2.26.1",
        "In-Reply-To": "<20200509090456.3496481-1-jacopo@jmondi.org>",
        "References": "<20200509090456.3496481-1-jacopo@jmondi.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[libcamera-devel] [PATCH v11 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>",
        "X-List-Received-Date": "Sat, 09 May 2020 09:02:02 -0000"
    },
    "content": "Add 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>\n---\n .../media/v4l/ext-ctrls-camera.rst            | 30 +++++++++++++++++++\n 1 file changed, 30 insertions(+)",
    "diff": "diff --git a/Documentation/userspace-api/media/v4l/ext-ctrls-camera.rst b/Documentation/userspace-api/media/v4l/ext-ctrls-camera.rst\nindex e39f84d2447f8..5d7fca799f2a8 100644\n--- a/Documentation/userspace-api/media/v4l/ext-ctrls-camera.rst\n+++ b/Documentation/userspace-api/media/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",
        "v11",
        "03/13"
    ]
}