Commit fb640224 authored by Mike Isely's avatar Mike Isely Committed by Mauro Carvalho Chehab

V4L/DVB: pvrusb2: Adjust 300msec digitizer wait to be more selective

We know that the 300msec settling time after starting the digitizer is
only really needed when the digitizer is a SAA7115.  So if we're not
using a SAA7115, skip the delay.
Signed-off-by: default avatarMike Isely <isely@pobox.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 91b5b489
...@@ -4625,10 +4625,15 @@ static int state_eval_decoder_run(struct pvr2_hdw *hdw) ...@@ -4625,10 +4625,15 @@ static int state_eval_decoder_run(struct pvr2_hdw *hdw)
hdw->state_decoder_quiescent = 0; hdw->state_decoder_quiescent = 0;
hdw->state_decoder_ready = 0; hdw->state_decoder_ready = 0;
hdw->state_decoder_run = !0; hdw->state_decoder_run = !0;
hdw->decoder_stabilization_timer.expires = if (hdw->decoder_client_id == PVR2_CLIENT_ID_SAA7115) {
jiffies + hdw->decoder_stabilization_timer.expires =
(HZ * TIME_MSEC_DECODER_STABILIZATION_WAIT / 1000); jiffies +
add_timer(&hdw->decoder_stabilization_timer); (HZ * TIME_MSEC_DECODER_STABILIZATION_WAIT /
1000);
add_timer(&hdw->decoder_stabilization_timer);
} else {
hdw->state_decoder_ready = !0;
}
} }
trace_stbit("state_decoder_quiescent",hdw->state_decoder_quiescent); trace_stbit("state_decoder_quiescent",hdw->state_decoder_quiescent);
trace_stbit("state_decoder_run",hdw->state_decoder_run); trace_stbit("state_decoder_run",hdw->state_decoder_run);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment