diff options
author | Hartmut Hackmann <hartmut.hackmann@t-online.de> | 2007-01-23 00:14:25 +0100 |
---|---|---|
committer | Hartmut Hackmann <hartmut.hackmann@t-online.de> | 2007-01-23 00:14:25 +0100 |
commit | 0124d3c9c8071f1994a85d9f9973129efd6e044d (patch) | |
tree | 30f40b67f0bb327b6ecbb23303232bac9f0d78b9 /linux/include/media/tuner.h | |
parent | eb69d8221127090471e67cdb38e3d97f4ae5ca80 (diff) | |
download | mediapointer-dvb-s2-0124d3c9c8071f1994a85d9f9973129efd6e044d.tar.gz mediapointer-dvb-s2-0124d3c9c8071f1994a85d9f9973129efd6e044d.tar.bz2 |
Added a config entry and a gpio function pointer to the tuner struct
From: Hartmut Hackmann <hartmut.hackmann@t-online.de>
These entries mainly are to support configurations of the tda827x
silicon tuner with a preamplifier.
The values can be set throgh the attach inform or through
the extended TUNER_SET_TYPE_ADDR client call. The function pointer
will only be updated if the parameter is not NULL.
Since a typecast is necessary to set the pointer, i added a typedef for
this pointer (tuner_gpio_func_t) in tuner.h
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.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/linux/include/media/tuner.h b/linux/include/media/tuner.h index 947b32366..153e2a6ea 100644 --- a/linux/include/media/tuner.h +++ b/linux/include/media/tuner.h @@ -173,10 +173,15 @@ 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; }; struct tuner { @@ -210,6 +215,8 @@ struct tuner { unsigned char tda827x_addr; unsigned char tda827x_ver; unsigned int sgIF; + unsigned int config; + tuner_gpio_func_t gpio_func; /* function ptrs */ void (*set_tv_freq)(struct i2c_client *c, unsigned int freq); |