Add min and max structures to the v4l2-subdev callback in order to allow the subdev to return a range of valid frame intervals. This would operate similar to the struct v4l2_subdev_frame_size_enum and its max and min values for the width and the height. In this case, the possibility to return a frame interval range is added to the v4l2-subdev level whenever the v4l2 device operates in step-wise or continuous mode. Signed-off-by: Daniel Gomez <daniel@xxxxxxxx> --- include/uapi/linux/v4l2-subdev.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/uapi/linux/v4l2-subdev.h b/include/uapi/linux/v4l2-subdev.h index 03970ce30741..ee15393c58cd 100644 --- a/include/uapi/linux/v4l2-subdev.h +++ b/include/uapi/linux/v4l2-subdev.h @@ -117,6 +117,8 @@ struct v4l2_subdev_frame_interval { * @code: format code (MEDIA_BUS_FMT_ definitions) * @width: frame width in pixels * @height: frame height in pixels + * @min_interval: min frame interval in seconds + * @max_interval: max frame interval in seconds * @interval: frame interval in seconds * @which: format type (from enum v4l2_subdev_format_whence) */ @@ -126,9 +128,11 @@ struct v4l2_subdev_frame_interval_enum { __u32 code; __u32 width; __u32 height; + struct v4l2_fract min_interval; + struct v4l2_fract max_interval; struct v4l2_fract interval; __u32 which; - __u32 reserved[8]; + __u32 reserved[4]; }; /** -- 2.25.1