[{"id":31886,"web_url":"https://patchwork.libcamera.org/comment/31886/","msgid":"<172967222786.2721096.17814275716176272576@ping.linuxembedded.co.uk>","date":"2024-10-23T08:30:27","subject":"Re: [PATCH] include: linux: Update headers for line-based embedded\n\tdata support","submitter":{"id":4,"url":"https://patchwork.libcamera.org/api/people/4/","name":"Kieran Bingham","email":"kieran.bingham@ideasonboard.com"},"content":"Quoting Jacopo Mondi (2024-10-23 08:12:10)\n> Update the kernel headers with the definition of two device-specific\n> line-based metadata formats, and with the definition of the\n> MEDIA_PAD_FL_INTERNAL and V4L2_SUBDEV_ROUTE_FL_IMMUTABLE flags.\n> \n> The new definitions will allow to support handling line-based\n> metadata streams exposed by the sensor driver through an\n> internal sink pad.\n> \n> While the changes have not yet been collected in the official\n> linux-media tree, they're available in the 'metadata' branch of\n> https://git.linuxtv.org/sailus/media_tree.git, at revision:\n> 8d8fdc8a8809 (\"media: Documentation: Add subdev configuration models,\n> raw sensor model\").\n> \n> The patches are expected to land in Linux v6.13.\n> \n> Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>\n\nAcked-by: Kieran Bingham <kieran.bingham@ideasonboard.com>\n\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(-)\n> \n> diff --git a/include/linux/README b/include/linux/README\n> index 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.\n> diff --git a/include/linux/media-bus-format.h b/include/linux/media-bus-format.h\n> index 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                  0x8006\n>  #define MEDIA_BUS_FMT_META_24                  0x8007\n> \n> +/* Specific metadata formats. Next is 0x9003. */\n> +#define MEDIA_BUS_FMT_CCS_EMBEDDED             0x9001\n> +#define MEDIA_BUS_FMT_OV2740_EMBEDDED          0x9002\n> +\n>  #endif /* __LINUX_MEDIA_BUS_FORMAT_H */\n> diff --git a/include/linux/media.h b/include/linux/media.h\n> index 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                      (1U << 0)\n>  #define MEDIA_PAD_FL_SOURCE                    (1U << 1)\n>  #define MEDIA_PAD_FL_MUST_CONNECT              (1U << 2)\n> +#define MEDIA_PAD_FL_INTERNAL                  (1U << 3)\n> \n>  struct media_pad_desc {\n>         __u32 entity;           /* entity ID */\n> diff --git a/include/linux/v4l2-subdev.h b/include/linux/v4l2-subdev.h\n> index 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            (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         (1U << 1)\n> \n>  /**\n>   * struct v4l2_subdev_route - A route inside a subdev\n> --\n> 2.47.0\n>","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 6574DBD16B\n\tfor <parsemail@patchwork.libcamera.org>;\n\tWed, 23 Oct 2024 08:30:34 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 25D1265391;\n\tWed, 23 Oct 2024 10:30:33 +0200 (CEST)","from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id EEED56042C\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 23 Oct 2024 10:30:30 +0200 (CEST)","from pendragon.ideasonboard.com\n\t(cpc89244-aztw30-2-0-cust6594.18-1.cable.virginm.net [86.31.185.195])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id A6C258A9;\n\tWed, 23 Oct 2024 10:28:43 +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=\"YsVPeV18\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1729672123;\n\tbh=MocsuH7sDZL8Vs7uud//bVj6ykG2njzjq5zzl+tl9vI=;\n\th=In-Reply-To:References:Subject:From:Cc:To:Date:From;\n\tb=YsVPeV18noTvkTX4CNGSv4I3uCK5/TrMyYHMId5e2zCytjURoWbRazYZBEILvwcIE\n\tFKCE24mMtSOixVJHpIaaUEA9gGWR3bbh+gBG+q2C3Vsbi00KIc+ryx6EfHSjy0/Ufc\n\tsfCFeXBx0NNiM7Ecw9wVcnFYJ9ulNrI1hOzR8sYw=","Content-Type":"text/plain; charset=\"utf-8\"","MIME-Version":"1.0","Content-Transfer-Encoding":"quoted-printable","In-Reply-To":"<20241023071211.87239-1-jacopo.mondi@ideasonboard.com>","References":"<20241023071211.87239-1-jacopo.mondi@ideasonboard.com>","Subject":"Re: [PATCH] include: linux: Update headers for line-based embedded\n\tdata support","From":"Kieran Bingham <kieran.bingham@ideasonboard.com>","Cc":"Jacopo Mondi <jacopo.mondi@ideasonboard.com>","To":"Jacopo Mondi <jacopo.mondi@ideasonboard.com>,\n\tlibcamera-devel@lists.libcamera.org","Date":"Wed, 23 Oct 2024 09:30:27 +0100","Message-ID":"<172967222786.2721096.17814275716176272576@ping.linuxembedded.co.uk>","User-Agent":"alot/0.10","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>"}}]