V4L/DVB (7696): pvrusb2: state control tweak
Don't trigger a pathway state change if it's already been triggered (eliminates some wasted processing and some debug output noise) Signed-off-by: Mike Isely <isely@pobox.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
This commit is contained in:
parent
98e184d978
commit
38d9a2cf2d
|
@ -2401,7 +2401,7 @@ static int pvr2_hdw_commit_execute(struct pvr2_hdw *hdw)
|
|||
}
|
||||
}
|
||||
|
||||
if (hdw->input_dirty &&
|
||||
if (hdw->input_dirty && hdw->state_pathway_ok &&
|
||||
(((hdw->input_val == PVR2_CVAL_INPUT_DTV) ?
|
||||
PVR2_PATHWAY_DIGITAL : PVR2_PATHWAY_ANALOG) !=
|
||||
hdw->pathway_state)) {
|
||||
|
|
Loading…
Reference in a new issue