Statistics
| Branch: | Tag: | Revision:

dvbd / dvb_defaults.h @ bfdb7446

History | View | Annotate | Download (2.91 KB)

1
/* dvb_defaults.h
2

3
   Provided by Tomi Ollila
4

5
   Copyright (C) Dave Chapman 2002
6

7
   This program is free software; you can redistribute it and/or
8
   modify it under the terms of the GNU General Public License
9
   as published by the Free Software Foundation; either version 2
10
   of the License, or (at your option) any later version.
11

12
   This program is distributed in the hope that it will be useful,
13
   but WITHOUT ANY WARRANTY; without even the implied warranty of
14
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
   GNU General Public License for more details.
16

17
   You should have received a copy of the GNU General Public License
18
   along with this program; if not, write to the Free Software
19
   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20
   Or, point your browser to http://www.gnu.org/copyleft/gpl.html
21

22
*/
23

    
24
#ifndef _DVB_DEFAULTS_H
25
#define _DVB_DEFAULTS_H
26

    
27
/* DVB-S */
28

    
29
// With a diseqc system you may need different values per LNB.  I hope
30
// no-one ever asks for that :-)
31

    
32
#define SLOF (11700*1000UL)
33
#define LOF1 (9750*1000UL)
34
#define LOF2 (10600*1000UL)
35

    
36
/* DVB-T */
37

    
38
/* Either uncomment one of the following lines, or add it to your
39
   "make" command.  e.g.
40

41
   make FINLAND=1
42
*/
43

    
44
//#define UK
45
//#define FINLAND
46
//#define FINLAND2
47

    
48
/* UK defines are at the end, as a default option */
49

    
50
#ifdef FINLAND
51

    
52
/* FINLAND settings 1 */
53
#define DVB_T_LOCATION                    "Suomessa"
54
#define BANDWIDTH_DEFAULT           BANDWIDTH_8_MHZ
55
#define HP_CODERATE_DEFAULT         FEC_2_3
56
#define CONSTELLATION_DEFAULT       QAM_64
57
#define TRANSMISSION_MODE_DEFAULT   TRANSMISSION_MODE_8K
58
#define GUARD_INTERVAL_DEFAULT            GUARD_INTERVAL_1_8
59
#define HIERARCHY_DEFAULT           HIERARCHY_NONE
60

    
61
#endif
62

    
63
#ifdef FINLAND2
64

    
65
/* FINLAND settings 2 (someone verify there is such environment) */
66
#define DVB_T_LOCATION                    "Suomessa II"
67
#define BANDWIDTH_DEFAULT           BANDWIDTH_8_MHZ
68
#define HP_CODERATE_DEFAULT         FEC_1_2
69
#define CONSTELLATION_DEFAULT       QAM_64
70
#define TRANSMISSION_MODE_DEFAULT   TRANSMISSION_MODE_2K
71
#define GUARD_INTERVAL_DEFAULT      GUARD_INTERVAL_1_8
72
#define HIERARCHY_DEFAULT           HIERARCHY_NONE
73

    
74
#endif
75

    
76
#if defined (UK) && defined (HP_CODERATE_DEFAULT)
77
#error Multible countries defined
78
#endif
79

    
80
#ifndef DVB_T_LOCATION
81

    
82
#ifndef UK
83
#warning No DVB-T country defined in dvb_defaults.h
84
#warning defaulting to UK
85
#warning Ignore this if using Satellite or Cable
86
#endif
87

    
88
/* UNITED KINGDOM settings */
89
#define DVB_T_LOCATION                    "in United Kingdom"
90
#define BANDWIDTH_DEFAULT           BANDWIDTH_8_MHZ
91
#define HP_CODERATE_DEFAULT         FEC_2_3
92
#define CONSTELLATION_DEFAULT       QAM_64
93
#define TRANSMISSION_MODE_DEFAULT   TRANSMISSION_MODE_2K
94
#define GUARD_INTERVAL_DEFAULT      GUARD_INTERVAL_1_32
95
#define HIERARCHY_DEFAULT           HIERARCHY_NONE
96

    
97
#endif
98

    
99
#if HIERARCHY_DEFAULT == HIERARCHY_NONE && !defined (LP_CODERATE_DEFAULT)
100
#define LP_CODERATE_DEFAULT (0) /* unused if HIERARCHY_NONE */
101
#endif
102

    
103
#endif