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