summaryrefslogtreecommitdiff
path: root/linux/include/media/tuner.h
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/include/media/tuner.h
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/include/media/tuner.h')
-rw-r--r--linux/include/media/tuner.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/linux/include/media/tuner.h b/linux/include/media/tuner.h
index 153e2a6ea..40affbd6f 100644
--- a/linux/include/media/tuner.h
+++ b/linux/include/media/tuner.h
@@ -173,15 +173,12 @@ enum tuner_mode {
when the tuner is set to TV mode.
*/
-/* allows to access the GPIOs of the host (pci bridge) */
-typedef void (*tuner_gpio_func_t) (void *dev, int bit_no,int value);
-
struct tuner_setup {
unsigned short addr; /* I2C address */
unsigned int type; /* Tuner type */
unsigned int mode_mask; /* Allowed tuner modes */
unsigned int config; /* configuraion for more complex tuners */
- tuner_gpio_func_t gpio_func;
+ int (*tuner_callback) (void *dev, int command,int arg);
};
struct tuner {
@@ -215,8 +212,9 @@ struct tuner {
unsigned char tda827x_addr;
unsigned char tda827x_ver;
unsigned int sgIF;
+
unsigned int config;
- tuner_gpio_func_t gpio_func;
+ int (*tuner_callback) (void *dev, int command,int arg);
/* function ptrs */
void (*set_tv_freq)(struct i2c_client *c, unsigned int freq);