summaryrefslogtreecommitdiff
path: root/include/media
diff options
context:
space:
mode:
Diffstat (limited to 'include/media')
-rw-r--r--include/media/tuner.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/media/tuner.h b/include/media/tuner.h
index 99acf847365c..fe567129b22b 100644
--- a/include/media/tuner.h
+++ b/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);