summaryrefslogtreecommitdiff
path: root/v4l_experimental/pvrusb2/pvrusb2-tuner.c
diff options
context:
space:
mode:
Diffstat (limited to 'v4l_experimental/pvrusb2/pvrusb2-tuner.c')
-rw-r--r--v4l_experimental/pvrusb2/pvrusb2-tuner.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/v4l_experimental/pvrusb2/pvrusb2-tuner.c b/v4l_experimental/pvrusb2/pvrusb2-tuner.c
index ff94c1da2..c84200ab6 100644
--- a/v4l_experimental/pvrusb2/pvrusb2-tuner.c
+++ b/v4l_experimental/pvrusb2/pvrusb2-tuner.c
@@ -1,6 +1,6 @@
/*
*
- * $Id: pvrusb2-tuner.c,v 1.5 2005/12/02 14:03:10 mcisely Exp $
+ * $Id: pvrusb2-tuner.c,v 1.6 2005/12/07 06:53:52 mcisely Exp $
*
* Copyright (C) 2005 Mike Isely <isely@pobox.com>
* Copyright (C) 2004 Aurelien Alleaume <slts@free.fr>
@@ -74,6 +74,10 @@ int pvr2_tuner_set_freq(struct pvr2_hdw *hdw)
/* This kicks the audio controller... */
stat = pvr2_i2c_msp3400_cmd(hdw,VIDIOCSFREQ,0);
if (stat < 0) return stat;
+ /* Smack around tda9887 as well, if it is lurking nearby */
+ if (hdw->i2c_ifhandler_client) {
+ pvr2_i2c_ifhandler_cmd(hdw,VIDIOC_S_FREQUENCY,&freq);
+ }
hdw->subsys_enabled_mask |= PVR2_SUBSYS_TUNER_CFG_FREQ;
return 0;
}
@@ -143,6 +147,9 @@ int pvr2_tuner_set_standard(struct pvr2_hdw *hdw)
break;
}
pvr2_i2c_tuner_cmd(hdw,VIDIOC_S_STD,&vs);
+ if (hdw->i2c_ifhandler_client) {
+ pvr2_i2c_ifhandler_cmd(hdw,VIDIOC_S_STD,&vs);
+ }
hdw->subsys_enabled_mask |= PVR2_SUBSYS_TUNER_CFG_STD;
return 0;