Skip to content

Commit fb64022

Browse files
Mike IselyMauro Carvalho Chehab
authored andcommitted
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: Mike Isely <isely@pobox.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
1 parent 91b5b48 commit fb64022

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

‎drivers/media/video/pvrusb2/pvrusb2-hdw.c‎

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4625,10 +4625,15 @@ static int state_eval_decoder_run(struct pvr2_hdw *hdw)
46254625
hdw->state_decoder_quiescent = 0;
46264626
hdw->state_decoder_ready = 0;
46274627
hdw->state_decoder_run = !0;
4628-
hdw->decoder_stabilization_timer.expires =
4629-
jiffies +
4630-
(HZ * TIME_MSEC_DECODER_STABILIZATION_WAIT / 1000);
4631-
add_timer(&hdw->decoder_stabilization_timer);
4628+
if (hdw->decoder_client_id == PVR2_CLIENT_ID_SAA7115) {
4629+
hdw->decoder_stabilization_timer.expires =
4630+
jiffies +
4631+
(HZ * TIME_MSEC_DECODER_STABILIZATION_WAIT /
4632+
1000);
4633+
add_timer(&hdw->decoder_stabilization_timer);
4634+
} else {
4635+
hdw->state_decoder_ready = !0;
4636+
}
46324637
}
46334638
trace_stbit("state_decoder_quiescent",hdw->state_decoder_quiescent);
46344639
trace_stbit("state_decoder_run",hdw->state_decoder_run);

0 commit comments

Comments
 (0)