]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
media: am437x-vpfe: fix start streaming error path
authorBenoit Parrot <bparrot@ti.com>
Fri, 20 Sep 2019 17:05:46 +0000 (14:05 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 1 Oct 2019 19:10:38 +0000 (16:10 -0300)
When start_streaming fails the h/w module might be left enabled
inadvertently. Make sure it is disabled in the error path.

Signed-off-by: Benoit Parrot <bparrot@ti.com>
Acked-by: Lad Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/am437x/am437x-vpfe.c

index 66df87d310a2267b69d332e5de4a571c9245bf9f..e0a4c8920df8de8ebfc4d179c75f3658541c946a 100644 (file)
@@ -2008,6 +2008,7 @@ static int vpfe_start_streaming(struct vb2_queue *vq, unsigned int count)
                vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_QUEUED);
        }
 
+       vpfe_pcr_enable(&vpfe->ccdc, 0);
        return ret;
 }