Skip to content

Commit

Permalink
V4L/DVB (3081): added offset parameter for adjusting tuner offset by …
Browse files Browse the repository at this point in the history
…hand

- added offset parameter for adjusting tuner offset by hand

Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
  • Loading branch information
Mauro Carvalho Chehab committed Jan 9, 2006
1 parent 2aeb49b commit 5c07db0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/media/video/tuner-simple.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 5c07db0

Please sign in to comment.