diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-18 14:25:58 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-18 14:25:58 -0400 |
commit | a267c0a887064720dfab5775a4f09b20b4f8ec37 (patch) | |
tree | 25de1f109ff6ef7f0967c22755604cc667944afd /include | |
parent | d756d10e246a01515d07f8161181b8a14afba7cc (diff) | |
parent | 97989ada7628da262eafb4bebce0a319c7cb0f5f (diff) |
Merge branch 'master' of ssh://master.kernel.org/pub/scm/linux/kernel/git/mchehab/v4l-dvb
* 'master' of ssh://master.kernel.org/pub/scm/linux/kernel/git/mchehab/v4l-dvb: (126 commits)
V4L/DVB (5847): Clean up schedule_timeout calls in cpia2 and ivtv code
V4L/DVB (5846): Clean up setting state and scheduling timeouts
V4L/DVB (5844): ivtv: add high volume debugging flag
V4L/DVB (5843): ivtv: fix missing signal_pending check.
V4L/DVB (5842): ivtv: Add locking to ensure stream setup is atomic.
V4L/DVB (5841): tveeprom: add support for Philips FQ1216LME MK3 tuner.
V4L/DVB (5840): fix dst and cx24123: tune() callback changed signess for delay
V4L/DVB (5838): dvb-core: Fix signedness warnings (gcc 4.1.1, kernel 2.6.22)
V4L/DVB (5837): stv0299: Fix signedness warning (gcc 4.1.1, kernel 2.6.22)
V4L/DVB (5836): dvb-ttpci: re-initialize aspect ratio and pan scan after arm crash
V4L/DVB (5835): saa7146/dvb-ttpci: Fix signedness warnings (gcc 4.1.1, kernel 2.6.22)
V4L/DVB (5834): dvb-core: fix signedness warnings and const stripping
V4L/DVB (5832): ir-common: optimize bit extract function
V4L/DVB (5831): stradis: use ARRAY_SIZE
V4L/DVB (5829): Firmware extract and loading for opera dvb-usb update
V4L/DVB (5828): Kconfig: Added GemTek USB radio and removed experimental dependency.
V4L/DVB (5826): Usbvision: video mux cleanup
V4L/DVB (5825): Alter the tuner type for the WinTV USB UK PAL model.
V4L/DVB (5824): Usbvision: Hauppauge WinTV USB SECAM_L fix
V4L/DVB (5821): Saa7134: add remote control support for LifeView FlyDVB-S LR300
...
Diffstat (limited to 'include')
-rw-r--r-- | include/media/saa7146.h | 6 | ||||
-rw-r--r-- | include/media/tuner.h | 71 |
2 files changed, 4 insertions, 73 deletions
diff --git a/include/media/saa7146.h b/include/media/saa7146.h index d3f4f5a38214..67703249b245 100644 --- a/include/media/saa7146.h +++ b/include/media/saa7146.h | |||
@@ -114,7 +114,7 @@ struct saa7146_dev | |||
114 | struct mutex lock; | 114 | struct mutex lock; |
115 | 115 | ||
116 | unsigned char __iomem *mem; /* pointer to mapped IO memory */ | 116 | unsigned char __iomem *mem; /* pointer to mapped IO memory */ |
117 | int revision; /* chip revision; needed for bug-workarounds*/ | 117 | u32 revision; /* chip revision; needed for bug-workarounds*/ |
118 | 118 | ||
119 | /* pci-device & irq stuff*/ | 119 | /* pci-device & irq stuff*/ |
120 | char name[32]; | 120 | char name[32]; |
@@ -157,8 +157,8 @@ struct saa7146_format* format_by_fourcc(struct saa7146_dev *dev, int fourcc); | |||
157 | int saa7146_pgtable_alloc(struct pci_dev *pci, struct saa7146_pgtable *pt); | 157 | int saa7146_pgtable_alloc(struct pci_dev *pci, struct saa7146_pgtable *pt); |
158 | void saa7146_pgtable_free(struct pci_dev *pci, struct saa7146_pgtable *pt); | 158 | void saa7146_pgtable_free(struct pci_dev *pci, struct saa7146_pgtable *pt); |
159 | int saa7146_pgtable_build_single(struct pci_dev *pci, struct saa7146_pgtable *pt, struct scatterlist *list, int length ); | 159 | int saa7146_pgtable_build_single(struct pci_dev *pci, struct saa7146_pgtable *pt, struct scatterlist *list, int length ); |
160 | char *saa7146_vmalloc_build_pgtable(struct pci_dev *pci, long length, struct saa7146_pgtable *pt); | 160 | void *saa7146_vmalloc_build_pgtable(struct pci_dev *pci, long length, struct saa7146_pgtable *pt); |
161 | void saa7146_vfree_destroy_pgtable(struct pci_dev *pci, char *mem, struct saa7146_pgtable *pt); | 161 | void saa7146_vfree_destroy_pgtable(struct pci_dev *pci, void *mem, struct saa7146_pgtable *pt); |
162 | void saa7146_setgpio(struct saa7146_dev *dev, int port, u32 data); | 162 | void saa7146_setgpio(struct saa7146_dev *dev, int port, u32 data); |
163 | int saa7146_wait_for_debi_done(struct saa7146_dev *dev, int nobusyloop); | 163 | int saa7146_wait_for_debi_done(struct saa7146_dev *dev, int nobusyloop); |
164 | 164 | ||
diff --git a/include/media/tuner.h b/include/media/tuner.h index 6dcf3c45707d..160381c72e4b 100644 --- a/include/media/tuner.h +++ b/include/media/tuner.h | |||
@@ -23,8 +23,6 @@ | |||
23 | #define _TUNER_H | 23 | #define _TUNER_H |
24 | 24 | ||
25 | #include <linux/videodev2.h> | 25 | #include <linux/videodev2.h> |
26 | #include <linux/i2c.h> | ||
27 | #include <media/tuner-types.h> | ||
28 | 26 | ||
29 | extern int tuner_debug; | 27 | extern int tuner_debug; |
30 | 28 | ||
@@ -124,6 +122,7 @@ extern int tuner_debug; | |||
124 | #define TUNER_THOMSON_FE6600 72 /* DViCO FusionHDTV DVB-T Hybrid */ | 122 | #define TUNER_THOMSON_FE6600 72 /* DViCO FusionHDTV DVB-T Hybrid */ |
125 | #define TUNER_SAMSUNG_TCPG_6121P30A 73 /* Hauppauge PVR-500 PAL */ | 123 | #define TUNER_SAMSUNG_TCPG_6121P30A 73 /* Hauppauge PVR-500 PAL */ |
126 | #define TUNER_TDA9887 74 /* This tuner should be used only internally */ | 124 | #define TUNER_TDA9887 74 /* This tuner should be used only internally */ |
125 | #define TUNER_TEA5761 75 /* Only FM Radio Tuner */ | ||
127 | 126 | ||
128 | /* tv card specific */ | 127 | /* tv card specific */ |
129 | #define TDA9887_PRESENT (1<<0) | 128 | #define TDA9887_PRESENT (1<<0) |
@@ -182,74 +181,6 @@ struct tuner_setup { | |||
182 | int (*tuner_callback) (void *dev, int command,int arg); | 181 | int (*tuner_callback) (void *dev, int command,int arg); |
183 | }; | 182 | }; |
184 | 183 | ||
185 | struct tuner { | ||
186 | /* device */ | ||
187 | struct i2c_client i2c; | ||
188 | |||
189 | unsigned int type; /* chip type */ | ||
190 | |||
191 | unsigned int mode; | ||
192 | unsigned int mode_mask; /* Combination of allowable modes */ | ||
193 | |||
194 | unsigned int tv_freq; /* keep track of the current settings */ | ||
195 | unsigned int radio_freq; | ||
196 | u16 last_div; | ||
197 | unsigned int audmode; | ||
198 | v4l2_std_id std; | ||
199 | |||
200 | int using_v4l2; | ||
201 | |||
202 | /* used by tda9887 */ | ||
203 | unsigned int tda9887_config; | ||
204 | unsigned char tda9887_data[4]; | ||
205 | |||
206 | /* used by MT2032 */ | ||
207 | unsigned int xogc; | ||
208 | unsigned int radio_if2; | ||
209 | |||
210 | /* used by tda8290 */ | ||
211 | unsigned char tda8290_easy_mode; | ||
212 | unsigned char tda827x_lpsel; | ||
213 | unsigned char tda827x_addr; | ||
214 | unsigned char tda827x_ver; | ||
215 | unsigned int sgIF; | ||
216 | |||
217 | unsigned int config; | ||
218 | int (*tuner_callback) (void *dev, int command,int arg); | ||
219 | |||
220 | /* function ptrs */ | ||
221 | void (*set_tv_freq)(struct i2c_client *c, unsigned int freq); | ||
222 | void (*set_radio_freq)(struct i2c_client *c, unsigned int freq); | ||
223 | int (*has_signal)(struct i2c_client *c); | ||
224 | int (*is_stereo)(struct i2c_client *c); | ||
225 | int (*get_afc)(struct i2c_client *c); | ||
226 | void (*tuner_status)(struct i2c_client *c); | ||
227 | void (*standby)(struct i2c_client *c); | ||
228 | }; | ||
229 | |||
230 | extern unsigned const int tuner_count; | ||
231 | |||
232 | extern int microtune_init(struct i2c_client *c); | ||
233 | extern int xc3028_init(struct i2c_client *c); | ||
234 | extern int tda8290_init(struct i2c_client *c); | ||
235 | extern int tda8290_probe(struct i2c_client *c); | ||
236 | extern int tea5767_tuner_init(struct i2c_client *c); | ||
237 | extern int default_tuner_init(struct i2c_client *c); | ||
238 | extern int tea5767_autodetection(struct i2c_client *c); | ||
239 | extern int tda9887_tuner_init(struct i2c_client *c); | ||
240 | |||
241 | #define tuner_warn(fmt, arg...) do {\ | ||
242 | printk(KERN_WARNING "%s %d-%04x: " fmt, t->i2c.driver->driver.name, \ | ||
243 | i2c_adapter_id(t->i2c.adapter), t->i2c.addr , ##arg); } while (0) | ||
244 | #define tuner_info(fmt, arg...) do {\ | ||
245 | printk(KERN_INFO "%s %d-%04x: " fmt, t->i2c.driver->driver.name, \ | ||
246 | i2c_adapter_id(t->i2c.adapter), t->i2c.addr , ##arg); } while (0) | ||
247 | #define tuner_dbg(fmt, arg...) do {\ | ||
248 | extern int tuner_debug; \ | ||
249 | if (tuner_debug) \ | ||
250 | printk(KERN_DEBUG "%s %d-%04x: " fmt, t->i2c.driver->driver.name, \ | ||
251 | i2c_adapter_id(t->i2c.adapter), t->i2c.addr , ##arg); } while (0) | ||
252 | |||
253 | #endif /* __KERNEL__ */ | 184 | #endif /* __KERNEL__ */ |
254 | 185 | ||
255 | #endif /* _TUNER_H */ | 186 | #endif /* _TUNER_H */ |