diff options
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/audiochip.h | 17 | ||||
-rw-r--r-- | include/media/id.h | 35 | ||||
-rw-r--r-- | include/media/ir-common.h | 6 | ||||
-rw-r--r-- | include/media/ir-kbd-i2c.h | 22 | ||||
-rw-r--r-- | include/media/saa7146_vv.h | 2 | ||||
-rw-r--r-- | include/media/tuner.h | 22 | ||||
-rw-r--r-- | include/media/video-buf.h | 4 |
7 files changed, 62 insertions, 46 deletions
diff --git a/include/media/audiochip.h b/include/media/audiochip.h index a7ceee9fc5e9..b7d4b0930408 100644 --- a/include/media/audiochip.h +++ b/include/media/audiochip.h | |||
@@ -4,6 +4,23 @@ | |||
4 | #ifndef AUDIOCHIP_H | 4 | #ifndef AUDIOCHIP_H |
5 | #define AUDIOCHIP_H | 5 | #define AUDIOCHIP_H |
6 | 6 | ||
7 | enum audiochip { | ||
8 | AUDIO_CHIP_NONE, | ||
9 | AUDIO_CHIP_UNKNOWN, | ||
10 | /* Provided by video chip */ | ||
11 | AUDIO_CHIP_INTERNAL, | ||
12 | /* Provided by tvaudio.c */ | ||
13 | AUDIO_CHIP_TDA8425, | ||
14 | AUDIO_CHIP_TEA6300, | ||
15 | AUDIO_CHIP_TEA6420, | ||
16 | AUDIO_CHIP_TDA9840, | ||
17 | AUDIO_CHIP_TDA985X, | ||
18 | AUDIO_CHIP_TDA9874, | ||
19 | AUDIO_CHIP_PIC16C54, | ||
20 | /* Provided by msp3400.c */ | ||
21 | AUDIO_CHIP_MSP34XX | ||
22 | }; | ||
23 | |||
7 | /* ---------------------------------------------------------------------- */ | 24 | /* ---------------------------------------------------------------------- */ |
8 | 25 | ||
9 | /* v4l device was opened in Radio mode */ | 26 | /* v4l device was opened in Radio mode */ |
diff --git a/include/media/id.h b/include/media/id.h deleted file mode 100644 index 6d02c94cdc0d..000000000000 --- a/include/media/id.h +++ /dev/null | |||
@@ -1,35 +0,0 @@ | |||
1 | /* | ||
2 | */ | ||
3 | |||
4 | /* FIXME: this temporarely, until these are included in linux/i2c-id.h */ | ||
5 | |||
6 | /* drivers */ | ||
7 | #ifndef I2C_DRIVERID_TVMIXER | ||
8 | # define I2C_DRIVERID_TVMIXER I2C_DRIVERID_EXP0 | ||
9 | #endif | ||
10 | #ifndef I2C_DRIVERID_TVAUDIO | ||
11 | # define I2C_DRIVERID_TVAUDIO I2C_DRIVERID_EXP1 | ||
12 | #endif | ||
13 | |||
14 | /* chips */ | ||
15 | #ifndef I2C_DRIVERID_DPL3518 | ||
16 | # define I2C_DRIVERID_DPL3518 I2C_DRIVERID_EXP2 | ||
17 | #endif | ||
18 | #ifndef I2C_DRIVERID_TDA9873 | ||
19 | # define I2C_DRIVERID_TDA9873 I2C_DRIVERID_EXP3 | ||
20 | #endif | ||
21 | #ifndef I2C_DRIVERID_TDA9875 | ||
22 | # define I2C_DRIVERID_TDA9875 I2C_DRIVERID_EXP0+4 | ||
23 | #endif | ||
24 | #ifndef I2C_DRIVERID_PIC16C54_PV951 | ||
25 | # define I2C_DRIVERID_PIC16C54_PV951 I2C_DRIVERID_EXP0+5 | ||
26 | #endif | ||
27 | #ifndef I2C_DRIVERID_TDA7432 | ||
28 | # define I2C_DRIVERID_TDA7432 I2C_DRIVERID_EXP0+6 | ||
29 | #endif | ||
30 | #ifndef I2C_DRIVERID_TDA9874 | ||
31 | # define I2C_DRIVERID_TDA9874 I2C_DRIVERID_EXP0+7 | ||
32 | #endif | ||
33 | #ifndef I2C_DRIVERID_SAA6752HS | ||
34 | # define I2C_DRIVERID_SAA6752HS I2C_DRIVERID_EXP0+8 | ||
35 | #endif | ||
diff --git a/include/media/ir-common.h b/include/media/ir-common.h index 01b56822df4d..0f1ba95ec8d6 100644 --- a/include/media/ir-common.h +++ b/include/media/ir-common.h | |||
@@ -20,8 +20,10 @@ | |||
20 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 20 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 | */ | 21 | */ |
22 | 22 | ||
23 | #include <linux/input.h> | 23 | #ifndef _IR_COMMON |
24 | #define _IR_COMMON | ||
24 | 25 | ||
26 | #include <linux/input.h> | ||
25 | 27 | ||
26 | #define IR_TYPE_RC5 1 | 28 | #define IR_TYPE_RC5 1 |
27 | #define IR_TYPE_PD 2 /* Pulse distance encoded IR */ | 29 | #define IR_TYPE_PD 2 /* Pulse distance encoded IR */ |
@@ -61,6 +63,8 @@ int ir_dump_samples(u32 *samples, int count); | |||
61 | int ir_decode_biphase(u32 *samples, int count, int low, int high); | 63 | int ir_decode_biphase(u32 *samples, int count, int low, int high); |
62 | int ir_decode_pulsedistance(u32 *samples, int count, int low, int high); | 64 | int ir_decode_pulsedistance(u32 *samples, int count, int low, int high); |
63 | 65 | ||
66 | #endif | ||
67 | |||
64 | /* | 68 | /* |
65 | * Local variables: | 69 | * Local variables: |
66 | * c-basic-offset: 8 | 70 | * c-basic-offset: 8 |
diff --git a/include/media/ir-kbd-i2c.h b/include/media/ir-kbd-i2c.h new file mode 100644 index 000000000000..00fa57eb9fde --- /dev/null +++ b/include/media/ir-kbd-i2c.h | |||
@@ -0,0 +1,22 @@ | |||
1 | #ifndef _IR_I2C | ||
2 | #define _IR_I2C | ||
3 | |||
4 | #include <media/ir-common.h> | ||
5 | |||
6 | struct IR_i2c; | ||
7 | |||
8 | struct IR_i2c { | ||
9 | IR_KEYTAB_TYPE *ir_codes; | ||
10 | struct i2c_client c; | ||
11 | struct input_dev *input; | ||
12 | struct ir_input_state ir; | ||
13 | |||
14 | /* Used to avoid fast repeating */ | ||
15 | unsigned char old; | ||
16 | |||
17 | struct work_struct work; | ||
18 | struct timer_list timer; | ||
19 | char phys[32]; | ||
20 | int (*get_key)(struct IR_i2c*, u32*, u32*); | ||
21 | }; | ||
22 | #endif | ||
diff --git a/include/media/saa7146_vv.h b/include/media/saa7146_vv.h index f3aa24f8131c..64691753721e 100644 --- a/include/media/saa7146_vv.h +++ b/include/media/saa7146_vv.h | |||
@@ -1,7 +1,7 @@ | |||
1 | #ifndef __SAA7146_VV__ | 1 | #ifndef __SAA7146_VV__ |
2 | #define __SAA7146_VV__ | 2 | #define __SAA7146_VV__ |
3 | 3 | ||
4 | #include <linux/videodev2.h> | 4 | #include <linux/videodev.h> |
5 | 5 | ||
6 | #include <media/saa7146.h> | 6 | #include <media/saa7146.h> |
7 | #include <media/video-buf.h> | 7 | #include <media/video-buf.h> |
diff --git a/include/media/tuner.h b/include/media/tuner.h index 4ad08e24a1aa..9184e534b7ef 100644 --- a/include/media/tuner.h +++ b/include/media/tuner.h | |||
@@ -95,7 +95,7 @@ | |||
95 | #define TUNER_THOMSON_DTT7610 52 | 95 | #define TUNER_THOMSON_DTT7610 52 |
96 | #define TUNER_PHILIPS_FQ1286 53 | 96 | #define TUNER_PHILIPS_FQ1286 53 |
97 | #define TUNER_PHILIPS_TDA8290 54 | 97 | #define TUNER_PHILIPS_TDA8290 54 |
98 | #define TUNER_LG_PAL_TAPE 55 /* Hauppauge PVR-150 PAL */ | 98 | #define TUNER_TCL_2002MB 55 /* Hauppauge PVR-150 PAL */ |
99 | 99 | ||
100 | #define TUNER_PHILIPS_FQ1216AME_MK4 56 /* Hauppauge PVR-150 PAL */ | 100 | #define TUNER_PHILIPS_FQ1216AME_MK4 56 /* Hauppauge PVR-150 PAL */ |
101 | #define TUNER_PHILIPS_FQ1236A_MK4 57 /* Hauppauge PVR-500MCE NTSC */ | 101 | #define TUNER_PHILIPS_FQ1236A_MK4 57 /* Hauppauge PVR-500MCE NTSC */ |
@@ -110,6 +110,9 @@ | |||
110 | #define TUNER_LG_TDVS_H062F 64 /* DViCO FusionHDTV 5 */ | 110 | #define TUNER_LG_TDVS_H062F 64 /* DViCO FusionHDTV 5 */ |
111 | #define TUNER_YMEC_TVF66T5_B_DFF 65 /* Acorp Y878F */ | 111 | #define TUNER_YMEC_TVF66T5_B_DFF 65 /* Acorp Y878F */ |
112 | #define TUNER_LG_NTSC_TALN_MINI 66 | 112 | #define TUNER_LG_NTSC_TALN_MINI 66 |
113 | #define TUNER_PHILIPS_TD1316 67 | ||
114 | |||
115 | #define TUNER_PHILIPS_TUV1236D 68 /* ATI HDTV Wonder */ | ||
113 | 116 | ||
114 | #define NOTUNER 0 | 117 | #define NOTUNER 0 |
115 | #define PAL 1 /* PAL_BG */ | 118 | #define PAL 1 /* PAL_BG */ |
@@ -145,6 +148,7 @@ | |||
145 | # define TDA9887_INTERCARRIER (1<<4) | 148 | # define TDA9887_INTERCARRIER (1<<4) |
146 | # define TDA9887_PORT1_ACTIVE (1<<5) | 149 | # define TDA9887_PORT1_ACTIVE (1<<5) |
147 | # define TDA9887_PORT2_ACTIVE (1<<6) | 150 | # define TDA9887_PORT2_ACTIVE (1<<6) |
151 | # define TDA9887_INTERCARRIER_NTSC (1<<7) | ||
148 | /* config options */ | 152 | /* config options */ |
149 | # define TDA9887_DEEMPHASIS_MASK (3<<16) | 153 | # define TDA9887_DEEMPHASIS_MASK (3<<16) |
150 | # define TDA9887_DEEMPHASIS_NONE (1<<16) | 154 | # define TDA9887_DEEMPHASIS_NONE (1<<16) |
@@ -188,8 +192,11 @@ struct tuner { | |||
188 | unsigned int radio_if2; | 192 | unsigned int radio_if2; |
189 | 193 | ||
190 | /* used by tda8290 */ | 194 | /* used by tda8290 */ |
191 | unsigned char i2c_easy_mode[2]; | 195 | unsigned char tda8290_easy_mode; |
192 | unsigned char i2c_set_freq[8]; | 196 | unsigned char tda827x_lpsel; |
197 | unsigned char tda827x_addr; | ||
198 | unsigned char tda827x_ver; | ||
199 | unsigned int sgIF; | ||
193 | 200 | ||
194 | /* function ptrs */ | 201 | /* function ptrs */ |
195 | void (*tv_freq)(struct i2c_client *c, unsigned int freq); | 202 | void (*tv_freq)(struct i2c_client *c, unsigned int freq); |
@@ -204,20 +211,21 @@ extern unsigned const int tuner_count; | |||
204 | 211 | ||
205 | extern int microtune_init(struct i2c_client *c); | 212 | extern int microtune_init(struct i2c_client *c); |
206 | extern int tda8290_init(struct i2c_client *c); | 213 | extern int tda8290_init(struct i2c_client *c); |
214 | extern int tda8290_probe(struct i2c_client *c); | ||
207 | extern int tea5767_tuner_init(struct i2c_client *c); | 215 | extern int tea5767_tuner_init(struct i2c_client *c); |
208 | extern int default_tuner_init(struct i2c_client *c); | 216 | extern int default_tuner_init(struct i2c_client *c); |
209 | extern int tea5767_autodetection(struct i2c_client *c); | 217 | extern int tea5767_autodetection(struct i2c_client *c); |
210 | 218 | ||
211 | #define tuner_warn(fmt, arg...) do {\ | 219 | #define tuner_warn(fmt, arg...) do {\ |
212 | printk(KERN_WARNING "%s %d-%04x: " fmt, t->i2c.driver->name, \ | 220 | printk(KERN_WARNING "%s %d-%04x: " fmt, t->i2c.driver->name, \ |
213 | t->i2c.adapter->nr, t->i2c.addr , ##arg); } while (0) | 221 | t->i2c.adapter->nr, t->i2c.addr , ##arg); } while (0) |
214 | #define tuner_info(fmt, arg...) do {\ | 222 | #define tuner_info(fmt, arg...) do {\ |
215 | printk(KERN_INFO "%s %d-%04x: " fmt, t->i2c.driver->name, \ | 223 | printk(KERN_INFO "%s %d-%04x: " fmt, t->i2c.driver->name, \ |
216 | t->i2c.adapter->nr, t->i2c.addr , ##arg); } while (0) | 224 | t->i2c.adapter->nr, t->i2c.addr , ##arg); } while (0) |
217 | #define tuner_dbg(fmt, arg...) do {\ | 225 | #define tuner_dbg(fmt, arg...) do {\ |
218 | if (tuner_debug) \ | 226 | if (tuner_debug) \ |
219 | printk(KERN_DEBUG "%s %d-%04x: " fmt, t->i2c.driver->name, \ | 227 | printk(KERN_DEBUG "%s %d-%04x: " fmt, t->i2c.driver->name, \ |
220 | t->i2c.adapter->nr, t->i2c.addr , ##arg); } while (0) | 228 | t->i2c.adapter->nr, t->i2c.addr , ##arg); } while (0) |
221 | 229 | ||
222 | #endif /* __KERNEL__ */ | 230 | #endif /* __KERNEL__ */ |
223 | 231 | ||
diff --git a/include/media/video-buf.h b/include/media/video-buf.h index ae8d7a000440..8ecfd78e0027 100644 --- a/include/media/video-buf.h +++ b/include/media/video-buf.h | |||
@@ -17,7 +17,7 @@ | |||
17 | * (at your option) any later version. | 17 | * (at your option) any later version. |
18 | */ | 18 | */ |
19 | 19 | ||
20 | #include <linux/videodev.h> | 20 | #include <linux/videodev2.h> |
21 | 21 | ||
22 | #define UNSET (-1U) | 22 | #define UNSET (-1U) |
23 | 23 | ||
@@ -177,7 +177,7 @@ struct videobuf_queue_ops { | |||
177 | }; | 177 | }; |
178 | 178 | ||
179 | struct videobuf_queue { | 179 | struct videobuf_queue { |
180 | struct semaphore lock; | 180 | struct semaphore lock; |
181 | spinlock_t *irqlock; | 181 | spinlock_t *irqlock; |
182 | struct pci_dev *pci; | 182 | struct pci_dev *pci; |
183 | 183 | ||