summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/tuner-simple.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <devnull@localhost>2005-11-29 13:45:52 +0000
committerMauro Carvalho Chehab <devnull@localhost>2005-11-29 13:45:52 +0000
commit57ffa2e772fdb52e65a3cb6fc5900795dcc74d39 (patch)
tree26d21da64889382631ae2c3d145a774fe29ac758 /linux/drivers/media/video/tuner-simple.c
parente27f48d844cd17fe629c1afefea2d0fcc4b9195c (diff)
downloadmediapointer-dvb-s2-57ffa2e772fdb52e65a3cb6fc5900795dcc74d39.tar.gz
mediapointer-dvb-s2-57ffa2e772fdb52e65a3cb6fc5900795dcc74d39.tar.bz2
added offset parameter for adjusting tuner offset by hand
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Diffstat (limited to 'linux/drivers/media/video/tuner-simple.c')
-rw-r--r--linux/drivers/media/video/tuner-simple.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/linux/drivers/media/video/tuner-simple.c b/linux/drivers/media/video/tuner-simple.c
index 51628cccd..3ef841fb8 100644
--- a/linux/drivers/media/video/tuner-simple.c
+++ b/linux/drivers/media/video/tuner-simple.c
@@ -1,5 +1,5 @@
/*
- * $Id: tuner-simple.c,v 1.60 2005/11/27 00:06:28 hverkuil Exp $
+ * $Id: tuner-simple.c,v 1.61 2005/11/29 13:45:52 mchehab Exp $
*
* i2c tv tuner chip device driver
* controls all those simple 4-control-bytes style tuners.
@@ -10,6 +10,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
@@ -926,7 +930,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;