]> err.no Git - linux-2.6/commitdiff
V4L/DVB (7696): pvrusb2: state control tweak
authorMike Isely <isely@pobox.com>
Fri, 28 Mar 2008 08:30:48 +0000 (05:30 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Thu, 24 Apr 2008 17:09:47 +0000 (14:09 -0300)
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>
drivers/media/video/pvrusb2/pvrusb2-hdw.c

index 6a820b713fec4e43d3f13303adec66b434d3c1eb..307a38d91c85a6cda6d12d000f2cc457e59a493d 100644 (file)
@@ -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)) {