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)
19 #include <linux/dvb/dmx.h>
20 #include <linux/dvb/frontend.h>
21 #include <linux/dvb/version.h>
24 #if defined(DVB_API_VERSION_MINOR)
26 /* kernel headers >=2.6.28 have version 5.
28 * FIXME: are there any real differences between 3.1 and 5?
31 #if (DVB_API_VERSION == 3 && DVB_API_VERSION_MINOR >= 1) || DVB_API_VERSION == 5
38 #define DVB_CHANNEL_LOWER -1
39 #define DVB_CHANNEL_HIGHER 1
41 #ifndef DMX_FILTER_SIZE
42 #define DMX_FILTER_SIZE 16
47 int freq
, srate
, diseqc
, tone
;
49 int tpid
, dpid1
, dpid2
, progid
, ca
, pids
[DMX_FILTER_SIZE
], pids_cnt
;
50 fe_spectral_inversion_t inv
;
52 fe_transmit_mode_t trans
;
54 fe_guard_interval_t gi
;
55 fe_code_rate_t cr
, cr_lp
;
60 uint16_t NUM_CHANNELS
;
62 dvb_channel_t
*channels
;
67 dvb_channels_list
*list
;
74 dvb_card_config_t
*cards
;
82 int demux_fd
[3], demux_fds
[DMX_FILTER_SIZE
], demux_fds_cnt
;
86 dvb_channels_list
*list
;
100 int dvb_step_channel(stream_t
*, int);
101 int dvb_set_channel(stream_t
*, int, int);
102 dvb_config_t
*dvb_get_config(void);
103 void dvb_free_config(dvb_config_t
*config
);
105 #endif /* MPLAYER_DVBIN_H */