aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/tuner-simple.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@brturbo.com.br>2006-01-09 15:25:11 -0200
committerMauro Carvalho Chehab <mchehab@brturbo.com.br>2006-01-09 15:25:11 -0200
commit5c07db0cb4f537731dba31002f314f3dc270d83f (patch)
tree88f13830e795af046306ecf2ea6b0d7acf2f9e79 /drivers/media/video/tuner-simple.c
parentV4L/DVB (3065): Fix gcc-4.0.2 compile error in msp3400.c (diff)
downloadlinux-dev-5c07db0cb4f537731dba31002f314f3dc270d83f.tar.xz
linux-dev-5c07db0cb4f537731dba31002f314f3dc270d83f.zip
V4L/DVB (3081): added offset parameter for adjusting tuner offset by hand
- added offset parameter for adjusting tuner offset by hand Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Diffstat (limited to 'drivers/media/video/tuner-simple.c')
-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 @@
#include <linux/videodev.h>
#include <media/tuner.h>
+static int offset = 0;
+module_param(offset, int, 0666);
+MODULE_PARM_DESC(offset,"Allows to specify an offset for tuner");
+
/* ---------------------------------------------------------------------- */
/* tv standard selection for Temic 4046 FM5
@@ -908,7 +912,7 @@ static void default_set_tv_freq(struct i2c_client *c, unsigned int freq)
IFPCoff = 623;
}
- div=freq + IFPCoff;
+ div=freq + IFPCoff + offset;
if (t->type == TUNER_PHILIPS_SECAM && freq < t->freq) {
buffer[0] = tun->config;
buffer[1] = config;