Merge rsync://rsync.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
[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_H06XF - LG INNOTEK / 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_lg_tdvs_h06xf_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 /* ------------ TUNER_SAMSUNG_TCPG_6121P30A - Samsung PAL ------------ */
1028
1029 static struct tuner_range tuner_samsung_tcpg_6121p30a_pal_ranges[] = {
1030         { 16 * 146.25 /*MHz*/, 0xce, 0x01, },
1031         { 16 * 428.50 /*MHz*/, 0xce, 0x02, },
1032         { 16 * 999.99        , 0xce, 0x08, },
1033 };
1034
1035 static struct tuner_params tuner_samsung_tcpg_6121p30a_params[] = {
1036         {
1037                 .type   = TUNER_PARAM_TYPE_PAL,
1038                 .ranges = tuner_samsung_tcpg_6121p30a_pal_ranges,
1039                 .count  = ARRAY_SIZE(tuner_samsung_tcpg_6121p30a_pal_ranges),
1040         },
1041 };
1042
1043 /* --------------------------------------------------------------------- */
1044
1045 struct tunertype tuners[] = {
1046         /* 0-9 */
1047         [TUNER_TEMIC_PAL] = { /* TEMIC PAL */
1048                 .name   = "Temic PAL (4002 FH5)",
1049                 .params = tuner_temic_pal_params,
1050                 .count  = ARRAY_SIZE(tuner_temic_pal_params),
1051         },
1052         [TUNER_PHILIPS_PAL_I] = { /* Philips PAL_I */
1053                 .name   = "Philips PAL_I (FI1246 and compatibles)",
1054                 .params = tuner_philips_pal_i_params,
1055                 .count  = ARRAY_SIZE(tuner_philips_pal_i_params),
1056         },
1057         [TUNER_PHILIPS_NTSC] = { /* Philips NTSC */
1058                 .name   = "Philips NTSC (FI1236,FM1236 and compatibles)",
1059                 .params = tuner_philips_ntsc_params,
1060                 .count  = ARRAY_SIZE(tuner_philips_ntsc_params),
1061         },
1062         [TUNER_PHILIPS_SECAM] = { /* Philips SECAM */
1063                 .name   = "Philips (SECAM+PAL_BG) (FI1216MF, FM1216MF, FR1216MF)",
1064                 .params = tuner_philips_secam_params,
1065                 .count  = ARRAY_SIZE(tuner_philips_secam_params),
1066         },
1067         [TUNER_ABSENT] = { /* Tuner Absent */
1068                 .name   = "NoTuner",
1069         },
1070         [TUNER_PHILIPS_PAL] = { /* Philips PAL */
1071                 .name   = "Philips PAL_BG (FI1216 and compatibles)",
1072                 .params = tuner_philips_pal_params,
1073                 .count  = ARRAY_SIZE(tuner_philips_pal_params),
1074         },
1075         [TUNER_TEMIC_NTSC] = { /* TEMIC NTSC */
1076                 .name   = "Temic NTSC (4032 FY5)",
1077                 .params = tuner_temic_ntsc_params,
1078                 .count  = ARRAY_SIZE(tuner_temic_ntsc_params),
1079         },
1080         [TUNER_TEMIC_PAL_I] = { /* TEMIC PAL_I */
1081                 .name   = "Temic PAL_I (4062 FY5)",
1082                 .params = tuner_temic_pal_i_params,
1083                 .count  = ARRAY_SIZE(tuner_temic_pal_i_params),
1084         },
1085         [TUNER_TEMIC_4036FY5_NTSC] = { /* TEMIC NTSC */
1086                 .name   = "Temic NTSC (4036 FY5)",
1087                 .params = tuner_temic_4036fy5_ntsc_params,
1088                 .count  = ARRAY_SIZE(tuner_temic_4036fy5_ntsc_params),
1089         },
1090         [TUNER_ALPS_TSBH1_NTSC] = { /* TEMIC NTSC */
1091                 .name   = "Alps HSBH1",
1092                 .params = tuner_alps_tsbh1_ntsc_params,
1093                 .count  = ARRAY_SIZE(tuner_alps_tsbh1_ntsc_params),
1094         },
1095
1096         /* 10-19 */
1097         [TUNER_ALPS_TSBE1_PAL] = { /* TEMIC PAL */
1098                 .name   = "Alps TSBE1",
1099                 .params = tuner_alps_tsb_1_params,
1100                 .count  = ARRAY_SIZE(tuner_alps_tsb_1_params),
1101         },
1102         [TUNER_ALPS_TSBB5_PAL_I] = { /* Alps PAL_I */
1103                 .name   = "Alps TSBB5",
1104                 .params = tuner_alps_tsbb5_params,
1105                 .count  = ARRAY_SIZE(tuner_alps_tsbb5_params),
1106         },
1107         [TUNER_ALPS_TSBE5_PAL] = { /* Alps PAL */
1108                 .name   = "Alps TSBE5",
1109                 .params = tuner_alps_tsbe5_params,
1110                 .count  = ARRAY_SIZE(tuner_alps_tsbe5_params),
1111         },
1112         [TUNER_ALPS_TSBC5_PAL] = { /* Alps PAL */
1113                 .name   = "Alps TSBC5",
1114                 .params = tuner_alps_tsbc5_params,
1115                 .count  = ARRAY_SIZE(tuner_alps_tsbc5_params),
1116         },
1117         [TUNER_TEMIC_4006FH5_PAL] = { /* TEMIC PAL */
1118                 .name   = "Temic PAL_BG (4006FH5)",
1119                 .params = tuner_temic_4006fh5_params,
1120                 .count  = ARRAY_SIZE(tuner_temic_4006fh5_params),
1121         },
1122         [TUNER_ALPS_TSHC6_NTSC] = { /* Alps NTSC */
1123                 .name   = "Alps TSCH6",
1124                 .params = tuner_alps_tshc6_params,
1125                 .count  = ARRAY_SIZE(tuner_alps_tshc6_params),
1126         },
1127         [TUNER_TEMIC_PAL_DK] = { /* TEMIC PAL */
1128                 .name   = "Temic PAL_DK (4016 FY5)",
1129                 .params = tuner_temic_pal_dk_params,
1130                 .count  = ARRAY_SIZE(tuner_temic_pal_dk_params),
1131         },
1132         [TUNER_PHILIPS_NTSC_M] = { /* Philips NTSC */
1133                 .name   = "Philips NTSC_M (MK2)",
1134                 .params = tuner_philips_ntsc_m_params,
1135                 .count  = ARRAY_SIZE(tuner_philips_ntsc_m_params),
1136         },
1137         [TUNER_TEMIC_4066FY5_PAL_I] = { /* TEMIC PAL_I */
1138                 .name   = "Temic PAL_I (4066 FY5)",
1139                 .params = tuner_temic_4066fy5_pal_i_params,
1140                 .count  = ARRAY_SIZE(tuner_temic_4066fy5_pal_i_params),
1141         },
1142         [TUNER_TEMIC_4006FN5_MULTI_PAL] = { /* TEMIC PAL */
1143                 .name   = "Temic PAL* auto (4006 FN5)",
1144                 .params = tuner_temic_4006fn5_multi_params,
1145                 .count  = ARRAY_SIZE(tuner_temic_4006fn5_multi_params),
1146         },
1147
1148         /* 20-29 */
1149         [TUNER_TEMIC_4009FR5_PAL] = { /* TEMIC PAL */
1150                 .name   = "Temic PAL_BG (4009 FR5) or PAL_I (4069 FR5)",
1151                 .params = tuner_temic_4009f_5_params,
1152                 .count  = ARRAY_SIZE(tuner_temic_4009f_5_params),
1153         },
1154         [TUNER_TEMIC_4039FR5_NTSC] = { /* TEMIC NTSC */
1155                 .name   = "Temic NTSC (4039 FR5)",
1156                 .params = tuner_temic_4039fr5_params,
1157                 .count  = ARRAY_SIZE(tuner_temic_4039fr5_params),
1158         },
1159         [TUNER_TEMIC_4046FM5] = { /* TEMIC PAL */
1160                 .name   = "Temic PAL/SECAM multi (4046 FM5)",
1161                 .params = tuner_temic_4046fm5_params,
1162                 .count  = ARRAY_SIZE(tuner_temic_4046fm5_params),
1163         },
1164         [TUNER_PHILIPS_PAL_DK] = { /* Philips PAL */
1165                 .name   = "Philips PAL_DK (FI1256 and compatibles)",
1166                 .params = tuner_philips_pal_dk_params,
1167                 .count  = ARRAY_SIZE(tuner_philips_pal_dk_params),
1168         },
1169         [TUNER_PHILIPS_FQ1216ME] = { /* Philips PAL */
1170                 .name   = "Philips PAL/SECAM multi (FQ1216ME)",
1171                 .params = tuner_philips_fq1216me_params,
1172                 .count  = ARRAY_SIZE(tuner_philips_fq1216me_params),
1173         },
1174         [TUNER_LG_PAL_I_FM] = { /* LGINNOTEK PAL_I */
1175                 .name   = "LG PAL_I+FM (TAPC-I001D)",
1176                 .params = tuner_lg_pal_i_fm_params,
1177                 .count  = ARRAY_SIZE(tuner_lg_pal_i_fm_params),
1178         },
1179         [TUNER_LG_PAL_I] = { /* LGINNOTEK PAL_I */
1180                 .name   = "LG PAL_I (TAPC-I701D)",
1181                 .params = tuner_lg_pal_i_params,
1182                 .count  = ARRAY_SIZE(tuner_lg_pal_i_params),
1183         },
1184         [TUNER_LG_NTSC_FM] = { /* LGINNOTEK NTSC */
1185                 .name   = "LG NTSC+FM (TPI8NSR01F)",
1186                 .params = tuner_lg_ntsc_fm_params,
1187                 .count  = ARRAY_SIZE(tuner_lg_ntsc_fm_params),
1188         },
1189         [TUNER_LG_PAL_FM] = { /* LGINNOTEK PAL */
1190                 .name   = "LG PAL_BG+FM (TPI8PSB01D)",
1191                 .params = tuner_lg_pal_fm_params,
1192                 .count  = ARRAY_SIZE(tuner_lg_pal_fm_params),
1193         },
1194         [TUNER_LG_PAL] = { /* LGINNOTEK PAL */
1195                 .name   = "LG PAL_BG (TPI8PSB11D)",
1196                 .params = tuner_lg_pal_params,
1197                 .count  = ARRAY_SIZE(tuner_lg_pal_params),
1198         },
1199
1200         /* 30-39 */
1201         [TUNER_TEMIC_4009FN5_MULTI_PAL_FM] = { /* TEMIC PAL */
1202                 .name   = "Temic PAL* auto + FM (4009 FN5)",
1203                 .params = tuner_temic_4009_fn5_multi_pal_fm_params,
1204                 .count  = ARRAY_SIZE(tuner_temic_4009_fn5_multi_pal_fm_params),
1205         },
1206         [TUNER_SHARP_2U5JF5540_NTSC] = { /* SHARP NTSC */
1207                 .name   = "SHARP NTSC_JP (2U5JF5540)",
1208                 .params = tuner_sharp_2u5jf5540_params,
1209                 .count  = ARRAY_SIZE(tuner_sharp_2u5jf5540_params),
1210         },
1211         [TUNER_Samsung_PAL_TCPM9091PD27] = { /* Samsung PAL */
1212                 .name   = "Samsung PAL TCPM9091PD27",
1213                 .params = tuner_samsung_pal_tcpm9091pd27_params,
1214                 .count  = ARRAY_SIZE(tuner_samsung_pal_tcpm9091pd27_params),
1215         },
1216         [TUNER_MT2032] = { /* Microtune PAL|NTSC */
1217                 .name   = "MT20xx universal",
1218                 /* see mt20xx.c for details */ },
1219         [TUNER_TEMIC_4106FH5] = { /* TEMIC PAL */
1220                 .name   = "Temic PAL_BG (4106 FH5)",
1221                 .params = tuner_temic_4106fh5_params,
1222                 .count  = ARRAY_SIZE(tuner_temic_4106fh5_params),
1223         },
1224         [TUNER_TEMIC_4012FY5] = { /* TEMIC PAL */
1225                 .name   = "Temic PAL_DK/SECAM_L (4012 FY5)",
1226                 .params = tuner_temic_4012fy5_params,
1227                 .count  = ARRAY_SIZE(tuner_temic_4012fy5_params),
1228         },
1229         [TUNER_TEMIC_4136FY5] = { /* TEMIC NTSC */
1230                 .name   = "Temic NTSC (4136 FY5)",
1231                 .params = tuner_temic_4136_fy5_params,
1232                 .count  = ARRAY_SIZE(tuner_temic_4136_fy5_params),
1233         },
1234         [TUNER_LG_PAL_NEW_TAPC] = { /* LGINNOTEK PAL */
1235                 .name   = "LG PAL (newer TAPC series)",
1236                 .params = tuner_lg_pal_new_tapc_params,
1237                 .count  = ARRAY_SIZE(tuner_lg_pal_new_tapc_params),
1238         },
1239         [TUNER_PHILIPS_FM1216ME_MK3] = { /* Philips PAL */
1240                 .name   = "Philips PAL/SECAM multi (FM1216ME MK3)",
1241                 .params = tuner_fm1216me_mk3_params,
1242                 .count  = ARRAY_SIZE(tuner_fm1216me_mk3_params),
1243         },
1244         [TUNER_LG_NTSC_NEW_TAPC] = { /* LGINNOTEK NTSC */
1245                 .name   = "LG NTSC (newer TAPC series)",
1246                 .params = tuner_lg_ntsc_new_tapc_params,
1247                 .count  = ARRAY_SIZE(tuner_lg_ntsc_new_tapc_params),
1248         },
1249
1250         /* 40-49 */
1251         [TUNER_HITACHI_NTSC] = { /* HITACHI NTSC */
1252                 .name   = "HITACHI V7-J180AT",
1253                 .params = tuner_hitachi_ntsc_params,
1254                 .count  = ARRAY_SIZE(tuner_hitachi_ntsc_params),
1255         },
1256         [TUNER_PHILIPS_PAL_MK] = { /* Philips PAL */
1257                 .name   = "Philips PAL_MK (FI1216 MK)",
1258                 .params = tuner_philips_pal_mk_params,
1259                 .count  = ARRAY_SIZE(tuner_philips_pal_mk_params),
1260         },
1261         [TUNER_PHILIPS_ATSC] = { /* Philips ATSC */
1262                 .name   = "Philips 1236D ATSC/NTSC dual in",
1263                 .params = tuner_philips_atsc_params,
1264                 .count  = ARRAY_SIZE(tuner_philips_atsc_params),
1265         },
1266         [TUNER_PHILIPS_FM1236_MK3] = { /* Philips NTSC */
1267                 .name   = "Philips NTSC MK3 (FM1236MK3 or FM1236/F)",
1268                 .params = tuner_fm1236_mk3_params,
1269                 .count  = ARRAY_SIZE(tuner_fm1236_mk3_params),
1270         },
1271         [TUNER_PHILIPS_4IN1] = { /* Philips NTSC */
1272                 .name   = "Philips 4 in 1 (ATI TV Wonder Pro/Conexant)",
1273                 .params = tuner_philips_4in1_params,
1274                 .count  = ARRAY_SIZE(tuner_philips_4in1_params),
1275         },
1276         [TUNER_MICROTUNE_4049FM5] = { /* Microtune PAL */
1277                 .name   = "Microtune 4049 FM5",
1278                 .params = tuner_microtune_4049_fm5_params,
1279                 .count  = ARRAY_SIZE(tuner_microtune_4049_fm5_params),
1280         },
1281         [TUNER_PANASONIC_VP27] = { /* Panasonic NTSC */
1282                 .name   = "Panasonic VP27s/ENGE4324D",
1283                 .params = tuner_panasonic_vp27_params,
1284                 .count  = ARRAY_SIZE(tuner_panasonic_vp27_params),
1285         },
1286         [TUNER_LG_NTSC_TAPE] = { /* LGINNOTEK NTSC */
1287                 .name   = "LG NTSC (TAPE series)",
1288                 .params = tuner_lg_ntsc_tape_params,
1289                 .count  = ARRAY_SIZE(tuner_lg_ntsc_tape_params),
1290         },
1291         [TUNER_TNF_8831BGFF] = { /* Philips PAL */
1292                 .name   = "Tenna TNF 8831 BGFF)",
1293                 .params = tuner_tnf_8831bgff_params,
1294                 .count  = ARRAY_SIZE(tuner_tnf_8831bgff_params),
1295         },
1296         [TUNER_MICROTUNE_4042FI5] = { /* Microtune NTSC */
1297                 .name   = "Microtune 4042 FI5 ATSC/NTSC dual in",
1298                 .params = tuner_microtune_4042fi5_params,
1299                 .count  = ARRAY_SIZE(tuner_microtune_4042fi5_params),
1300         },
1301
1302         /* 50-59 */
1303         [TUNER_TCL_2002N] = { /* TCL NTSC */
1304                 .name   = "TCL 2002N",
1305                 .params = tuner_tcl_2002n_params,
1306                 .count  = ARRAY_SIZE(tuner_tcl_2002n_params),
1307         },
1308         [TUNER_PHILIPS_FM1256_IH3] = { /* Philips PAL */
1309                 .name   = "Philips PAL/SECAM_D (FM 1256 I-H3)",
1310                 .params = tuner_philips_fm1256_ih3_params,
1311                 .count  = ARRAY_SIZE(tuner_philips_fm1256_ih3_params),
1312         },
1313         [TUNER_THOMSON_DTT7610] = { /* THOMSON ATSC */
1314                 .name   = "Thomson DTT 7610 (ATSC/NTSC)",
1315                 .params = tuner_thomson_dtt7610_params,
1316                 .count  = ARRAY_SIZE(tuner_thomson_dtt7610_params),
1317         },
1318         [TUNER_PHILIPS_FQ1286] = { /* Philips NTSC */
1319                 .name   = "Philips FQ1286",
1320                 .params = tuner_philips_fq1286_params,
1321                 .count  = ARRAY_SIZE(tuner_philips_fq1286_params),
1322         },
1323         [TUNER_PHILIPS_TDA8290] = { /* Philips PAL|NTSC */
1324                 .name   = "tda8290+75",
1325                 /* see tda8290.c for details */ },
1326         [TUNER_TCL_2002MB] = { /* TCL PAL */
1327                 .name   = "TCL 2002MB",
1328                 .params = tuner_tcl_2002mb_params,
1329                 .count  = ARRAY_SIZE(tuner_tcl_2002mb_params),
1330         },
1331         [TUNER_PHILIPS_FQ1216AME_MK4] = { /* Philips PAL */
1332                 .name   = "Philips PAL/SECAM multi (FQ1216AME MK4)",
1333                 .params = tuner_philips_fq1216ame_mk4_params,
1334                 .count  = ARRAY_SIZE(tuner_philips_fq1216ame_mk4_params),
1335         },
1336         [TUNER_PHILIPS_FQ1236A_MK4] = { /* Philips NTSC */
1337                 .name   = "Philips FQ1236A MK4",
1338                 .params = tuner_philips_fq1236a_mk4_params,
1339                 .count  = ARRAY_SIZE(tuner_philips_fq1236a_mk4_params),
1340         },
1341         [TUNER_YMEC_TVF_8531MF] = { /* Philips NTSC */
1342                 .name   = "Ymec TVision TVF-8531MF/8831MF/8731MF",
1343                 .params = tuner_ymec_tvf_8531mf_params,
1344                 .count  = ARRAY_SIZE(tuner_ymec_tvf_8531mf_params),
1345         },
1346         [TUNER_YMEC_TVF_5533MF] = { /* Philips NTSC */
1347                 .name   = "Ymec TVision TVF-5533MF",
1348                 .params = tuner_ymec_tvf_5533mf_params,
1349                 .count  = ARRAY_SIZE(tuner_ymec_tvf_5533mf_params),
1350         },
1351
1352         /* 60-69 */
1353         [TUNER_THOMSON_DTT761X] = { /* THOMSON ATSC */
1354                 /* DTT 7611 7611A 7612 7613 7613A 7614 7615 7615A */
1355                 .name   = "Thomson DTT 761X (ATSC/NTSC)",
1356                 .params = tuner_thomson_dtt761x_params,
1357                 .count  = ARRAY_SIZE(tuner_thomson_dtt761x_params),
1358         },
1359         [TUNER_TENA_9533_DI] = { /* Philips PAL */
1360                 .name   = "Tena TNF9533-D/IF/TNF9533-B/DF",
1361                 .params = tuner_tena_9533_di_params,
1362                 .count  = ARRAY_SIZE(tuner_tena_9533_di_params),
1363         },
1364         [TUNER_TEA5767] = { /* Philips RADIO */
1365                 .name   = "Philips TEA5767HN FM Radio",
1366                 /* see tea5767.c for details */
1367         },
1368         [TUNER_PHILIPS_FMD1216ME_MK3] = { /* Philips PAL */
1369                 .name   = "Philips FMD1216ME MK3 Hybrid Tuner",
1370                 .params = tuner_philips_fmd1216me_mk3_params,
1371                 .count  = ARRAY_SIZE(tuner_philips_fmd1216me_mk3_params),
1372         },
1373         [TUNER_LG_TDVS_H06XF] = { /* LGINNOTEK ATSC */
1374                 .name   = "LG TDVS-H06xF", /* H061F, H062F & H064F */
1375                 .params = tuner_lg_tdvs_h06xf_params,
1376                 .count  = ARRAY_SIZE(tuner_lg_tdvs_h06xf_params),
1377         },
1378         [TUNER_YMEC_TVF66T5_B_DFF] = { /* Philips PAL */
1379                 .name   = "Ymec TVF66T5-B/DFF",
1380                 .params = tuner_ymec_tvf66t5_b_dff_params,
1381                 .count  = ARRAY_SIZE(tuner_ymec_tvf66t5_b_dff_params),
1382         },
1383         [TUNER_LG_TALN] = { /* LGINNOTEK NTSC / PAL / SECAM */
1384                 .name   = "LG TALN series",
1385                 .params = tuner_lg_taln_params,
1386                 .count  = ARRAY_SIZE(tuner_lg_taln_params),
1387         },
1388         [TUNER_PHILIPS_TD1316] = { /* Philips PAL */
1389                 .name   = "Philips TD1316 Hybrid Tuner",
1390                 .params = tuner_philips_td1316_params,
1391                 .count  = ARRAY_SIZE(tuner_philips_td1316_params),
1392         },
1393         [TUNER_PHILIPS_TUV1236D] = { /* Philips ATSC */
1394                 .name   = "Philips TUV1236D ATSC/NTSC dual in",
1395                 .params = tuner_tuv1236d_params,
1396                 .count  = ARRAY_SIZE(tuner_tuv1236d_params),
1397         },
1398         [TUNER_TNF_5335MF] = { /* Tenna PAL/NTSC */
1399                 .name   = "Tena TNF 5335 and similar models",
1400                 .params = tuner_tnf_5335mf_params,
1401                 .count  = ARRAY_SIZE(tuner_tnf_5335mf_params),
1402         },
1403
1404         /* 70-79 */
1405         [TUNER_SAMSUNG_TCPN_2121P30A] = { /* Samsung NTSC */
1406                 .name   = "Samsung TCPN 2121P30A",
1407                 .params = tuner_samsung_tcpn_2121p30a_params,
1408                 .count  = ARRAY_SIZE(tuner_samsung_tcpn_2121p30a_params),
1409         },
1410         [TUNER_XCEIVE_XC3028] = { /* Xceive 3028 */
1411                 .name   = "Xceive xc3028",
1412                 /* see xc3028.c for details */
1413         },
1414         [TUNER_THOMSON_FE6600] = { /* Thomson PAL / DVB-T */
1415                 .name   = "Thomson FE6600",
1416                 .params = tuner_thomson_fe6600_params,
1417                 .count  = ARRAY_SIZE(tuner_thomson_fe6600_params),
1418         },
1419         [TUNER_SAMSUNG_TCPG_6121P30A] = { /* Samsung PAL */
1420                 .name   = "Samsung TCPG 6121P30A",
1421                 .params = tuner_samsung_tcpg_6121p30a_params,
1422                 .count  = ARRAY_SIZE(tuner_samsung_tcpg_6121p30a_params),
1423         },
1424         [TUNER_TDA9887] = { /* Philips TDA 9887 IF PLL Demodulator.
1425                                 This chip is part of some modern tuners */
1426                 .name   = "Philips TDA988[5,6,7] IF PLL Demodulator",
1427                 /* see tda9887.c for details */
1428         },
1429 };
1430
1431 unsigned const int tuner_count = ARRAY_SIZE(tuners);