9610
|
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
|
|
37
|
|
38 #ifdef FINLAND
|
|
39 /* FINLAND settings 1 */
|
|
40 #define DVB_T_LOCATION "Suomessa"
|
|
41 #define BANDWIDTH_DEFAULT BANDWIDTH_8_MHZ
|
|
42 #define HP_CODERATE_DEFAULT FEC_2_3
|
|
43 #define CONSTELLATION_DEFAULT QAM_64
|
|
44 #define TRANSMISSION_MODE_DEFAULT TRANSMISSION_MODE_8K
|
|
45 #define GUARD_INTERVAL_DEFAULT GUARD_INTERVAL_1_8
|
|
46 #define HIERARCHY_DEFAULT HIERARCHY_NONE
|
|
47 #endif
|
|
48
|
|
49
|
|
50 #ifdef FINLAND2
|
|
51 /* FINLAND settings 2 (someone verify there is such environment) */
|
|
52 #define DVB_T_LOCATION "Suomessa II"
|
|
53 #define BANDWIDTH_DEFAULT BANDWIDTH_8_MHZ
|
|
54 #define HP_CODERATE_DEFAULT FEC_1_2
|
|
55 #define CONSTELLATION_DEFAULT QAM_64
|
|
56 #define TRANSMISSION_MODE_DEFAULT TRANSMISSION_MODE_2K
|
|
57 #define GUARD_INTERVAL_DEFAULT GUARD_INTERVAL_1_8
|
|
58 #define HIERARCHY_DEFAULT HIERARCHY_NONE
|
|
59 #endif
|
|
60
|
|
61 #if defined (UK) && defined (HP_CODERATE_DEFAULT)
|
|
62 #error Multible countries defined
|
|
63 #endif
|
|
64
|
|
65
|
|
66
|
|
67 #ifndef DVB_T_LOCATION
|
|
68 #ifndef UK
|
12309
|
69 #warning No DVB-T country defined in dvb_defaults.h, defaulting to UK. Ignore this if using Satellite or Cable.
|
9610
|
70 #endif
|
|
71
|
|
72 /* UNITED KINGDOM settings */
|
|
73 #define DVB_T_LOCATION "in United Kingdom"
|
|
74 #define BANDWIDTH_DEFAULT BANDWIDTH_8_MHZ
|
|
75 #define HP_CODERATE_DEFAULT FEC_2_3
|
|
76 #define CONSTELLATION_DEFAULT QAM_64
|
|
77 #define TRANSMISSION_MODE_DEFAULT TRANSMISSION_MODE_2K
|
|
78 #define GUARD_INTERVAL_DEFAULT GUARD_INTERVAL_1_32
|
|
79 #define HIERARCHY_DEFAULT HIERARCHY_NONE
|
|
80 #endif
|
|
81
|
|
82
|
|
83 #if HIERARCHY_DEFAULT == HIERARCHY_NONE && !defined (LP_CODERATE_DEFAULT)
|
|
84 #define LP_CODERATE_DEFAULT (0) /* unused if HIERARCHY_NONE */
|
|
85 #endif
|
|
86
|
|
87 #endif
|