aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/media/video/tuner-simple.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/media/video/tuner-simple.c b/drivers/media/video/tuner-simple.c
index d579e35a1077..528e1205da46 100644
--- a/drivers/media/video/tuner-simple.c
+++ b/drivers/media/video/tuner-simple.c
@@ -8,6 +8,10 @@
8#include <linux/videodev.h> 8#include <linux/videodev.h>
9#include <media/tuner.h> 9#include <media/tuner.h>
10 10
11static int offset = 0;
12module_param(offset, int, 0666);
13MODULE_PARM_DESC(offset,"Allows to specify an offset for tuner");
14
11/* ---------------------------------------------------------------------- */ 15/* ---------------------------------------------------------------------- */
12 16
13/* tv standard selection for Temic 4046 FM5 17/* tv standard selection for Temic 4046 FM5
@@ -908,7 +912,7 @@ static void default_set_tv_freq(struct i2c_client *c, unsigned int freq)
908 IFPCoff = 623; 912 IFPCoff = 623;
909 } 913 }
910 914
911 div=freq + IFPCoff; 915 div=freq + IFPCoff + offset;
912 if (t->type == TUNER_PHILIPS_SECAM && freq < t->freq) { 916 if (t->type == TUNER_PHILIPS_SECAM && freq < t->freq) {
913 buffer[0] = tun->config; 917 buffer[0] = tun->config;
914 buffer[1] = config; 918 buffer[1] = config;