From: Ian Armstrong Date: Sun, 20 Jun 2010 18:12:28 +0000 (-0300) Subject: V4L/DVB: ivtv: Add delay to ensure the decoder always restarts with a blank screen X-Git-Tag: v3.0~4265^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f06b9bd4c62ef93f9467a1432acf2efa84aa3456;p=platform%2Fkernel%2Flinux-amlogic.git V4L/DVB: ivtv: Add delay to ensure the decoder always restarts with a 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 Tested-by: Martin Dauskardt Signed-off-by: Andy Walls Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/ivtv/ivtv-streams.c b/drivers/media/video/ivtv/ivtv-streams.c index 9ecacab..a937e2f 100644 --- a/drivers/media/video/ivtv/ivtv-streams.c +++ b/drivers/media/video/ivtv/ivtv-streams.c @@ -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);