summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/tda8290.c
diff options
context:
space:
mode:
authorHartmut Hackmann <hartmut.hackmann@t-online.de>2007-02-15 00:42:04 +0100
committerHartmut Hackmann <hartmut.hackmann@t-online.de>2007-02-15 00:42:04 +0100
commitabf69ab9d6b9d4c9729c7b4189c15171a1d2e575 (patch)
tree93584ab75248b049e881aab65914a4d65d064851 /linux/drivers/media/video/tda8290.c
parent63d02f07474ecdd2c460bd789977c93bebb40beb (diff)
downloadmediapointer-dvb-s2-abf69ab9d6b9d4c9729c7b4189c15171a1d2e575.tar.gz
mediapointer-dvb-s2-abf69ab9d6b9d4c9729c7b4189c15171a1d2e575.tar.bz2
updated support for tuner callbacks
From: Hartmut Hackmann <hartmut.hackmann@t-online.de> This change supplies a more generic version of the tuner callback. The tuner struct now has a function pointer int (*tuner_callback) (void *dev, int command, int arg) additionally to a int config parameter. both can be set through the TUNER_SET_TYPE_ADDR client call. Note that the meaning of the parameters depend on the tuner type. Signed-off-by: Hartmut Hackmann <hartmut.hackmann@t-online.de>
Diffstat (limited to 'linux/drivers/media/video/tda8290.c')
-rw-r--r--linux/drivers/media/video/tda8290.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/linux/drivers/media/video/tda8290.c b/linux/drivers/media/video/tda8290.c
index 541740d6f..109eb44a9 100644
--- a/linux/drivers/media/video/tda8290.c
+++ b/linux/drivers/media/video/tda8290.c
@@ -215,19 +215,19 @@ static void tda827xa_lna_gain(struct i2c_client *c, int high)
case 2:
/* turn Vsync on */
if (t->std & V4L2_STD_MN)
- arg = 5;
+ arg = 1;
else
- arg = 4;
- if (t->gpio_func)
- t->gpio_func(c->adapter->algo_data, 22, 5);
+ arg = 0;
+ if (t->tuner_callback)
+ t->tuner_callback(c->adapter->algo_data, 1, arg);
buf[1] = high ? 0 : 1;
if (t->config == 2)
buf[1] = high ? 1 : 0;
i2c_transfer(c->adapter, &msg, 1);
break;
case 3: /* switch with GPIO of saa713x */
- if (t->gpio_func)
- t->gpio_func(c->adapter->algo_data, 22, high);
+ if (t->tuner_callback)
+ t->tuner_callback(c->adapter->algo_data, 0, high);
break;
}
}