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