diff options
author | Mike Isely <isely@pobox.com> | 2008-03-28 04:30:48 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-04-24 13:09:47 -0400 |
commit | 38d9a2cf2db30b37dde81ec5f8b4de0fd9843ccc (patch) | |
tree | e445fc1bf5a14995000985eb2e20c0097b640b79 /drivers/media/video | |
parent | 98e184d978c9fdd294c169e468ab4a3e51a8be2d (diff) |
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>
Diffstat (limited to 'drivers/media/video')
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-hdw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-hdw.c b/drivers/media/video/pvrusb2/pvrusb2-hdw.c index 6a820b713fec..307a38d91c85 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-hdw.c +++ b/drivers/media/video/pvrusb2/pvrusb2-hdw.c | |||
@@ -2401,7 +2401,7 @@ static int pvr2_hdw_commit_execute(struct pvr2_hdw *hdw) | |||
2401 | } | 2401 | } |
2402 | } | 2402 | } |
2403 | 2403 | ||
2404 | if (hdw->input_dirty && | 2404 | if (hdw->input_dirty && hdw->state_pathway_ok && |
2405 | (((hdw->input_val == PVR2_CVAL_INPUT_DTV) ? | 2405 | (((hdw->input_val == PVR2_CVAL_INPUT_DTV) ? |
2406 | PVR2_PATHWAY_DIGITAL : PVR2_PATHWAY_ANALOG) != | 2406 | PVR2_PATHWAY_DIGITAL : PVR2_PATHWAY_ANALOG) != |
2407 | hdw->pathway_state)) { | 2407 | hdw->pathway_state)) { |