diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-06-23 15:13:56 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-06-25 01:05:24 -0400 |
commit | 153962364dc6fa4a24571885fbe76506d8968610 (patch) | |
tree | 78eca883cd190dbb2bf94b6337ac1d57951a757b /include/media | |
parent | 0ccac4af1a8f22e2e96d89b9bf8766dc7286a972 (diff) |
V4L/DVB (4205): Merge tda9887 module into tuner.
Most uses a tda988[5/6/7] IF demodulator as part of the device.
Having this as a separate stuff makes harder to configure it, since there
are some tda9887 options that are tuner-dependent and should be bound into
tuner-types structures.
This patch merges tda9887 module into tuner. More work is required to make
tuner-types to properly use it.
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/tuner.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/media/tuner.h b/include/media/tuner.h index 1601014c3f1e..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) */ |
@@ -120,6 +122,7 @@ | |||
120 | 122 | ||
121 | #define TUNER_THOMSON_FE6600 72 /* DViCO FusionHDTV DVB-T Hybrid */ | 123 | #define TUNER_THOMSON_FE6600 72 /* DViCO FusionHDTV DVB-T Hybrid */ |
122 | #define TUNER_SAMSUNG_TCPG_6121P30A 73 /* Hauppauge PVR-500 PAL */ | 124 | #define TUNER_SAMSUNG_TCPG_6121P30A 73 /* Hauppauge PVR-500 PAL */ |
125 | #define TUNER_TDA9887 74 /* This tuner should be used only internally */ | ||
123 | 126 | ||
124 | /* tv card specific */ | 127 | /* tv card specific */ |
125 | #define TDA9887_PRESENT (1<<0) | 128 | #define TDA9887_PRESENT (1<<0) |
@@ -191,6 +194,10 @@ struct tuner { | |||
191 | 194 | ||
192 | int using_v4l2; | 195 | int using_v4l2; |
193 | 196 | ||
197 | /* used by tda9887 */ | ||
198 | unsigned int tda9887_config; | ||
199 | unsigned char tda9887_data[4]; | ||
200 | |||
194 | /* used by MT2032 */ | 201 | /* used by MT2032 */ |
195 | unsigned int xogc; | 202 | unsigned int xogc; |
196 | unsigned int radio_if2; | 203 | unsigned int radio_if2; |
@@ -207,6 +214,8 @@ struct tuner { | |||
207 | void (*set_radio_freq)(struct i2c_client *c, unsigned int freq); | 214 | void (*set_radio_freq)(struct i2c_client *c, unsigned int freq); |
208 | int (*has_signal)(struct i2c_client *c); | 215 | int (*has_signal)(struct i2c_client *c); |
209 | 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); | ||
210 | void (*standby)(struct i2c_client *c); | 219 | void (*standby)(struct i2c_client *c); |
211 | }; | 220 | }; |
212 | 221 | ||
@@ -219,6 +228,7 @@ extern int tda8290_probe(struct i2c_client *c); | |||
219 | extern int tea5767_tuner_init(struct i2c_client *c); | 228 | extern int tea5767_tuner_init(struct i2c_client *c); |
220 | extern int default_tuner_init(struct i2c_client *c); | 229 | extern int default_tuner_init(struct i2c_client *c); |
221 | 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); | ||
222 | 232 | ||
223 | #define tuner_warn(fmt, arg...) do {\ | 233 | #define tuner_warn(fmt, arg...) do {\ |
224 | 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, \ |