]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
V4L/DVB: ivtv: Add delay to ensure the decoder always restarts with a blank screen
authorIan Armstrong <ian@iarmst.demon.co.uk>
Sun, 20 Jun 2010 18:12:28 +0000 (15:12 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 8 Jul 2010 19:50:10 +0000 (16:50 -0300)
Add a short delay when stopping the decoder, allowing it to settle and
preventing some unexpected interaction with other firmware commands.

Signed-off-by: Ian Armstrong <ian@iarmst.demon.co.uk>
Tested-by: Martin Dauskardt <martin.dauskardt@gmx.de>
Signed-off-by: Andy Walls <awalls@md.metrocast.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/ivtv/ivtv-streams.c

index 9ecacab4b89b3a63c601d12c3ea6ba1862f115e3..a937e2ff9b6ebcad8a8d5e3e5025c140d34ccef3 100644 (file)
@@ -912,6 +912,9 @@ int ivtv_stop_v4l2_decode_stream(struct ivtv_stream *s, int flags, u64 pts)
        clear_bit(IVTV_F_S_STREAMING, &s->s_flags);
        ivtv_flush_queues(s);
 
+       /* decoder needs time to settle */
+       ivtv_msleep_timeout(40, 0);
+
        /* decrement decoding */
        atomic_dec(&itv->decoding);