Merge branch 'master' of /usr/src/ntfs-2.6/
[sfrench/cifs-2.6.git] / drivers / media / video / tuner-types.c
1 /*
2  *
3  * i2c tv tuner chip device type database.
4  *
5  */
6
7 #include <linux/i2c.h>
8 #include <media/tuner.h>
9 #include <media/tuner-types.h>
10
11 /* ---------------------------------------------------------------------- */
12
13 /*
14  *      The floats in the tuner struct are computed at compile time
15  *      by gcc and cast back to integers. Thus we don't violate the
16  *      "no float in kernel" rule.
17  *
18  *      A tuner_range may be referenced by multiple tuner_params structs.
19  *      There are many duplicates in here. Reusing tuner_range structs,
20  *      rather than defining new ones for each tuner, will cut down on
21  *      memory usage, and is preferred when possible.
22  *
23  *      Each tuner_params array may contain one or more elements, one
24  *      for each video standard.
25  *
26  *      FIXME: Some tuner_range definitions are duplicated, and
27  *      should be eliminated.
28  *
29  *      FIXME: tunertype struct contains an element, has_tda988x.
30  *      We must set this for all tunertypes that contain a tda988x
31  *      chip, and then we can remove this setting from the various
32  *      card structs.
33  */
34
35 /* 0-9 */
36 /* ------------ TUNER_TEMIC_PAL - TEMIC PAL ------------ */
37
38 static struct tuner_range tuner_temic_pal_ranges[] = {
39         { 16 * 140.25 /*MHz*/, 0x02, },
40         { 16 * 463.25 /*MHz*/, 0x04, },
41         { 16 * 999.99        , 0x01, },
42 };
43
44 static struct tuner_params tuner_temic_pal_params[] = {
45         {
46                 .type   = TUNER_PARAM_TYPE_PAL,
47                 .ranges = tuner_temic_pal_ranges,
48                 .count  = ARRAY_SIZE(tuner_temic_pal_ranges),
49                 .config = 0x8e,
50         },
51 };
52
53 /* ------------ TUNER_PHILIPS_PAL_I - Philips PAL_I ------------ */
54
55 static struct tuner_range tuner_philips_pal_i_ranges[] = {
56         { 16 * 140.25 /*MHz*/, 0xa0, },
57         { 16 * 463.25 /*MHz*/, 0x90, },
58         { 16 * 999.99        , 0x30, },
59 };
60
61 static struct tuner_params tuner_philips_pal_i_params[] = {
62         {
63                 .type   = TUNER_PARAM_TYPE_PAL,
64                 .ranges = tuner_philips_pal_i_ranges,
65                 .count  = ARRAY_SIZE(tuner_philips_pal_i_ranges),
66                 .config = 0x8e,
67         },
68 };
69
70 /* ------------ TUNER_PHILIPS_NTSC - Philips NTSC ------------ */
71
72 static struct tuner_range tuner_philips_ntsc_ranges[] = {
73         { 16 * 157.25 /*MHz*/, 0xa0, },
74         { 16 * 451.25 /*MHz*/, 0x90, },
75         { 16 * 999.99        , 0x30, },
76 };
77
78 static struct tuner_params tuner_philips_ntsc_params[] = {
79         {
80                 .type   = TUNER_PARAM_TYPE_NTSC,
81                 .ranges = tuner_philips_ntsc_ranges,
82                 .count  = ARRAY_SIZE(tuner_philips_ntsc_ranges),
83                 .config = 0x8e,
84                 .cb_first_if_lower_freq = 1,
85         },
86 };
87
88 /* ------------ TUNER_PHILIPS_SECAM - Philips SECAM ------------ */
89
90 static struct tuner_range tuner_philips_secam_ranges[] = {
91         { 16 * 168.25 /*MHz*/, 0xa7, },
92         { 16 * 447.25 /*MHz*/, 0x97, },
93         { 16 * 999.99        , 0x37, },
94 };
95
96 static struct tuner_params tuner_philips_secam_params[] = {
97         {
98                 .type   = TUNER_PARAM_TYPE_SECAM,
99                 .ranges = tuner_philips_secam_ranges,
100                 .count  = ARRAY_SIZE(tuner_philips_secam_ranges),
101                 .config = 0x8e,
102                 .cb_first_if_lower_freq = 1,
103         },
104 };
105
106 /* ------------ TUNER_PHILIPS_PAL - Philips PAL ------------ */
107
108 static struct tuner_range tuner_philips_pal_ranges[] = {
109         { 16 * 168.25 /*MHz*/, 0xa0, },
110         { 16 * 447.25 /*MHz*/, 0x90, },
111         { 16 * 999.99        , 0x30, },
112 };
113
114 static struct tuner_params tuner_philips_pal_params[] = {
115         {
116                 .type   = TUNER_PARAM_TYPE_PAL,
117                 .ranges = tuner_philips_pal_ranges,
118                 .count  = ARRAY_SIZE(tuner_philips_pal_ranges),
119                 .config = 0x8e,
120                 .cb_first_if_lower_freq = 1,
121         },
122 };
123
124 /* ------------ TUNER_TEMIC_NTSC - TEMIC NTSC ------------ */
125
126 static struct tuner_range tuner_temic_ntsc_ranges[] = {
127         { 16 * 157.25 /*MHz*/, 0x02, },
128         { 16 * 463.25 /*MHz*/, 0x04, },
129         { 16 * 999.99        , 0x01, },
130 };
131
132 static struct tuner_params tuner_temic_ntsc_params[] = {
133         {
134                 .type   = TUNER_PARAM_TYPE_NTSC,
135                 .ranges = tuner_temic_ntsc_ranges,
136                 .count  = ARRAY_SIZE(tuner_temic_ntsc_ranges),
137                 .config = 0x8e,
138         },
139 };
140
141 /* ------------ TUNER_TEMIC_PAL_I - TEMIC PAL_I ------------ */
142
143 static struct tuner_range tuner_temic_pal_i_ranges[] = {
144         { 16 * 170.00 /*MHz*/, 0x02, },
145         { 16 * 450.00 /*MHz*/, 0x04, },
146         { 16 * 999.99        , 0x01, },
147 };
148
149 static struct tuner_params tuner_temic_pal_i_params[] = {
150         {
151                 .type   = TUNER_PARAM_TYPE_PAL,
152                 .ranges = tuner_temic_pal_i_ranges,
153                 .count  = ARRAY_SIZE(tuner_temic_pal_i_ranges),
154                 .config = 0x8e,
155         },
156 };
157
158 /* ------------ TUNER_TEMIC_4036FY5_NTSC - TEMIC NTSC ------------ */
159
160 static struct tuner_range tuner_temic_4036fy5_ntsc_ranges[] = {
161         { 16 * 157.25 /*MHz*/, 0xa0, },
162         { 16 * 463.25 /*MHz*/, 0x90, },
163         { 16 * 999.99        , 0x30, },
164 };
165
166 static struct tuner_params tuner_temic_4036fy5_ntsc_params[] = {
167         {
168                 .type   = TUNER_PARAM_TYPE_NTSC,
169                 .ranges = tuner_temic_4036fy5_ntsc_ranges,
170                 .count  = ARRAY_SIZE(tuner_temic_4036fy5_ntsc_ranges),
171                 .config = 0x8e,
172         },
173 };
174
175 /* ------------ TUNER_ALPS_TSBH1_NTSC - TEMIC NTSC ------------ */
176
177 static struct tuner_range tuner_alps_tsb_1_ranges[] = {
178         { 16 * 137.25 /*MHz*/, 0x01, },
179         { 16 * 385.25 /*MHz*/, 0x02, },
180         { 16 * 999.99        , 0x08, },
181 };
182
183 static struct tuner_params tuner_alps_tsbh1_ntsc_params[] = {
184         {
185                 .type   = TUNER_PARAM_TYPE_NTSC,
186                 .ranges = tuner_alps_tsb_1_ranges,
187                 .count  = ARRAY_SIZE(tuner_alps_tsb_1_ranges),
188                 .config = 0x8e,
189         },
190 };
191
192 /* 10-19 */
193 /* ------------ TUNER_ALPS_TSBE1_PAL - TEMIC PAL ------------ */
194
195 static struct tuner_params tuner_alps_tsb_1_params[] = {
196         {
197                 .type   = TUNER_PARAM_TYPE_PAL,
198                 .ranges = tuner_alps_tsb_1_ranges,
199                 .count  = ARRAY_SIZE(tuner_alps_tsb_1_ranges),
200                 .config = 0x8e,
201         },
202 };
203
204 /* ------------ TUNER_ALPS_TSBB5_PAL_I - Alps PAL_I ------------ */
205
206 static struct tuner_range tuner_alps_tsb_5_pal_ranges[] = {
207         { 16 * 133.25 /*MHz*/, 0x01, },
208         { 16 * 351.25 /*MHz*/, 0x02, },
209         { 16 * 999.99        , 0x08, },
210 };
211
212 static struct tuner_params tuner_alps_tsbb5_params[] = {
213         {
214                 .type   = TUNER_PARAM_TYPE_PAL,
215                 .ranges = tuner_alps_tsb_5_pal_ranges,
216                 .count  = ARRAY_SIZE(tuner_alps_tsb_5_pal_ranges),
217                 .config = 0x8e,
218         },
219 };
220
221 /* ------------ TUNER_ALPS_TSBE5_PAL - Alps PAL ------------ */
222
223 static struct tuner_params tuner_alps_tsbe5_params[] = {
224         {
225                 .type   = TUNER_PARAM_TYPE_PAL,
226                 .ranges = tuner_alps_tsb_5_pal_ranges,
227                 .count  = ARRAY_SIZE(tuner_alps_tsb_5_pal_ranges),
228                 .config = 0x8e,
229         },
230 };
231
232 /* ------------ TUNER_ALPS_TSBC5_PAL - Alps PAL ------------ */
233
234 static struct tuner_params tuner_alps_tsbc5_params[] = {
235         {
236                 .type   = TUNER_PARAM_TYPE_PAL,
237                 .ranges = tuner_alps_tsb_5_pal_ranges,
238                 .count  = ARRAY_SIZE(tuner_alps_tsb_5_pal_ranges),
239                 .config = 0x8e,
240         },
241 };
242
243 /* ------------ TUNER_TEMIC_4006FH5_PAL - TEMIC PAL ------------ */
244
245 static struct tuner_range tuner_temic_4006fh5_pal_ranges[] = {
246         { 16 * 170.00 /*MHz*/, 0xa0, },
247         { 16 * 450.00 /*MHz*/, 0x90, },
248         { 16 * 999.99        , 0x30, },
249 };
250
251 static struct tuner_params tuner_temic_4006fh5_params[] = {
252         {
253                 .type   = TUNER_PARAM_TYPE_PAL,
254                 .ranges = tuner_temic_4006fh5_pal_ranges,
255                 .count  = ARRAY_SIZE(tuner_temic_4006fh5_pal_ranges),
256                 .config = 0x8e,
257         },
258 };
259
260 /* ------------ TUNER_ALPS_TSHC6_NTSC - Alps NTSC ------------ */
261
262 static struct tuner_range tuner_alps_tshc6_ntsc_ranges[] = {
263         { 16 * 137.25 /*MHz*/, 0x14, },
264         { 16 * 385.25 /*MHz*/, 0x12, },
265         { 16 * 999.99        , 0x11, },
266 };
267
268 static struct tuner_params tuner_alps_tshc6_params[] = {
269         {
270                 .type   = TUNER_PARAM_TYPE_NTSC,
271                 .ranges = tuner_alps_tshc6_ntsc_ranges,
272                 .count  = ARRAY_SIZE(tuner_alps_tshc6_ntsc_ranges),
273                 .config = 0x8e,
274         },
275 };
276
277 /* ------------ TUNER_TEMIC_PAL_DK - TEMIC PAL ------------ */
278
279 static struct tuner_range tuner_temic_pal_dk_ranges[] = {
280         { 16 * 168.25 /*MHz*/, 0xa0, },
281         { 16 * 456.25 /*MHz*/, 0x90, },
282         { 16 * 999.99        , 0x30, },
283 };
284
285 static struct tuner_params tuner_temic_pal_dk_params[] = {
286         {
287                 .type   = TUNER_PARAM_TYPE_PAL,
288                 .ranges = tuner_temic_pal_dk_ranges,
289                 .count  = ARRAY_SIZE(tuner_temic_pal_dk_ranges),
290                 .config = 0x8e,
291         },
292 };
293
294 /* ------------ TUNER_PHILIPS_NTSC_M - Philips NTSC ------------ */
295
296 static struct tuner_range tuner_philips_ntsc_m_ranges[] = {
297         { 16 * 160.00 /*MHz*/, 0xa0, },
298         { 16 * 454.00 /*MHz*/, 0x90, },
299         { 16 * 999.99        , 0x30, },
300 };
301
302 static struct tuner_params tuner_philips_ntsc_m_params[] = {
303         {
304                 .type   = TUNER_PARAM_TYPE_NTSC,
305                 .ranges = tuner_philips_ntsc_m_ranges,
306                 .count  = ARRAY_SIZE(tuner_philips_ntsc_m_ranges),
307                 .config = 0x8e,
308         },
309 };
310
311 /* ------------ TUNER_TEMIC_4066FY5_PAL_I - TEMIC PAL_I ------------ */
312
313 static struct tuner_range tuner_temic_40x6f_5_pal_ranges[] = {
314         { 16 * 169.00 /*MHz*/, 0xa0, },
315         { 16 * 454.00 /*MHz*/, 0x90, },
316         { 16 * 999.99        , 0x30, },
317 };
318
319 static struct tuner_params tuner_temic_4066fy5_pal_i_params[] = {
320         {
321                 .type   = TUNER_PARAM_TYPE_PAL,
322                 .ranges = tuner_temic_40x6f_5_pal_ranges,
323                 .count  = ARRAY_SIZE(tuner_temic_40x6f_5_pal_ranges),
324                 .config = 0x8e,
325         },
326 };
327
328 /* ------------ TUNER_TEMIC_4006FN5_MULTI_PAL - TEMIC PAL ------------ */
329
330 static struct tuner_params tuner_temic_4006fn5_multi_params[] = {
331         {
332                 .type   = TUNER_PARAM_TYPE_PAL,
333                 .ranges = tuner_temic_40x6f_5_pal_ranges,
334                 .count  = ARRAY_SIZE(tuner_temic_40x6f_5_pal_ranges),
335                 .config = 0x8e,
336         },
337 };
338
339 /* 20-29 */
340 /* ------------ TUNER_TEMIC_4009FR5_PAL - TEMIC PAL ------------ */
341
342 static struct tuner_range tuner_temic_4009f_5_pal_ranges[] = {
343         { 16 * 141.00 /*MHz*/, 0xa0, },
344         { 16 * 464.00 /*MHz*/, 0x90, },
345         { 16 * 999.99        , 0x30, },
346 };
347
348 static struct tuner_params tuner_temic_4009f_5_params[] = {
349         {
350                 .type   = TUNER_PARAM_TYPE_PAL,
351                 .ranges = tuner_temic_4009f_5_pal_ranges,
352                 .count  = ARRAY_SIZE(tuner_temic_4009f_5_pal_ranges),
353                 .config = 0x8e,
354         },
355 };
356
357 /* ------------ TUNER_TEMIC_4039FR5_NTSC - TEMIC NTSC ------------ */
358
359 static struct tuner_range tuner_temic_4039fr5_ntsc_ranges[] = {
360         { 16 * 158.00 /*MHz*/, 0xa0, },
361         { 16 * 453.00 /*MHz*/, 0x90, },
362         { 16 * 999.99        , 0x30, },
363 };
364
365 static struct tuner_params tuner_temic_4039fr5_params[] = {
366         {
367                 .type   = TUNER_PARAM_TYPE_NTSC,
368                 .ranges = tuner_temic_4039fr5_ntsc_ranges,
369                 .count  = ARRAY_SIZE(tuner_temic_4039fr5_ntsc_ranges),
370                 .config = 0x8e,
371         },
372 };
373
374 /* ------------ TUNER_TEMIC_4046FM5 - TEMIC PAL ------------ */
375
376 static struct tuner_range tuner_temic_4046fm5_pal_ranges[] = {
377         { 16 * 169.00 /*MHz*/, 0xa0, },
378         { 16 * 454.00 /*MHz*/, 0x90, },
379         { 16 * 999.99        , 0x30, },
380 };
381
382 static struct tuner_params tuner_temic_4046fm5_params[] = {
383         {
384                 .type   = TUNER_PARAM_TYPE_PAL,
385                 .ranges = tuner_temic_4046fm5_pal_ranges,
386                 .count  = ARRAY_SIZE(tuner_temic_4046fm5_pal_ranges),
387                 .config = 0x8e,
388         },
389 };
390
391 /* ------------ TUNER_PHILIPS_PAL_DK - Philips PAL ------------ */
392
393 static struct tuner_range tuner_lg_pal_ranges[] = {
394         { 16 * 170.00 /*MHz*/, 0xa0, },
395         { 16 * 450.00 /*MHz*/, 0x90, },
396         { 16 * 999.99        , 0x30, },
397 };
398
399 static struct tuner_params tuner_philips_pal_dk_params[] = {
400         {
401                 .type   = TUNER_PARAM_TYPE_PAL,
402                 .ranges = tuner_lg_pal_ranges,
403                 .count  = ARRAY_SIZE(tuner_lg_pal_ranges),
404                 .config = 0x8e,
405         },
406 };
407
408 /* ------------ TUNER_PHILIPS_FQ1216ME - Philips PAL ------------ */
409
410 static struct tuner_params tuner_philips_fq1216me_params[] = {
411         {
412                 .type   = TUNER_PARAM_TYPE_PAL,
413                 .ranges = tuner_lg_pal_ranges,
414                 .count  = ARRAY_SIZE(tuner_lg_pal_ranges),
415                 .config = 0x8e,
416         },
417 };
418
419 /* ------------ TUNER_LG_PAL_I_FM - LGINNOTEK PAL_I ------------ */
420
421 static struct tuner_params tuner_lg_pal_i_fm_params[] = {
422         {
423                 .type   = TUNER_PARAM_TYPE_PAL,
424                 .ranges = tuner_lg_pal_ranges,
425                 .count  = ARRAY_SIZE(tuner_lg_pal_ranges),
426                 .config = 0x8e,
427         },
428 };
429
430 /* ------------ TUNER_LG_PAL_I - LGINNOTEK PAL_I ------------ */
431
432 static struct tuner_params tuner_lg_pal_i_params[] = {
433         {
434                 .type   = TUNER_PARAM_TYPE_PAL,
435                 .ranges = tuner_lg_pal_ranges,
436                 .count  = ARRAY_SIZE(tuner_lg_pal_ranges),
437                 .config = 0x8e,
438         },
439 };
440
441 /* ------------ TUNER_LG_NTSC_FM - LGINNOTEK NTSC ------------ */
442
443 static struct tuner_range tuner_lg_ntsc_fm_ranges[] = {
444         { 16 * 210.00 /*MHz*/, 0xa0, },
445         { 16 * 497.00 /*MHz*/, 0x90, },
446         { 16 * 999.99        , 0x30, },
447 };
448
449 static struct tuner_params tuner_lg_ntsc_fm_params[] = {
450         {
451                 .type   = TUNER_PARAM_TYPE_NTSC,
452                 .ranges = tuner_lg_ntsc_fm_ranges,
453                 .count  = ARRAY_SIZE(tuner_lg_ntsc_fm_ranges),
454                 .config = 0x8e,
455         },
456 };
457
458 /* ------------ TUNER_LG_PAL_FM - LGINNOTEK PAL ------------ */
459
460 static struct tuner_params tuner_lg_pal_fm_params[] = {
461         {
462                 .type   = TUNER_PARAM_TYPE_PAL,
463                 .ranges = tuner_lg_pal_ranges,
464                 .count  = ARRAY_SIZE(tuner_lg_pal_ranges),
465                 .config = 0x8e,
466         },
467 };
468
469 /* ------------ TUNER_LG_PAL - LGINNOTEK PAL ------------ */
470
471 static struct tuner_params tuner_lg_pal_params[] = {
472         {
473                 .type   = TUNER_PARAM_TYPE_PAL,
474                 .ranges = tuner_lg_pal_ranges,
475                 .count  = ARRAY_SIZE(tuner_lg_pal_ranges),
476                 .config = 0x8e,
477         },
478 };
479
480 /* 30-39 */
481 /* ------------ TUNER_TEMIC_4009FN5_MULTI_PAL_FM - TEMIC PAL ------------ */
482
483 static struct tuner_params tuner_temic_4009_fn5_multi_pal_fm_params[] = {
484         {
485                 .type   = TUNER_PARAM_TYPE_PAL,
486                 .ranges = tuner_temic_4009f_5_pal_ranges,
487                 .count  = ARRAY_SIZE(tuner_temic_4009f_5_pal_ranges),
488                 .config = 0x8e,
489         },
490 };
491
492 /* ------------ TUNER_SHARP_2U5JF5540_NTSC - SHARP NTSC ------------ */
493
494 static struct tuner_range tuner_sharp_2u5jf5540_ntsc_ranges[] = {
495         { 16 * 137.25 /*MHz*/, 0x01, },
496         { 16 * 317.25 /*MHz*/, 0x02, },
497         { 16 * 999.99        , 0x08, },
498 };
499
500 static struct tuner_params tuner_sharp_2u5jf5540_params[] = {
501         {
502                 .type   = TUNER_PARAM_TYPE_NTSC,
503                 .ranges = tuner_sharp_2u5jf5540_ntsc_ranges,
504                 .count  = ARRAY_SIZE(tuner_sharp_2u5jf5540_ntsc_ranges),
505                 .config = 0x8e,
506         },
507 };
508
509 /* ------------ TUNER_Samsung_PAL_TCPM9091PD27 - Samsung PAL ------------ */
510
511 static struct tuner_range tuner_samsung_pal_tcpm9091pd27_ranges[] = {
512         { 16 * 169 /*MHz*/, 0xa0, },
513         { 16 * 464 /*MHz*/, 0x90, },
514         { 16 * 999.99     , 0x30, },
515 };
516
517 static struct tuner_params tuner_samsung_pal_tcpm9091pd27_params[] = {
518         {
519                 .type   = TUNER_PARAM_TYPE_PAL,
520                 .ranges = tuner_samsung_pal_tcpm9091pd27_ranges,
521                 .count  = ARRAY_SIZE(tuner_samsung_pal_tcpm9091pd27_ranges),
522                 .config = 0x8e,
523         },
524 };
525
526 /* ------------ TUNER_TEMIC_4106FH5 - TEMIC PAL ------------ */
527
528 static struct tuner_params tuner_temic_4106fh5_params[] = {
529         {
530                 .type   = TUNER_PARAM_TYPE_PAL,
531                 .ranges = tuner_temic_4009f_5_pal_ranges,
532                 .count  = ARRAY_SIZE(tuner_temic_4009f_5_pal_ranges),
533                 .config = 0x8e,
534         },
535 };
536
537 /* ------------ TUNER_TEMIC_4012FY5 - TEMIC PAL ------------ */
538
539 static struct tuner_range tuner_temic_4012fy5_pal_ranges[] = {
540         { 16 * 140.25 /*MHz*/, 0x02, },
541         { 16 * 463.25 /*MHz*/, 0x04, },
542         { 16 * 999.99        , 0x01, },
543 };
544
545 static struct tuner_params tuner_temic_4012fy5_params[] = {
546         {
547                 .type   = TUNER_PARAM_TYPE_PAL,
548                 .ranges = tuner_temic_4012fy5_pal_ranges,
549                 .count  = ARRAY_SIZE(tuner_temic_4012fy5_pal_ranges),
550                 .config = 0x8e,
551         },
552 };
553
554 /* ------------ TUNER_TEMIC_4136FY5 - TEMIC NTSC ------------ */
555
556 static struct tuner_range tuner_temic_4136_fy5_ntsc_ranges[] = {
557         { 16 * 158.00 /*MHz*/, 0xa0, },
558         { 16 * 453.00 /*MHz*/, 0x90, },
559         { 16 * 999.99        , 0x30, },
560 };
561
562 static struct tuner_params tuner_temic_4136_fy5_params[] = {
563         {
564                 .type   = TUNER_PARAM_TYPE_NTSC,
565                 .ranges = tuner_temic_4136_fy5_ntsc_ranges,
566                 .count  = ARRAY_SIZE(tuner_temic_4136_fy5_ntsc_ranges),
567                 .config = 0x8e,
568         },
569 };
570
571 /* ------------ TUNER_LG_PAL_NEW_TAPC - LGINNOTEK PAL ------------ */
572
573 static struct tuner_range tuner_lg_new_tapc_ranges[] = {
574         { 16 * 170.00 /*MHz*/, 0x01, },
575         { 16 * 450.00 /*MHz*/, 0x02, },
576         { 16 * 999.99        , 0x08, },
577 };
578
579 static struct tuner_params tuner_lg_pal_new_tapc_params[] = {
580         {
581                 .type   = TUNER_PARAM_TYPE_PAL,
582                 .ranges = tuner_lg_new_tapc_ranges,
583                 .count  = ARRAY_SIZE(tuner_lg_new_tapc_ranges),
584                 .config = 0x8e,
585         },
586 };
587
588 /* ------------ TUNER_PHILIPS_FM1216ME_MK3 - Philips PAL ------------ */
589
590 static struct tuner_range tuner_fm1216me_mk3_pal_ranges[] = {
591         { 16 * 158.00 /*MHz*/, 0x01, },
592         { 16 * 442.00 /*MHz*/, 0x02, },
593         { 16 * 999.99        , 0x04, },
594 };
595
596 static struct tuner_params tuner_fm1216me_mk3_params[] = {
597         {
598                 .type   = TUNER_PARAM_TYPE_PAL,
599                 .ranges = tuner_fm1216me_mk3_pal_ranges,
600                 .count  = ARRAY_SIZE(tuner_fm1216me_mk3_pal_ranges),
601                 .config = 0x8e,
602                 .cb_first_if_lower_freq = 1,
603         },
604 };
605
606 /* ------------ TUNER_LG_NTSC_NEW_TAPC - LGINNOTEK NTSC ------------ */
607
608 static struct tuner_params tuner_lg_ntsc_new_tapc_params[] = {
609         {
610                 .type   = TUNER_PARAM_TYPE_NTSC,
611                 .ranges = tuner_lg_new_tapc_ranges,
612                 .count  = ARRAY_SIZE(tuner_lg_new_tapc_ranges),
613                 .config = 0x8e,
614         },
615 };
616
617 /* 40-49 */
618 /* ------------ TUNER_HITACHI_NTSC - HITACHI NTSC ------------ */
619
620 static struct tuner_params tuner_hitachi_ntsc_params[] = {
621         {
622                 .type   = TUNER_PARAM_TYPE_NTSC,
623                 .ranges = tuner_lg_new_tapc_ranges,
624                 .count  = ARRAY_SIZE(tuner_lg_new_tapc_ranges),
625                 .config = 0x8e,
626         },
627 };
628
629 /* ------------ TUNER_PHILIPS_PAL_MK - Philips PAL ------------ */
630
631 static struct tuner_range tuner_philips_pal_mk_pal_ranges[] = {
632         { 16 * 140.25 /*MHz*/, 0x01, },
633         { 16 * 463.25 /*MHz*/, 0xc2, },
634         { 16 * 999.99        , 0xcf, },
635 };
636
637 static struct tuner_params tuner_philips_pal_mk_params[] = {
638         {
639                 .type   = TUNER_PARAM_TYPE_PAL,
640                 .ranges = tuner_philips_pal_mk_pal_ranges,
641                 .count  = ARRAY_SIZE(tuner_philips_pal_mk_pal_ranges),
642                 .config = 0x8e,
643         },
644 };
645
646 /* ------------ TUNER_PHILIPS_ATSC - Philips ATSC ------------ */
647
648 static struct tuner_range tuner_philips_atsc_ranges[] = {
649         { 16 * 157.25 /*MHz*/, 0xa0, },
650         { 16 * 454.00 /*MHz*/, 0x90, },
651         { 16 * 999.99        , 0x30, },
652 };
653
654 static struct tuner_params tuner_philips_atsc_params[] = {
655         {
656                 .type   = TUNER_PARAM_TYPE_NTSC,
657                 .ranges = tuner_philips_atsc_ranges,
658                 .count  = ARRAY_SIZE(tuner_philips_atsc_ranges),
659                 .config = 0x8e,
660         },
661 };
662
663 /* ------------ TUNER_PHILIPS_FM1236_MK3 - Philips NTSC ------------ */
664
665 static struct tuner_range tuner_fm1236_mk3_ntsc_ranges[] = {
666         { 16 * 160.00 /*MHz*/, 0x01, },
667         { 16 * 442.00 /*MHz*/, 0x02, },
668         { 16 * 999.99        , 0x04, },
669 };
670
671 static struct tuner_params tuner_fm1236_mk3_params[] = {
672         {
673                 .type   = TUNER_PARAM_TYPE_NTSC,
674                 .ranges = tuner_fm1236_mk3_ntsc_ranges,
675                 .count  = ARRAY_SIZE(tuner_fm1236_mk3_ntsc_ranges),
676                 .config = 0x8e,
677                 .cb_first_if_lower_freq = 1,
678         },
679 };
680
681 /* ------------ TUNER_PHILIPS_4IN1 - Philips NTSC ------------ */
682
683 static struct tuner_range tuner_philips_4in1_ntsc_ranges[] = {
684         { 16 * 160.00 /*MHz*/, 0x01, },
685         { 16 * 442.00 /*MHz*/, 0x02, },
686         { 16 * 999.99        , 0x04, },
687 };
688
689 static struct tuner_params tuner_philips_4in1_params[] = {
690         {
691                 .type   = TUNER_PARAM_TYPE_NTSC,
692                 .ranges = tuner_philips_4in1_ntsc_ranges,
693                 .count  = ARRAY_SIZE(tuner_philips_4in1_ntsc_ranges),
694                 .config = 0x8e,
695         },
696 };
697
698 /* ------------ TUNER_MICROTUNE_4049FM5 - Microtune PAL ------------ */
699
700 static struct tuner_params tuner_microtune_4049_fm5_params[] = {
701         {
702                 .type   = TUNER_PARAM_TYPE_PAL,
703                 .ranges = tuner_temic_4009f_5_pal_ranges,
704                 .count  = ARRAY_SIZE(tuner_temic_4009f_5_pal_ranges),
705                 .config = 0x8e,
706         },
707 };
708
709 /* ------------ TUNER_PANASONIC_VP27 - Panasonic NTSC ------------ */
710
711 static struct tuner_range tuner_panasonic_vp27_ntsc_ranges[] = {
712         { 16 * 160.00 /*MHz*/, 0x01, },
713         { 16 * 454.00 /*MHz*/, 0x02, },
714         { 16 * 999.99        , 0x08, },
715 };
716
717 static struct tuner_params tuner_panasonic_vp27_params[] = {
718         {
719                 .type   = TUNER_PARAM_TYPE_NTSC,
720                 .ranges = tuner_panasonic_vp27_ntsc_ranges,
721                 .count  = ARRAY_SIZE(tuner_panasonic_vp27_ntsc_ranges),
722                 .config = 0xce,
723         },
724 };
725
726 /* ------------ TUNER_LG_NTSC_TAPE - LGINNOTEK NTSC ------------ */
727
728 static struct tuner_range tuner_lg_ntsc_tape_ranges[] = {
729         { 16 * 160.00 /*MHz*/, 0x01, },
730         { 16 * 442.00 /*MHz*/, 0x02, },
731         { 16 * 999.99        , 0x04, },
732 };
733
734 static struct tuner_params tuner_lg_ntsc_tape_params[] = {
735         {
736                 .type   = TUNER_PARAM_TYPE_NTSC,
737                 .ranges = tuner_lg_ntsc_tape_ranges,
738                 .count  = ARRAY_SIZE(tuner_lg_ntsc_tape_ranges),
739                 .config = 0x8e,
740         },
741 };
742
743 /* ------------ TUNER_TNF_8831BGFF - Philips PAL ------------ */
744
745 static struct tuner_range tuner_tnf_8831bgff_pal_ranges[] = {
746         { 16 * 161.25 /*MHz*/, 0xa0, },
747         { 16 * 463.25 /*MHz*/, 0x90, },
748         { 16 * 999.99        , 0x30, },
749 };
750
751 static struct tuner_params tuner_tnf_8831bgff_params[] = {
752         {
753                 .type   = TUNER_PARAM_TYPE_PAL,
754                 .ranges = tuner_tnf_8831bgff_pal_ranges,
755                 .count  = ARRAY_SIZE(tuner_tnf_8831bgff_pal_ranges),
756                 .config = 0x8e,
757         },
758 };
759
760 /* ------------ TUNER_MICROTUNE_4042FI5 - Microtune NTSC ------------ */
761
762 static struct tuner_range tuner_microtune_4042fi5_ntsc_ranges[] = {
763         { 16 * 162.00 /*MHz*/, 0xa2, },
764         { 16 * 457.00 /*MHz*/, 0x94, },
765         { 16 * 999.99        , 0x31, },
766 };
767
768 static struct tuner_params tuner_microtune_4042fi5_params[] = {
769         {
770                 .type   = TUNER_PARAM_TYPE_NTSC,
771                 .ranges = tuner_microtune_4042fi5_ntsc_ranges,
772                 .count  = ARRAY_SIZE(tuner_microtune_4042fi5_ntsc_ranges),
773                 .config = 0x8e,
774         },
775 };
776
777 /* 50-59 */
778 /* ------------ TUNER_TCL_2002N - TCL NTSC ------------ */
779
780 static struct tuner_range tuner_tcl_2002n_ntsc_ranges[] = {
781         { 16 * 172.00 /*MHz*/, 0x01, },
782         { 16 * 448.00 /*MHz*/, 0x02, },
783         { 16 * 999.99        , 0x08, },
784 };
785
786 static struct tuner_params tuner_tcl_2002n_params[] = {
787         {
788                 .type   = TUNER_PARAM_TYPE_NTSC,
789                 .ranges = tuner_tcl_2002n_ntsc_ranges,
790                 .count  = ARRAY_SIZE(tuner_tcl_2002n_ntsc_ranges),
791                 .config = 0x8e,
792                 .cb_first_if_lower_freq = 1,
793         },
794 };
795
796 /* ------------ TUNER_PHILIPS_FM1256_IH3 - Philips PAL ------------ */
797
798 static struct tuner_range tuner_philips_fm1256_ih3_pal_ranges[] = {
799         { 16 * 160.00 /*MHz*/, 0x01, },
800         { 16 * 442.00 /*MHz*/, 0x02, },
801         { 16 * 999.99        , 0x04, },
802 };
803
804 static struct tuner_params tuner_philips_fm1256_ih3_params[] = {
805         {
806                 .type   = TUNER_PARAM_TYPE_PAL,
807                 .ranges = tuner_philips_fm1256_ih3_pal_ranges,
808                 .count  = ARRAY_SIZE(tuner_philips_fm1256_ih3_pal_ranges),
809                 .config = 0x8e,
810         },
811 };
812
813 /* ------------ TUNER_THOMSON_DTT7610 - THOMSON ATSC ------------ */
814
815 static struct tuner_range tuner_thomson_dtt7610_ntsc_ranges[] = {
816         { 16 * 157.25 /*MHz*/, 0x39, },
817         { 16 * 454.00 /*MHz*/, 0x3a, },
818         { 16 * 999.99        , 0x3c, },
819 };
820
821 static struct tuner_params tuner_thomson_dtt7610_params[] = {
822         {
823                 .type   = TUNER_PARAM_TYPE_NTSC,
824                 .ranges = tuner_thomson_dtt7610_ntsc_ranges,
825                 .count  = ARRAY_SIZE(tuner_thomson_dtt7610_ntsc_ranges),
826                 .config = 0x8e,
827         },
828 };
829
830 /* ------------ TUNER_PHILIPS_FQ1286 - Philips NTSC ------------ */
831
832 static struct tuner_range tuner_philips_fq1286_ntsc_ranges[] = {
833         { 16 * 160.00 /*MHz*/, 0x41, },
834         { 16 * 454.00 /*MHz*/, 0x42, },
835         { 16 * 999.99        , 0x04, },
836 };
837
838 static struct tuner_params tuner_philips_fq1286_params[] = {
839         {
840                 .type   = TUNER_PARAM_TYPE_NTSC,
841                 .ranges = tuner_philips_fq1286_ntsc_ranges,
842                 .count  = ARRAY_SIZE(tuner_philips_fq1286_ntsc_ranges),
843                 .config = 0x8e,
844         },
845 };
846
847 /* ------------ TUNER_TCL_2002MB - TCL PAL ------------ */
848
849 static struct tuner_range tuner_tcl_2002mb_pal_ranges[] = {
850         { 16 * 170.00 /*MHz*/, 0x01, },
851         { 16 * 450.00 /*MHz*/, 0x02, },
852         { 16 * 999.99        , 0x08, },
853 };
854
855 static struct tuner_params tuner_tcl_2002mb_params[] = {
856         {
857                 .type   = TUNER_PARAM_TYPE_PAL,
858                 .ranges = tuner_tcl_2002mb_pal_ranges,
859                 .count  = ARRAY_SIZE(tuner_tcl_2002mb_pal_ranges),
860                 .config = 0xce,
861         },
862 };
863
864 /* ------------ TUNER_PHILIPS_FQ1216AME_MK4 - Philips PAL ------------ */
865
866 static struct tuner_range tuner_philips_fq12_6a___mk4_ranges[] = {
867         { 16 * 160.00 /*MHz*/, 0x01, },
868         { 16 * 442.00 /*MHz*/, 0x02, },
869         { 16 * 999.99        , 0x04, },
870 };
871
872 static struct tuner_params tuner_philips_fq1216ame_mk4_params[] = {
873         {
874                 .type   = TUNER_PARAM_TYPE_PAL,
875                 .ranges = tuner_philips_fq12_6a___mk4_ranges,
876                 .count  = ARRAY_SIZE(tuner_philips_fq12_6a___mk4_ranges),
877                 .config = 0xce,
878         },
879 };
880
881 /* ------------ TUNER_PHILIPS_FQ1236A_MK4 - Philips NTSC ------------ */
882
883 static struct tuner_params tuner_philips_fq1236a_mk4_params[] = {
884         {
885                 .type   = TUNER_PARAM_TYPE_NTSC,
886                 .ranges = tuner_philips_fq12_6a___mk4_ranges,
887                 .count  = ARRAY_SIZE(tuner_philips_fq12_6a___mk4_ranges),
888                 .config = 0x8e,
889         },
890 };
891
892 /* ------------ TUNER_YMEC_TVF_8531MF - Philips NTSC ------------ */
893
894 static struct tuner_range tuner_ymec_tvf_8531mf_ntsc_ranges[] = {
895         { 16 * 160.00 /*MHz*/, 0xa0, },
896         { 16 * 454.00 /*MHz*/, 0x90, },
897         { 16 * 999.99        , 0x30, },
898 };
899
900 static struct tuner_params tuner_ymec_tvf_8531mf_params[] = {
901         {
902                 .type   = TUNER_PARAM_TYPE_NTSC,
903                 .ranges = tuner_ymec_tvf_8531mf_ntsc_ranges,
904                 .count  = ARRAY_SIZE(tuner_ymec_tvf_8531mf_ntsc_ranges),
905                 .config = 0x8e,
906         },
907 };
908
909 /* ------------ TUNER_YMEC_TVF_5533MF - Philips NTSC ------------ */
910
911 static struct tuner_range tuner_ymec_tvf_5533mf_ntsc_ranges[] = {
912         { 16 * 160.00 /*MHz*/, 0x01, },
913         { 16 * 454.00 /*MHz*/, 0x02, },
914         { 16 * 999.99        , 0x04, },
915 };
916
917 static struct tuner_params tuner_ymec_tvf_5533mf_params[] = {
918         {
919                 .type   = TUNER_PARAM_TYPE_NTSC,
920                 .ranges = tuner_ymec_tvf_5533mf_ntsc_ranges,
921                 .count  = ARRAY_SIZE(tuner_ymec_tvf_5533mf_ntsc_ranges),
922                 .config = 0x8e,
923         },
924 };
925
926 /* 60-69 */
927 /* ------------ TUNER_THOMSON_DTT761X - THOMSON ATSC ------------ */
928 /* DTT 7611 7611A 7612 7613 7613A 7614 7615 7615A */
929
930 static struct tuner_range tuner_thomson_dtt761x_ntsc_ranges[] = {
931         { 16 * 145.25 /*MHz*/, 0x39, },
932         { 16 * 415.25 /*MHz*/, 0x3a, },
933         { 16 * 999.99        , 0x3c, },
934 };
935
936
937 static struct tuner_params tuner_thomson_dtt761x_params[] = {
938         {
939                 .type   = TUNER_PARAM_TYPE_NTSC,
940                 .ranges = tuner_thomson_dtt761x_ntsc_ranges,
941                 .count  = ARRAY_SIZE(tuner_thomson_dtt761x_ntsc_ranges),
942                 .config = 0x8e,
943         },
944 };
945
946 /* ------------ TUNER_TENA_9533_DI - Philips PAL ------------ */
947
948 static struct tuner_range tuner_tuner_tena_9533_di_pal_ranges[] = {
949         { 16 * 160.25 /*MHz*/, 0x01, },
950         { 16 * 464.25 /*MHz*/, 0x02, },
951         { 16 * 999.99        , 0x04, },
952 };
953
954 static struct tuner_params tuner_tena_9533_di_params[] = {
955         {
956                 .type   = TUNER_PARAM_TYPE_PAL,
957                 .ranges = tuner_tuner_tena_9533_di_pal_ranges,
958                 .count  = ARRAY_SIZE(tuner_tuner_tena_9533_di_pal_ranges),
959                 .config = 0x8e,
960         },
961 };
962
963 /* ------------ TUNER_PHILIPS_FMD1216ME_MK3 - Philips PAL ------------ */
964
965 static struct tuner_range tuner_philips_fmd1216me_mk3_pal_ranges[] = {
966         { 16 * 160.00 /*MHz*/, 0x51, },
967         { 16 * 442.00 /*MHz*/, 0x52, },
968         { 16 * 999.99        , 0x54, },
969 };
970
971
972 static struct tuner_params tuner_tuner_philips_fmd1216me_mk3_params[] = {
973         {
974                 .type   = TUNER_PARAM_TYPE_PAL,
975                 .ranges = tuner_philips_fmd1216me_mk3_pal_ranges,
976                 .count  = ARRAY_SIZE(tuner_philips_fmd1216me_mk3_pal_ranges),
977                 .config = 0x86,
978         },
979 };
980
981
982 /* ------------ TUNER_LG_TDVS_H062F - INFINEON ATSC ------------ */
983
984 static struct tuner_range tuner_tua6034_ntsc_ranges[] = {
985         { 16 * 160.00 /*MHz*/, 0x01 },
986         { 16 * 455.00 /*MHz*/, 0x02 },
987         { 16 * 999.99        , 0x04 },
988 };
989
990
991 static struct tuner_params tuner_tua6034_params[] = {
992         {
993                 .type   = TUNER_PARAM_TYPE_NTSC,
994                 .ranges = tuner_tua6034_ntsc_ranges,
995                 .count  = ARRAY_SIZE(tuner_tua6034_ntsc_ranges),
996                 .config = 0x8e,
997         },
998 };
999
1000 /* ------------ TUNER_YMEC_TVF66T5_B_DFF - Philips PAL ------------ */
1001
1002 static struct tuner_range tuner_ymec_tvf66t5_b_dff_pal_ranges[] = {
1003         { 16 * 160.25 /*MHz*/, 0x01, },
1004         { 16 * 464.25 /*MHz*/, 0x02, },
1005         { 16 * 999.99        , 0x08, },
1006 };
1007
1008 static struct tuner_params tuner_ymec_tvf66t5_b_dff_params[] = {
1009         {
1010                 .type   = TUNER_PARAM_TYPE_PAL,
1011                 .ranges = tuner_ymec_tvf66t5_b_dff_pal_ranges,
1012                 .count  = ARRAY_SIZE(tuner_ymec_tvf66t5_b_dff_pal_ranges),
1013                 .config = 0x8e,
1014         },
1015 };
1016
1017 /* ------------ TUNER_LG_NTSC_TALN_MINI - LGINNOTEK NTSC ------------ */
1018
1019 static struct tuner_range tuner_lg_taln_mini_ntsc_ranges[] = {
1020         { 16 * 137.25 /*MHz*/, 0x01, },
1021         { 16 * 373.25 /*MHz*/, 0x02, },
1022         { 16 * 999.99        , 0x08, },
1023 };
1024
1025 static struct tuner_params tuner_lg_taln_mini_params[] = {
1026         {
1027                 .type   = TUNER_PARAM_TYPE_NTSC,
1028                 .ranges = tuner_lg_taln_mini_ntsc_ranges,
1029                 .count  = ARRAY_SIZE(tuner_lg_taln_mini_ntsc_ranges),
1030                 .config = 0x8e,
1031         },
1032 };
1033
1034 /* ------------ TUNER_PHILIPS_TD1316 - Philips PAL ------------ */
1035
1036 static struct tuner_range tuner_philips_td1316_pal_ranges[] = {
1037         { 16 * 160.00 /*MHz*/, 0xa1, },
1038         { 16 * 442.00 /*MHz*/, 0xa2, },
1039         { 16 * 999.99        , 0xa4, },
1040 };
1041
1042 static struct tuner_params tuner_philips_td1316_params[] = {
1043         {
1044                 .type   = TUNER_PARAM_TYPE_PAL,
1045                 .ranges = tuner_philips_td1316_pal_ranges,
1046                 .count  = ARRAY_SIZE(tuner_philips_td1316_pal_ranges),
1047                 .config = 0xc8,
1048         },
1049 };
1050
1051 /* ------------ TUNER_PHILIPS_TUV1236D - Philips ATSC ------------ */
1052
1053 static struct tuner_range tuner_tuv1236d_ntsc_ranges[] = {
1054         { 16 * 157.25 /*MHz*/, 0x01, },
1055         { 16 * 454.00 /*MHz*/, 0x02, },
1056         { 16 * 999.99        , 0x04, },
1057 };
1058
1059
1060 static struct tuner_params tuner_tuner_tuv1236d_params[] = {
1061         {
1062                 .type   = TUNER_PARAM_TYPE_NTSC,
1063                 .ranges = tuner_tuv1236d_ntsc_ranges,
1064                 .count  = ARRAY_SIZE(tuner_tuv1236d_ntsc_ranges),
1065                 .config = 0xce,
1066         },
1067 };
1068
1069 /* ------------ TUNER_TNF_5335MF - Philips NTSC ------------ */
1070
1071 static struct tuner_range tuner_tnf_5335mf_ntsc_ranges[] = {
1072         { 16 * 157.25 /*MHz*/, 0x01, },
1073         { 16 * 454.00 /*MHz*/, 0x02, },
1074         { 16 * 999.99        , 0x04, },
1075 };
1076
1077 static struct tuner_params tuner_tnf_5335mf_params[] = {
1078         {
1079                 .type   = TUNER_PARAM_TYPE_NTSC,
1080                 .ranges = tuner_tnf_5335mf_ntsc_ranges,
1081                 .count  = ARRAY_SIZE(tuner_tnf_5335mf_ntsc_ranges),
1082                 .config = 0x8e,
1083         },
1084 };
1085
1086 /* 70-79 */
1087 /* ------------ TUNER_SAMSUNG_TCPN_2121P30A - Samsung NTSC ------------ */
1088
1089 static struct tuner_range tuner_samsung_tcpn_2121p30a_ntsc_ranges[] = {
1090         { 16 * 175.75 /*MHz*/, 0x01, },
1091         { 16 * 410.25 /*MHz*/, 0x02, },
1092         { 16 * 999.99        , 0x08, },
1093 };
1094
1095 static struct tuner_params tuner_samsung_tcpn_2121p30a_params[] = {
1096         {
1097                 .type   = TUNER_PARAM_TYPE_NTSC,
1098                 .ranges = tuner_samsung_tcpn_2121p30a_ntsc_ranges,
1099                 .count  = ARRAY_SIZE(tuner_samsung_tcpn_2121p30a_ntsc_ranges),
1100                 .config = 0xce,
1101         },
1102 };
1103
1104 /* --------------------------------------------------------------------- */
1105
1106 struct tunertype tuners[] = {
1107         /* 0-9 */
1108         [TUNER_TEMIC_PAL] = { /* TEMIC PAL */
1109                 .name   = "Temic PAL (4002 FH5)",
1110                 .params = tuner_temic_pal_params,
1111         },
1112         [TUNER_PHILIPS_PAL_I] = { /* Philips PAL_I */
1113                 .name   = "Philips PAL_I (FI1246 and compatibles)",
1114                 .params = tuner_philips_pal_i_params,
1115         },
1116         [TUNER_PHILIPS_NTSC] = { /* Philips NTSC */
1117                 .name   = "Philips NTSC (FI1236,FM1236 and compatibles)",
1118                 .params = tuner_philips_ntsc_params,
1119         },
1120         [TUNER_PHILIPS_SECAM] = { /* Philips SECAM */
1121                 .name   = "Philips (SECAM+PAL_BG) (FI1216MF, FM1216MF, FR1216MF)",
1122                 .params = tuner_philips_secam_params,
1123         },
1124         [TUNER_ABSENT] = { /* Tuner Absent */
1125                 .name   = "NoTuner",
1126         },
1127         [TUNER_PHILIPS_PAL] = { /* Philips PAL */
1128                 .name   = "Philips PAL_BG (FI1216 and compatibles)",
1129                 .params = tuner_philips_pal_params,
1130         },
1131         [TUNER_TEMIC_NTSC] = { /* TEMIC NTSC */
1132                 .name   = "Temic NTSC (4032 FY5)",
1133                 .params = tuner_temic_ntsc_params,
1134         },
1135         [TUNER_TEMIC_PAL_I] = { /* TEMIC PAL_I */
1136                 .name   = "Temic PAL_I (4062 FY5)",
1137                 .params = tuner_temic_pal_i_params,
1138         },
1139         [TUNER_TEMIC_4036FY5_NTSC] = { /* TEMIC NTSC */
1140                 .name   = "Temic NTSC (4036 FY5)",
1141                 .params = tuner_temic_4036fy5_ntsc_params,
1142         },
1143         [TUNER_ALPS_TSBH1_NTSC] = { /* TEMIC NTSC */
1144                 .name   = "Alps HSBH1",
1145                 .params = tuner_alps_tsbh1_ntsc_params,
1146         },
1147
1148         /* 10-19 */
1149         [TUNER_ALPS_TSBE1_PAL] = { /* TEMIC PAL */
1150                 .name   = "Alps TSBE1",
1151                 .params = tuner_alps_tsb_1_params,
1152         },
1153         [TUNER_ALPS_TSBB5_PAL_I] = { /* Alps PAL_I */
1154                 .name   = "Alps TSBB5",
1155                 .params = tuner_alps_tsbb5_params,
1156         },
1157         [TUNER_ALPS_TSBE5_PAL] = { /* Alps PAL */
1158                 .name   = "Alps TSBE5",
1159                 .params = tuner_alps_tsbe5_params,
1160         },
1161         [TUNER_ALPS_TSBC5_PAL] = { /* Alps PAL */
1162                 .name   = "Alps TSBC5",
1163                 .params = tuner_alps_tsbc5_params,
1164         },
1165         [TUNER_TEMIC_4006FH5_PAL] = { /* TEMIC PAL */
1166                 .name   = "Temic PAL_BG (4006FH5)",
1167                 .params = tuner_temic_4006fh5_params,
1168         },
1169         [TUNER_ALPS_TSHC6_NTSC] = { /* Alps NTSC */
1170                 .name   = "Alps TSCH6",
1171                 .params = tuner_alps_tshc6_params,
1172         },
1173         [TUNER_TEMIC_PAL_DK] = { /* TEMIC PAL */
1174                 .name   = "Temic PAL_DK (4016 FY5)",
1175                 .params = tuner_temic_pal_dk_params,
1176         },
1177         [TUNER_PHILIPS_NTSC_M] = { /* Philips NTSC */
1178                 .name   = "Philips NTSC_M (MK2)",
1179                 .params = tuner_philips_ntsc_m_params,
1180         },
1181         [TUNER_TEMIC_4066FY5_PAL_I] = { /* TEMIC PAL_I */
1182                 .name   = "Temic PAL_I (4066 FY5)",
1183                 .params = tuner_temic_4066fy5_pal_i_params,
1184         },
1185         [TUNER_TEMIC_4006FN5_MULTI_PAL] = { /* TEMIC PAL */
1186                 .name   = "Temic PAL* auto (4006 FN5)",
1187                 .params = tuner_temic_4006fn5_multi_params,
1188         },
1189
1190         /* 20-29 */
1191         [TUNER_TEMIC_4009FR5_PAL] = { /* TEMIC PAL */
1192                 .name   = "Temic PAL_BG (4009 FR5) or PAL_I (4069 FR5)",
1193                 .params = tuner_temic_4009f_5_params,
1194         },
1195         [TUNER_TEMIC_4039FR5_NTSC] = { /* TEMIC NTSC */
1196                 .name   = "Temic NTSC (4039 FR5)",
1197                 .params = tuner_temic_4039fr5_params,
1198         },
1199         [TUNER_TEMIC_4046FM5] = { /* TEMIC PAL */
1200                 .name   = "Temic PAL/SECAM multi (4046 FM5)",
1201                 .params = tuner_temic_4046fm5_params,
1202         },
1203         [TUNER_PHILIPS_PAL_DK] = { /* Philips PAL */
1204                 .name   = "Philips PAL_DK (FI1256 and compatibles)",
1205                 .params = tuner_philips_pal_dk_params,
1206         },
1207         [TUNER_PHILIPS_FQ1216ME] = { /* Philips PAL */
1208                 .name   = "Philips PAL/SECAM multi (FQ1216ME)",
1209                 .params = tuner_philips_fq1216me_params,
1210         },
1211         [TUNER_LG_PAL_I_FM] = { /* LGINNOTEK PAL_I */
1212                 .name   = "LG PAL_I+FM (TAPC-I001D)",
1213                 .params = tuner_lg_pal_i_fm_params,
1214         },
1215         [TUNER_LG_PAL_I] = { /* LGINNOTEK PAL_I */
1216                 .name   = "LG PAL_I (TAPC-I701D)",
1217                 .params = tuner_lg_pal_i_params,
1218         },
1219         [TUNER_LG_NTSC_FM] = { /* LGINNOTEK NTSC */
1220                 .name   = "LG NTSC+FM (TPI8NSR01F)",
1221                 .params = tuner_lg_ntsc_fm_params,
1222         },
1223         [TUNER_LG_PAL_FM] = { /* LGINNOTEK PAL */
1224                 .name   = "LG PAL_BG+FM (TPI8PSB01D)",
1225                 .params = tuner_lg_pal_fm_params,
1226         },
1227         [TUNER_LG_PAL] = { /* LGINNOTEK PAL */
1228                 .name   = "LG PAL_BG (TPI8PSB11D)",
1229                 .params = tuner_lg_pal_params,
1230         },
1231
1232         /* 30-39 */
1233         [TUNER_TEMIC_4009FN5_MULTI_PAL_FM] = { /* TEMIC PAL */
1234                 .name   = "Temic PAL* auto + FM (4009 FN5)",
1235                 .params = tuner_temic_4009_fn5_multi_pal_fm_params,
1236         },
1237         [TUNER_SHARP_2U5JF5540_NTSC] = { /* SHARP NTSC */
1238                 .name   = "SHARP NTSC_JP (2U5JF5540)",
1239                 .params = tuner_sharp_2u5jf5540_params,
1240         },
1241         [TUNER_Samsung_PAL_TCPM9091PD27] = { /* Samsung PAL */
1242                 .name   = "Samsung PAL TCPM9091PD27",
1243                 .params = tuner_samsung_pal_tcpm9091pd27_params,
1244         },
1245         [TUNER_MT2032] = { /* Microtune PAL|NTSC */
1246                 .name   = "MT20xx universal",
1247                 /* see mt20xx.c for details */ },
1248         [TUNER_TEMIC_4106FH5] = { /* TEMIC PAL */
1249                 .name   = "Temic PAL_BG (4106 FH5)",
1250                 .params = tuner_temic_4106fh5_params,
1251         },
1252         [TUNER_TEMIC_4012FY5] = { /* TEMIC PAL */
1253                 .name   = "Temic PAL_DK/SECAM_L (4012 FY5)",
1254                 .params = tuner_temic_4012fy5_params,
1255         },
1256         [TUNER_TEMIC_4136FY5] = { /* TEMIC NTSC */
1257                 .name   = "Temic NTSC (4136 FY5)",
1258                 .params = tuner_temic_4136_fy5_params,
1259         },
1260         [TUNER_LG_PAL_NEW_TAPC] = { /* LGINNOTEK PAL */
1261                 .name   = "LG PAL (newer TAPC series)",
1262                 .params = tuner_lg_pal_new_tapc_params,
1263         },
1264         [TUNER_PHILIPS_FM1216ME_MK3] = { /* Philips PAL */
1265                 .name   = "Philips PAL/SECAM multi (FM1216ME MK3)",
1266                 .params = tuner_fm1216me_mk3_params,
1267         },
1268         [TUNER_LG_NTSC_NEW_TAPC] = { /* LGINNOTEK NTSC */
1269                 .name   = "LG NTSC (newer TAPC series)",
1270                 .params = tuner_lg_ntsc_new_tapc_params,
1271         },
1272
1273         /* 40-49 */
1274         [TUNER_HITACHI_NTSC] = { /* HITACHI NTSC */
1275                 .name   = "HITACHI V7-J180AT",
1276                 .params = tuner_hitachi_ntsc_params,
1277         },
1278         [TUNER_PHILIPS_PAL_MK] = { /* Philips PAL */
1279                 .name   = "Philips PAL_MK (FI1216 MK)",
1280                 .params = tuner_philips_pal_mk_params,
1281         },
1282         [TUNER_PHILIPS_ATSC] = { /* Philips ATSC */
1283                 .name   = "Philips 1236D ATSC/NTSC dual in",
1284                 .params = tuner_philips_atsc_params,
1285         },
1286         [TUNER_PHILIPS_FM1236_MK3] = { /* Philips NTSC */
1287                 .name   = "Philips NTSC MK3 (FM1236MK3 or FM1236/F)",
1288                 .params = tuner_fm1236_mk3_params,
1289         },
1290         [TUNER_PHILIPS_4IN1] = { /* Philips NTSC */
1291                 .name   = "Philips 4 in 1 (ATI TV Wonder Pro/Conexant)",
1292                 .params = tuner_philips_4in1_params,
1293         },
1294         [TUNER_MICROTUNE_4049FM5] = { /* Microtune PAL */
1295                 .name   = "Microtune 4049 FM5",
1296                 .params = tuner_microtune_4049_fm5_params,
1297         },
1298         [TUNER_PANASONIC_VP27] = { /* Panasonic NTSC */
1299                 .name   = "Panasonic VP27s/ENGE4324D",
1300                 .params = tuner_panasonic_vp27_params,
1301         },
1302         [TUNER_LG_NTSC_TAPE] = { /* LGINNOTEK NTSC */
1303                 .name   = "LG NTSC (TAPE series)",
1304                 .params = tuner_lg_ntsc_tape_params,
1305         },
1306         [TUNER_TNF_8831BGFF] = { /* Philips PAL */
1307                 .name   = "Tenna TNF 8831 BGFF)",
1308                 .params = tuner_tnf_8831bgff_params,
1309         },
1310         [TUNER_MICROTUNE_4042FI5] = { /* Microtune NTSC */
1311                 .name   = "Microtune 4042 FI5 ATSC/NTSC dual in",
1312                 .params = tuner_microtune_4042fi5_params,
1313         },
1314
1315         /* 50-59 */
1316         [TUNER_TCL_2002N] = { /* TCL NTSC */
1317                 .name   = "TCL 2002N",
1318                 .params = tuner_tcl_2002n_params,
1319         },
1320         [TUNER_PHILIPS_FM1256_IH3] = { /* Philips PAL */
1321                 .name   = "Philips PAL/SECAM_D (FM 1256 I-H3)",
1322                 .params = tuner_philips_fm1256_ih3_params,
1323         },
1324         [TUNER_THOMSON_DTT7610] = { /* THOMSON ATSC */
1325                 .name   = "Thomson DTT 7610 (ATSC/NTSC)",
1326                 .params = tuner_thomson_dtt7610_params,
1327         },
1328         [TUNER_PHILIPS_FQ1286] = { /* Philips NTSC */
1329                 .name   = "Philips FQ1286",
1330                 .params = tuner_philips_fq1286_params,
1331         },
1332         [TUNER_PHILIPS_TDA8290] = { /* Philips PAL|NTSC */
1333                 .name   = "tda8290+75",
1334                 /* see tda8290.c for details */ },
1335         [TUNER_TCL_2002MB] = { /* TCL PAL */
1336                 .name   = "TCL 2002MB",
1337                 .params = tuner_tcl_2002mb_params,
1338         },
1339         [TUNER_PHILIPS_FQ1216AME_MK4] = { /* Philips PAL */
1340                 .name   = "Philips PAL/SECAM multi (FQ1216AME MK4)",
1341                 .params = tuner_philips_fq1216ame_mk4_params,
1342         },
1343         [TUNER_PHILIPS_FQ1236A_MK4] = { /* Philips NTSC */
1344                 .name   = "Philips FQ1236A MK4",
1345                 .params = tuner_philips_fq1236a_mk4_params,
1346         },
1347         [TUNER_YMEC_TVF_8531MF] = { /* Philips NTSC */
1348                 .name   = "Ymec TVision TVF-8531MF/8831MF/8731MF",
1349                 .params = tuner_ymec_tvf_8531mf_params,
1350         },
1351         [TUNER_YMEC_TVF_5533MF] = { /* Philips NTSC */
1352                 .name   = "Ymec TVision TVF-5533MF",
1353                 .params = tuner_ymec_tvf_5533mf_params,
1354         },
1355
1356         /* 60-69 */
1357         [TUNER_THOMSON_DTT761X] = { /* THOMSON ATSC */
1358                 /* DTT 7611 7611A 7612 7613 7613A 7614 7615 7615A */
1359                 .name   = "Thomson DTT 761X (ATSC/NTSC)",
1360                 .params = tuner_thomson_dtt761x_params,
1361         },
1362         [TUNER_TENA_9533_DI] = { /* Philips PAL */
1363                 .name   = "Tena TNF9533-D/IF/TNF9533-B/DF",
1364                 .params = tuner_tena_9533_di_params,
1365         },
1366         [TUNER_TEA5767] = { /* Philips RADIO */
1367                 .name   = "Philips TEA5767HN FM Radio",
1368                 /* see tea5767.c for details */
1369         },
1370         [TUNER_PHILIPS_FMD1216ME_MK3] = { /* Philips PAL */
1371                 .name   = "Philips FMD1216ME MK3 Hybrid Tuner",
1372                 .params = tuner_tuner_philips_fmd1216me_mk3_params,
1373         },
1374         [TUNER_LG_TDVS_H062F] = { /* LGINNOTEK ATSC */
1375                 .name   = "LG TDVS-H062F/TUA6034",
1376                 .params = tuner_tua6034_params,
1377         },
1378         [TUNER_YMEC_TVF66T5_B_DFF] = { /* Philips PAL */
1379                 .name   = "Ymec TVF66T5-B/DFF",
1380                 .params = tuner_ymec_tvf66t5_b_dff_params,
1381         },
1382         [TUNER_LG_NTSC_TALN_MINI] = { /* LGINNOTEK NTSC */
1383                 .name   = "LG NTSC (TALN mini series)",
1384                 .params = tuner_lg_taln_mini_params,
1385         },
1386         [TUNER_PHILIPS_TD1316] = { /* Philips PAL */
1387                 .name   = "Philips TD1316 Hybrid Tuner",
1388                 .params = tuner_philips_td1316_params,
1389         },
1390         [TUNER_PHILIPS_TUV1236D] = { /* Philips ATSC */
1391                 .name   = "Philips TUV1236D ATSC/NTSC dual in",
1392                 .params = tuner_tuner_tuv1236d_params,
1393         },
1394         [TUNER_TNF_5335MF] = { /* Philips NTSC */
1395                 .name   = "Tena TNF 5335 MF",
1396                 .params = tuner_tnf_5335mf_params,
1397         },
1398
1399         /* 70-79 */
1400         [TUNER_SAMSUNG_TCPN_2121P30A] = { /* Samsung NTSC */
1401                 .name   = "Samsung TCPN 2121P30A",
1402                 .params = tuner_samsung_tcpn_2121p30a_params,
1403         },
1404 };
1405
1406 unsigned const int tuner_count = ARRAY_SIZE(tuners);