V4L/DVB (3291): Added support for xc3028 analogue tuner (Hauppauge HVR900, Terratec...
[safe/jmp/linux-2.6] / 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 * 160.00 /*MHz*/, 0x8e, 0x01 },
881         { 16 * 455.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_mini_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_params tuner_lg_taln_mini_params[] = {
913         {
914                 .type   = TUNER_PARAM_TYPE_NTSC,
915                 .ranges = tuner_lg_taln_mini_ntsc_ranges,
916                 .count  = ARRAY_SIZE(tuner_lg_taln_mini_ntsc_ranges),
917         },
918 };
919
920 /* ------------ TUNER_PHILIPS_TD1316 - Philips PAL ------------ */
921
922 static struct tuner_range tuner_philips_td1316_pal_ranges[] = {
923         { 16 * 160.00 /*MHz*/, 0xc8, 0xa1, },
924         { 16 * 442.00 /*MHz*/, 0xc8, 0xa2, },
925         { 16 * 999.99        , 0xc8, 0xa4, },
926 };
927
928 static struct tuner_params tuner_philips_td1316_params[] = {
929         {
930                 .type   = TUNER_PARAM_TYPE_PAL,
931                 .ranges = tuner_philips_td1316_pal_ranges,
932                 .count  = ARRAY_SIZE(tuner_philips_td1316_pal_ranges),
933         },
934 };
935
936 /* ------------ TUNER_PHILIPS_TUV1236D - Philips ATSC ------------ */
937
938 static struct tuner_range tuner_tuv1236d_ntsc_ranges[] = {
939         { 16 * 157.25 /*MHz*/, 0xce, 0x01, },
940         { 16 * 454.00 /*MHz*/, 0xce, 0x02, },
941         { 16 * 999.99        , 0xce, 0x04, },
942 };
943
944
945 static struct tuner_params tuner_tuv1236d_params[] = {
946         {
947                 .type   = TUNER_PARAM_TYPE_NTSC,
948                 .ranges = tuner_tuv1236d_ntsc_ranges,
949                 .count  = ARRAY_SIZE(tuner_tuv1236d_ntsc_ranges),
950         },
951 };
952
953 /* ------------ TUNER_TNF_5335MF - Philips NTSC ------------ */
954
955 static struct tuner_range tuner_tnf_5335mf_ntsc_ranges[] = {
956         { 16 * 157.25 /*MHz*/, 0x8e, 0x01, },
957         { 16 * 454.00 /*MHz*/, 0x8e, 0x02, },
958         { 16 * 999.99        , 0x8e, 0x04, },
959 };
960
961 static struct tuner_params tuner_tnf_5335mf_params[] = {
962         {
963                 .type   = TUNER_PARAM_TYPE_NTSC,
964                 .ranges = tuner_tnf_5335mf_ntsc_ranges,
965                 .count  = ARRAY_SIZE(tuner_tnf_5335mf_ntsc_ranges),
966         },
967 };
968
969 /* 70-79 */
970 /* ------------ TUNER_SAMSUNG_TCPN_2121P30A - Samsung NTSC ------------ */
971
972 static struct tuner_range tuner_samsung_tcpn_2121p30a_ntsc_ranges[] = {
973         { 16 * 130.00 /*MHz*/, 0xce, 0x01, },
974         { 16 * 364.50 /*MHz*/, 0xce, 0x02, },
975         { 16 * 999.99        , 0xce, 0x08, },
976 };
977
978 static struct tuner_params tuner_samsung_tcpn_2121p30a_params[] = {
979         {
980                 .type   = TUNER_PARAM_TYPE_NTSC,
981                 .ranges = tuner_samsung_tcpn_2121p30a_ntsc_ranges,
982                 .count  = ARRAY_SIZE(tuner_samsung_tcpn_2121p30a_ntsc_ranges),
983         },
984 };
985
986 /* ------------ TUNER_XCEIVE_XC3028 - Xceive xc3028 ------------ */
987
988 static struct tuner_range tuner_xceive_xc3028_ranges[] = {
989         { 16 * 140.25 /*MHz*/, 0x02, },
990         { 16 * 463.25 /*MHz*/, 0x04, },
991         { 16 * 999.99        , 0x01, },
992 };
993
994 static struct tuner_params tuner_xceive_xc3028_params[] = {
995         {
996                 .type   = TUNER_XCEIVE_XC3028,
997                 .ranges = tuner_xceive_xc3028_ranges,
998                 .count  = ARRAY_SIZE(tuner_xceive_xc3028_ranges),
999         },
1000 };
1001
1002
1003 /* --------------------------------------------------------------------- */
1004
1005 struct tunertype tuners[] = {
1006         /* 0-9 */
1007         [TUNER_TEMIC_PAL] = { /* TEMIC PAL */
1008                 .name   = "Temic PAL (4002 FH5)",
1009                 .params = tuner_temic_pal_params,
1010                 .count  = ARRAY_SIZE(tuner_temic_pal_params),
1011         },
1012         [TUNER_PHILIPS_PAL_I] = { /* Philips PAL_I */
1013                 .name   = "Philips PAL_I (FI1246 and compatibles)",
1014                 .params = tuner_philips_pal_i_params,
1015                 .count  = ARRAY_SIZE(tuner_philips_pal_i_params),
1016         },
1017         [TUNER_PHILIPS_NTSC] = { /* Philips NTSC */
1018                 .name   = "Philips NTSC (FI1236,FM1236 and compatibles)",
1019                 .params = tuner_philips_ntsc_params,
1020                 .count  = ARRAY_SIZE(tuner_philips_ntsc_params),
1021         },
1022         [TUNER_PHILIPS_SECAM] = { /* Philips SECAM */
1023                 .name   = "Philips (SECAM+PAL_BG) (FI1216MF, FM1216MF, FR1216MF)",
1024                 .params = tuner_philips_secam_params,
1025                 .count  = ARRAY_SIZE(tuner_philips_secam_params),
1026         },
1027         [TUNER_ABSENT] = { /* Tuner Absent */
1028                 .name   = "NoTuner",
1029         },
1030         [TUNER_PHILIPS_PAL] = { /* Philips PAL */
1031                 .name   = "Philips PAL_BG (FI1216 and compatibles)",
1032                 .params = tuner_philips_pal_params,
1033                 .count  = ARRAY_SIZE(tuner_philips_pal_params),
1034         },
1035         [TUNER_TEMIC_NTSC] = { /* TEMIC NTSC */
1036                 .name   = "Temic NTSC (4032 FY5)",
1037                 .params = tuner_temic_ntsc_params,
1038                 .count  = ARRAY_SIZE(tuner_temic_ntsc_params),
1039         },
1040         [TUNER_TEMIC_PAL_I] = { /* TEMIC PAL_I */
1041                 .name   = "Temic PAL_I (4062 FY5)",
1042                 .params = tuner_temic_pal_i_params,
1043                 .count  = ARRAY_SIZE(tuner_temic_pal_i_params),
1044         },
1045         [TUNER_TEMIC_4036FY5_NTSC] = { /* TEMIC NTSC */
1046                 .name   = "Temic NTSC (4036 FY5)",
1047                 .params = tuner_temic_4036fy5_ntsc_params,
1048                 .count  = ARRAY_SIZE(tuner_temic_4036fy5_ntsc_params),
1049         },
1050         [TUNER_ALPS_TSBH1_NTSC] = { /* TEMIC NTSC */
1051                 .name   = "Alps HSBH1",
1052                 .params = tuner_alps_tsbh1_ntsc_params,
1053                 .count  = ARRAY_SIZE(tuner_alps_tsbh1_ntsc_params),
1054         },
1055
1056         /* 10-19 */
1057         [TUNER_ALPS_TSBE1_PAL] = { /* TEMIC PAL */
1058                 .name   = "Alps TSBE1",
1059                 .params = tuner_alps_tsb_1_params,
1060                 .count  = ARRAY_SIZE(tuner_alps_tsb_1_params),
1061         },
1062         [TUNER_ALPS_TSBB5_PAL_I] = { /* Alps PAL_I */
1063                 .name   = "Alps TSBB5",
1064                 .params = tuner_alps_tsbb5_params,
1065                 .count  = ARRAY_SIZE(tuner_alps_tsbb5_params),
1066         },
1067         [TUNER_ALPS_TSBE5_PAL] = { /* Alps PAL */
1068                 .name   = "Alps TSBE5",
1069                 .params = tuner_alps_tsbe5_params,
1070                 .count  = ARRAY_SIZE(tuner_alps_tsbe5_params),
1071         },
1072         [TUNER_ALPS_TSBC5_PAL] = { /* Alps PAL */
1073                 .name   = "Alps TSBC5",
1074                 .params = tuner_alps_tsbc5_params,
1075                 .count  = ARRAY_SIZE(tuner_alps_tsbc5_params),
1076         },
1077         [TUNER_TEMIC_4006FH5_PAL] = { /* TEMIC PAL */
1078                 .name   = "Temic PAL_BG (4006FH5)",
1079                 .params = tuner_temic_4006fh5_params,
1080                 .count  = ARRAY_SIZE(tuner_temic_4006fh5_params),
1081         },
1082         [TUNER_ALPS_TSHC6_NTSC] = { /* Alps NTSC */
1083                 .name   = "Alps TSCH6",
1084                 .params = tuner_alps_tshc6_params,
1085                 .count  = ARRAY_SIZE(tuner_alps_tshc6_params),
1086         },
1087         [TUNER_TEMIC_PAL_DK] = { /* TEMIC PAL */
1088                 .name   = "Temic PAL_DK (4016 FY5)",
1089                 .params = tuner_temic_pal_dk_params,
1090                 .count  = ARRAY_SIZE(tuner_temic_pal_dk_params),
1091         },
1092         [TUNER_PHILIPS_NTSC_M] = { /* Philips NTSC */
1093                 .name   = "Philips NTSC_M (MK2)",
1094                 .params = tuner_philips_ntsc_m_params,
1095                 .count  = ARRAY_SIZE(tuner_philips_ntsc_m_params),
1096         },
1097         [TUNER_TEMIC_4066FY5_PAL_I] = { /* TEMIC PAL_I */
1098                 .name   = "Temic PAL_I (4066 FY5)",
1099                 .params = tuner_temic_4066fy5_pal_i_params,
1100                 .count  = ARRAY_SIZE(tuner_temic_4066fy5_pal_i_params),
1101         },
1102         [TUNER_TEMIC_4006FN5_MULTI_PAL] = { /* TEMIC PAL */
1103                 .name   = "Temic PAL* auto (4006 FN5)",
1104                 .params = tuner_temic_4006fn5_multi_params,
1105                 .count  = ARRAY_SIZE(tuner_temic_4006fn5_multi_params),
1106         },
1107
1108         /* 20-29 */
1109         [TUNER_TEMIC_4009FR5_PAL] = { /* TEMIC PAL */
1110                 .name   = "Temic PAL_BG (4009 FR5) or PAL_I (4069 FR5)",
1111                 .params = tuner_temic_4009f_5_params,
1112                 .count  = ARRAY_SIZE(tuner_temic_4009f_5_params),
1113         },
1114         [TUNER_TEMIC_4039FR5_NTSC] = { /* TEMIC NTSC */
1115                 .name   = "Temic NTSC (4039 FR5)",
1116                 .params = tuner_temic_4039fr5_params,
1117                 .count  = ARRAY_SIZE(tuner_temic_4039fr5_params),
1118         },
1119         [TUNER_TEMIC_4046FM5] = { /* TEMIC PAL */
1120                 .name   = "Temic PAL/SECAM multi (4046 FM5)",
1121                 .params = tuner_temic_4046fm5_params,
1122                 .count  = ARRAY_SIZE(tuner_temic_4046fm5_params),
1123         },
1124         [TUNER_PHILIPS_PAL_DK] = { /* Philips PAL */
1125                 .name   = "Philips PAL_DK (FI1256 and compatibles)",
1126                 .params = tuner_philips_pal_dk_params,
1127                 .count  = ARRAY_SIZE(tuner_philips_pal_dk_params),
1128         },
1129         [TUNER_PHILIPS_FQ1216ME] = { /* Philips PAL */
1130                 .name   = "Philips PAL/SECAM multi (FQ1216ME)",
1131                 .params = tuner_philips_fq1216me_params,
1132                 .count  = ARRAY_SIZE(tuner_philips_fq1216me_params),
1133         },
1134         [TUNER_LG_PAL_I_FM] = { /* LGINNOTEK PAL_I */
1135                 .name   = "LG PAL_I+FM (TAPC-I001D)",
1136                 .params = tuner_lg_pal_i_fm_params,
1137                 .count  = ARRAY_SIZE(tuner_lg_pal_i_fm_params),
1138         },
1139         [TUNER_LG_PAL_I] = { /* LGINNOTEK PAL_I */
1140                 .name   = "LG PAL_I (TAPC-I701D)",
1141                 .params = tuner_lg_pal_i_params,
1142                 .count  = ARRAY_SIZE(tuner_lg_pal_i_params),
1143         },
1144         [TUNER_LG_NTSC_FM] = { /* LGINNOTEK NTSC */
1145                 .name   = "LG NTSC+FM (TPI8NSR01F)",
1146                 .params = tuner_lg_ntsc_fm_params,
1147                 .count  = ARRAY_SIZE(tuner_lg_ntsc_fm_params),
1148         },
1149         [TUNER_LG_PAL_FM] = { /* LGINNOTEK PAL */
1150                 .name   = "LG PAL_BG+FM (TPI8PSB01D)",
1151                 .params = tuner_lg_pal_fm_params,
1152                 .count  = ARRAY_SIZE(tuner_lg_pal_fm_params),
1153         },
1154         [TUNER_LG_PAL] = { /* LGINNOTEK PAL */
1155                 .name   = "LG PAL_BG (TPI8PSB11D)",
1156                 .params = tuner_lg_pal_params,
1157                 .count  = ARRAY_SIZE(tuner_lg_pal_params),
1158         },
1159
1160         /* 30-39 */
1161         [TUNER_TEMIC_4009FN5_MULTI_PAL_FM] = { /* TEMIC PAL */
1162                 .name   = "Temic PAL* auto + FM (4009 FN5)",
1163                 .params = tuner_temic_4009_fn5_multi_pal_fm_params,
1164                 .count  = ARRAY_SIZE(tuner_temic_4009_fn5_multi_pal_fm_params),
1165         },
1166         [TUNER_SHARP_2U5JF5540_NTSC] = { /* SHARP NTSC */
1167                 .name   = "SHARP NTSC_JP (2U5JF5540)",
1168                 .params = tuner_sharp_2u5jf5540_params,
1169                 .count  = ARRAY_SIZE(tuner_sharp_2u5jf5540_params),
1170         },
1171         [TUNER_Samsung_PAL_TCPM9091PD27] = { /* Samsung PAL */
1172                 .name   = "Samsung PAL TCPM9091PD27",
1173                 .params = tuner_samsung_pal_tcpm9091pd27_params,
1174                 .count  = ARRAY_SIZE(tuner_samsung_pal_tcpm9091pd27_params),
1175         },
1176         [TUNER_MT2032] = { /* Microtune PAL|NTSC */
1177                 .name   = "MT20xx universal",
1178                 /* see mt20xx.c for details */ },
1179         [TUNER_TEMIC_4106FH5] = { /* TEMIC PAL */
1180                 .name   = "Temic PAL_BG (4106 FH5)",
1181                 .params = tuner_temic_4106fh5_params,
1182                 .count  = ARRAY_SIZE(tuner_temic_4106fh5_params),
1183         },
1184         [TUNER_TEMIC_4012FY5] = { /* TEMIC PAL */
1185                 .name   = "Temic PAL_DK/SECAM_L (4012 FY5)",
1186                 .params = tuner_temic_4012fy5_params,
1187                 .count  = ARRAY_SIZE(tuner_temic_4012fy5_params),
1188         },
1189         [TUNER_TEMIC_4136FY5] = { /* TEMIC NTSC */
1190                 .name   = "Temic NTSC (4136 FY5)",
1191                 .params = tuner_temic_4136_fy5_params,
1192                 .count  = ARRAY_SIZE(tuner_temic_4136_fy5_params),
1193         },
1194         [TUNER_LG_PAL_NEW_TAPC] = { /* LGINNOTEK PAL */
1195                 .name   = "LG PAL (newer TAPC series)",
1196                 .params = tuner_lg_pal_new_tapc_params,
1197                 .count  = ARRAY_SIZE(tuner_lg_pal_new_tapc_params),
1198         },
1199         [TUNER_PHILIPS_FM1216ME_MK3] = { /* Philips PAL */
1200                 .name   = "Philips PAL/SECAM multi (FM1216ME MK3)",
1201                 .params = tuner_fm1216me_mk3_params,
1202                 .count  = ARRAY_SIZE(tuner_fm1216me_mk3_params),
1203         },
1204         [TUNER_LG_NTSC_NEW_TAPC] = { /* LGINNOTEK NTSC */
1205                 .name   = "LG NTSC (newer TAPC series)",
1206                 .params = tuner_lg_ntsc_new_tapc_params,
1207                 .count  = ARRAY_SIZE(tuner_lg_ntsc_new_tapc_params),
1208         },
1209
1210         /* 40-49 */
1211         [TUNER_HITACHI_NTSC] = { /* HITACHI NTSC */
1212                 .name   = "HITACHI V7-J180AT",
1213                 .params = tuner_hitachi_ntsc_params,
1214                 .count  = ARRAY_SIZE(tuner_hitachi_ntsc_params),
1215         },
1216         [TUNER_PHILIPS_PAL_MK] = { /* Philips PAL */
1217                 .name   = "Philips PAL_MK (FI1216 MK)",
1218                 .params = tuner_philips_pal_mk_params,
1219                 .count  = ARRAY_SIZE(tuner_philips_pal_mk_params),
1220         },
1221         [TUNER_PHILIPS_ATSC] = { /* Philips ATSC */
1222                 .name   = "Philips 1236D ATSC/NTSC dual in",
1223                 .params = tuner_philips_atsc_params,
1224                 .count  = ARRAY_SIZE(tuner_philips_atsc_params),
1225         },
1226         [TUNER_PHILIPS_FM1236_MK3] = { /* Philips NTSC */
1227                 .name   = "Philips NTSC MK3 (FM1236MK3 or FM1236/F)",
1228                 .params = tuner_fm1236_mk3_params,
1229                 .count  = ARRAY_SIZE(tuner_fm1236_mk3_params),
1230         },
1231         [TUNER_PHILIPS_4IN1] = { /* Philips NTSC */
1232                 .name   = "Philips 4 in 1 (ATI TV Wonder Pro/Conexant)",
1233                 .params = tuner_philips_4in1_params,
1234                 .count  = ARRAY_SIZE(tuner_philips_4in1_params),
1235         },
1236         [TUNER_MICROTUNE_4049FM5] = { /* Microtune PAL */
1237                 .name   = "Microtune 4049 FM5",
1238                 .params = tuner_microtune_4049_fm5_params,
1239                 .count  = ARRAY_SIZE(tuner_microtune_4049_fm5_params),
1240         },
1241         [TUNER_PANASONIC_VP27] = { /* Panasonic NTSC */
1242                 .name   = "Panasonic VP27s/ENGE4324D",
1243                 .params = tuner_panasonic_vp27_params,
1244                 .count  = ARRAY_SIZE(tuner_panasonic_vp27_params),
1245         },
1246         [TUNER_LG_NTSC_TAPE] = { /* LGINNOTEK NTSC */
1247                 .name   = "LG NTSC (TAPE series)",
1248                 .params = tuner_lg_ntsc_tape_params,
1249                 .count  = ARRAY_SIZE(tuner_lg_ntsc_tape_params),
1250         },
1251         [TUNER_TNF_8831BGFF] = { /* Philips PAL */
1252                 .name   = "Tenna TNF 8831 BGFF)",
1253                 .params = tuner_tnf_8831bgff_params,
1254                 .count  = ARRAY_SIZE(tuner_tnf_8831bgff_params),
1255         },
1256         [TUNER_MICROTUNE_4042FI5] = { /* Microtune NTSC */
1257                 .name   = "Microtune 4042 FI5 ATSC/NTSC dual in",
1258                 .params = tuner_microtune_4042fi5_params,
1259                 .count  = ARRAY_SIZE(tuner_microtune_4042fi5_params),
1260         },
1261
1262         /* 50-59 */
1263         [TUNER_TCL_2002N] = { /* TCL NTSC */
1264                 .name   = "TCL 2002N",
1265                 .params = tuner_tcl_2002n_params,
1266                 .count  = ARRAY_SIZE(tuner_tcl_2002n_params),
1267         },
1268         [TUNER_PHILIPS_FM1256_IH3] = { /* Philips PAL */
1269                 .name   = "Philips PAL/SECAM_D (FM 1256 I-H3)",
1270                 .params = tuner_philips_fm1256_ih3_params,
1271                 .count  = ARRAY_SIZE(tuner_philips_fm1256_ih3_params),
1272         },
1273         [TUNER_THOMSON_DTT7610] = { /* THOMSON ATSC */
1274                 .name   = "Thomson DTT 7610 (ATSC/NTSC)",
1275                 .params = tuner_thomson_dtt7610_params,
1276                 .count  = ARRAY_SIZE(tuner_thomson_dtt7610_params),
1277         },
1278         [TUNER_PHILIPS_FQ1286] = { /* Philips NTSC */
1279                 .name   = "Philips FQ1286",
1280                 .params = tuner_philips_fq1286_params,
1281                 .count  = ARRAY_SIZE(tuner_philips_fq1286_params),
1282         },
1283         [TUNER_PHILIPS_TDA8290] = { /* Philips PAL|NTSC */
1284                 .name   = "tda8290+75",
1285                 /* see tda8290.c for details */ },
1286         [TUNER_TCL_2002MB] = { /* TCL PAL */
1287                 .name   = "TCL 2002MB",
1288                 .params = tuner_tcl_2002mb_params,
1289                 .count  = ARRAY_SIZE(tuner_tcl_2002mb_params),
1290         },
1291         [TUNER_PHILIPS_FQ1216AME_MK4] = { /* Philips PAL */
1292                 .name   = "Philips PAL/SECAM multi (FQ1216AME MK4)",
1293                 .params = tuner_philips_fq1216ame_mk4_params,
1294                 .count  = ARRAY_SIZE(tuner_philips_fq1216ame_mk4_params),
1295         },
1296         [TUNER_PHILIPS_FQ1236A_MK4] = { /* Philips NTSC */
1297                 .name   = "Philips FQ1236A MK4",
1298                 .params = tuner_philips_fq1236a_mk4_params,
1299                 .count  = ARRAY_SIZE(tuner_philips_fq1236a_mk4_params),
1300         },
1301         [TUNER_YMEC_TVF_8531MF] = { /* Philips NTSC */
1302                 .name   = "Ymec TVision TVF-8531MF/8831MF/8731MF",
1303                 .params = tuner_ymec_tvf_8531mf_params,
1304                 .count  = ARRAY_SIZE(tuner_ymec_tvf_8531mf_params),
1305         },
1306         [TUNER_YMEC_TVF_5533MF] = { /* Philips NTSC */
1307                 .name   = "Ymec TVision TVF-5533MF",
1308                 .params = tuner_ymec_tvf_5533mf_params,
1309                 .count  = ARRAY_SIZE(tuner_ymec_tvf_5533mf_params),
1310         },
1311
1312         /* 60-69 */
1313         [TUNER_THOMSON_DTT761X] = { /* THOMSON ATSC */
1314                 /* DTT 7611 7611A 7612 7613 7613A 7614 7615 7615A */
1315                 .name   = "Thomson DTT 761X (ATSC/NTSC)",
1316                 .params = tuner_thomson_dtt761x_params,
1317                 .count  = ARRAY_SIZE(tuner_thomson_dtt761x_params),
1318         },
1319         [TUNER_TENA_9533_DI] = { /* Philips PAL */
1320                 .name   = "Tena TNF9533-D/IF/TNF9533-B/DF",
1321                 .params = tuner_tena_9533_di_params,
1322                 .count  = ARRAY_SIZE(tuner_tena_9533_di_params),
1323         },
1324         [TUNER_TEA5767] = { /* Philips RADIO */
1325                 .name   = "Philips TEA5767HN FM Radio",
1326                 /* see tea5767.c for details */
1327         },
1328         [TUNER_PHILIPS_FMD1216ME_MK3] = { /* Philips PAL */
1329                 .name   = "Philips FMD1216ME MK3 Hybrid Tuner",
1330                 .params = tuner_philips_fmd1216me_mk3_params,
1331                 .count  = ARRAY_SIZE(tuner_philips_fmd1216me_mk3_params),
1332         },
1333         [TUNER_LG_TDVS_H062F] = { /* LGINNOTEK ATSC */
1334                 .name   = "LG TDVS-H062F/TUA6034",
1335                 .params = tuner_tua6034_params,
1336                 .count  = ARRAY_SIZE(tuner_tua6034_params),
1337         },
1338         [TUNER_YMEC_TVF66T5_B_DFF] = { /* Philips PAL */
1339                 .name   = "Ymec TVF66T5-B/DFF",
1340                 .params = tuner_ymec_tvf66t5_b_dff_params,
1341                 .count  = ARRAY_SIZE(tuner_ymec_tvf66t5_b_dff_params),
1342         },
1343         [TUNER_LG_NTSC_TALN_MINI] = { /* LGINNOTEK NTSC */
1344                 .name   = "LG NTSC (TALN mini series)",
1345                 .params = tuner_lg_taln_mini_params,
1346                 .count  = ARRAY_SIZE(tuner_lg_taln_mini_params),
1347         },
1348         [TUNER_PHILIPS_TD1316] = { /* Philips PAL */
1349                 .name   = "Philips TD1316 Hybrid Tuner",
1350                 .params = tuner_philips_td1316_params,
1351                 .count  = ARRAY_SIZE(tuner_philips_td1316_params),
1352         },
1353         [TUNER_PHILIPS_TUV1236D] = { /* Philips ATSC */
1354                 .name   = "Philips TUV1236D ATSC/NTSC dual in",
1355                 .params = tuner_tuv1236d_params,
1356                 .count  = ARRAY_SIZE(tuner_tuv1236d_params),
1357         },
1358         [TUNER_TNF_5335MF] = { /* Philips NTSC */
1359                 .name   = "Tena TNF 5335 MF",
1360                 .params = tuner_tnf_5335mf_params,
1361                 .count  = ARRAY_SIZE(tuner_tnf_5335mf_params),
1362         },
1363
1364         /* 70-79 */
1365         [TUNER_SAMSUNG_TCPN_2121P30A] = { /* Samsung NTSC */
1366                 .name   = "Samsung TCPN 2121P30A",
1367                 .params = tuner_samsung_tcpn_2121p30a_params,
1368                 .count  = ARRAY_SIZE(tuner_samsung_tcpn_2121p30a_params),
1369         },
1370         [TUNER_XCEIVE_XC3028] = { /* Xceive 3028 */
1371                 .name   = "Xceive xc3028",
1372                 .params = tuner_xceive_xc3028_params,
1373         },
1374 };
1375
1376 unsigned const int tuner_count = ARRAY_SIZE(tuners);