diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/dvb/frontend.h | 110 | ||||
-rw-r--r-- | include/linux/dvb/version.h | 4 | ||||
-rw-r--r-- | include/linux/i2c-id.h | 1 | ||||
-rw-r--r-- | include/linux/ivtv.h | 1 | ||||
-rw-r--r-- | include/linux/videodev2.h | 30 |
5 files changed, 139 insertions, 7 deletions
diff --git a/include/linux/dvb/frontend.h b/include/linux/dvb/frontend.h index c8cbd90ba375..6e4ace270276 100644 --- a/include/linux/dvb/frontend.h +++ b/include/linux/dvb/frontend.h | |||
@@ -62,6 +62,7 @@ typedef enum fe_caps { | |||
62 | FE_CAN_HIERARCHY_AUTO = 0x100000, | 62 | FE_CAN_HIERARCHY_AUTO = 0x100000, |
63 | FE_CAN_8VSB = 0x200000, | 63 | FE_CAN_8VSB = 0x200000, |
64 | FE_CAN_16VSB = 0x400000, | 64 | FE_CAN_16VSB = 0x400000, |
65 | FE_HAS_EXTENDED_CAPS = 0x800000, // We need more bitspace for newer APIs, indicate this. | ||
65 | FE_NEEDS_BENDING = 0x20000000, // not supported anymore, don't use (frontend requires frequency bending) | 66 | FE_NEEDS_BENDING = 0x20000000, // not supported anymore, don't use (frontend requires frequency bending) |
66 | FE_CAN_RECOVER = 0x40000000, // frontend can recover from a cable unplug automatically | 67 | FE_CAN_RECOVER = 0x40000000, // frontend can recover from a cable unplug automatically |
67 | FE_CAN_MUTE_TS = 0x80000000 // frontend can stop spurious TS data output | 68 | FE_CAN_MUTE_TS = 0x80000000 // frontend can stop spurious TS data output |
@@ -147,7 +148,9 @@ typedef enum fe_code_rate { | |||
147 | FEC_6_7, | 148 | FEC_6_7, |
148 | FEC_7_8, | 149 | FEC_7_8, |
149 | FEC_8_9, | 150 | FEC_8_9, |
150 | FEC_AUTO | 151 | FEC_AUTO, |
152 | FEC_3_5, | ||
153 | FEC_9_10, | ||
151 | } fe_code_rate_t; | 154 | } fe_code_rate_t; |
152 | 155 | ||
153 | 156 | ||
@@ -160,7 +163,10 @@ typedef enum fe_modulation { | |||
160 | QAM_256, | 163 | QAM_256, |
161 | QAM_AUTO, | 164 | QAM_AUTO, |
162 | VSB_8, | 165 | VSB_8, |
163 | VSB_16 | 166 | VSB_16, |
167 | PSK_8, | ||
168 | APSK_16, | ||
169 | DQPSK, | ||
164 | } fe_modulation_t; | 170 | } fe_modulation_t; |
165 | 171 | ||
166 | typedef enum fe_transmit_mode { | 172 | typedef enum fe_transmit_mode { |
@@ -239,6 +245,106 @@ struct dvb_frontend_event { | |||
239 | struct dvb_frontend_parameters parameters; | 245 | struct dvb_frontend_parameters parameters; |
240 | }; | 246 | }; |
241 | 247 | ||
248 | /* S2API Commands */ | ||
249 | #define DTV_UNDEFINED 0 | ||
250 | #define DTV_TUNE 1 | ||
251 | #define DTV_CLEAR 2 | ||
252 | #define DTV_FREQUENCY 3 | ||
253 | #define DTV_MODULATION 4 | ||
254 | #define DTV_BANDWIDTH_HZ 5 | ||
255 | #define DTV_INVERSION 6 | ||
256 | #define DTV_DISEQC_MASTER 7 | ||
257 | #define DTV_SYMBOL_RATE 8 | ||
258 | #define DTV_INNER_FEC 9 | ||
259 | #define DTV_VOLTAGE 10 | ||
260 | #define DTV_TONE 11 | ||
261 | #define DTV_PILOT 12 | ||
262 | #define DTV_ROLLOFF 13 | ||
263 | #define DTV_DISEQC_SLAVE_REPLY 14 | ||
264 | |||
265 | /* Basic enumeration set for querying unlimited capabilities */ | ||
266 | #define DTV_FE_CAPABILITY_COUNT 15 | ||
267 | #define DTV_FE_CAPABILITY 16 | ||
268 | #define DTV_DELIVERY_SYSTEM 17 | ||
269 | |||
270 | #define DTV_API_VERSION 35 | ||
271 | #define DTV_API_VERSION 35 | ||
272 | #define DTV_CODE_RATE_HP 36 | ||
273 | #define DTV_CODE_RATE_LP 37 | ||
274 | #define DTV_GUARD_INTERVAL 38 | ||
275 | #define DTV_TRANSMISSION_MODE 39 | ||
276 | #define DTV_HIERARCHY 40 | ||
277 | |||
278 | #define DTV_MAX_COMMAND DTV_HIERARCHY | ||
279 | |||
280 | typedef enum fe_pilot { | ||
281 | PILOT_ON, | ||
282 | PILOT_OFF, | ||
283 | PILOT_AUTO, | ||
284 | } fe_pilot_t; | ||
285 | |||
286 | typedef enum fe_rolloff { | ||
287 | ROLLOFF_35, /* Implied value in DVB-S, default for DVB-S2 */ | ||
288 | ROLLOFF_20, | ||
289 | ROLLOFF_25, | ||
290 | ROLLOFF_AUTO, | ||
291 | } fe_rolloff_t; | ||
292 | |||
293 | typedef enum fe_delivery_system { | ||
294 | SYS_UNDEFINED, | ||
295 | SYS_DVBC_ANNEX_AC, | ||
296 | SYS_DVBC_ANNEX_B, | ||
297 | SYS_DVBT, | ||
298 | SYS_DVBS, | ||
299 | SYS_DVBS2, | ||
300 | SYS_DVBH, | ||
301 | SYS_ISDBT, | ||
302 | SYS_ISDBS, | ||
303 | SYS_ISDBC, | ||
304 | SYS_ATSC, | ||
305 | SYS_ATSCMH, | ||
306 | SYS_DMBTH, | ||
307 | SYS_CMMB, | ||
308 | SYS_DAB, | ||
309 | } fe_delivery_system_t; | ||
310 | |||
311 | struct dtv_cmds_h { | ||
312 | char *name; /* A display name for debugging purposes */ | ||
313 | |||
314 | __u32 cmd; /* A unique ID */ | ||
315 | |||
316 | /* Flags */ | ||
317 | __u32 set:1; /* Either a set or get property */ | ||
318 | __u32 buffer:1; /* Does this property use the buffer? */ | ||
319 | __u32 reserved:30; /* Align */ | ||
320 | }; | ||
321 | |||
322 | struct dtv_property { | ||
323 | __u32 cmd; | ||
324 | __u32 reserved[3]; | ||
325 | union { | ||
326 | __u32 data; | ||
327 | struct { | ||
328 | __u8 data[32]; | ||
329 | __u32 len; | ||
330 | __u32 reserved1[3]; | ||
331 | void *reserved2; | ||
332 | } buffer; | ||
333 | } u; | ||
334 | int result; | ||
335 | } __attribute__ ((packed)); | ||
336 | |||
337 | /* num of properties cannot exceed DTV_IOCTL_MAX_MSGS per ioctl */ | ||
338 | #define DTV_IOCTL_MAX_MSGS 64 | ||
339 | |||
340 | struct dtv_properties { | ||
341 | __u32 num; | ||
342 | struct dtv_property *props; | ||
343 | }; | ||
344 | |||
345 | #define FE_SET_PROPERTY _IOW('o', 82, struct dtv_properties) | ||
346 | #define FE_GET_PROPERTY _IOR('o', 83, struct dtv_properties) | ||
347 | |||
242 | 348 | ||
243 | /** | 349 | /** |
244 | * When set, this flag will disable any zigzagging or other "normal" tuning | 350 | * When set, this flag will disable any zigzagging or other "normal" tuning |
diff --git a/include/linux/dvb/version.h b/include/linux/dvb/version.h index 126e0c26cb09..25b823b81734 100644 --- a/include/linux/dvb/version.h +++ b/include/linux/dvb/version.h | |||
@@ -23,7 +23,7 @@ | |||
23 | #ifndef _DVBVERSION_H_ | 23 | #ifndef _DVBVERSION_H_ |
24 | #define _DVBVERSION_H_ | 24 | #define _DVBVERSION_H_ |
25 | 25 | ||
26 | #define DVB_API_VERSION 3 | 26 | #define DVB_API_VERSION 5 |
27 | #define DVB_API_VERSION_MINOR 2 | 27 | #define DVB_API_VERSION_MINOR 0 |
28 | 28 | ||
29 | #endif /*_DVBVERSION_H_*/ | 29 | #endif /*_DVBVERSION_H_*/ |
diff --git a/include/linux/i2c-id.h b/include/linux/i2c-id.h index bf34c5f4c051..493435bcdbe5 100644 --- a/include/linux/i2c-id.h +++ b/include/linux/i2c-id.h | |||
@@ -41,7 +41,6 @@ | |||
41 | #define I2C_DRIVERID_SAA7110 22 /* video decoder */ | 41 | #define I2C_DRIVERID_SAA7110 22 /* video decoder */ |
42 | #define I2C_DRIVERID_SAA5249 24 /* SAA5249 and compatibles */ | 42 | #define I2C_DRIVERID_SAA5249 24 /* SAA5249 and compatibles */ |
43 | #define I2C_DRIVERID_PCF8583 25 /* real time clock */ | 43 | #define I2C_DRIVERID_PCF8583 25 /* real time clock */ |
44 | #define I2C_DRIVERID_SAB3036 26 /* SAB3036 tuner */ | ||
45 | #define I2C_DRIVERID_TDA7432 27 /* Stereo sound processor */ | 44 | #define I2C_DRIVERID_TDA7432 27 /* Stereo sound processor */ |
46 | #define I2C_DRIVERID_TVMIXER 28 /* Mixer driver for tv cards */ | 45 | #define I2C_DRIVERID_TVMIXER 28 /* Mixer driver for tv cards */ |
47 | #define I2C_DRIVERID_TVAUDIO 29 /* Generic TV sound driver */ | 46 | #define I2C_DRIVERID_TVAUDIO 29 /* Generic TV sound driver */ |
diff --git a/include/linux/ivtv.h b/include/linux/ivtv.h index 17ca64b5a66c..f2720280b9ec 100644 --- a/include/linux/ivtv.h +++ b/include/linux/ivtv.h | |||
@@ -23,6 +23,7 @@ | |||
23 | 23 | ||
24 | #include <linux/compiler.h> | 24 | #include <linux/compiler.h> |
25 | #include <linux/types.h> | 25 | #include <linux/types.h> |
26 | #include <linux/videodev2.h> | ||
26 | 27 | ||
27 | /* ivtv knows several distinct output modes: MPEG streaming, | 28 | /* ivtv knows several distinct output modes: MPEG streaming, |
28 | YUV streaming, YUV updates through user DMA and the passthrough | 29 | YUV streaming, YUV updates through user DMA and the passthrough |
diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h index 303d93ffd6b2..d4b03034ee73 100644 --- a/include/linux/videodev2.h +++ b/include/linux/videodev2.h | |||
@@ -910,6 +910,8 @@ enum v4l2_mpeg_audio_encoding { | |||
910 | V4L2_MPEG_AUDIO_ENCODING_LAYER_1 = 0, | 910 | V4L2_MPEG_AUDIO_ENCODING_LAYER_1 = 0, |
911 | V4L2_MPEG_AUDIO_ENCODING_LAYER_2 = 1, | 911 | V4L2_MPEG_AUDIO_ENCODING_LAYER_2 = 1, |
912 | V4L2_MPEG_AUDIO_ENCODING_LAYER_3 = 2, | 912 | V4L2_MPEG_AUDIO_ENCODING_LAYER_3 = 2, |
913 | V4L2_MPEG_AUDIO_ENCODING_AAC = 3, | ||
914 | V4L2_MPEG_AUDIO_ENCODING_AC3 = 4, | ||
913 | }; | 915 | }; |
914 | #define V4L2_CID_MPEG_AUDIO_L1_BITRATE (V4L2_CID_MPEG_BASE+102) | 916 | #define V4L2_CID_MPEG_AUDIO_L1_BITRATE (V4L2_CID_MPEG_BASE+102) |
915 | enum v4l2_mpeg_audio_l1_bitrate { | 917 | enum v4l2_mpeg_audio_l1_bitrate { |
@@ -988,12 +990,36 @@ enum v4l2_mpeg_audio_crc { | |||
988 | V4L2_MPEG_AUDIO_CRC_CRC16 = 1, | 990 | V4L2_MPEG_AUDIO_CRC_CRC16 = 1, |
989 | }; | 991 | }; |
990 | #define V4L2_CID_MPEG_AUDIO_MUTE (V4L2_CID_MPEG_BASE+109) | 992 | #define V4L2_CID_MPEG_AUDIO_MUTE (V4L2_CID_MPEG_BASE+109) |
993 | #define V4L2_CID_MPEG_AUDIO_AAC_BITRATE (V4L2_CID_MPEG_BASE+110) | ||
994 | #define V4L2_CID_MPEG_AUDIO_AC3_BITRATE (V4L2_CID_MPEG_BASE+111) | ||
995 | enum v4l2_mpeg_audio_ac3_bitrate { | ||
996 | V4L2_MPEG_AUDIO_AC3_BITRATE_32K = 0, | ||
997 | V4L2_MPEG_AUDIO_AC3_BITRATE_40K = 1, | ||
998 | V4L2_MPEG_AUDIO_AC3_BITRATE_48K = 2, | ||
999 | V4L2_MPEG_AUDIO_AC3_BITRATE_56K = 3, | ||
1000 | V4L2_MPEG_AUDIO_AC3_BITRATE_64K = 4, | ||
1001 | V4L2_MPEG_AUDIO_AC3_BITRATE_80K = 5, | ||
1002 | V4L2_MPEG_AUDIO_AC3_BITRATE_96K = 6, | ||
1003 | V4L2_MPEG_AUDIO_AC3_BITRATE_112K = 7, | ||
1004 | V4L2_MPEG_AUDIO_AC3_BITRATE_128K = 8, | ||
1005 | V4L2_MPEG_AUDIO_AC3_BITRATE_160K = 9, | ||
1006 | V4L2_MPEG_AUDIO_AC3_BITRATE_192K = 10, | ||
1007 | V4L2_MPEG_AUDIO_AC3_BITRATE_224K = 11, | ||
1008 | V4L2_MPEG_AUDIO_AC3_BITRATE_256K = 12, | ||
1009 | V4L2_MPEG_AUDIO_AC3_BITRATE_320K = 13, | ||
1010 | V4L2_MPEG_AUDIO_AC3_BITRATE_384K = 14, | ||
1011 | V4L2_MPEG_AUDIO_AC3_BITRATE_448K = 15, | ||
1012 | V4L2_MPEG_AUDIO_AC3_BITRATE_512K = 16, | ||
1013 | V4L2_MPEG_AUDIO_AC3_BITRATE_576K = 17, | ||
1014 | V4L2_MPEG_AUDIO_AC3_BITRATE_640K = 18, | ||
1015 | }; | ||
991 | 1016 | ||
992 | /* MPEG video */ | 1017 | /* MPEG video */ |
993 | #define V4L2_CID_MPEG_VIDEO_ENCODING (V4L2_CID_MPEG_BASE+200) | 1018 | #define V4L2_CID_MPEG_VIDEO_ENCODING (V4L2_CID_MPEG_BASE+200) |
994 | enum v4l2_mpeg_video_encoding { | 1019 | enum v4l2_mpeg_video_encoding { |
995 | V4L2_MPEG_VIDEO_ENCODING_MPEG_1 = 0, | 1020 | V4L2_MPEG_VIDEO_ENCODING_MPEG_1 = 0, |
996 | V4L2_MPEG_VIDEO_ENCODING_MPEG_2 = 1, | 1021 | V4L2_MPEG_VIDEO_ENCODING_MPEG_2 = 1, |
1022 | V4L2_MPEG_VIDEO_ENCODING_MPEG_4_AVC = 2, | ||
997 | }; | 1023 | }; |
998 | #define V4L2_CID_MPEG_VIDEO_ASPECT (V4L2_CID_MPEG_BASE+201) | 1024 | #define V4L2_CID_MPEG_VIDEO_ASPECT (V4L2_CID_MPEG_BASE+201) |
999 | enum v4l2_mpeg_video_aspect { | 1025 | enum v4l2_mpeg_video_aspect { |