wmclockmon: update change-log
[dockapps.git] / wmtv / src / channels.h
blob5945bc30cebf798eb8b714107b457bbf2a00610b
1 /*
2 * Worldwide channel/frequency list
4 * Nathan Laredo (laredo@broked.net)
5 * Minor additions by Wee Liang (wliang@tartarus.uwa.edu.au)
7 * Frequencies are given in kHz
8 */
9 #define NTSC_AUDIO_CARRIER 4500
10 #define PAL_AUDIO_CARRIER_I 6000
11 #define PAL_AUDIO_CARRIER_BGHN 5500
12 #define PAL_AUDIO_CARRIER_MN 4500
13 #define PAL_AUDIO_CARRIER_D 6500
14 #define SEACAM_AUDIO_DKK1L 6500
15 #define SEACAM_AUDIO_BG 5500
16 /* NICAM 728 32-kHz, 14-bit digital stereo audio is transmitted in 1ms frames
17 containing 8 bits frame sync, 5 bits control, 11 bits additional data, and
18 704 bits audio data. The bit rate is reduced by transmitting only 10 bits
19 plus parity of each 14 bit sample, the largest sample in a frame determines
20 which 10 bits are transmitted. The parity bits for audio samples also
21 specify the scaling factor used for that channel during that frame. The
22 companeded audio data is interleaved to reduce the influence of dropouts
23 and the whole frame except for sync bits is scrambled for spectrum shaping.
24 Data is modulated using QPSK, at below following subcarrier freqs */
25 #define NICAM728_PAL_BGH 5850
26 #define NICAM728_PAL_I 6552
28 /* COMPREHENSIVE LIST OF FORMAT BY COUNTRY
29 (M) NTSC used in:
30 Antigua, Aruba, Bahamas, Barbados, Belize, Bermuda, Bolivia, Burma,
31 Canada, Chile, Colombia, Costa Rica, Cuba, Curacao, Dominican Republic,
32 Ecuador, El Salvador, Guam Guatemala, Honduras, Jamaica, Japan,
33 South Korea, Mexico, Montserrat, Myanmar, Nicaragua, Panama, Peru,
34 Philippines, Puerto Rico, St Christopher and Nevis, Samoa, Suriname,
35 Taiwan, Trinidad/Tobago, United States, Venezuela, Virgin Islands
36 (B) PAL used in:
37 Albania, Algeria, Australia, Austria, Bahrain, Bangladesh, Belgium,
38 Bosnia-Herzegovinia, Brunei Darussalam, Cambodia, Cameroon, Croatia,
39 Cyprus, Denmark, Egypt, Ethiopia, Equatorial Guinea, Finland, Germany,
40 Ghana, Gibraltar, Greenland, Iceland, India, Indonesia, Israel, Italy,
41 Jordan, Kenya, Kuwait, Liberia, Libya, Luxembourg, Malaysa, Maldives,
42 Malta, Nepal, Netherlands, New Zeland, Nigeria, Norway, Oman, Pakistan,
43 Papua New Guinea, Portugal, Qatar, Sao Tome and Principe, Saudi Arabia,
44 Seychelles, Sierra Leone, Singapore, Slovenia, Somali, Spain,
45 Sri Lanka, Sudan, Swaziland, Sweden, Switzeland, Syria, Thailand,
46 Tunisia, Turkey, Uganda, United Arab Emirates, Yemen
47 (N) PAL used in: (Combination N = 4.5MHz audio carrier, 3.58MHz burst)
48 Argentina (Combination N), Paraguay, Uruguay
49 (M) PAL (525/60, 3.57MHz burst) used in:
50 Brazil
51 (G) PAL used in:
52 Albania, Algeria, Austria, Bahrain, Bosnia/Herzegovinia, Cambodia,
53 Cameroon, Croatia, Cyprus, Denmark, Egypt, Ethiopia, Equatorial Guinea,
54 Finland, Germany, Gibraltar, Greenland, Iceland, Israel, Italy, Jordan,
55 Kenya, Kuwait, Liberia, Libya, Luxembourg, Malaysia, Monaco,
56 Mozambique, Netherlands, New Zealand, Norway, Oman, Pakistan,
57 Papa New Guinea, Portugal, Qatar, Romania, Sierra Leone, Singapore,
58 Slovenia, Somalia, Spain, Sri Lanka, Sudan, Swaziland, Sweeden,
59 Switzerland, Syria, Thailand, Tunisia, Turkey, United Arab Emirates,
60 Yemen, Zambia, Zimbabwe
61 (D) PAL used in:
62 China, North Korea, Romania, Czech Republic
63 (H) PAL used in:
64 Belgium
65 (I) PAL used in:
66 Angola, Botswana, Gambia, Guinea-Bissau, Hong Kong, Ireland, Lesotho,
67 Malawi, Nambia, Nigeria, South Africa, Tanzania, United Kingdom,
68 Zanzibar
69 (B) SECAM used in:
70 Djibouti, Greece, Iran, Iraq, Lebanon, Mali, Mauritania, Mauritus,
71 Morocco
72 (D) SECAM used in:
73 Afghanistan, Armenia, Azerbaijan, Belarus, Bulgaria,
74 Estonia, Georgia, Hungary, Zazakhstan, Lithuania, Mongolia, Moldova,
75 Poland, Russia, Slovak Republic, Ukraine, Vietnam
76 (G) SECAM used in:
77 Greecem Iran, Iraq, Mali, Mauritus, Morocco, Saudi Arabia
78 (K) SECAM used in:
79 Armenia, Azerbaijan, Bulgaria, Estonia, Georgia,
80 Hungary, Kazakhstan, Lithuania, Madagascar, Moldova, Poland, Russia,
81 Slovak Republic, Ukraine, Vietnam
82 (K1) SECAM used in:
83 Benin, Burkina Faso, Burundi, Chad, Cape Verde, Central African
84 Republic, Comoros, Congo, Gabon, Madagascar, Niger, Rwanda, Senegal,
85 Togo, Zaire
86 (L) SECAM used in:
87 France
89 struct gentab {
90 int cind;
91 char *cname;
94 struct freqlist {
95 char name[4];
96 int freq[13];
99 struct freqlist tvtuner[] = {
100 /* CH US-TV US-CATV US-HRC JP-TV JP-CATV EUROPE EUR-E ITALY NZ AU UHF_GHI FR */
101 {"E2", { 0, 0, 0, 0, 0, 48250, 0, 0, 0, 0, 0, 0}},
102 {"E3", { 0, 0, 0, 0, 0, 55250, 0, 0, 0, 0, 0, 0}},
103 {"E4", { 0, 0, 0, 0, 0, 62250, 0, 0, 0, 0, 0, 0}},
105 {"S01", { 0, 0, 0, 0, 0, 69250, 0, 0, 0, 0, 0, 0}},
106 {"S02", { 0, 0, 0, 0, 0, 76250, 0, 0, 0, 0, 0, 0}},
107 {"S03", { 0, 0, 0, 0, 0, 83250, 0, 0, 0, 0, 0, 0}},
109 {"R1", { 0, 0, 0, 0, 0, 0, 49750, 0, 0, 0, 0, 0}},
110 {"R2", { 0, 0, 0, 0, 0, 0, 59250, 0, 0, 0, 0, 0}},
111 {"R3", { 0, 0, 0, 0, 0, 0, 77250, 0, 0, 0, 0, 0}},
112 {"R4", { 0, 0, 0, 0, 0, 0, 84250, 0, 0, 0, 0, 0}},
113 {"R5", { 0, 0, 0, 0, 0, 0, 93250, 0, 0, 0, 0, 0}},
115 {"SE1", { 0, 0, 0, 0, 0, 105250, 105250, 0, 0, 0, 0, 0}},
116 {"SE2", { 0, 0, 0, 0, 0, 112250, 112250, 0, 0, 0, 0, 0}},
117 {"SE3", { 0, 0, 0, 0, 0, 119250, 119250, 0, 0, 0, 0, 0}},
118 {"SE4", { 0, 0, 0, 0, 0, 126250, 126250, 0, 0, 0, 0, 0}},
119 {"SE5", { 0, 0, 0, 0, 0, 133250, 133250, 0, 0, 0, 0, 0}},
120 {"SE6", { 0, 0, 0, 0, 0, 140250, 140250, 0, 0, 0, 0, 0}},
121 {"SE7", { 0, 0, 0, 0, 0, 147250, 147250, 0, 0, 0, 0, 0}},
122 {"SE8", { 0, 0, 0, 0, 0, 154250, 154250, 0, 0, 0, 0, 0}},
123 {"SE9", { 0, 0, 0, 0, 0, 161250, 161250, 0, 0, 0, 0, 0}},
124 {"SE10",{ 0, 0, 0, 0, 0, 168250, 168250, 0, 0, 0, 0, 0}},
126 {"E5", { 0, 0, 0, 0, 0, 175250, 0, 0, 0, 0, 0, 0}},
127 {"E6", { 0, 0, 0, 0, 0, 182250, 0, 0, 0, 0, 0, 0}},
128 {"E7", { 0, 0, 0, 0, 0, 189250, 0, 0, 0, 0, 0, 0}},
129 {"E8", { 0, 0, 0, 0, 0, 196250, 0, 0, 0, 0, 0, 0}},
130 {"E9", { 0, 0, 0, 0, 0, 203250, 0, 0, 0, 0, 0, 0}},
131 {"E10", { 0, 0, 0, 0, 0, 210250, 0, 0, 0, 0, 0, 0}},
132 {"E11", { 0, 0, 0, 0, 0, 217250, 0, 0, 0, 0, 0, 0}},
133 {"E12", { 0, 0, 0, 0, 0, 224250, 0, 0, 0, 0, 0, 0}},
135 {"R6", { 0, 0, 0, 0, 0, 0, 175250, 0, 0, 0, 0, 0}},
136 {"R7", { 0, 0, 0, 0, 0, 0, 183250, 0, 0, 0, 0, 0}},
137 {"R8", { 0, 0, 0, 0, 0, 0, 191250, 0, 0, 0, 0, 0}},
138 {"R9", { 0, 0, 0, 0, 0, 0, 199250, 0, 0, 0, 0, 0}},
139 {"R10", { 0, 0, 0, 0, 0, 0, 207250, 0, 0, 0, 0, 0}},
140 {"R11", { 0, 0, 0, 0, 0, 0, 215250, 0, 0, 0, 0, 0}},
141 {"R12", { 0, 0, 0, 0, 0, 0, 223250, 0, 0, 0, 0, 0}},
143 {"SE11",{ 0, 0, 0, 0, 0, 231250, 231250, 0, 0, 0, 0, 0}},
144 {"SE12",{ 0, 0, 0, 0, 0, 238250, 238250, 0, 0, 0, 0, 0}},
145 {"SE13",{ 0, 0, 0, 0, 0, 245250, 245250, 0, 0, 0, 0, 0}},
146 {"SE14",{ 0, 0, 0, 0, 0, 252250, 252250, 0, 0, 0, 0, 0}},
147 {"SE15",{ 0, 0, 0, 0, 0, 259250, 259250, 0, 0, 0, 0, 0}},
148 {"SE16",{ 0, 0, 0, 0, 0, 266250, 266250, 0, 0, 0, 0, 0}},
149 {"SE17",{ 0, 0, 0, 0, 0, 273250, 273250, 0, 0, 0, 0, 0}},
150 {"SE18",{ 0, 0, 0, 0, 0, 280250, 280250, 0, 0, 0, 0, 0}},
151 {"SE19",{ 0, 0, 0, 0, 0, 287250, 287250, 0, 0, 0, 0, 0}},
152 {"SE20",{ 0, 0, 0, 0, 0, 294250, 294250, 0, 0, 0, 0, 0}},
154 {"S21", { 0, 0, 0, 0, 0, 303250, 303250, 0, 0, 0, 0, 0}},
155 {"S22", { 0, 0, 0, 0, 0, 311250, 311250, 0, 0, 0, 0, 0}},
156 {"S23", { 0, 0, 0, 0, 0, 319250, 319250, 0, 0, 0, 0, 0}},
157 {"S24", { 0, 0, 0, 0, 0, 327250, 327250, 0, 0, 0, 0, 0}},
158 {"S25", { 0, 0, 0, 0, 0, 335250, 335250, 0, 0, 0, 0, 0}},
159 {"S26", { 0, 0, 0, 0, 0, 343250, 343250, 0, 0, 0, 0, 0}},
160 {"S27", { 0, 0, 0, 0, 0, 351250, 351250, 0, 0, 0, 0, 0}},
161 {"S28", { 0, 0, 0, 0, 0, 359250, 359250, 0, 0, 0, 0, 0}},
162 {"S29", { 0, 0, 0, 0, 0, 367250, 367250, 0, 0, 0, 0, 0}},
163 {"S30", { 0, 0, 0, 0, 0, 375250, 375250, 0, 0, 0, 0, 0}},
164 {"S31", { 0, 0, 0, 0, 0, 383250, 383250, 0, 0, 0, 0, 0}},
165 {"S32", { 0, 0, 0, 0, 0, 391250, 391250, 0, 0, 0, 0, 0}},
166 {"S33", { 0, 0, 0, 0, 0, 399250, 399250, 0, 0, 0, 0, 0}},
167 {"S34", { 0, 0, 0, 0, 0, 407250, 407250, 0, 0, 0, 0, 0}},
168 {"S35", { 0, 0, 0, 0, 0, 415250, 415250, 0, 0, 0, 0, 0}},
169 {"S36", { 0, 0, 0, 0, 0, 423250, 423250, 0, 0, 0, 0, 0}},
170 {"S37", { 0, 0, 0, 0, 0, 431250, 431250, 0, 0, 0, 0, 0}},
171 {"S38", { 0, 0, 0, 0, 0, 439250, 439250, 0, 0, 0, 0, 0}},
172 {"S39", { 0, 0, 0, 0, 0, 447250, 447250, 0, 0, 0, 0, 0}},
173 {"S40", { 0, 0, 0, 0, 0, 455250, 455250, 0, 0, 0, 0, 0}},
174 {"S41", { 0, 0, 0, 0, 0, 463250, 463250, 0, 0, 0, 0, 0}},
176 {"0", { 0, 0, 0, 0, 0, 0, 0, 0, 0, 46250, 45750, 0}},
177 {"1", { 0, 73250, 72000, 91250, 0, 0, 0, 0, 45250, 57250, 53750, 0}},
178 {"2", { 55250, 55250, 54000, 97250, 0, 0, 0, 53750, 55250, 64250, 61750, 0}},
179 {"3", { 61250, 61250, 60000, 103250, 0, 0, 0, 62250, 62250, 86250, 175250, 0}},
180 {"4", { 67250, 67250, 66000, 171250, 0, 0, 0, 82250, 175250, 95250, 183250, 0}},
181 {"5", { 77250, 77250, 78000, 177250, 0, 0, 0, 175250, 182250, 102250, 191250, 0}},
182 {"5A", { 0, 0, 138250, 0, 0, 0, 0, 0, 138250, 0, 0, 0}},
183 {"6", { 83250, 83250, 84000, 183250, 0, 0, 0, 183750, 189250, 175250, 199250, 0}},
184 {"7", {175250, 175250, 174000, 189250, 0, 0, 0, 192250, 196250, 182250, 207250, 0}},
185 {"8", {181250, 181250, 180000, 193250, 0, 0, 0, 201250, 203250, 189250, 215250, 0}},
186 {"9", {187250, 187250, 186000, 199250, 0, 0, 0, 210250, 210250, 196250, 0, 0}},
187 {"10", {193250, 193250, 192000, 205250, 0, 0, 0, 210250, 217250, 209250, 0, 0}},
188 {"11", {199250, 199250, 198000, 211250, 0, 0, 0, 217250, 0, 216250, 0, 0}},
189 {"12", {205250, 205250, 204000, 217250, 0, 0, 0, 224250, 0, 0, 0, 0}},
191 {"13", {211250, 211250, 210000, 0, 109250, 0, 0, 0, 0, 0, 0, 0}},
192 {"14", {471250, 121250, 120000, 0, 115250, 0, 0, 0, 0, 0, 0, 0}},
193 {"15", {477250, 127250, 126000, 0, 121250, 0, 0, 0, 0, 0, 0, 0}},
194 {"16", {483250, 133250, 132000, 0, 127250, 0, 0, 0, 0, 0, 0, 0}},
195 {"17", {489250, 139250, 138000, 0, 133250, 0, 0, 0, 0, 0, 0, 0}},
196 {"18", {495250, 145250, 144000, 0, 139250, 0, 0, 0, 0, 0, 0, 0}},
197 {"19", {501250, 151250, 150000, 0, 145250, 0, 0, 0, 0, 0, 0, 0}},
198 {"20", {507250, 157250, 156000, 0, 151250, 0, 0, 0, 0, 0, 0, 0}},
200 {"21", {513250, 163250, 162000, 0, 157250, 471250, 471250, 0, 0, 0, 471250, 471250}},
201 {"22", {519250, 169250, 168000, 0, 165250, 479250, 479250, 0, 0, 0, 479250, 479250}},
202 {"23", {525250, 217250, 216000, 0, 223250, 487250, 487250, 0, 0, 0, 487250, 487250}},
203 {"24", {531250, 223250, 222000, 0, 231250, 495250, 495250, 0, 0, 0, 495250, 495250}},
204 {"25", {537250, 229250, 228000, 0, 237250, 503250, 503250, 0, 0, 0, 503250, 503250}},
205 {"26", {543250, 235250, 234000, 0, 243250, 511250, 511250, 0, 0, 0, 511250, 511250}},
206 {"27", {549250, 241250, 240000, 0, 249250, 519250, 519250, 0, 0, 0, 519250, 519250}},
207 {"28", {555250, 247250, 246000, 0, 253250, 527250, 527250, 0, 0, 527250, 527250, 527250}},
208 {"29", {561250, 253250, 252000, 0, 259250, 535250, 535250, 0, 0, 534250, 535250, 535250}},
209 {"30", {567250, 259250, 258000, 0, 265250, 543250, 543250, 0, 0, 541250, 543250, 543250}},
210 {"31", {573250, 265250, 264000, 0, 271250, 551250, 551250, 0, 0, 548250, 551250, 551250}},
211 {"32", {579250, 271250, 270000, 0, 277250, 559250, 559250, 0, 0, 555250, 559250, 559250}},
212 {"33", {585250, 277250, 276000, 0, 283250, 567250, 567250, 0, 0, 562250, 567250, 567250}},
213 {"34", {591250, 283250, 282000, 0, 289250, 575250, 575250, 0, 0, 569250, 575250, 575250}},
214 {"35", {597250, 289250, 288000, 0, 295250, 583250, 583250, 0, 0, 576250, 583250, 583250}},
215 {"36", {603250, 295250, 294000, 0, 301250, 591250, 591250, 0, 0, 0, 591250, 591250}},
216 {"37", {609250, 301250, 300000, 0, 307250, 599250, 599250, 0, 0, 0, 599250, 599250}},
217 {"38", {615250, 307250, 306000, 0, 313250, 607250, 607250, 0, 0, 0, 607250, 607250}},
218 {"39", {621250, 313250, 312000, 0, 319250, 615250, 615250, 0, 0, 604250, 615250, 615250}},
219 {"40", {627250, 319250, 318000, 0, 325250, 623250, 623250, 0, 0, 611250, 623250, 623250}},
220 {"41", {633250, 325250, 324000, 0, 331250, 631250, 631250, 0, 0, 618250, 631250, 631250}},
221 {"42", {639250, 331250, 330000, 0, 337250, 639250, 639250, 0, 0, 625250, 639250, 639250}},
222 {"43", {645250, 337250, 336000, 0, 343250, 647250, 647250, 0, 0, 632250, 647250, 647250}},
223 {"44", {651250, 343250, 342000, 0, 349250, 655250, 655250, 0, 0, 639250, 655250, 655250}},
224 {"45", {657250, 349250, 348000, 663250, 355250, 663250, 663250, 0, 0, 646250, 663250, 663250}},
225 {"46", {663250, 355250, 354000, 669250, 361250, 671250, 671250, 0, 0, 653250, 671250, 671250}},
226 {"47", {669250, 361250, 360000, 675250, 367250, 679250, 679250, 0, 0, 660250, 679250, 679250}},
227 {"48", {675250, 367250, 366000, 681250, 373250, 687250, 687250, 0, 0, 667250, 687250, 687250}},
228 {"49", {681250, 373250, 372000, 687250, 379250, 695250, 695250, 0, 0, 674250, 695250, 695250}},
229 {"50", {687250, 379250, 378000, 693250, 385250, 703250, 703250, 0, 0, 681250, 703250, 703250}},
230 {"51", {693250, 385250, 384000, 699250, 391250, 711250, 711250, 0, 0, 688250, 711250, 711250}},
231 {"52", {699250, 391250, 390000, 705250, 397250, 719250, 719250, 0, 0, 695250, 719250, 719250}},
232 {"53", {705250, 397250, 396000, 711250, 403250, 727250, 727250, 0, 0, 702250, 727250, 727250}},
233 {"54", {711250, 403250, 402000, 717250, 409250, 735250, 735250, 0, 0, 709250, 735250, 735250}},
234 {"55", {717250, 409250, 408000, 723250, 415250, 743250, 743250, 0, 0, 716250, 743250, 743250}},
235 {"56", {723250, 415250, 414000, 729250, 421250, 751250, 751250, 0, 0, 723250, 751250, 751250}},
236 {"57", {729250, 421250, 420000, 735250, 427250, 759250, 759250, 0, 0, 730250, 759250, 759250}},
237 {"58", {735250, 427250, 426000, 741250, 433250, 767250, 767250, 0, 0, 737250, 767250, 767250}},
238 {"59", {741250, 433250, 432000, 747250, 439250, 775250, 775250, 0, 0, 744250, 775250, 775250}},
239 {"60", {747250, 439250, 438000, 753250, 445250, 783250, 783250, 0, 0, 751250, 783250, 783250}},
240 {"61", {753250, 445250, 444000, 759250, 451250, 791250, 791250, 0, 0, 758250, 791250, 791250}},
241 {"62", {759250, 451250, 450000, 765250, 457250, 799250, 799250, 0, 0, 765250, 799250, 799250}},
242 {"63", {765250, 457250, 456000, 0, 463250, 807250, 807250, 0, 0, 772250, 807250, 807250}},
243 {"64", {771250, 463250, 462000, 0, 0, 815250, 815250, 0, 0, 779250, 815250, 815250}},
244 {"65", {777250, 469250, 468000, 0, 0, 823250, 823250, 0, 0, 786250, 823250, 823250}},
245 {"66", {783250, 475250, 474000, 0, 0, 831250, 831250, 0, 0, 793250, 831250, 831250}},
246 {"67", {789250, 481250, 480000, 0, 0, 839250, 839250, 0, 0, 800250, 839250, 839250}},
247 {"68", {795250, 487250, 486000, 0, 0, 847250, 847250, 0, 0, 807250, 847250, 847250}},
248 {"69", {801250, 493250, 492000, 0, 0, 855250, 855250, 0, 0, 814250, 855250, 855250}},
250 {"70", {807250, 499250, 498000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
251 {"71", {813250, 505250, 504000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
252 {"72", {819250, 511250, 510000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
253 {"73", {825250, 517250, 516000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
254 {"74", {831250, 523250, 522000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
255 {"75", {837250, 529250, 528000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
256 {"76", {843250, 535250, 534000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
257 {"77", {849250, 541250, 540000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
258 {"78", {855250, 547250, 546000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
259 {"79", {861250, 553250, 552000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
260 {"80", {867250, 559250, 558000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
261 {"81", {873250, 565250, 564000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
262 {"82", {879250, 571250, 570000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
263 {"83", {885250, 577250, 576000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
264 {"84", { 0, 583250, 582000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
265 {"85", { 0, 589250, 588000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
266 {"86", { 0, 595250, 594000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
267 {"87", { 0, 601250, 600000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
268 {"88", { 0, 607250, 606000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
269 {"89", { 0, 613250, 612000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
270 {"90", { 0, 619250, 618000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
271 {"91", { 0, 625250, 624000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
272 {"92", { 0, 631250, 630000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
273 {"93", { 0, 637250, 636000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
274 {"94", { 0, 643250, 642000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
275 {"95", { 0, 91250, 900000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
276 {"96", { 0, 97250, 960000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
277 {"97", { 0, 103250, 102000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
278 {"98", { 0, 109250, 108000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
279 {"99", { 0, 115250, 114000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
280 {"100", { 0, 649250, 648000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
281 {"101", { 0, 655250, 654000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
282 {"102", { 0, 661250, 660000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
283 {"103", { 0, 667250, 666000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
284 {"104", { 0, 673250, 672000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
285 {"105", { 0, 679250, 678000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
286 {"106", { 0, 685250, 684000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
287 {"107", { 0, 691250, 690000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
288 {"108", { 0, 697250, 696000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
289 {"109", { 0, 703250, 702000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
290 {"110", { 0, 709250, 708000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
291 {"111", { 0, 715250, 714000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
292 {"112", { 0, 721250, 720000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
293 {"113", { 0, 727250, 726000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
294 {"114", { 0, 733250, 732000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
295 {"115", { 0, 739250, 738000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
296 {"116", { 0, 745250, 744000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
297 {"117", { 0, 751250, 750000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
298 {"118", { 0, 757250, 756000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
299 {"119", { 0, 763250, 762000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
300 {"120", { 0, 769250, 768000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
301 {"121", { 0, 775250, 774000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
302 {"122", { 0, 781250, 780000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
303 {"123", { 0, 787250, 786000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
304 {"124", { 0, 793250, 792000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
305 {"125", { 0, 799250, 798000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
307 {"T7", { 0, 8250, 7000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
308 {"T8", { 0, 14250, 13000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
309 {"T9", { 0, 20250, 19000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
310 {"T10", { 0, 26250, 25000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
311 {"T11", { 0, 32250, 31000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
312 {"T12", { 0, 38250, 37000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
313 {"T13", { 0, 44250, 43000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
314 {"T14", { 0, 50250, 49000, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
316 {"K01", { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 47750}},
317 {"K02", { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 55750}},
318 {"K03", { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 60500}},
319 {"K04", { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 63750}},
320 {"K05", { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176000}},
321 {"K06", { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 184000}},
322 {"K07", { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 192000}},
323 {"K08", { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 200000}},
324 {"K09", { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 208000}},
325 {"K10", { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 216000}},
326 {"KB", { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 116750}},
327 {"KC", { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128750}},
328 {"KD", { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 140750}},
329 {"KE", { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 159750}},
330 {"KF", { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 164750}},
331 {"KG", { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176750}},
332 {"KH", { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 188750}},
333 {"KI", { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 200750}},
334 {"KJ", { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 212750}},
335 {"KK", { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 224750}},
336 {"KL", { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 236750}},
337 {"KM", { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 248750}},
338 {"KN", { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 260750}},
339 {"KO", { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 272750}},
340 {"KP", { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 284750}},
341 {"KQ", { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 296750}},
342 {"H01", { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 303250}},
343 {"H02", { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 311250}},
344 {"H03", { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 319250}},
345 {"H04", { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 327250}},
346 {"H05", { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 335250}},
347 {"H06", { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 343250}},
348 {"H07", { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 351250}},
349 {"H08", { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 359250}},
350 {"H09", { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 367250}},
351 {"H10", { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 375250}},
352 {"H11", { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 383250}},
353 {"H12", { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 391250}},
354 {"H13", { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 399250}},
355 {"H14", { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 407250}},
356 {"H15", { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 415250}},
357 {"H16", { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 423250}},
358 {"H17", { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 431250}},
359 {"H18", { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 439250}},
360 {"H19", { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 447250}}
363 int CHAN_ENTRIES = sizeof(tvtuner)/sizeof(struct freqlist);
364 int CHAN_NAMES = 12;
366 struct gentab chan_names[] = {
367 { 0, "ntsc-bcast" },
368 { 1, "ntsc-cable" },
369 { 2, "ntsc-cable-hrc" },
370 { 3, "ntsc-bcast-jp" },
371 { 4, "ntsc-cable-jp" },
372 { 5, "pal-europe" },
373 { 6, "pal-europe-east" },
374 { 7, "pal-italy" },
375 { 8, "pal-newzealand" },
376 { 9, "pal-australia" },
377 { 10, "pal-ireland" },
378 { 11, "secam-france" },
379 { -1, NULL }