fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git] / drivers / media / video / tuner-types.c
1 /*
2  *
3  * i2c tv tuner chip device type database.
4  *
5  */
6
7 #include <linux/i2c.h>
8 #include <media/tuner.h>
9 #include <media/tuner-types.h>
10
11 /* ---------------------------------------------------------------------- */
12
13 /*
14  *      The floats in the tuner struct are computed at compile time
15  *      by gcc and cast back to integers. Thus we don't violate the
16  *      "no float in kernel" rule.
17  *
18  *      A tuner_range may be referenced by multiple tuner_params structs.
19  *      There are many duplicates in here. Reusing tuner_range structs,
20  *      rather than defining new ones for each tuner, will cut down on
21  *      memory usage, and is preferred when possible.
22  *
23  *      Each tuner_params array may contain one or more elements, one
24  *      for each video standard.
25  *
26  *      FIXME: 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                 .has_tda9887 = 1,
384                 .port1_active = 1,
385                 .port2_active = 1,
386                 .port2_invert_for_secam_lc = 1,
387         },
388 };
389
390 /* ------------ TUNER_LG_PAL_I_FM - LGINNOTEK PAL_I ------------ */
391
392 static struct tuner_params tuner_lg_pal_i_fm_params[] = {
393         {
394                 .type   = TUNER_PARAM_TYPE_PAL,
395                 .ranges = tuner_lg_pal_ranges,
396                 .count  = ARRAY_SIZE(tuner_lg_pal_ranges),
397         },
398 };
399
400 /* ------------ TUNER_LG_PAL_I - LGINNOTEK PAL_I ------------ */
401
402 static struct tuner_params tuner_lg_pal_i_params[] = {
403         {
404                 .type   = TUNER_PARAM_TYPE_PAL,
405                 .ranges = tuner_lg_pal_ranges,
406                 .count  = ARRAY_SIZE(tuner_lg_pal_ranges),
407         },
408 };
409
410 /* ------------ TUNER_LG_NTSC_FM - LGINNOTEK NTSC ------------ */
411
412 static struct tuner_range tuner_lg_ntsc_fm_ranges[] = {
413         { 16 * 210.00 /*MHz*/, 0x8e, 0xa0, },
414         { 16 * 497.00 /*MHz*/, 0x8e, 0x90, },
415         { 16 * 999.99        , 0x8e, 0x30, },
416 };
417
418 static struct tuner_params tuner_lg_ntsc_fm_params[] = {
419         {
420                 .type   = TUNER_PARAM_TYPE_NTSC,
421                 .ranges = tuner_lg_ntsc_fm_ranges,
422                 .count  = ARRAY_SIZE(tuner_lg_ntsc_fm_ranges),
423         },
424 };
425
426 /* ------------ TUNER_LG_PAL_FM - LGINNOTEK PAL ------------ */
427
428 static struct tuner_params tuner_lg_pal_fm_params[] = {
429         {
430                 .type   = TUNER_PARAM_TYPE_PAL,
431                 .ranges = tuner_lg_pal_ranges,
432                 .count  = ARRAY_SIZE(tuner_lg_pal_ranges),
433         },
434 };
435
436 /* ------------ TUNER_LG_PAL - LGINNOTEK PAL ------------ */
437
438 static struct tuner_params tuner_lg_pal_params[] = {
439         {
440                 .type   = TUNER_PARAM_TYPE_PAL,
441                 .ranges = tuner_lg_pal_ranges,
442                 .count  = ARRAY_SIZE(tuner_lg_pal_ranges),
443         },
444 };
445
446 /* 30-39 */
447 /* ------------ TUNER_TEMIC_4009FN5_MULTI_PAL_FM - TEMIC PAL ------------ */
448
449 static struct tuner_params tuner_temic_4009_fn5_multi_pal_fm_params[] = {
450         {
451                 .type   = TUNER_PARAM_TYPE_PAL,
452                 .ranges = tuner_temic_4009f_5_pal_ranges,
453                 .count  = ARRAY_SIZE(tuner_temic_4009f_5_pal_ranges),
454         },
455 };
456
457 /* ------------ TUNER_SHARP_2U5JF5540_NTSC - SHARP NTSC ------------ */
458
459 static struct tuner_range tuner_sharp_2u5jf5540_ntsc_ranges[] = {
460         { 16 * 137.25 /*MHz*/, 0x8e, 0x01, },
461         { 16 * 317.25 /*MHz*/, 0x8e, 0x02, },
462         { 16 * 999.99        , 0x8e, 0x08, },
463 };
464
465 static struct tuner_params tuner_sharp_2u5jf5540_params[] = {
466         {
467                 .type   = TUNER_PARAM_TYPE_NTSC,
468                 .ranges = tuner_sharp_2u5jf5540_ntsc_ranges,
469                 .count  = ARRAY_SIZE(tuner_sharp_2u5jf5540_ntsc_ranges),
470         },
471 };
472
473 /* ------------ TUNER_Samsung_PAL_TCPM9091PD27 - Samsung PAL ------------ */
474
475 static struct tuner_range tuner_samsung_pal_tcpm9091pd27_ranges[] = {
476         { 16 * 169 /*MHz*/, 0x8e, 0xa0, },
477         { 16 * 464 /*MHz*/, 0x8e, 0x90, },
478         { 16 * 999.99     , 0x8e, 0x30, },
479 };
480
481 static struct tuner_params tuner_samsung_pal_tcpm9091pd27_params[] = {
482         {
483                 .type   = TUNER_PARAM_TYPE_PAL,
484                 .ranges = tuner_samsung_pal_tcpm9091pd27_ranges,
485                 .count  = ARRAY_SIZE(tuner_samsung_pal_tcpm9091pd27_ranges),
486         },
487 };
488
489 /* ------------ TUNER_TEMIC_4106FH5 - TEMIC PAL ------------ */
490
491 static struct tuner_params tuner_temic_4106fh5_params[] = {
492         {
493                 .type   = TUNER_PARAM_TYPE_PAL,
494                 .ranges = tuner_temic_4009f_5_pal_ranges,
495                 .count  = ARRAY_SIZE(tuner_temic_4009f_5_pal_ranges),
496         },
497 };
498
499 /* ------------ TUNER_TEMIC_4012FY5 - TEMIC PAL ------------ */
500
501 static struct tuner_params tuner_temic_4012fy5_params[] = {
502         {
503                 .type   = TUNER_PARAM_TYPE_PAL,
504                 .ranges = tuner_temic_pal_ranges,
505                 .count  = ARRAY_SIZE(tuner_temic_pal_ranges),
506         },
507 };
508
509 /* ------------ TUNER_TEMIC_4136FY5 - TEMIC NTSC ------------ */
510
511 static struct tuner_params tuner_temic_4136_fy5_params[] = {
512         {
513                 .type   = TUNER_PARAM_TYPE_NTSC,
514                 .ranges = tuner_temic_4x3x_f_5_ntsc_ranges,
515                 .count  = ARRAY_SIZE(tuner_temic_4x3x_f_5_ntsc_ranges),
516         },
517 };
518
519 /* ------------ TUNER_LG_PAL_NEW_TAPC - LGINNOTEK PAL ------------ */
520
521 static struct tuner_range tuner_lg_new_tapc_ranges[] = {
522         { 16 * 170.00 /*MHz*/, 0x8e, 0x01, },
523         { 16 * 450.00 /*MHz*/, 0x8e, 0x02, },
524         { 16 * 999.99        , 0x8e, 0x08, },
525 };
526
527 static struct tuner_params tuner_lg_pal_new_tapc_params[] = {
528         {
529                 .type   = TUNER_PARAM_TYPE_PAL,
530                 .ranges = tuner_lg_new_tapc_ranges,
531                 .count  = ARRAY_SIZE(tuner_lg_new_tapc_ranges),
532         },
533 };
534
535 /* ------------ TUNER_PHILIPS_FM1216ME_MK3 - Philips PAL ------------ */
536
537 static struct tuner_range tuner_fm1216me_mk3_pal_ranges[] = {
538         { 16 * 158.00 /*MHz*/, 0x8e, 0x01, },
539         { 16 * 442.00 /*MHz*/, 0x8e, 0x02, },
540         { 16 * 999.99        , 0x8e, 0x04, },
541 };
542
543 static struct tuner_params tuner_fm1216me_mk3_params[] = {
544         {
545                 .type   = TUNER_PARAM_TYPE_PAL,
546                 .ranges = tuner_fm1216me_mk3_pal_ranges,
547                 .count  = ARRAY_SIZE(tuner_fm1216me_mk3_pal_ranges),
548                 .cb_first_if_lower_freq = 1,
549                 .has_tda9887 = 1,
550                 .port1_active = 1,
551                 .port2_active = 1,
552                 .port2_invert_for_secam_lc = 1,
553                 .port1_fm_high_sensitivity = 1,
554                 .default_top_mid = -2,
555                 .default_top_secam_mid = -2,
556                 .default_top_secam_high = -2,
557         },
558 };
559
560 /* ------------ TUNER_LG_NTSC_NEW_TAPC - LGINNOTEK NTSC ------------ */
561
562 static struct tuner_params tuner_lg_ntsc_new_tapc_params[] = {
563         {
564                 .type   = TUNER_PARAM_TYPE_NTSC,
565                 .ranges = tuner_lg_new_tapc_ranges,
566                 .count  = ARRAY_SIZE(tuner_lg_new_tapc_ranges),
567         },
568 };
569
570 /* 40-49 */
571 /* ------------ TUNER_HITACHI_NTSC - HITACHI NTSC ------------ */
572
573 static struct tuner_params tuner_hitachi_ntsc_params[] = {
574         {
575                 .type   = TUNER_PARAM_TYPE_NTSC,
576                 .ranges = tuner_lg_new_tapc_ranges,
577                 .count  = ARRAY_SIZE(tuner_lg_new_tapc_ranges),
578         },
579 };
580
581 /* ------------ TUNER_PHILIPS_PAL_MK - Philips PAL ------------ */
582
583 static struct tuner_range tuner_philips_pal_mk_pal_ranges[] = {
584         { 16 * 140.25 /*MHz*/, 0x8e, 0x01, },
585         { 16 * 463.25 /*MHz*/, 0x8e, 0xc2, },
586         { 16 * 999.99        , 0x8e, 0xcf, },
587 };
588
589 static struct tuner_params tuner_philips_pal_mk_params[] = {
590         {
591                 .type   = TUNER_PARAM_TYPE_PAL,
592                 .ranges = tuner_philips_pal_mk_pal_ranges,
593                 .count  = ARRAY_SIZE(tuner_philips_pal_mk_pal_ranges),
594         },
595 };
596
597 /* ------------ TUNER_PHILIPS_ATSC - Philips ATSC ------------ */
598
599 static struct tuner_range tuner_philips_atsc_ranges[] = {
600         { 16 * 157.25 /*MHz*/, 0x8e, 0xa0, },
601         { 16 * 454.00 /*MHz*/, 0x8e, 0x90, },
602         { 16 * 999.99        , 0x8e, 0x30, },
603 };
604
605 static struct tuner_params tuner_philips_atsc_params[] = {
606         {
607                 .type   = TUNER_PARAM_TYPE_NTSC,
608                 .ranges = tuner_philips_atsc_ranges,
609                 .count  = ARRAY_SIZE(tuner_philips_atsc_ranges),
610         },
611 };
612
613 /* ------------ TUNER_PHILIPS_FM1236_MK3 - Philips NTSC ------------ */
614
615 static struct tuner_range tuner_fm1236_mk3_ntsc_ranges[] = {
616         { 16 * 160.00 /*MHz*/, 0x8e, 0x01, },
617         { 16 * 442.00 /*MHz*/, 0x8e, 0x02, },
618         { 16 * 999.99        , 0x8e, 0x04, },
619 };
620
621 static struct tuner_params tuner_fm1236_mk3_params[] = {
622         {
623                 .type   = TUNER_PARAM_TYPE_NTSC,
624                 .ranges = tuner_fm1236_mk3_ntsc_ranges,
625                 .count  = ARRAY_SIZE(tuner_fm1236_mk3_ntsc_ranges),
626                 .cb_first_if_lower_freq = 1,
627                 .has_tda9887 = 1,
628                 .port1_active = 1,
629                 .port2_active = 1,
630                 .port1_fm_high_sensitivity = 1,
631         },
632 };
633
634 /* ------------ TUNER_PHILIPS_4IN1 - Philips NTSC ------------ */
635
636 static struct tuner_params tuner_philips_4in1_params[] = {
637         {
638                 .type   = TUNER_PARAM_TYPE_NTSC,
639                 .ranges = tuner_fm1236_mk3_ntsc_ranges,
640                 .count  = ARRAY_SIZE(tuner_fm1236_mk3_ntsc_ranges),
641         },
642 };
643
644 /* ------------ TUNER_MICROTUNE_4049FM5 - Microtune PAL ------------ */
645
646 static struct tuner_params tuner_microtune_4049_fm5_params[] = {
647         {
648                 .type   = TUNER_PARAM_TYPE_PAL,
649                 .ranges = tuner_temic_4009f_5_pal_ranges,
650                 .count  = ARRAY_SIZE(tuner_temic_4009f_5_pal_ranges),
651                 .has_tda9887 = 1,
652                 .port1_invert_for_secam_lc = 1,
653                 .default_pll_gating_18 = 1,
654                 .fm_gain_normal=1,
655         },
656 };
657
658 /* ------------ TUNER_PANASONIC_VP27 - Panasonic NTSC ------------ */
659
660 static struct tuner_range tuner_panasonic_vp27_ntsc_ranges[] = {
661         { 16 * 160.00 /*MHz*/, 0xce, 0x01, },
662         { 16 * 454.00 /*MHz*/, 0xce, 0x02, },
663         { 16 * 999.99        , 0xce, 0x08, },
664 };
665
666 static struct tuner_params tuner_panasonic_vp27_params[] = {
667         {
668                 .type   = TUNER_PARAM_TYPE_NTSC,
669                 .ranges = tuner_panasonic_vp27_ntsc_ranges,
670                 .count  = ARRAY_SIZE(tuner_panasonic_vp27_ntsc_ranges),
671                 .has_tda9887 = 1,
672                 .intercarrier_mode = 1,
673         },
674 };
675
676 /* ------------ TUNER_TNF_8831BGFF - Philips PAL ------------ */
677
678 static struct tuner_range tuner_tnf_8831bgff_pal_ranges[] = {
679         { 16 * 161.25 /*MHz*/, 0x8e, 0xa0, },
680         { 16 * 463.25 /*MHz*/, 0x8e, 0x90, },
681         { 16 * 999.99        , 0x8e, 0x30, },
682 };
683
684 static struct tuner_params tuner_tnf_8831bgff_params[] = {
685         {
686                 .type   = TUNER_PARAM_TYPE_PAL,
687                 .ranges = tuner_tnf_8831bgff_pal_ranges,
688                 .count  = ARRAY_SIZE(tuner_tnf_8831bgff_pal_ranges),
689         },
690 };
691
692 /* ------------ TUNER_MICROTUNE_4042FI5 - Microtune NTSC ------------ */
693
694 static struct tuner_range tuner_microtune_4042fi5_ntsc_ranges[] = {
695         { 16 * 162.00 /*MHz*/, 0x8e, 0xa2, },
696         { 16 * 457.00 /*MHz*/, 0x8e, 0x94, },
697         { 16 * 999.99        , 0x8e, 0x31, },
698 };
699
700 static struct tuner_params tuner_microtune_4042fi5_params[] = {
701         {
702                 .type   = TUNER_PARAM_TYPE_NTSC,
703                 .ranges = tuner_microtune_4042fi5_ntsc_ranges,
704                 .count  = ARRAY_SIZE(tuner_microtune_4042fi5_ntsc_ranges),
705         },
706 };
707
708 /* 50-59 */
709 /* ------------ TUNER_TCL_2002N - TCL NTSC ------------ */
710
711 static struct tuner_range tuner_tcl_2002n_ntsc_ranges[] = {
712         { 16 * 172.00 /*MHz*/, 0x8e, 0x01, },
713         { 16 * 448.00 /*MHz*/, 0x8e, 0x02, },
714         { 16 * 999.99        , 0x8e, 0x08, },
715 };
716
717 static struct tuner_params tuner_tcl_2002n_params[] = {
718         {
719                 .type   = TUNER_PARAM_TYPE_NTSC,
720                 .ranges = tuner_tcl_2002n_ntsc_ranges,
721                 .count  = ARRAY_SIZE(tuner_tcl_2002n_ntsc_ranges),
722                 .cb_first_if_lower_freq = 1,
723         },
724 };
725
726 /* ------------ TUNER_PHILIPS_FM1256_IH3 - Philips PAL ------------ */
727
728 static struct tuner_params tuner_philips_fm1256_ih3_params[] = {
729         {
730                 .type   = TUNER_PARAM_TYPE_PAL,
731                 .ranges = tuner_fm1236_mk3_ntsc_ranges,
732                 .count  = ARRAY_SIZE(tuner_fm1236_mk3_ntsc_ranges),
733         },
734 };
735
736 /* ------------ TUNER_THOMSON_DTT7610 - THOMSON ATSC ------------ */
737
738 static struct tuner_range tuner_thomson_dtt7610_ntsc_ranges[] = {
739         { 16 * 157.25 /*MHz*/, 0x8e, 0x39, },
740         { 16 * 454.00 /*MHz*/, 0x8e, 0x3a, },
741         { 16 * 999.99        , 0x8e, 0x3c, },
742 };
743
744 static struct tuner_params tuner_thomson_dtt7610_params[] = {
745         {
746                 .type   = TUNER_PARAM_TYPE_NTSC,
747                 .ranges = tuner_thomson_dtt7610_ntsc_ranges,
748                 .count  = ARRAY_SIZE(tuner_thomson_dtt7610_ntsc_ranges),
749         },
750 };
751
752 /* ------------ TUNER_PHILIPS_FQ1286 - Philips NTSC ------------ */
753
754 static struct tuner_range tuner_philips_fq1286_ntsc_ranges[] = {
755         { 16 * 160.00 /*MHz*/, 0x8e, 0x41, },
756         { 16 * 454.00 /*MHz*/, 0x8e, 0x42, },
757         { 16 * 999.99        , 0x8e, 0x04, },
758 };
759
760 static struct tuner_params tuner_philips_fq1286_params[] = {
761         {
762                 .type   = TUNER_PARAM_TYPE_NTSC,
763                 .ranges = tuner_philips_fq1286_ntsc_ranges,
764                 .count  = ARRAY_SIZE(tuner_philips_fq1286_ntsc_ranges),
765         },
766 };
767
768 /* ------------ TUNER_TCL_2002MB - TCL PAL ------------ */
769
770 static struct tuner_range tuner_tcl_2002mb_pal_ranges[] = {
771         { 16 * 170.00 /*MHz*/, 0xce, 0x01, },
772         { 16 * 450.00 /*MHz*/, 0xce, 0x02, },
773         { 16 * 999.99        , 0xce, 0x08, },
774 };
775
776 static struct tuner_params tuner_tcl_2002mb_params[] = {
777         {
778                 .type   = TUNER_PARAM_TYPE_PAL,
779                 .ranges = tuner_tcl_2002mb_pal_ranges,
780                 .count  = ARRAY_SIZE(tuner_tcl_2002mb_pal_ranges),
781         },
782 };
783
784 /* ------------ TUNER_PHILIPS_FQ1216AME_MK4 - Philips PAL ------------ */
785
786 static struct tuner_range tuner_philips_fq12_6a___mk4_pal_ranges[] = {
787         { 16 * 160.00 /*MHz*/, 0xce, 0x01, },
788         { 16 * 442.00 /*MHz*/, 0xce, 0x02, },
789         { 16 * 999.99        , 0xce, 0x04, },
790 };
791
792 static struct tuner_params tuner_philips_fq1216ame_mk4_params[] = {
793         {
794                 .type   = TUNER_PARAM_TYPE_PAL,
795                 .ranges = tuner_philips_fq12_6a___mk4_pal_ranges,
796                 .count  = ARRAY_SIZE(tuner_philips_fq12_6a___mk4_pal_ranges),
797                 .has_tda9887 = 1,
798                 .port1_active = 1,
799                 .port2_invert_for_secam_lc = 1,
800                 .default_top_mid = -2,
801                 .default_top_secam_low = -2,
802                 .default_top_secam_mid = -2,
803                 .default_top_secam_high = -2,
804         },
805 };
806
807 /* ------------ TUNER_PHILIPS_FQ1236A_MK4 - Philips NTSC ------------ */
808
809 static struct tuner_params tuner_philips_fq1236a_mk4_params[] = {
810         {
811                 .type   = TUNER_PARAM_TYPE_NTSC,
812                 .ranges = tuner_fm1236_mk3_ntsc_ranges,
813                 .count  = ARRAY_SIZE(tuner_fm1236_mk3_ntsc_ranges),
814         },
815 };
816
817 /* ------------ TUNER_YMEC_TVF_8531MF - Philips NTSC ------------ */
818
819 static struct tuner_params tuner_ymec_tvf_8531mf_params[] = {
820         {
821                 .type   = TUNER_PARAM_TYPE_NTSC,
822                 .ranges = tuner_philips_ntsc_m_ranges,
823                 .count  = ARRAY_SIZE(tuner_philips_ntsc_m_ranges),
824         },
825 };
826
827 /* ------------ TUNER_YMEC_TVF_5533MF - Philips NTSC ------------ */
828
829 static struct tuner_range tuner_ymec_tvf_5533mf_ntsc_ranges[] = {
830         { 16 * 160.00 /*MHz*/, 0x8e, 0x01, },
831         { 16 * 454.00 /*MHz*/, 0x8e, 0x02, },
832         { 16 * 999.99        , 0x8e, 0x04, },
833 };
834
835 static struct tuner_params tuner_ymec_tvf_5533mf_params[] = {
836         {
837                 .type   = TUNER_PARAM_TYPE_NTSC,
838                 .ranges = tuner_ymec_tvf_5533mf_ntsc_ranges,
839                 .count  = ARRAY_SIZE(tuner_ymec_tvf_5533mf_ntsc_ranges),
840         },
841 };
842
843 /* 60-69 */
844 /* ------------ TUNER_THOMSON_DTT761X - THOMSON ATSC ------------ */
845 /* DTT 7611 7611A 7612 7613 7613A 7614 7615 7615A */
846
847 static struct tuner_range tuner_thomson_dtt761x_ntsc_ranges[] = {
848         { 16 * 145.25 /*MHz*/, 0x8e, 0x39, },
849         { 16 * 415.25 /*MHz*/, 0x8e, 0x3a, },
850         { 16 * 999.99        , 0x8e, 0x3c, },
851 };
852
853
854 static struct tuner_params tuner_thomson_dtt761x_params[] = {
855         {
856                 .type   = TUNER_PARAM_TYPE_NTSC,
857                 .ranges = tuner_thomson_dtt761x_ntsc_ranges,
858                 .count  = ARRAY_SIZE(tuner_thomson_dtt761x_ntsc_ranges),
859         },
860 };
861
862 /* ------------ TUNER_TENA_9533_DI - Philips PAL ------------ */
863
864 static struct tuner_range tuner_tena_9533_di_pal_ranges[] = {
865         { 16 * 160.25 /*MHz*/, 0x8e, 0x01, },
866         { 16 * 464.25 /*MHz*/, 0x8e, 0x02, },
867         { 16 * 999.99        , 0x8e, 0x04, },
868 };
869
870 static struct tuner_params tuner_tena_9533_di_params[] = {
871         {
872                 .type   = TUNER_PARAM_TYPE_PAL,
873                 .ranges = tuner_tena_9533_di_pal_ranges,
874                 .count  = ARRAY_SIZE(tuner_tena_9533_di_pal_ranges),
875         },
876 };
877
878 /* ------------ TUNER_PHILIPS_FMD1216ME_MK3 - Philips PAL ------------ */
879
880 static struct tuner_range tuner_philips_fmd1216me_mk3_pal_ranges[] = {
881         { 16 * 160.00 /*MHz*/, 0x86, 0x51, },
882         { 16 * 442.00 /*MHz*/, 0x86, 0x52, },
883         { 16 * 999.99        , 0x86, 0x54, },
884 };
885
886
887 static struct tuner_params tuner_philips_fmd1216me_mk3_params[] = {
888         {
889                 .type   = TUNER_PARAM_TYPE_PAL,
890                 .ranges = tuner_philips_fmd1216me_mk3_pal_ranges,
891                 .count  = ARRAY_SIZE(tuner_philips_fmd1216me_mk3_pal_ranges),
892                 .has_tda9887 = 1,
893                 .port1_active = 1,
894                 .port2_active = 1,
895                 .port2_fm_high_sensitivity = 1,
896                 .port2_invert_for_secam_lc = 1,
897                 .port1_set_for_fm_mono = 1,
898         },
899 };
900
901
902 /* ------ TUNER_LG_TDVS_H06XF - LG INNOTEK / INFINEON ATSC ----- */
903
904 static struct tuner_range tuner_tua6034_ntsc_ranges[] = {
905         { 16 * 165.00 /*MHz*/, 0x8e, 0x01 },
906         { 16 * 450.00 /*MHz*/, 0x8e, 0x02 },
907         { 16 * 999.99        , 0x8e, 0x04 },
908 };
909
910
911 static struct tuner_params tuner_lg_tdvs_h06xf_params[] = {
912         {
913                 .type   = TUNER_PARAM_TYPE_NTSC,
914                 .ranges = tuner_tua6034_ntsc_ranges,
915                 .count  = ARRAY_SIZE(tuner_tua6034_ntsc_ranges),
916         },
917 };
918
919 /* ------------ TUNER_YMEC_TVF66T5_B_DFF - Philips PAL ------------ */
920
921 static struct tuner_range tuner_ymec_tvf66t5_b_dff_pal_ranges[] = {
922         { 16 * 160.25 /*MHz*/, 0x8e, 0x01, },
923         { 16 * 464.25 /*MHz*/, 0x8e, 0x02, },
924         { 16 * 999.99        , 0x8e, 0x08, },
925 };
926
927 static struct tuner_params tuner_ymec_tvf66t5_b_dff_params[] = {
928         {
929                 .type   = TUNER_PARAM_TYPE_PAL,
930                 .ranges = tuner_ymec_tvf66t5_b_dff_pal_ranges,
931                 .count  = ARRAY_SIZE(tuner_ymec_tvf66t5_b_dff_pal_ranges),
932         },
933 };
934
935 /* ------------ TUNER_LG_NTSC_TALN_MINI - LGINNOTEK NTSC ------------ */
936
937 static struct tuner_range tuner_lg_taln_ntsc_ranges[] = {
938         { 16 * 137.25 /*MHz*/, 0x8e, 0x01, },
939         { 16 * 373.25 /*MHz*/, 0x8e, 0x02, },
940         { 16 * 999.99        , 0x8e, 0x08, },
941 };
942
943 static struct tuner_range tuner_lg_taln_pal_secam_ranges[] = {
944         { 16 * 150.00 /*MHz*/, 0x8e, 0x01, },
945         { 16 * 425.00 /*MHz*/, 0x8e, 0x02, },
946         { 16 * 999.99        , 0x8e, 0x08, },
947 };
948
949 static struct tuner_params tuner_lg_taln_params[] = {
950         {
951                 .type   = TUNER_PARAM_TYPE_NTSC,
952                 .ranges = tuner_lg_taln_ntsc_ranges,
953                 .count  = ARRAY_SIZE(tuner_lg_taln_ntsc_ranges),
954         },{
955                 .type   = TUNER_PARAM_TYPE_PAL,
956                 .ranges = tuner_lg_taln_pal_secam_ranges,
957                 .count  = ARRAY_SIZE(tuner_lg_taln_pal_secam_ranges),
958         },
959 };
960
961 /* ------------ TUNER_PHILIPS_TD1316 - Philips PAL ------------ */
962
963 static struct tuner_range tuner_philips_td1316_pal_ranges[] = {
964         { 16 * 160.00 /*MHz*/, 0xc8, 0xa1, },
965         { 16 * 442.00 /*MHz*/, 0xc8, 0xa2, },
966         { 16 * 999.99        , 0xc8, 0xa4, },
967 };
968
969 static struct tuner_params tuner_philips_td1316_params[] = {
970         {
971                 .type   = TUNER_PARAM_TYPE_PAL,
972                 .ranges = tuner_philips_td1316_pal_ranges,
973                 .count  = ARRAY_SIZE(tuner_philips_td1316_pal_ranges),
974         },
975 };
976
977 /* ------------ TUNER_PHILIPS_TUV1236D - Philips ATSC ------------ */
978
979 static struct tuner_range tuner_tuv1236d_ntsc_ranges[] = {
980         { 16 * 157.25 /*MHz*/, 0xce, 0x01, },
981         { 16 * 454.00 /*MHz*/, 0xce, 0x02, },
982         { 16 * 999.99        , 0xce, 0x04, },
983 };
984
985
986 static struct tuner_params tuner_tuv1236d_params[] = {
987         {
988                 .type   = TUNER_PARAM_TYPE_NTSC,
989                 .ranges = tuner_tuv1236d_ntsc_ranges,
990                 .count  = ARRAY_SIZE(tuner_tuv1236d_ntsc_ranges),
991         },
992 };
993
994 /* ------------ TUNER_TNF_xxx5  - Texas Instruments--------- */
995 /* This is known to work with Tenna TVF58t5-MFF and TVF5835 MFF
996  *      but it is expected to work also with other Tenna/Ymec
997  *      models based on TI SN 761677 chip on both PAL and NTSC
998  */
999
1000 static struct tuner_range tuner_tnf_5335_d_if_pal_ranges[] = {
1001         { 16 * 168.25 /*MHz*/, 0x8e, 0x01, },
1002         { 16 * 471.25 /*MHz*/, 0x8e, 0x02, },
1003         { 16 * 999.99        , 0x8e, 0x08, },
1004 };
1005
1006 static struct tuner_range tuner_tnf_5335mf_ntsc_ranges[] = {
1007         { 16 * 169.25 /*MHz*/, 0x8e, 0x01, },
1008         { 16 * 469.25 /*MHz*/, 0x8e, 0x02, },
1009         { 16 * 999.99        , 0x8e, 0x08, },
1010 };
1011
1012 static struct tuner_params tuner_tnf_5335mf_params[] = {
1013         {
1014                 .type   = TUNER_PARAM_TYPE_NTSC,
1015                 .ranges = tuner_tnf_5335mf_ntsc_ranges,
1016                 .count  = ARRAY_SIZE(tuner_tnf_5335mf_ntsc_ranges),
1017         },
1018         {
1019                 .type   = TUNER_PARAM_TYPE_PAL,
1020                 .ranges = tuner_tnf_5335_d_if_pal_ranges,
1021                 .count  = ARRAY_SIZE(tuner_tnf_5335_d_if_pal_ranges),
1022         },
1023 };
1024
1025 /* 70-79 */
1026 /* ------------ TUNER_SAMSUNG_TCPN_2121P30A - Samsung NTSC ------------ */
1027
1028 /* '+ 4' turns on the Low Noise Amplifier */
1029 static struct tuner_range tuner_samsung_tcpn_2121p30a_ntsc_ranges[] = {
1030         { 16 * 130.00 /*MHz*/, 0xce, 0x01 + 4, },
1031         { 16 * 364.50 /*MHz*/, 0xce, 0x02 + 4, },
1032         { 16 * 999.99        , 0xce, 0x08 + 4, },
1033 };
1034
1035 static struct tuner_params tuner_samsung_tcpn_2121p30a_params[] = {
1036         {
1037                 .type   = TUNER_PARAM_TYPE_NTSC,
1038                 .ranges = tuner_samsung_tcpn_2121p30a_ntsc_ranges,
1039                 .count  = ARRAY_SIZE(tuner_samsung_tcpn_2121p30a_ntsc_ranges),
1040         },
1041 };
1042
1043 /* ------------ TUNER_THOMSON_FE6600 - DViCO Hybrid PAL ------------ */
1044
1045 static struct tuner_range tuner_thomson_fe6600_ranges[] = {
1046         { 16 * 160.00 /*MHz*/, 0xfe, 0x11, },
1047         { 16 * 442.00 /*MHz*/, 0xf6, 0x12, },
1048         { 16 * 999.99        , 0xf6, 0x18, },
1049 };
1050
1051 static struct tuner_params tuner_thomson_fe6600_params[] = {
1052         {
1053                 .type   = TUNER_PARAM_TYPE_PAL,
1054                 .ranges = tuner_thomson_fe6600_ranges,
1055                 .count  = ARRAY_SIZE(tuner_thomson_fe6600_ranges),
1056         },
1057 };
1058
1059 /* ------------ TUNER_SAMSUNG_TCPG_6121P30A - Samsung PAL ------------ */
1060
1061 /* '+ 4' turns on the Low Noise Amplifier */
1062 static struct tuner_range tuner_samsung_tcpg_6121p30a_pal_ranges[] = {
1063         { 16 * 146.25 /*MHz*/, 0xce, 0x01 + 4, },
1064         { 16 * 428.50 /*MHz*/, 0xce, 0x02 + 4, },
1065         { 16 * 999.99        , 0xce, 0x08 + 4, },
1066 };
1067
1068 static struct tuner_params tuner_samsung_tcpg_6121p30a_params[] = {
1069         {
1070                 .type   = TUNER_PARAM_TYPE_PAL,
1071                 .ranges = tuner_samsung_tcpg_6121p30a_pal_ranges,
1072                 .count  = ARRAY_SIZE(tuner_samsung_tcpg_6121p30a_pal_ranges),
1073                 .has_tda9887 = 1,
1074                 .port1_active = 1,
1075                 .port2_active = 1,
1076                 .port2_invert_for_secam_lc = 1,
1077         },
1078 };
1079
1080 /* --------------------------------------------------------------------- */
1081
1082 struct tunertype tuners[] = {
1083         /* 0-9 */
1084         [TUNER_TEMIC_PAL] = { /* TEMIC PAL */
1085                 .name   = "Temic PAL (4002 FH5)",
1086                 .params = tuner_temic_pal_params,
1087                 .count  = ARRAY_SIZE(tuner_temic_pal_params),
1088         },
1089         [TUNER_PHILIPS_PAL_I] = { /* Philips PAL_I */
1090                 .name   = "Philips PAL_I (FI1246 and compatibles)",
1091                 .params = tuner_philips_pal_i_params,
1092                 .count  = ARRAY_SIZE(tuner_philips_pal_i_params),
1093         },
1094         [TUNER_PHILIPS_NTSC] = { /* Philips NTSC */
1095                 .name   = "Philips NTSC (FI1236,FM1236 and compatibles)",
1096                 .params = tuner_philips_ntsc_params,
1097                 .count  = ARRAY_SIZE(tuner_philips_ntsc_params),
1098         },
1099         [TUNER_PHILIPS_SECAM] = { /* Philips SECAM */
1100                 .name   = "Philips (SECAM+PAL_BG) (FI1216MF, FM1216MF, FR1216MF)",
1101                 .params = tuner_philips_secam_params,
1102                 .count  = ARRAY_SIZE(tuner_philips_secam_params),
1103         },
1104         [TUNER_ABSENT] = { /* Tuner Absent */
1105                 .name   = "NoTuner",
1106         },
1107         [TUNER_PHILIPS_PAL] = { /* Philips PAL */
1108                 .name   = "Philips PAL_BG (FI1216 and compatibles)",
1109                 .params = tuner_philips_pal_params,
1110                 .count  = ARRAY_SIZE(tuner_philips_pal_params),
1111         },
1112         [TUNER_TEMIC_NTSC] = { /* TEMIC NTSC */
1113                 .name   = "Temic NTSC (4032 FY5)",
1114                 .params = tuner_temic_ntsc_params,
1115                 .count  = ARRAY_SIZE(tuner_temic_ntsc_params),
1116         },
1117         [TUNER_TEMIC_PAL_I] = { /* TEMIC PAL_I */
1118                 .name   = "Temic PAL_I (4062 FY5)",
1119                 .params = tuner_temic_pal_i_params,
1120                 .count  = ARRAY_SIZE(tuner_temic_pal_i_params),
1121         },
1122         [TUNER_TEMIC_4036FY5_NTSC] = { /* TEMIC NTSC */
1123                 .name   = "Temic NTSC (4036 FY5)",
1124                 .params = tuner_temic_4036fy5_ntsc_params,
1125                 .count  = ARRAY_SIZE(tuner_temic_4036fy5_ntsc_params),
1126         },
1127         [TUNER_ALPS_TSBH1_NTSC] = { /* TEMIC NTSC */
1128                 .name   = "Alps HSBH1",
1129                 .params = tuner_alps_tsbh1_ntsc_params,
1130                 .count  = ARRAY_SIZE(tuner_alps_tsbh1_ntsc_params),
1131         },
1132
1133         /* 10-19 */
1134         [TUNER_ALPS_TSBE1_PAL] = { /* TEMIC PAL */
1135                 .name   = "Alps TSBE1",
1136                 .params = tuner_alps_tsb_1_params,
1137                 .count  = ARRAY_SIZE(tuner_alps_tsb_1_params),
1138         },
1139         [TUNER_ALPS_TSBB5_PAL_I] = { /* Alps PAL_I */
1140                 .name   = "Alps TSBB5",
1141                 .params = tuner_alps_tsbb5_params,
1142                 .count  = ARRAY_SIZE(tuner_alps_tsbb5_params),
1143         },
1144         [TUNER_ALPS_TSBE5_PAL] = { /* Alps PAL */
1145                 .name   = "Alps TSBE5",
1146                 .params = tuner_alps_tsbe5_params,
1147                 .count  = ARRAY_SIZE(tuner_alps_tsbe5_params),
1148         },
1149         [TUNER_ALPS_TSBC5_PAL] = { /* Alps PAL */
1150                 .name   = "Alps TSBC5",
1151                 .params = tuner_alps_tsbc5_params,
1152                 .count  = ARRAY_SIZE(tuner_alps_tsbc5_params),
1153         },
1154         [TUNER_TEMIC_4006FH5_PAL] = { /* TEMIC PAL */
1155                 .name   = "Temic PAL_BG (4006FH5)",
1156                 .params = tuner_temic_4006fh5_params,
1157                 .count  = ARRAY_SIZE(tuner_temic_4006fh5_params),
1158         },
1159         [TUNER_ALPS_TSHC6_NTSC] = { /* Alps NTSC */
1160                 .name   = "Alps TSCH6",
1161                 .params = tuner_alps_tshc6_params,
1162                 .count  = ARRAY_SIZE(tuner_alps_tshc6_params),
1163         },
1164         [TUNER_TEMIC_PAL_DK] = { /* TEMIC PAL */
1165                 .name   = "Temic PAL_DK (4016 FY5)",
1166                 .params = tuner_temic_pal_dk_params,
1167                 .count  = ARRAY_SIZE(tuner_temic_pal_dk_params),
1168         },
1169         [TUNER_PHILIPS_NTSC_M] = { /* Philips NTSC */
1170                 .name   = "Philips NTSC_M (MK2)",
1171                 .params = tuner_philips_ntsc_m_params,
1172                 .count  = ARRAY_SIZE(tuner_philips_ntsc_m_params),
1173         },
1174         [TUNER_TEMIC_4066FY5_PAL_I] = { /* TEMIC PAL_I */
1175                 .name   = "Temic PAL_I (4066 FY5)",
1176                 .params = tuner_temic_4066fy5_pal_i_params,
1177                 .count  = ARRAY_SIZE(tuner_temic_4066fy5_pal_i_params),
1178         },
1179         [TUNER_TEMIC_4006FN5_MULTI_PAL] = { /* TEMIC PAL */
1180                 .name   = "Temic PAL* auto (4006 FN5)",
1181                 .params = tuner_temic_4006fn5_multi_params,
1182                 .count  = ARRAY_SIZE(tuner_temic_4006fn5_multi_params),
1183         },
1184
1185         /* 20-29 */
1186         [TUNER_TEMIC_4009FR5_PAL] = { /* TEMIC PAL */
1187                 .name   = "Temic PAL_BG (4009 FR5) or PAL_I (4069 FR5)",
1188                 .params = tuner_temic_4009f_5_params,
1189                 .count  = ARRAY_SIZE(tuner_temic_4009f_5_params),
1190         },
1191         [TUNER_TEMIC_4039FR5_NTSC] = { /* TEMIC NTSC */
1192                 .name   = "Temic NTSC (4039 FR5)",
1193                 .params = tuner_temic_4039fr5_params,
1194                 .count  = ARRAY_SIZE(tuner_temic_4039fr5_params),
1195         },
1196         [TUNER_TEMIC_4046FM5] = { /* TEMIC PAL */
1197                 .name   = "Temic PAL/SECAM multi (4046 FM5)",
1198                 .params = tuner_temic_4046fm5_params,
1199                 .count  = ARRAY_SIZE(tuner_temic_4046fm5_params),
1200         },
1201         [TUNER_PHILIPS_PAL_DK] = { /* Philips PAL */
1202                 .name   = "Philips PAL_DK (FI1256 and compatibles)",
1203                 .params = tuner_philips_pal_dk_params,
1204                 .count  = ARRAY_SIZE(tuner_philips_pal_dk_params),
1205         },
1206         [TUNER_PHILIPS_FQ1216ME] = { /* Philips PAL */
1207                 .name   = "Philips PAL/SECAM multi (FQ1216ME)",
1208                 .params = tuner_philips_fq1216me_params,
1209                 .count  = ARRAY_SIZE(tuner_philips_fq1216me_params),
1210         },
1211         [TUNER_LG_PAL_I_FM] = { /* LGINNOTEK PAL_I */
1212                 .name   = "LG PAL_I+FM (TAPC-I001D)",
1213                 .params = tuner_lg_pal_i_fm_params,
1214                 .count  = ARRAY_SIZE(tuner_lg_pal_i_fm_params),
1215         },
1216         [TUNER_LG_PAL_I] = { /* LGINNOTEK PAL_I */
1217                 .name   = "LG PAL_I (TAPC-I701D)",
1218                 .params = tuner_lg_pal_i_params,
1219                 .count  = ARRAY_SIZE(tuner_lg_pal_i_params),
1220         },
1221         [TUNER_LG_NTSC_FM] = { /* LGINNOTEK NTSC */
1222                 .name   = "LG NTSC+FM (TPI8NSR01F)",
1223                 .params = tuner_lg_ntsc_fm_params,
1224                 .count  = ARRAY_SIZE(tuner_lg_ntsc_fm_params),
1225         },
1226         [TUNER_LG_PAL_FM] = { /* LGINNOTEK PAL */
1227                 .name   = "LG PAL_BG+FM (TPI8PSB01D)",
1228                 .params = tuner_lg_pal_fm_params,
1229                 .count  = ARRAY_SIZE(tuner_lg_pal_fm_params),
1230         },
1231         [TUNER_LG_PAL] = { /* LGINNOTEK PAL */
1232                 .name   = "LG PAL_BG (TPI8PSB11D)",
1233                 .params = tuner_lg_pal_params,
1234                 .count  = ARRAY_SIZE(tuner_lg_pal_params),
1235         },
1236
1237         /* 30-39 */
1238         [TUNER_TEMIC_4009FN5_MULTI_PAL_FM] = { /* TEMIC PAL */
1239                 .name   = "Temic PAL* auto + FM (4009 FN5)",
1240                 .params = tuner_temic_4009_fn5_multi_pal_fm_params,
1241                 .count  = ARRAY_SIZE(tuner_temic_4009_fn5_multi_pal_fm_params),
1242         },
1243         [TUNER_SHARP_2U5JF5540_NTSC] = { /* SHARP NTSC */
1244                 .name   = "SHARP NTSC_JP (2U5JF5540)",
1245                 .params = tuner_sharp_2u5jf5540_params,
1246                 .count  = ARRAY_SIZE(tuner_sharp_2u5jf5540_params),
1247         },
1248         [TUNER_Samsung_PAL_TCPM9091PD27] = { /* Samsung PAL */
1249                 .name   = "Samsung PAL TCPM9091PD27",
1250                 .params = tuner_samsung_pal_tcpm9091pd27_params,
1251                 .count  = ARRAY_SIZE(tuner_samsung_pal_tcpm9091pd27_params),
1252         },
1253         [TUNER_MT2032] = { /* Microtune PAL|NTSC */
1254                 .name   = "MT20xx universal",
1255                 /* see mt20xx.c for details */ },
1256         [TUNER_TEMIC_4106FH5] = { /* TEMIC PAL */
1257                 .name   = "Temic PAL_BG (4106 FH5)",
1258                 .params = tuner_temic_4106fh5_params,
1259                 .count  = ARRAY_SIZE(tuner_temic_4106fh5_params),
1260         },
1261         [TUNER_TEMIC_4012FY5] = { /* TEMIC PAL */
1262                 .name   = "Temic PAL_DK/SECAM_L (4012 FY5)",
1263                 .params = tuner_temic_4012fy5_params,
1264                 .count  = ARRAY_SIZE(tuner_temic_4012fy5_params),
1265         },
1266         [TUNER_TEMIC_4136FY5] = { /* TEMIC NTSC */
1267                 .name   = "Temic NTSC (4136 FY5)",
1268                 .params = tuner_temic_4136_fy5_params,
1269                 .count  = ARRAY_SIZE(tuner_temic_4136_fy5_params),
1270         },
1271         [TUNER_LG_PAL_NEW_TAPC] = { /* LGINNOTEK PAL */
1272                 .name   = "LG PAL (newer TAPC series)",
1273                 .params = tuner_lg_pal_new_tapc_params,
1274                 .count  = ARRAY_SIZE(tuner_lg_pal_new_tapc_params),
1275         },
1276         [TUNER_PHILIPS_FM1216ME_MK3] = { /* Philips PAL */
1277                 .name   = "Philips PAL/SECAM multi (FM1216ME MK3)",
1278                 .params = tuner_fm1216me_mk3_params,
1279                 .count  = ARRAY_SIZE(tuner_fm1216me_mk3_params),
1280         },
1281         [TUNER_LG_NTSC_NEW_TAPC] = { /* LGINNOTEK NTSC */
1282                 .name   = "LG NTSC (newer TAPC series)",
1283                 .params = tuner_lg_ntsc_new_tapc_params,
1284                 .count  = ARRAY_SIZE(tuner_lg_ntsc_new_tapc_params),
1285         },
1286
1287         /* 40-49 */
1288         [TUNER_HITACHI_NTSC] = { /* HITACHI NTSC */
1289                 .name   = "HITACHI V7-J180AT",
1290                 .params = tuner_hitachi_ntsc_params,
1291                 .count  = ARRAY_SIZE(tuner_hitachi_ntsc_params),
1292         },
1293         [TUNER_PHILIPS_PAL_MK] = { /* Philips PAL */
1294                 .name   = "Philips PAL_MK (FI1216 MK)",
1295                 .params = tuner_philips_pal_mk_params,
1296                 .count  = ARRAY_SIZE(tuner_philips_pal_mk_params),
1297         },
1298         [TUNER_PHILIPS_ATSC] = { /* Philips ATSC */
1299                 .name   = "Philips 1236D ATSC/NTSC dual in",
1300                 .params = tuner_philips_atsc_params,
1301                 .count  = ARRAY_SIZE(tuner_philips_atsc_params),
1302         },
1303         [TUNER_PHILIPS_FM1236_MK3] = { /* Philips NTSC */
1304                 .name   = "Philips NTSC MK3 (FM1236MK3 or FM1236/F)",
1305                 .params = tuner_fm1236_mk3_params,
1306                 .count  = ARRAY_SIZE(tuner_fm1236_mk3_params),
1307         },
1308         [TUNER_PHILIPS_4IN1] = { /* Philips NTSC */
1309                 .name   = "Philips 4 in 1 (ATI TV Wonder Pro/Conexant)",
1310                 .params = tuner_philips_4in1_params,
1311                 .count  = ARRAY_SIZE(tuner_philips_4in1_params),
1312         },
1313         [TUNER_MICROTUNE_4049FM5] = { /* Microtune PAL */
1314                 .name   = "Microtune 4049 FM5",
1315                 .params = tuner_microtune_4049_fm5_params,
1316                 .count  = ARRAY_SIZE(tuner_microtune_4049_fm5_params),
1317         },
1318         [TUNER_PANASONIC_VP27] = { /* Panasonic NTSC */
1319                 .name   = "Panasonic VP27s/ENGE4324D",
1320                 .params = tuner_panasonic_vp27_params,
1321                 .count  = ARRAY_SIZE(tuner_panasonic_vp27_params),
1322         },
1323         [TUNER_LG_NTSC_TAPE] = { /* LGINNOTEK NTSC */
1324                 .name   = "LG NTSC (TAPE series)",
1325                 .params = tuner_fm1236_mk3_params,
1326                 .count  = ARRAY_SIZE(tuner_fm1236_mk3_params),
1327         },
1328         [TUNER_TNF_8831BGFF] = { /* Philips PAL */
1329                 .name   = "Tenna TNF 8831 BGFF)",
1330                 .params = tuner_tnf_8831bgff_params,
1331                 .count  = ARRAY_SIZE(tuner_tnf_8831bgff_params),
1332         },
1333         [TUNER_MICROTUNE_4042FI5] = { /* Microtune NTSC */
1334                 .name   = "Microtune 4042 FI5 ATSC/NTSC dual in",
1335                 .params = tuner_microtune_4042fi5_params,
1336                 .count  = ARRAY_SIZE(tuner_microtune_4042fi5_params),
1337         },
1338
1339         /* 50-59 */
1340         [TUNER_TCL_2002N] = { /* TCL NTSC */
1341                 .name   = "TCL 2002N",
1342                 .params = tuner_tcl_2002n_params,
1343                 .count  = ARRAY_SIZE(tuner_tcl_2002n_params),
1344         },
1345         [TUNER_PHILIPS_FM1256_IH3] = { /* Philips PAL */
1346                 .name   = "Philips PAL/SECAM_D (FM 1256 I-H3)",
1347                 .params = tuner_philips_fm1256_ih3_params,
1348                 .count  = ARRAY_SIZE(tuner_philips_fm1256_ih3_params),
1349         },
1350         [TUNER_THOMSON_DTT7610] = { /* THOMSON ATSC */
1351                 .name   = "Thomson DTT 7610 (ATSC/NTSC)",
1352                 .params = tuner_thomson_dtt7610_params,
1353                 .count  = ARRAY_SIZE(tuner_thomson_dtt7610_params),
1354         },
1355         [TUNER_PHILIPS_FQ1286] = { /* Philips NTSC */
1356                 .name   = "Philips FQ1286",
1357                 .params = tuner_philips_fq1286_params,
1358                 .count  = ARRAY_SIZE(tuner_philips_fq1286_params),
1359         },
1360         [TUNER_PHILIPS_TDA8290] = { /* Philips PAL|NTSC */
1361                 .name   = "tda8290+75",
1362                 /* see tda8290.c for details */ },
1363         [TUNER_TCL_2002MB] = { /* TCL PAL */
1364                 .name   = "TCL 2002MB",
1365                 .params = tuner_tcl_2002mb_params,
1366                 .count  = ARRAY_SIZE(tuner_tcl_2002mb_params),
1367         },
1368         [TUNER_PHILIPS_FQ1216AME_MK4] = { /* Philips PAL */
1369                 .name   = "Philips PAL/SECAM multi (FQ1216AME MK4)",
1370                 .params = tuner_philips_fq1216ame_mk4_params,
1371                 .count  = ARRAY_SIZE(tuner_philips_fq1216ame_mk4_params),
1372         },
1373         [TUNER_PHILIPS_FQ1236A_MK4] = { /* Philips NTSC */
1374                 .name   = "Philips FQ1236A MK4",
1375                 .params = tuner_philips_fq1236a_mk4_params,
1376                 .count  = ARRAY_SIZE(tuner_philips_fq1236a_mk4_params),
1377         },
1378         [TUNER_YMEC_TVF_8531MF] = { /* Philips NTSC */
1379                 .name   = "Ymec TVision TVF-8531MF/8831MF/8731MF",
1380                 .params = tuner_ymec_tvf_8531mf_params,
1381                 .count  = ARRAY_SIZE(tuner_ymec_tvf_8531mf_params),
1382         },
1383         [TUNER_YMEC_TVF_5533MF] = { /* Philips NTSC */
1384                 .name   = "Ymec TVision TVF-5533MF",
1385                 .params = tuner_ymec_tvf_5533mf_params,
1386                 .count  = ARRAY_SIZE(tuner_ymec_tvf_5533mf_params),
1387         },
1388
1389         /* 60-69 */
1390         [TUNER_THOMSON_DTT761X] = { /* THOMSON ATSC */
1391                 /* DTT 7611 7611A 7612 7613 7613A 7614 7615 7615A */
1392                 .name   = "Thomson DTT 761X (ATSC/NTSC)",
1393                 .params = tuner_thomson_dtt761x_params,
1394                 .count  = ARRAY_SIZE(tuner_thomson_dtt761x_params),
1395         },
1396         [TUNER_TENA_9533_DI] = { /* Philips PAL */
1397                 .name   = "Tena TNF9533-D/IF/TNF9533-B/DF",
1398                 .params = tuner_tena_9533_di_params,
1399                 .count  = ARRAY_SIZE(tuner_tena_9533_di_params),
1400         },
1401         [TUNER_TEA5767] = { /* Philips RADIO */
1402                 .name   = "Philips TEA5767HN FM Radio",
1403                 /* see tea5767.c for details */
1404         },
1405         [TUNER_PHILIPS_FMD1216ME_MK3] = { /* Philips PAL */
1406                 .name   = "Philips FMD1216ME MK3 Hybrid Tuner",
1407                 .params = tuner_philips_fmd1216me_mk3_params,
1408                 .count  = ARRAY_SIZE(tuner_philips_fmd1216me_mk3_params),
1409         },
1410         [TUNER_LG_TDVS_H06XF] = { /* LGINNOTEK ATSC */
1411                 .name   = "LG TDVS-H06xF", /* H061F, H062F & H064F */
1412                 .params = tuner_lg_tdvs_h06xf_params,
1413                 .count  = ARRAY_SIZE(tuner_lg_tdvs_h06xf_params),
1414         },
1415         [TUNER_YMEC_TVF66T5_B_DFF] = { /* Philips PAL */
1416                 .name   = "Ymec TVF66T5-B/DFF",
1417                 .params = tuner_ymec_tvf66t5_b_dff_params,
1418                 .count  = ARRAY_SIZE(tuner_ymec_tvf66t5_b_dff_params),
1419         },
1420         [TUNER_LG_TALN] = { /* LGINNOTEK NTSC / PAL / SECAM */
1421                 .name   = "LG TALN series",
1422                 .params = tuner_lg_taln_params,
1423                 .count  = ARRAY_SIZE(tuner_lg_taln_params),
1424         },
1425         [TUNER_PHILIPS_TD1316] = { /* Philips PAL */
1426                 .name   = "Philips TD1316 Hybrid Tuner",
1427                 .params = tuner_philips_td1316_params,
1428                 .count  = ARRAY_SIZE(tuner_philips_td1316_params),
1429         },
1430         [TUNER_PHILIPS_TUV1236D] = { /* Philips ATSC */
1431                 .name   = "Philips TUV1236D ATSC/NTSC dual in",
1432                 .params = tuner_tuv1236d_params,
1433                 .count  = ARRAY_SIZE(tuner_tuv1236d_params),
1434         },
1435         [TUNER_TNF_5335MF] = { /* Tenna PAL/NTSC */
1436                 .name   = "Tena TNF 5335 and similar models",
1437                 .params = tuner_tnf_5335mf_params,
1438                 .count  = ARRAY_SIZE(tuner_tnf_5335mf_params),
1439         },
1440
1441         /* 70-79 */
1442         [TUNER_SAMSUNG_TCPN_2121P30A] = { /* Samsung NTSC */
1443                 .name   = "Samsung TCPN 2121P30A",
1444                 .params = tuner_samsung_tcpn_2121p30a_params,
1445                 .count  = ARRAY_SIZE(tuner_samsung_tcpn_2121p30a_params),
1446         },
1447         [TUNER_XCEIVE_XC3028] = { /* Xceive 3028 */
1448                 .name   = "Xceive xc3028",
1449                 /* see xc3028.c for details */
1450         },
1451         [TUNER_THOMSON_FE6600] = { /* Thomson PAL / DVB-T */
1452                 .name   = "Thomson FE6600",
1453                 .params = tuner_thomson_fe6600_params,
1454                 .count  = ARRAY_SIZE(tuner_thomson_fe6600_params),
1455         },
1456         [TUNER_SAMSUNG_TCPG_6121P30A] = { /* Samsung PAL */
1457                 .name   = "Samsung TCPG 6121P30A",
1458                 .params = tuner_samsung_tcpg_6121p30a_params,
1459                 .count  = ARRAY_SIZE(tuner_samsung_tcpg_6121p30a_params),
1460         },
1461         [TUNER_TDA9887] = { /* Philips TDA 9887 IF PLL Demodulator.
1462                                 This chip is part of some modern tuners */
1463                 .name   = "Philips TDA988[5,6,7] IF PLL Demodulator",
1464                 /* see tda9887.c for details */
1465         },
1466 };
1467
1468 unsigned const int tuner_count = ARRAY_SIZE(tuners);