aboutsummaryrefslogtreecommitdiffstats
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 {
173 when the tuner is set to TV mode. 173 when the tuner is set to TV mode.
174 */ 174 */
175 175
176/* allows to access the GPIOs of the host (pci bridge) */
177typedef void (*tuner_gpio_func_t) (void *dev, int bit_no,int value);
178
176struct tuner_setup { 179struct tuner_setup {
177 unsigned short addr; /* I2C address */ 180 unsigned short addr; /* I2C address */
178 unsigned int type; /* Tuner type */ 181 unsigned int type; /* Tuner type */
179 unsigned int mode_mask; /* Allowed tuner modes */ 182 unsigned int mode_mask; /* Allowed tuner modes */
183 unsigned int config; /* configuraion for more complex tuners */
184 tuner_gpio_func_t gpio_func;
180}; 185};
181 186
182struct tuner { 187struct tuner {
@@ -210,6 +215,8 @@ struct tuner {
210 unsigned char tda827x_addr; 215 unsigned char tda827x_addr;
211 unsigned char tda827x_ver; 216 unsigned char tda827x_ver;
212 unsigned int sgIF; 217 unsigned int sgIF;
218 unsigned int config;
219 tuner_gpio_func_t gpio_func;
213 220
214 /* function ptrs */ 221 /* function ptrs */
215 void (*set_tv_freq)(struct i2c_client *c, unsigned int freq); 222 void (*set_tv_freq)(struct i2c_client *c, unsigned int freq);