diff options
Diffstat (limited to 'drivers/media/video/marvell-ccic/mcam-core.c')
-rw-r--r-- | drivers/media/video/marvell-ccic/mcam-core.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/media/video/marvell-ccic/mcam-core.c b/drivers/media/video/marvell-ccic/mcam-core.c index 7abe5030724..1141b976dff 100644 --- a/drivers/media/video/marvell-ccic/mcam-core.c +++ b/drivers/media/video/marvell-ccic/mcam-core.c | |||
@@ -940,12 +940,14 @@ static void mcam_vb_wait_finish(struct vb2_queue *vq) | |||
940 | /* | 940 | /* |
941 | * These need to be called with the mutex held from vb2 | 941 | * These need to be called with the mutex held from vb2 |
942 | */ | 942 | */ |
943 | static int mcam_vb_start_streaming(struct vb2_queue *vq) | 943 | static int mcam_vb_start_streaming(struct vb2_queue *vq, unsigned int count) |
944 | { | 944 | { |
945 | struct mcam_camera *cam = vb2_get_drv_priv(vq); | 945 | struct mcam_camera *cam = vb2_get_drv_priv(vq); |
946 | 946 | ||
947 | if (cam->state != S_IDLE) | 947 | if (cam->state != S_IDLE) { |
948 | INIT_LIST_HEAD(&cam->buffers); | ||
948 | return -EINVAL; | 949 | return -EINVAL; |
950 | } | ||
949 | cam->sequence = 0; | 951 | cam->sequence = 0; |
950 | /* | 952 | /* |
951 | * Videobuf2 sneakily hoards all the buffers and won't | 953 | * Videobuf2 sneakily hoards all the buffers and won't |