Set the code of the metadata pads of the isp entity to
MEDIA_BUS_FMT_METADATA_FIXED and set the width and
height of their formats to 0. This solves the TODO
item:
"Fix pad format size for statistics and parameters entities."
Signed-off-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com>
Acked-by: Helen Koike <helen.koike@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-* Fix pad format size for statistics and parameters entities.
 * Fix checkpatch errors.
 
 NOTES:
 
        } else {
                if (code->index > 0)
                        return -EINVAL;
-               code->code = MEDIA_BUS_FMT_FIXED;
+               code->code = MEDIA_BUS_FMT_METADATA_FIXED;
                return 0;
        }
 
                                              RKISP1_ISP_PAD_SINK_PARAMS);
        src_fmt = v4l2_subdev_get_try_format(sd, cfg,
                                             RKISP1_ISP_PAD_SOURCE_STATS);
-       sink_fmt->width = RKISP1_DEFAULT_WIDTH;
-       sink_fmt->height = RKISP1_DEFAULT_HEIGHT;
+       sink_fmt->width = 0;
+       sink_fmt->height = 0;
        sink_fmt->field = V4L2_FIELD_NONE;
-       sink_fmt->code = MEDIA_BUS_FMT_FIXED;
+       sink_fmt->code = MEDIA_BUS_FMT_METADATA_FIXED;
        *src_fmt = *sink_fmt;
 
        return 0;