hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/drivers/media/i2c/nvp6158_drv/nvp6158_v4l2.c
....@@ -924,6 +924,17 @@
924924 return ret;
925925 }
926926
927
+static int nvp6158_g_frame_interval(struct v4l2_subdev *sd,
928
+ struct v4l2_subdev_frame_interval *fi)
929
+{
930
+ struct nvp6158 *nvp6158 = to_nvp6158(sd);
931
+ const struct nvp6158_framesize *size = nvp6158->frame_size;
932
+
933
+ fi->interval = size->max_fps;
934
+
935
+ return 0;
936
+}
937
+
927938 static void nvp6158_get_module_inf(struct nvp6158 *nvp6158,
928939 struct rkmodule_inf *inf)
929940 {
....@@ -1174,6 +1185,7 @@
11741185 static const struct v4l2_subdev_video_ops nvp6158_video_ops = {
11751186 .s_stream = nvp6158_stream,
11761187 .querystd = nvp6158_querystd,
1188
+ .g_frame_interval = nvp6158_g_frame_interval,
11771189 };
11781190
11791191 static const struct v4l2_subdev_pad_ops nvp6158_subdev_pad_ops = {