@@ -694,8 +694,8 @@ static int v4l2_subdev_parse_setup_format(struct media_device *media,
return ret;
- /* If the pad is an output pad, automatically set the same format on
- * the remote subdev input pads, if any.
+ /* If the pad is an output pad, automatically set the same format and
+ * frame interval on the remote subdev input pads, if any.
*/
if (pad->flags & MEDIA_PAD_FL_SOURCE) {
for (i = 0; i < pad->entity->num_links; ++i) {
@@ -709,6 +709,10 @@ static int v4l2_subdev_parse_setup_format(struct media_device *media,
link->sink->entity->info.type == MEDIA_ENT_T_V4L2_SUBDEV) {
remote_format = format;
set_format(link->sink, &remote_format);
+
+ ret = set_frame_interval(link->sink, &interval);
+ if (ret < 0)
+ return ret;
}
}
}