Show a patch.

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

{
    "id": 21867,
    "url": "https://patchwork.libcamera.org/api/patches/21867/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/21867/",
    "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": "<20241108105117.137121-2-jacopo.mondi@ideasonboard.com>",
    "date": "2024-11-08T10:51:11",
    "name": "[v2,1/6] include: linux: Update headers for line-based embedded data support",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "63f017012ee27684718d302253d127d12f5691ba",
    "submitter": {
        "id": 143,
        "url": "https://patchwork.libcamera.org/api/people/143/?format=api",
        "name": "Jacopo Mondi",
        "email": "jacopo.mondi@ideasonboard.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/21867/mbox/",
    "series": [
        {
            "id": 4783,
            "url": "https://patchwork.libcamera.org/api/series/4783/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=4783",
            "date": "2024-11-08T10:51:10",
            "name": "libcamera: Initial support for generic line based metadata",
            "version": 2,
            "mbox": "https://patchwork.libcamera.org/series/4783/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/21867/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/21867/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 4FB66BE173\n\tfor <parsemail@patchwork.libcamera.org>;\n\tFri,  8 Nov 2024 10:51:31 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 71E3D657A8;\n\tFri,  8 Nov 2024 11:51:30 +0100 (CET)",
            "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 5084065495\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri,  8 Nov 2024 11:51:25 +0100 (CET)",
            "from ideasonboard.com (93-61-96-190.ip145.fastwebnet.it\n\t[93.61.96.190])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 8F3062C5;\n\tFri,  8 Nov 2024 11:51:15 +0100 (CET)"
        ],
        "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"Q105kilL\"; dkim-atps=neutral",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1731063075;\n\tbh=WYEJPIBvC/NBM3WoE0+7WLf031OG5u2aEzw0uhaVJJI=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=Q105kilL2NFF8l8mq9JXseqd4cWXejTfUtMCxEa8oabtP1J7HPpA9eGmquFe7gjT6\n\tSVBI40Yn7gxDpxeNFpEalul1AQFUHLdE+xqKfjCESJ7SZ6nVX8mlzn9wNxC614RKVq\n\tRFVmv0ObAizGi6ZGWof2CMNSy0GCUp8KGavibD28=",
        "From": "Jacopo Mondi <jacopo.mondi@ideasonboard.com>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Cc": "Jacopo Mondi <jacopo.mondi@ideasonboard.com>, naush@raspberrypi.com,\n\tKieran Bingham <kieran.bingham@ideasonboard.com>",
        "Subject": "[PATCH v2 1/6] include: linux: Update headers for line-based\n\tembedded data support",
        "Date": "Fri,  8 Nov 2024 11:51:11 +0100",
        "Message-ID": "<20241108105117.137121-2-jacopo.mondi@ideasonboard.com>",
        "X-Mailer": "git-send-email 2.47.0",
        "In-Reply-To": "<20241108105117.137121-1-jacopo.mondi@ideasonboard.com>",
        "References": "<20241108105117.137121-1-jacopo.mondi@ideasonboard.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "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>",
        "Errors-To": "libcamera-devel-bounces@lists.libcamera.org",
        "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"
    },
    "content": "Update the kernel headers with the definition of two device-specific\nline-based metadata formats, and with the definition of the\nMEDIA_PAD_FL_INTERNAL and V4L2_SUBDEV_ROUTE_FL_IMMUTABLE flags.\n\nThe new definitions will allow to support handling line-based\nmetadata streams exposed by the sensor driver through an\ninternal sink pad.\n\nWhile the changes have not yet been collected in the official\nlinux-media tree, they're available in the 'metadata' branch of\nhttps://git.linuxtv.org/sailus/media_tree.git, at revision:\n8d8fdc8a8809 (\"media: Documentation: Add subdev configuration models,\nraw sensor model\").\n\nThe patches are expected to land in Linux v6.13.\n\nSigned-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>\nAcked-by: Kieran Bingham <kieran.bingham@ideasonboard.com>\n---\n include/linux/README             | 2 +-\n include/linux/media-bus-format.h | 4 ++++\n include/linux/media.h            | 1 +\n include/linux/v4l2-subdev.h      | 5 +++++\n 4 files changed, 11 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/include/linux/README b/include/linux/README\nindex ef178681f6eb..077eaba30b42 100644\n--- a/include/linux/README\n+++ b/include/linux/README\n@@ -1,4 +1,4 @@\n # SPDX-License-Identifier: CC0-1.0\n \n-Files in this directory are imported from next-media-rkisp1-20240814-14-ga043ea54bbb9 of the Linux kernel. Do not\n+Files in this directory are imported from v6.12-rc1-56-g8d8fdc8a8809 of the Linux kernel. Do not\n modify them manually.\ndiff --git a/include/linux/media-bus-format.h b/include/linux/media-bus-format.h\nindex d4c1d991014b..13e68c2ccb61 100644\n--- a/include/linux/media-bus-format.h\n+++ b/include/linux/media-bus-format.h\n@@ -183,4 +183,8 @@\n #define MEDIA_BUS_FMT_META_20\t\t\t0x8006\n #define MEDIA_BUS_FMT_META_24\t\t\t0x8007\n \n+/* Specific metadata formats. Next is 0x9003. */\n+#define MEDIA_BUS_FMT_CCS_EMBEDDED\t\t0x9001\n+#define MEDIA_BUS_FMT_OV2740_EMBEDDED\t\t0x9002\n+\n #endif /* __LINUX_MEDIA_BUS_FORMAT_H */\ndiff --git a/include/linux/media.h b/include/linux/media.h\nindex b5a77bbf4062..4a733b9beb27 100644\n--- a/include/linux/media.h\n+++ b/include/linux/media.h\n@@ -206,6 +206,7 @@ struct media_entity_desc {\n #define MEDIA_PAD_FL_SINK\t\t\t(1U << 0)\n #define MEDIA_PAD_FL_SOURCE\t\t\t(1U << 1)\n #define MEDIA_PAD_FL_MUST_CONNECT\t\t(1U << 2)\n+#define MEDIA_PAD_FL_INTERNAL\t\t\t(1U << 3)\n \n struct media_pad_desc {\n \t__u32 entity;\t\t/* entity ID */\ndiff --git a/include/linux/v4l2-subdev.h b/include/linux/v4l2-subdev.h\nindex 2347e266cf75..839b1329afb2 100644\n--- a/include/linux/v4l2-subdev.h\n+++ b/include/linux/v4l2-subdev.h\n@@ -204,6 +204,11 @@ struct v4l2_subdev_capability {\n  * on a video node.\n  */\n #define V4L2_SUBDEV_ROUTE_FL_ACTIVE\t\t(1U << 0)\n+/*\n+ * Is the route immutable? The ACTIVE flag of an immutable route may not be\n+ * unset.\n+ */\n+#define V4L2_SUBDEV_ROUTE_FL_IMMUTABLE\t\t(1U << 1)\n \n /**\n  * struct v4l2_subdev_route - A route inside a subdev\n",
    "prefixes": [
        "v2",
        "1/6"
    ]
}