1 /* Imported from the dvbstream project
3 * Modified for use with MPlayer, for details see the changelog at
4 * http://svn.mplayerhq.hu/mplayer/trunk/
8 #ifndef MPLAYER_DVBIN_H
9 #define MPLAYER_DVBIN_H
14 #define SLOF (11700*1000UL)
15 #define LOF1 (9750*1000UL)
16 #define LOF2 (10600*1000UL)
18 #include <linux/dvb/dmx.h>
19 #include <linux/dvb/frontend.h>
20 #include <linux/dvb/version.h>
23 #if defined(DVB_API_VERSION_MINOR)
25 /* kernel headers >=2.6.28 have version 5.
27 * FIXME: are there any real differences between 3.1 and 5?
30 #if (DVB_API_VERSION == 3 && DVB_API_VERSION_MINOR >= 1) || DVB_API_VERSION == 5
37 #define DVB_CHANNEL_LOWER -1
38 #define DVB_CHANNEL_HIGHER 1
42 #ifndef DMX_FILTER_SIZE
43 #define DMX_FILTER_SIZE 16
48 int freq
, srate
, diseqc
, tone
;
50 int tpid
, dpid1
, dpid2
, progid
, ca
, pids
[DMX_FILTER_SIZE
], pids_cnt
;
51 fe_spectral_inversion_t inv
;
53 fe_transmit_mode_t trans
;
55 fe_guard_interval_t gi
;
56 fe_code_rate_t cr
, cr_lp
;
61 uint16_t NUM_CHANNELS
;
63 dvb_channel_t
*channels
;
68 dvb_channels_list
*list
;
75 dvb_card_config_t
*cards
;
83 int demux_fd
[3], demux_fds
[DMX_FILTER_SIZE
], demux_fds_cnt
;
87 dvb_channels_list
*list
;
101 int dvb_step_channel(stream_t
*, int);
102 int dvb_set_channel(stream_t
*, int, int);
103 dvb_config_t
*dvb_get_config(void);
104 void dvb_free_config(dvb_config_t
*config
);
106 #endif /* MPLAYER_DVBIN_H */