diff options
author | Jeff Garzik <jgarzik@pobox.com> | 2005-08-10 13:46:28 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-08-10 13:46:28 -0400 |
commit | 2f058256cb64e346f4fb4499ff4e0f1c2791a4b4 (patch) | |
tree | 91e06602f4d3abb6812ea8c9bc9ba4501e14c84e /include/media | |
parent | 0274aa2506fd2fe89a58dd6cd64d3b3f7b976af8 (diff) | |
parent | 86b3786078d63242d3194ffc58ae8dae1d1bbef3 (diff) |
Merge /spare/repo/linux-2.6/
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/audiochip.h | 5 | ||||
-rw-r--r-- | include/media/id.h | 4 | ||||
-rw-r--r-- | include/media/ir-common.h | 3 | ||||
-rw-r--r-- | include/media/saa6752hs.h | 49 | ||||
-rw-r--r-- | include/media/tuner.h | 54 | ||||
-rw-r--r-- | include/media/tveeprom.h | 5 |
6 files changed, 56 insertions, 64 deletions
diff --git a/include/media/audiochip.h b/include/media/audiochip.h index d3e9e30608dc..cd831168fdc1 100644 --- a/include/media/audiochip.h +++ b/include/media/audiochip.h | |||
@@ -1,3 +1,7 @@ | |||
1 | /* | ||
2 | * $Id: audiochip.h,v 1.5 2005/06/16 22:59:16 hhackmann Exp $ | ||
3 | */ | ||
4 | |||
1 | #ifndef AUDIOCHIP_H | 5 | #ifndef AUDIOCHIP_H |
2 | #define AUDIOCHIP_H | 6 | #define AUDIOCHIP_H |
3 | 7 | ||
@@ -31,5 +35,4 @@ | |||
31 | 35 | ||
32 | /* misc stuff to pass around config info to i2c chips */ | 36 | /* misc stuff to pass around config info to i2c chips */ |
33 | #define AUDC_CONFIG_PINNACLE _IOW('m',32,int) | 37 | #define AUDC_CONFIG_PINNACLE _IOW('m',32,int) |
34 | |||
35 | #endif /* AUDIOCHIP_H */ | 38 | #endif /* AUDIOCHIP_H */ |
diff --git a/include/media/id.h b/include/media/id.h index 1b0320dc8f73..a39a6423914b 100644 --- a/include/media/id.h +++ b/include/media/id.h | |||
@@ -1,3 +1,7 @@ | |||
1 | /* | ||
2 | * $Id: id.h,v 1.4 2005/06/12 04:19:19 mchehab Exp $ | ||
3 | */ | ||
4 | |||
1 | /* FIXME: this temporarely, until these are included in linux/i2c-id.h */ | 5 | /* FIXME: this temporarely, until these are included in linux/i2c-id.h */ |
2 | 6 | ||
3 | /* drivers */ | 7 | /* drivers */ |
diff --git a/include/media/ir-common.h b/include/media/ir-common.h index 62c963a52d86..698670547f16 100644 --- a/include/media/ir-common.h +++ b/include/media/ir-common.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * $Id: ir-common.h,v 1.8 2005/02/22 12:28:40 kraxel Exp $ | 2 | * $Id: ir-common.h,v 1.9 2005/05/15 19:01:26 mchehab Exp $ |
3 | * | 3 | * |
4 | * some common structs and functions to handle infrared remotes via | 4 | * some common structs and functions to handle infrared remotes via |
5 | * input layer ... | 5 | * input layer ... |
@@ -50,6 +50,7 @@ extern IR_KEYTAB_TYPE ir_codes_rc5_tv[IR_KEYTAB_SIZE]; | |||
50 | extern IR_KEYTAB_TYPE ir_codes_winfast[IR_KEYTAB_SIZE]; | 50 | extern IR_KEYTAB_TYPE ir_codes_winfast[IR_KEYTAB_SIZE]; |
51 | extern IR_KEYTAB_TYPE ir_codes_empty[IR_KEYTAB_SIZE]; | 51 | extern IR_KEYTAB_TYPE ir_codes_empty[IR_KEYTAB_SIZE]; |
52 | extern IR_KEYTAB_TYPE ir_codes_hauppauge_new[IR_KEYTAB_SIZE]; | 52 | extern IR_KEYTAB_TYPE ir_codes_hauppauge_new[IR_KEYTAB_SIZE]; |
53 | extern IR_KEYTAB_TYPE ir_codes_pixelview[IR_KEYTAB_SIZE]; | ||
53 | 54 | ||
54 | void ir_input_init(struct input_dev *dev, struct ir_input_state *ir, | 55 | void ir_input_init(struct input_dev *dev, struct ir_input_state *ir, |
55 | int ir_type, IR_KEYTAB_TYPE *ir_codes); | 56 | int ir_type, IR_KEYTAB_TYPE *ir_codes); |
diff --git a/include/media/saa6752hs.h b/include/media/saa6752hs.h index 791bad2b86e9..3b8686ead80d 100644 --- a/include/media/saa6752hs.h +++ b/include/media/saa6752hs.h | |||
@@ -18,55 +18,6 @@ | |||
18 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | 18 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
19 | */ | 19 | */ |
20 | 20 | ||
21 | #if 0 /* ndef _SAA6752HS_H */ | ||
22 | #define _SAA6752HS_H | ||
23 | |||
24 | enum mpeg_video_bitrate_mode { | ||
25 | MPEG_VIDEO_BITRATE_MODE_VBR = 0, /* Variable bitrate */ | ||
26 | MPEG_VIDEO_BITRATE_MODE_CBR = 1, /* Constant bitrate */ | ||
27 | |||
28 | MPEG_VIDEO_BITRATE_MODE_MAX | ||
29 | }; | ||
30 | |||
31 | enum mpeg_audio_bitrate { | ||
32 | MPEG_AUDIO_BITRATE_256 = 0, /* 256 kBit/sec */ | ||
33 | MPEG_AUDIO_BITRATE_384 = 1, /* 384 kBit/sec */ | ||
34 | |||
35 | MPEG_AUDIO_BITRATE_MAX | ||
36 | }; | ||
37 | |||
38 | enum mpeg_video_format { | ||
39 | MPEG_VIDEO_FORMAT_D1 = 0, | ||
40 | MPEG_VIDEO_FORMAT_2_3_D1 = 1, | ||
41 | MPEG_VIDEO_FORMAT_1_2_D1 = 2, | ||
42 | MPEG_VIDEO_FORMAT_SIF = 3, | ||
43 | |||
44 | MPEG_VIDEO_FORMAT_MAX | ||
45 | }; | ||
46 | |||
47 | #define MPEG_VIDEO_TARGET_BITRATE_MAX 27000 | ||
48 | #define MPEG_VIDEO_MAX_BITRATE_MAX 27000 | ||
49 | #define MPEG_TOTAL_BITRATE_MAX 27000 | ||
50 | #define MPEG_PID_MAX ((1 << 14) - 1) | ||
51 | |||
52 | struct mpeg_params { | ||
53 | enum mpeg_video_bitrate_mode video_bitrate_mode; | ||
54 | unsigned int video_target_bitrate; | ||
55 | unsigned int video_max_bitrate; // only used for VBR | ||
56 | enum mpeg_audio_bitrate audio_bitrate; | ||
57 | unsigned int total_bitrate; | ||
58 | |||
59 | unsigned int pmt_pid; | ||
60 | unsigned int video_pid; | ||
61 | unsigned int audio_pid; | ||
62 | unsigned int pcr_pid; | ||
63 | |||
64 | enum mpeg_video_format video_format; | ||
65 | }; | ||
66 | |||
67 | #define MPEG_SETPARAMS _IOW('6',100,struct mpeg_params) | ||
68 | |||
69 | #endif // _SAA6752HS_H | ||
70 | 21 | ||
71 | /* | 22 | /* |
72 | * Local variables: | 23 | * Local variables: |
diff --git a/include/media/tuner.h b/include/media/tuner.h index 156a9c51ffec..eeaa15ddee85 100644 --- a/include/media/tuner.h +++ b/include/media/tuner.h | |||
@@ -1,5 +1,6 @@ | |||
1 | 1 | ||
2 | /* | 2 | /* $Id: tuner.h,v 1.45 2005/07/28 18:41:21 mchehab Exp $ |
3 | * | ||
3 | tuner.h - definition for different tuners | 4 | tuner.h - definition for different tuners |
4 | 5 | ||
5 | Copyright (C) 1997 Markus Schroeder (schroedm@uni-duesseldorf.de) | 6 | Copyright (C) 1997 Markus Schroeder (schroedm@uni-duesseldorf.de) |
@@ -23,7 +24,9 @@ | |||
23 | #ifndef _TUNER_H | 24 | #ifndef _TUNER_H |
24 | #define _TUNER_H | 25 | #define _TUNER_H |
25 | 26 | ||
26 | #include "id.h" | 27 | #include <linux/videodev2.h> |
28 | |||
29 | #define ADDR_UNSET (255) | ||
27 | 30 | ||
28 | #define TUNER_TEMIC_PAL 0 /* 4002 FH5 (3X 7756, 9483) */ | 31 | #define TUNER_TEMIC_PAL 0 /* 4002 FH5 (3X 7756, 9483) */ |
29 | #define TUNER_PHILIPS_PAL_I 1 | 32 | #define TUNER_PHILIPS_PAL_I 1 |
@@ -86,7 +89,7 @@ | |||
86 | #define TUNER_LG_NTSC_TAPE 47 | 89 | #define TUNER_LG_NTSC_TAPE 47 |
87 | 90 | ||
88 | #define TUNER_TNF_8831BGFF 48 | 91 | #define TUNER_TNF_8831BGFF 48 |
89 | #define TUNER_MICROTUNE_4042FI5 49 /* FusionHDTV 3 Gold - 4042 FI5 (3X 8147) */ | 92 | #define TUNER_MICROTUNE_4042FI5 49 /* DViCO FusionHDTV 3 Gold-Q - 4042 FI5 (3X 8147) */ |
90 | #define TUNER_TCL_2002N 50 | 93 | #define TUNER_TCL_2002N 50 |
91 | #define TUNER_PHILIPS_FM1256_IH3 51 | 94 | #define TUNER_PHILIPS_FM1256_IH3 51 |
92 | 95 | ||
@@ -96,7 +99,17 @@ | |||
96 | #define TUNER_LG_PAL_TAPE 55 /* Hauppauge PVR-150 PAL */ | 99 | #define TUNER_LG_PAL_TAPE 55 /* Hauppauge PVR-150 PAL */ |
97 | 100 | ||
98 | #define TUNER_PHILIPS_FQ1216AME_MK4 56 /* Hauppauge PVR-150 PAL */ | 101 | #define TUNER_PHILIPS_FQ1216AME_MK4 56 /* Hauppauge PVR-150 PAL */ |
99 | #define TUNER_PHILIPS_FQ1236A_MK4 57 /* Hauppauge PVR-500MCE NTSC */ | 102 | #define TUNER_PHILIPS_FQ1236A_MK4 57 /* Hauppauge PVR-500MCE NTSC */ |
103 | |||
104 | #define TUNER_YMEC_TVF_8531MF 58 | ||
105 | #define TUNER_YMEC_TVF_5533MF 59 /* Pixelview Pro Ultra NTSC */ | ||
106 | #define TUNER_THOMSON_DTT7611 60 /* DViCO FusionHDTV 3 Gold-T */ | ||
107 | #define TUNER_TENA_9533_DI 61 | ||
108 | |||
109 | #define TUNER_TEA5767 62 /* Only FM Radio Tuner */ | ||
110 | #define TUNER_PHILIPS_FMD1216ME_MK3 63 | ||
111 | #define TUNER_LG_TDVS_H062F 64 /* DViCO FusionHDTV 5 */ | ||
112 | #define TUNER_YMEC_TVF66T5_B_DFF 65 /* Acorp Y878F */ | ||
100 | 113 | ||
101 | #define NOTUNER 0 | 114 | #define NOTUNER 0 |
102 | #define PAL 1 /* PAL_BG */ | 115 | #define PAL 1 /* PAL_BG */ |
@@ -104,6 +117,7 @@ | |||
104 | #define NTSC 3 | 117 | #define NTSC 3 |
105 | #define SECAM 4 | 118 | #define SECAM 4 |
106 | #define ATSC 5 | 119 | #define ATSC 5 |
120 | #define RADIO 6 | ||
107 | 121 | ||
108 | #define NoTuner 0 | 122 | #define NoTuner 0 |
109 | #define Philips 1 | 123 | #define Philips 1 |
@@ -119,10 +133,9 @@ | |||
119 | #define TCL 11 | 133 | #define TCL 11 |
120 | #define THOMSON 12 | 134 | #define THOMSON 12 |
121 | 135 | ||
122 | #define TUNER_SET_TYPE _IOW('t',1,int) /* set tuner type */ | 136 | #define TUNER_SET_TYPE_ADDR _IOW('T',3,int) |
123 | #define TUNER_SET_TVFREQ _IOW('t',2,int) /* set tv freq */ | 137 | #define TDA9887_SET_CONFIG _IOW('t',5,int) |
124 | 138 | ||
125 | #define TDA9887_SET_CONFIG _IOW('t',5,int) | ||
126 | /* tv card specific */ | 139 | /* tv card specific */ |
127 | # define TDA9887_PRESENT (1<<0) | 140 | # define TDA9887_PRESENT (1<<0) |
128 | # define TDA9887_PORT1_INACTIVE (1<<1) | 141 | # define TDA9887_PORT1_INACTIVE (1<<1) |
@@ -143,19 +156,34 @@ | |||
143 | #define I2C_ADDR_TDA8290 0x4b | 156 | #define I2C_ADDR_TDA8290 0x4b |
144 | #define I2C_ADDR_TDA8275 0x61 | 157 | #define I2C_ADDR_TDA8275 0x61 |
145 | 158 | ||
159 | enum tuner_mode { | ||
160 | T_UNINITIALIZED = 0, | ||
161 | T_RADIO = 1 << V4L2_TUNER_RADIO, | ||
162 | T_ANALOG_TV = 1 << V4L2_TUNER_ANALOG_TV, | ||
163 | T_DIGITAL_TV = 1 << V4L2_TUNER_DIGITAL_TV, | ||
164 | T_STANDBY = 1 << 31 | ||
165 | }; | ||
166 | |||
167 | struct tuner_setup { | ||
168 | unsigned short addr; | ||
169 | unsigned int type; | ||
170 | unsigned int mode_mask; | ||
171 | }; | ||
172 | |||
146 | struct tuner { | 173 | struct tuner { |
147 | /* device */ | 174 | /* device */ |
148 | struct i2c_client i2c; | 175 | struct i2c_client i2c; |
149 | 176 | ||
150 | /* state + config */ | ||
151 | unsigned int initialized; | ||
152 | unsigned int type; /* chip type */ | 177 | unsigned int type; /* chip type */ |
178 | |||
179 | unsigned int mode; | ||
180 | unsigned int mode_mask; /* Combination of allowable modes */ | ||
181 | |||
153 | unsigned int freq; /* keep track of the current settings */ | 182 | unsigned int freq; /* keep track of the current settings */ |
183 | unsigned int audmode; | ||
154 | v4l2_std_id std; | 184 | v4l2_std_id std; |
155 | int using_v4l2; | ||
156 | 185 | ||
157 | enum v4l2_tuner_type mode; | 186 | int using_v4l2; |
158 | unsigned int input; | ||
159 | 187 | ||
160 | /* used by MT2032 */ | 188 | /* used by MT2032 */ |
161 | unsigned int xogc; | 189 | unsigned int xogc; |
@@ -177,7 +205,9 @@ extern unsigned const int tuner_count; | |||
177 | 205 | ||
178 | extern int microtune_init(struct i2c_client *c); | 206 | extern int microtune_init(struct i2c_client *c); |
179 | extern int tda8290_init(struct i2c_client *c); | 207 | extern int tda8290_init(struct i2c_client *c); |
208 | extern int tea5767_tuner_init(struct i2c_client *c); | ||
180 | extern int default_tuner_init(struct i2c_client *c); | 209 | extern int default_tuner_init(struct i2c_client *c); |
210 | extern int tea5767_autodetection(struct i2c_client *c); | ||
181 | 211 | ||
182 | #define tuner_warn(fmt, arg...) \ | 212 | #define tuner_warn(fmt, arg...) \ |
183 | dev_printk(KERN_WARNING , &t->i2c.dev , fmt , ## arg) | 213 | dev_printk(KERN_WARNING , &t->i2c.dev , fmt , ## arg) |
diff --git a/include/media/tveeprom.h b/include/media/tveeprom.h index 627603e561a6..854a2c2f105b 100644 --- a/include/media/tveeprom.h +++ b/include/media/tveeprom.h | |||
@@ -1,3 +1,7 @@ | |||
1 | /* | ||
2 | * $Id: tveeprom.h,v 1.2 2005/06/12 04:19:19 mchehab Exp $ | ||
3 | */ | ||
4 | |||
1 | struct tveeprom { | 5 | struct tveeprom { |
2 | u32 has_radio; | 6 | u32 has_radio; |
3 | 7 | ||
@@ -20,4 +24,3 @@ void tveeprom_hauppauge_analog(struct tveeprom *tvee, | |||
20 | unsigned char *eeprom_data); | 24 | unsigned char *eeprom_data); |
21 | 25 | ||
22 | int tveeprom_read(struct i2c_client *c, unsigned char *eedata, int len); | 26 | int tveeprom_read(struct i2c_client *c, unsigned char *eedata, int len); |
23 | int tveeprom_dump(unsigned char *eedata, int len); | ||