Show a patch.

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

{
    "id": 2325,
    "url": "https://patchwork.libcamera.org/api/patches/2325/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/2325/",
    "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": "<20191119164421.68983-2-jacopo@jmondi.org>",
    "date": "2019-11-19T16:44:16",
    "name": "[libcamera-devel,RFC,1/6,TEMP] include: linux: Update v4l2-controls.h",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "b124b361951ea46ba233a7b74f401717558f8f93",
    "submitter": {
        "id": 3,
        "url": "https://patchwork.libcamera.org/api/people/3/?format=api",
        "name": "Jacopo Mondi",
        "email": "jacopo@jmondi.org"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/2325/mbox/",
    "series": [
        {
            "id": 571,
            "url": "https://patchwork.libcamera.org/api/series/571/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=571",
            "date": "2019-11-19T16:44:15",
            "name": "Collect Camera properties",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/571/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/2325/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/2325/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<jacopo@jmondi.org>",
        "Received": [
            "from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net\n\t[217.70.183.200])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 22ED06137A\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 19 Nov 2019 17:42:26 +0100 (CET)",
            "from uno.lan (93-34-114-233.ip49.fastwebnet.it [93.34.114.233])\n\t(Authenticated sender: jacopo@jmondi.org)\n\tby relay7-d.mail.gandi.net (Postfix) with ESMTPSA id A689520005;\n\tTue, 19 Nov 2019 16:42:25 +0000 (UTC)"
        ],
        "X-Originating-IP": "93.34.114.233",
        "From": "Jacopo Mondi <jacopo@jmondi.org>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Tue, 19 Nov 2019 17:44:16 +0100",
        "Message-Id": "<20191119164421.68983-2-jacopo@jmondi.org>",
        "X-Mailer": "git-send-email 2.23.0",
        "In-Reply-To": "<20191119164421.68983-1-jacopo@jmondi.org>",
        "References": "<20191119164421.68983-1-jacopo@jmondi.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[libcamera-devel] [RFC 1/6] [TEMP] include: linux: Update\n\tv4l2-controls.h",
        "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, 19 Nov 2019 16:42:26 -0000"
    },
    "content": "Import a temporary version of the v4l2-controls.h with the newly added\ndefinition of V4L2_CID_CAMERA_SENSOR_LOCATION control.\n\nThis patch should be temporary applied waiting for the newly added\ncontrol to land in the mainline kernel version.\n\nSigned-off-by: Jacopo Mondi <jacopo@jmondi.org>\n---\n include/linux/v4l2-controls.h | 7 +++++++\n 1 file changed, 7 insertions(+)",
    "diff": "diff --git a/include/linux/v4l2-controls.h b/include/linux/v4l2-controls.h\nindex ef2ee5b796b4..d18a7749d3f1 100644\n--- a/include/linux/v4l2-controls.h\n+++ b/include/linux/v4l2-controls.h\n@@ -910,6 +910,13 @@ enum v4l2_auto_focus_range {\n #define V4L2_CID_PAN_SPEED\t\t\t(V4L2_CID_CAMERA_CLASS_BASE+32)\n #define V4L2_CID_TILT_SPEED\t\t\t(V4L2_CID_CAMERA_CLASS_BASE+33)\n \n+#define V4L2_CID_CAMERA_SENSOR_LOCATION\t\t(V4L2_CID_CAMERA_CLASS_BASE+34)\n+#define V4L2_LOCATION_FRONT\t\t\t0\n+#define V4L2_LOCATION_BACK\t\t\t1\n+#define V4L2_LOCATION_EXTERNAL\t\t\t2\n+\n+#define V4L2_CID_CAMERA_SENSOR_ROTATION\t\t(V4L2_CID_CAMERA_CLASS_BASE+35)\n+\n /* FM Modulator class control IDs */\n \n #define V4L2_CID_FM_TX_CLASS_BASE\t\t(V4L2_CTRL_CLASS_FM_TX | 0x900)\n",
    "prefixes": [
        "libcamera-devel",
        "RFC",
        "1/6",
        "TEMP"
    ]
}