{"id":21742,"url":"https://patchwork.libcamera.org/api/1.1/patches/21742/?format=json","web_url":"https://patchwork.libcamera.org/patch/21742/","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":"<20241023111124.124090-2-jacopo.mondi@ideasonboard.com>","date":"2024-10-23T11:11:20","name":"[1/4] include: linux: Update headers for line-based embedded data support","commit_ref":null,"pull_url":null,"state":"superseded","archived":false,"hash":"63f017012ee27684718d302253d127d12f5691ba","submitter":{"id":143,"url":"https://patchwork.libcamera.org/api/1.1/people/143/?format=json","name":"Jacopo Mondi","email":"jacopo.mondi@ideasonboard.com"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/21742/mbox/","series":[{"id":4738,"url":"https://patchwork.libcamera.org/api/1.1/series/4738/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=4738","date":"2024-10-23T11:11:19","name":"libcamera: Initial support for generic line based metadata","version":1,"mbox":"https://patchwork.libcamera.org/series/4738/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/21742/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/21742/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 D8478BD16B\n\tfor <parsemail@patchwork.libcamera.org>;\n\tWed, 23 Oct 2024 11:11:40 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id CF03A6539C;\n\tWed, 23 Oct 2024 13:11:39 +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 9A9E06538A\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 23 Oct 2024 13:11:35 +0200 (CEST)","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 1C8898A9;\n\tWed, 23 Oct 2024 13:09:48 +0200 (CEST)"],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"jtQ6fnHR\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1729681788;\n\tbh=WYEJPIBvC/NBM3WoE0+7WLf031OG5u2aEzw0uhaVJJI=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=jtQ6fnHRTy9FvJ0jIhoYlpUag/ZgNLwz1bzEUj7Z8paDdBXSZjC8xCyiarysluXGh\n\ts58dR98Jdtga/eZzJosUvTRe+EVKJYqI9UNUm6cqIqfYLMSX8Trf1cVldHUVP0SAR4\n\tf/iXRVm0QDZtG9TL4qvcrpxN0tHO02jjYiP0w0rg=","From":"Jacopo Mondi <jacopo.mondi@ideasonboard.com>","To":"libcamera-devel@lists.libcamera.org","Cc":"Jacopo Mondi <jacopo.mondi@ideasonboard.com>,\n\tKieran Bingham <kieran.bingham@ideasonboard.com>","Subject":"[PATCH 1/4] include: linux: Update headers for line-based embedded\n\tdata support","Date":"Wed, 23 Oct 2024 13:11:20 +0200","Message-ID":"<20241023111124.124090-2-jacopo.mondi@ideasonboard.com>","X-Mailer":"git-send-email 2.47.0","In-Reply-To":"<20241023111124.124090-1-jacopo.mondi@ideasonboard.com>","References":"<20241023111124.124090-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":["1/4"]}