media: rp1: cfe: Fix default meta format's field
authorTomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Mon, 2 Oct 2023 11:38:07 +0000 (14:38 +0300)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:35:03 +0000 (11:35 +0000)
Set default meta format's field to V4L2_FIELD_NONE, instead of zeroing
it which indicates V4L2_FIELD_ANY. Metadata doesn't have fields, so NONE
makes sense, and furthermore the default v4l2 link validation will check
for matching fields, or that the sink field is NONE.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
drivers/media/platform/raspberrypi/rp1_cfe/cfe.c

index 97016fa..8478b87 100644 (file)
@@ -110,6 +110,7 @@ const struct v4l2_mbus_framefmt cfe_default_meta_format = {
        .width = 8192,
        .height = 1,
        .code = MEDIA_BUS_FMT_SENSOR_DATA,
+       .field = V4L2_FIELD_NONE,
 };
 
 enum node_ids {