{"id":22461,"url":"https://patchwork.libcamera.org/api/1.1/patches/22461/?format=json","web_url":"https://patchwork.libcamera.org/patch/22461/","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":"<20250108104924.163077-2-jacopo.mondi@ideasonboard.com>","date":"2025-01-08T10:49:18","name":"[v3,1/6] include: linux: Update headers for line-based embedded data support","commit_ref":"052a9ff245fe1192cf007c9246a215c897535e78","pull_url":null,"state":"accepted","archived":false,"hash":"2edbc840ab04731caecd0ccc771ca7d0a330d9d0","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/22461/mbox/","series":[{"id":4933,"url":"https://patchwork.libcamera.org/api/1.1/series/4933/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=4933","date":"2025-01-08T10:49:17","name":"libcamera: Initial support for generic line based metadata","version":3,"mbox":"https://patchwork.libcamera.org/series/4933/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/22461/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/22461/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 724D3C32EF\n\tfor <parsemail@patchwork.libcamera.org>;\n\tWed,  8 Jan 2025 10:49:41 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 417E468500;\n\tWed,  8 Jan 2025 11:49:40 +0100 (CET)","from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 6054561891\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed,  8 Jan 2025 11:49:36 +0100 (CET)","from ideasonboard.com (mob-5-90-140-184.net.vodafone.it\n\t[5.90.140.184])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 4D41489A;\n\tWed,  8 Jan 2025 11:48:43 +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=\"Oc0slEBc\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1736333323;\n\tbh=KKaHzuGN4TEVUsEgyNk5hZawHQHJt+2X23bGIPqmPo0=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=Oc0slEBcev7JR4Y93gh+FqSOoSeWLB12FtZK/Vy/J5Jz7Ds7O2cvi4IxCCapx0WZC\n\tb83cZBu6inYG1m08Vlj/8m9jT8QLVJ/9KbTdp9Q6VM65th478YnyfL2zltC4b5mSeI\n\t3bfpQm3YJKt14VxQZrWsOn7TE7FgF8nuXmPc/TE8=","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 v3 1/6] include: linux: Update headers for line-based\n\tembedded data support","Date":"Wed,  8 Jan 2025 11:49:18 +0100","Message-ID":"<20250108104924.163077-2-jacopo.mondi@ideasonboard.com>","X-Mailer":"git-send-email 2.47.1","In-Reply-To":"<20250108104924.163077-1-jacopo.mondi@ideasonboard.com>","References":"<20250108104924.163077-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:\nf9bbbd9a696d (\"media: Documentation: Add binning and sub-sampling\ncontrols\")\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..f9f68641aa3c 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.13-rc1-68-gf9bbbd9a696d 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 b6acf8c8e383..bf467168d465 100644\n--- a/include/linux/media-bus-format.h\n+++ b/include/linux/media-bus-format.h\n@@ -188,4 +188,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":["v3","1/6"]}