From 57ffa2e772fdb52e65a3cb6fc5900795dcc74d39 Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Tue, 29 Nov 2005 13:45:52 +0000 Subject: added offset parameter for adjusting tuner offset by hand Signed-off-by: Mauro Carvalho Chehab --- linux/drivers/media/video/tuner-simple.c | 8 ++++++-- v4l/ChangeLog | 8 ++++++++ 2 files changed, 14 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 #include +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; diff --git a/v4l/ChangeLog b/v4l/ChangeLog index bfb19ec20..0492e24cb 100644 --- a/v4l/ChangeLog +++ b/v4l/ChangeLog @@ -1,3 +1,11 @@ +2005-11-29 13:41 mchehab + + * ../linux/drivers/media/video/tuner-simple.c: + (default_set_tv_freq): + - Added an offset parameter to allow adjusting tuner offsets + + Signed-off-by: Mauro Carvalho Chehab + 2005-11-29 13:36 mkrufky * ../v4l/Make.config: -- cgit v1.2.3