@@ -1235,16 +1235,18 @@ static int rvin_set_stream(struct rvin_dev *vin, int on)
if (media_pipeline_start(&vin->vdev.entity, pipe))
return -EPIPE;
- ret = v4l2_subdev_call(sd, video, s_stream, 1);
+ ret = v4l2_subdev_call(sd, pad, s_stream, pad->index, 0, 1);
if (ret == -ENOIOCTLCMD)
ret = 0;
if (ret)
media_pipeline_stop(&vin->vdev.entity);
} else {
media_pipeline_stop(&vin->vdev.entity);
- ret = v4l2_subdev_call(sd, video, s_stream, 0);
+ ret = v4l2_subdev_call(sd, pad, s_stream, pad->index, 0, 0);
}
+ vin_dbg(vin, "pad: %u stream: 0 enable: %d\n", pad->index, on);
+
return ret;
}
To work with multiplexed streams the pad and stream aware s_stream operation needs to be used. Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> --- drivers/media/platform/rcar-vin/rcar-dma.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)