diff options
-rw-r--r-- | drivers/media/platform/mxc/subdev/mx6s_capture.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/platform/mxc/subdev/mx6s_capture.c b/drivers/media/platform/mxc/subdev/mx6s_capture.c index 8cb1c1d14cf5..ff7d01c2edef 100644 --- a/drivers/media/platform/mxc/subdev/mx6s_capture.c +++ b/drivers/media/platform/mxc/subdev/mx6s_capture.c @@ -816,6 +816,8 @@ static int mx6s_start_streaming(struct vb2_queue *vq, unsigned int count) spin_unlock_irqrestore(&csi_dev->slock, flags); + mx6s_csi_enable(csi_dev); + return 0; } @@ -826,6 +828,8 @@ static int mx6s_stop_streaming(struct vb2_queue *vq) struct mx6s_buffer *buf, *tmp; void *b; + mx6s_csi_disable(csi_dev); + spin_lock_irqsave(&csi_dev->slock, flags); @@ -1378,8 +1382,6 @@ static int mx6s_vidioc_streamon(struct file *file, void *priv, ret = vb2_streamon(&csi_dev->vb2_vidq, i); - mx6s_csi_enable(csi_dev); - if (!ret) v4l2_subdev_call(sd, video, s_stream, 1); @@ -1405,8 +1407,6 @@ static int mx6s_vidioc_streamoff(struct file *file, void *priv, v4l2_subdev_call(sd, video, s_stream, 0); - mx6s_csi_disable(csi_dev); - return 0; } |