Skip to content

Commit

Permalink
V4L/DVB: ivtv: Add delay to ensure the decoder always restarts with a…
Browse files Browse the repository at this point in the history
… blank screen

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>
  • Loading branch information
Ian Armstrong authored and Mauro Carvalho Chehab committed Jul 8, 2010
1 parent bd1fc7c commit f06b9bd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/media/video/ivtv/ivtv-streams.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit f06b9bd

Please sign in to comment.