diff options
Diffstat (limited to 'include/media/tuner.h')
-rw-r--r-- | include/media/tuner.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/include/media/tuner.h b/include/media/tuner.h index 017fed7d5e4d..2f7b00b08e88 100644 --- a/include/media/tuner.h +++ b/include/media/tuner.h | |||
@@ -25,6 +25,8 @@ | |||
25 | #include <linux/videodev2.h> | 25 | #include <linux/videodev2.h> |
26 | #include <media/tuner-types.h> | 26 | #include <media/tuner-types.h> |
27 | 27 | ||
28 | extern int tuner_debug; | ||
29 | |||
28 | #define ADDR_UNSET (255) | 30 | #define ADDR_UNSET (255) |
29 | 31 | ||
30 | #define TUNER_TEMIC_PAL 0 /* 4002 FH5 (3X 7756, 9483) */ | 32 | #define TUNER_TEMIC_PAL 0 /* 4002 FH5 (3X 7756, 9483) */ |
@@ -108,7 +110,7 @@ | |||
108 | #define TUNER_TEA5767 62 /* Only FM Radio Tuner */ | 110 | #define TUNER_TEA5767 62 /* Only FM Radio Tuner */ |
109 | #define TUNER_PHILIPS_FMD1216ME_MK3 63 | 111 | #define TUNER_PHILIPS_FMD1216ME_MK3 63 |
110 | 112 | ||
111 | #define TUNER_LG_TDVS_H062F 64 /* DViCO FusionHDTV 5 */ | 113 | #define TUNER_LG_TDVS_H06XF 64 /* TDVS H061F, H062F, H064F */ |
112 | #define TUNER_YMEC_TVF66T5_B_DFF 65 /* Acorp Y878F */ | 114 | #define TUNER_YMEC_TVF66T5_B_DFF 65 /* Acorp Y878F */ |
113 | #define TUNER_LG_TALN 66 | 115 | #define TUNER_LG_TALN 66 |
114 | #define TUNER_PHILIPS_TD1316 67 | 116 | #define TUNER_PHILIPS_TD1316 67 |
@@ -119,6 +121,8 @@ | |||
119 | #define TUNER_XCEIVE_XC3028 71 | 121 | #define TUNER_XCEIVE_XC3028 71 |
120 | 122 | ||
121 | #define TUNER_THOMSON_FE6600 72 /* DViCO FusionHDTV DVB-T Hybrid */ | 123 | #define TUNER_THOMSON_FE6600 72 /* DViCO FusionHDTV DVB-T Hybrid */ |
124 | #define TUNER_SAMSUNG_TCPG_6121P30A 73 /* Hauppauge PVR-500 PAL */ | ||
125 | #define TUNER_TDA9887 74 /* This tuner should be used only internally */ | ||
122 | 126 | ||
123 | /* tv card specific */ | 127 | /* tv card specific */ |
124 | #define TDA9887_PRESENT (1<<0) | 128 | #define TDA9887_PRESENT (1<<0) |
@@ -190,6 +194,10 @@ struct tuner { | |||
190 | 194 | ||
191 | int using_v4l2; | 195 | int using_v4l2; |
192 | 196 | ||
197 | /* used by tda9887 */ | ||
198 | unsigned int tda9887_config; | ||
199 | unsigned char tda9887_data[4]; | ||
200 | |||
193 | /* used by MT2032 */ | 201 | /* used by MT2032 */ |
194 | unsigned int xogc; | 202 | unsigned int xogc; |
195 | unsigned int radio_if2; | 203 | unsigned int radio_if2; |
@@ -206,6 +214,8 @@ struct tuner { | |||
206 | void (*set_radio_freq)(struct i2c_client *c, unsigned int freq); | 214 | void (*set_radio_freq)(struct i2c_client *c, unsigned int freq); |
207 | int (*has_signal)(struct i2c_client *c); | 215 | int (*has_signal)(struct i2c_client *c); |
208 | int (*is_stereo)(struct i2c_client *c); | 216 | int (*is_stereo)(struct i2c_client *c); |
217 | int (*get_afc)(struct i2c_client *c); | ||
218 | void (*tuner_status)(struct i2c_client *c); | ||
209 | void (*standby)(struct i2c_client *c); | 219 | void (*standby)(struct i2c_client *c); |
210 | }; | 220 | }; |
211 | 221 | ||
@@ -218,6 +228,7 @@ extern int tda8290_probe(struct i2c_client *c); | |||
218 | extern int tea5767_tuner_init(struct i2c_client *c); | 228 | extern int tea5767_tuner_init(struct i2c_client *c); |
219 | extern int default_tuner_init(struct i2c_client *c); | 229 | extern int default_tuner_init(struct i2c_client *c); |
220 | extern int tea5767_autodetection(struct i2c_client *c); | 230 | extern int tea5767_autodetection(struct i2c_client *c); |
231 | extern int tda9887_tuner_init(struct i2c_client *c); | ||
221 | 232 | ||
222 | #define tuner_warn(fmt, arg...) do {\ | 233 | #define tuner_warn(fmt, arg...) do {\ |
223 | printk(KERN_WARNING "%s %d-%04x: " fmt, t->i2c.driver->driver.name, \ | 234 | printk(KERN_WARNING "%s %d-%04x: " fmt, t->i2c.driver->driver.name, \ |