V4L/DVB (4270): Add tda9887-specific tuner configuration
[linux-2.6] / drivers / media / video / tuner-types.c
1 /*
2  *
3  * i2c tv tuner chip device type database.
4  *
5  */
6
7 #include <linux/i2c.h>
8 #include <media/tuner.h>
9 #include <media/tuner-types.h>
10
11 /* ---------------------------------------------------------------------- */
12
13 /*
14  *      The floats in the tuner struct are computed at compile time
15  *      by gcc and cast back to integers. Thus we don't violate the
16  *      "no float in kernel" rule.
17  *
18  *      A tuner_range may be referenced by multiple tuner_params structs.
19  *      There are many duplicates in here. Reusing tuner_range structs,
20  *      rather than defining new ones for each tuner, will cut down on
21  *      memory usage, and is preferred when possible.
22  *
23  *      Each tuner_params array may contain one or more elements, one
24  *      for each video standard.
25  *
26  *      FIXME: tuner_params struct contains an element, tda988x. We must
27  *      set this for all tuners that contain a tda988x chip, and then we
28  *      can remove this setting from the various card structs.
29  *
30  *      FIXME: Right now, all tuners are using the first tuner_params[]
31  *      array element for analog mode. In the future, we will be merging
32  *      similar tuner definitions together, such that each tuner definition
33  *      will have a tuner_params struct for each available video standard.
34  *      At that point, the tuner_params[] array element will be chosen
35  *      based on the video standard in use.
36  */
37
38 /* 0-9 */
39 /* ------------ TUNER_TEMIC_PAL - TEMIC PAL ------------ */
40
41 static struct tuner_range tuner_temic_pal_ranges[] = {
42         { 16 * 140.25 /*MHz*/, 0x8e, 0x02, },
43         { 16 * 463.25 /*MHz*/, 0x8e, 0x04, },
44         { 16 * 999.99        , 0x8e, 0x01, },
45 };
46
47 static struct tuner_params tuner_temic_pal_params[] = {
48         {
49                 .type   = TUNER_PARAM_TYPE_PAL,
50                 .ranges = tuner_temic_pal_ranges,
51                 .count  = ARRAY_SIZE(tuner_temic_pal_ranges),
52         },
53 };
54
55 /* ------------ TUNER_PHILIPS_PAL_I - Philips PAL_I ------------ */
56
57 static struct tuner_range tuner_philips_pal_i_ranges[] = {
58         { 16 * 140.25 /*MHz*/, 0x8e, 0xa0, },
59         { 16 * 463.25 /*MHz*/, 0x8e, 0x90, },
60         { 16 * 999.99        , 0x8e, 0x30, },
61 };
62
63 static struct tuner_params tuner_philips_pal_i_params[] = {
64         {
65                 .type   = TUNER_PARAM_TYPE_PAL,
66                 .ranges = tuner_philips_pal_i_ranges,
67                 .count  = ARRAY_SIZE(tuner_philips_pal_i_ranges),
68         },
69 };
70
71 /* ------------ TUNER_PHILIPS_NTSC - Philips NTSC ------------ */
72
73 static struct tuner_range tuner_philips_ntsc_ranges[] = {
74         { 16 * 157.25 /*MHz*/, 0x8e, 0xa0, },
75         { 16 * 451.25 /*MHz*/, 0x8e, 0x90, },
76         { 16 * 999.99        , 0x8e, 0x30, },
77 };
78
79 static struct tuner_params tuner_philips_ntsc_params[] = {
80         {
81                 .type   = TUNER_PARAM_TYPE_NTSC,
82                 .ranges = tuner_philips_ntsc_ranges,
83                 .count  = ARRAY_SIZE(tuner_philips_ntsc_ranges),
84                 .cb_first_if_lower_freq = 1,
85         },
86 };
87
88 /* ------------ TUNER_PHILIPS_SECAM - Philips SECAM ------------ */
89
90 static struct tuner_range tuner_philips_secam_ranges[] = {
91         { 16 * 168.25 /*MHz*/, 0x8e, 0xa7, },
92         { 16 * 447.25 /*MHz*/, 0x8e, 0x97, },
93         { 16 * 999.99        , 0x8e, 0x37, },
94 };
95
96 static struct tuner_params tuner_philips_secam_params[] = {
97         {
98                 .type   = TUNER_PARAM_TYPE_SECAM,
99                 .ranges = tuner_philips_secam_ranges,
100                 .count  = ARRAY_SIZE(tuner_philips_secam_ranges),
101                 .cb_first_if_lower_freq = 1,
102         },
103 };
104
105 /* ------------ TUNER_PHILIPS_PAL - Philips PAL ------------ */
106
107 static struct tuner_range tuner_philips_pal_ranges[] = {
108         { 16 * 168.25 /*MHz*/, 0x8e, 0xa0, },
109         { 16 * 447.25 /*MHz*/, 0x8e, 0x90, },
110         { 16 * 999.99        , 0x8e, 0x30, },
111 };
112
113 static struct tuner_params tuner_philips_pal_params[] = {
114         {
115                 .type   = TUNER_PARAM_TYPE_PAL,
116                 .ranges = tuner_philips_pal_ranges,
117                 .count  = ARRAY_SIZE(tuner_philips_pal_ranges),
118                 .cb_first_if_lower_freq = 1,
119         },
120 };
121
122 /* ------------ TUNER_TEMIC_NTSC - TEMIC NTSC ------------ */
123
124 static struct tuner_range tuner_temic_ntsc_ranges[] = {
125         { 16 * 157.25 /*MHz*/, 0x8e, 0x02, },
126         { 16 * 463.25 /*MHz*/, 0x8e, 0x04, },
127         { 16 * 999.99        , 0x8e, 0x01, },
128 };
129
130 static struct tuner_params tuner_temic_ntsc_params[] = {
131         {
132                 .type   = TUNER_PARAM_TYPE_NTSC,
133                 .ranges = tuner_temic_ntsc_ranges,
134                 .count  = ARRAY_SIZE(tuner_temic_ntsc_ranges),
135         },
136 };
137
138 /* ------------ TUNER_TEMIC_PAL_I - TEMIC PAL_I ------------ */
139
140 static struct tuner_range tuner_temic_pal_i_ranges[] = {
141         { 16 * 170.00 /*MHz*/, 0x8e, 0x02, },
142         { 16 * 450.00 /*MHz*/, 0x8e, 0x04, },
143         { 16 * 999.99        , 0x8e, 0x01, },
144 };
145
146 static struct tuner_params tuner_temic_pal_i_params[] = {
147         {
148                 .type   = TUNER_PARAM_TYPE_PAL,
149                 .ranges = tuner_temic_pal_i_ranges,
150                 .count  = ARRAY_SIZE(tuner_temic_pal_i_ranges),
151         },
152 };
153
154 /* ------------ TUNER_TEMIC_4036FY5_NTSC - TEMIC NTSC ------------ */
155
156 static struct tuner_range tuner_temic_4036fy5_ntsc_ranges[] = {
157         { 16 * 157.25 /*MHz*/, 0x8e, 0xa0, },
158         { 16 * 463.25 /*MHz*/, 0x8e, 0x90, },
159         { 16 * 999.99        , 0x8e, 0x30, },
160 };
161
162 static struct tuner_params tuner_temic_4036fy5_ntsc_params[] = {
163         {
164                 .type   = TUNER_PARAM_TYPE_NTSC,
165                 .ranges = tuner_temic_4036fy5_ntsc_ranges,
166                 .count  = ARRAY_SIZE(tuner_temic_4036fy5_ntsc_ranges),
167         },
168 };
169
170 /* ------------ TUNER_ALPS_TSBH1_NTSC - TEMIC NTSC ------------ */
171
172 static struct tuner_range tuner_alps_tsb_1_ranges[] = {
173         { 16 * 137.25 /*MHz*/, 0x8e, 0x01, },
174         { 16 * 385.25 /*MHz*/, 0x8e, 0x02, },
175         { 16 * 999.99        , 0x8e, 0x08, },
176 };
177
178 static struct tuner_params tuner_alps_tsbh1_ntsc_params[] = {
179         {
180                 .type   = TUNER_PARAM_TYPE_NTSC,
181                 .ranges = tuner_alps_tsb_1_ranges,
182                 .count  = ARRAY_SIZE(tuner_alps_tsb_1_ranges),
183         },
184 };
185
186 /* 10-19 */
187 /* ------------ TUNER_ALPS_TSBE1_PAL - TEMIC PAL ------------ */
188
189 static struct tuner_params tuner_alps_tsb_1_params[] = {
190         {
191                 .type   = TUNER_PARAM_TYPE_PAL,
192                 .ranges = tuner_alps_tsb_1_ranges,
193                 .count  = ARRAY_SIZE(tuner_alps_tsb_1_ranges),
194         },
195 };
196
197 /* ------------ TUNER_ALPS_TSBB5_PAL_I - Alps PAL_I ------------ */
198
199 static struct tuner_range tuner_alps_tsb_5_pal_ranges[] = {
200         { 16 * 133.25 /*MHz*/, 0x8e, 0x01, },
201         { 16 * 351.25 /*MHz*/, 0x8e, 0x02, },
202         { 16 * 999.99        , 0x8e, 0x08, },
203 };
204
205 static struct tuner_params tuner_alps_tsbb5_params[] = {
206         {
207                 .type   = TUNER_PARAM_TYPE_PAL,
208                 .ranges = tuner_alps_tsb_5_pal_ranges,
209                 .count  = ARRAY_SIZE(tuner_alps_tsb_5_pal_ranges),
210         },
211 };
212
213 /* ------------ TUNER_ALPS_TSBE5_PAL - Alps PAL ------------ */
214
215 static struct tuner_params tuner_alps_tsbe5_params[] = {
216         {
217                 .type   = TUNER_PARAM_TYPE_PAL,
218                 .ranges = tuner_alps_tsb_5_pal_ranges,
219                 .count  = ARRAY_SIZE(tuner_alps_tsb_5_pal_ranges),
220         },
221 };
222
223 /* ------------ TUNER_ALPS_TSBC5_PAL - Alps PAL ------------ */
224
225 static struct tuner_params tuner_alps_tsbc5_params[] = {
226         {
227                 .type   = TUNER_PARAM_TYPE_PAL,
228                 .ranges = tuner_alps_tsb_5_pal_ranges,
229                 .count  = ARRAY_SIZE(tuner_alps_tsb_5_pal_ranges),
230         },
231 };
232
233 /* ------------ TUNER_TEMIC_4006FH5_PAL - TEMIC PAL ------------ */
234
235 static struct tuner_range tuner_lg_pal_ranges[] = {
236         { 16 * 170.00 /*MHz*/, 0x8e, 0xa0, },
237         { 16 * 450.00 /*MHz*/, 0x8e, 0x90, },
238         { 16 * 999.99        , 0x8e, 0x30, },
239 };
240
241 static struct tuner_params tuner_temic_4006fh5_params[] = {
242         {
243                 .type   = TUNER_PARAM_TYPE_PAL,
244                 .ranges = tuner_lg_pal_ranges,
245                 .count  = ARRAY_SIZE(tuner_lg_pal_ranges),
246         },
247 };
248
249 /* ------------ TUNER_ALPS_TSHC6_NTSC - Alps NTSC ------------ */
250
251 static struct tuner_range tuner_alps_tshc6_ntsc_ranges[] = {
252         { 16 * 137.25 /*MHz*/, 0x8e, 0x14, },
253         { 16 * 385.25 /*MHz*/, 0x8e, 0x12, },
254         { 16 * 999.99        , 0x8e, 0x11, },
255 };
256
257 static struct tuner_params tuner_alps_tshc6_params[] = {
258         {
259                 .type   = TUNER_PARAM_TYPE_NTSC,
260                 .ranges = tuner_alps_tshc6_ntsc_ranges,
261                 .count  = ARRAY_SIZE(tuner_alps_tshc6_ntsc_ranges),
262         },
263 };
264
265 /* ------------ TUNER_TEMIC_PAL_DK - TEMIC PAL ------------ */
266
267 static struct tuner_range tuner_temic_pal_dk_ranges[] = {
268         { 16 * 168.25 /*MHz*/, 0x8e, 0xa0, },
269         { 16 * 456.25 /*MHz*/, 0x8e, 0x90, },
270         { 16 * 999.99        , 0x8e, 0x30, },
271 };
272
273 static struct tuner_params tuner_temic_pal_dk_params[] = {
274         {
275                 .type   = TUNER_PARAM_TYPE_PAL,
276                 .ranges = tuner_temic_pal_dk_ranges,
277                 .count  = ARRAY_SIZE(tuner_temic_pal_dk_ranges),
278         },
279 };
280
281 /* ------------ TUNER_PHILIPS_NTSC_M - Philips NTSC ------------ */
282
283 static struct tuner_range tuner_philips_ntsc_m_ranges[] = {
284         { 16 * 160.00 /*MHz*/, 0x8e, 0xa0, },
285         { 16 * 454.00 /*MHz*/, 0x8e, 0x90, },
286         { 16 * 999.99        , 0x8e, 0x30, },
287 };
288
289 static struct tuner_params tuner_philips_ntsc_m_params[] = {
290         {
291                 .type   = TUNER_PARAM_TYPE_NTSC,
292                 .ranges = tuner_philips_ntsc_m_ranges,
293                 .count  = ARRAY_SIZE(tuner_philips_ntsc_m_ranges),
294         },
295 };
296
297 /* ------------ TUNER_TEMIC_4066FY5_PAL_I - TEMIC PAL_I ------------ */
298
299 static struct tuner_range tuner_temic_40x6f_5_pal_ranges[] = {
300         { 16 * 169.00 /*MHz*/, 0x8e, 0xa0, },
301         { 16 * 454.00 /*MHz*/, 0x8e, 0x90, },
302         { 16 * 999.99        , 0x8e, 0x30, },
303 };
304
305 static struct tuner_params tuner_temic_4066fy5_pal_i_params[] = {
306         {
307                 .type   = TUNER_PARAM_TYPE_PAL,
308                 .ranges = tuner_temic_40x6f_5_pal_ranges,
309                 .count  = ARRAY_SIZE(tuner_temic_40x6f_5_pal_ranges),
310         },
311 };
312
313 /* ------------ TUNER_TEMIC_4006FN5_MULTI_PAL - TEMIC PAL ------------ */
314
315 static struct tuner_params tuner_temic_4006fn5_multi_params[] = {
316         {
317                 .type   = TUNER_PARAM_TYPE_PAL,
318                 .ranges = tuner_temic_40x6f_5_pal_ranges,
319                 .count  = ARRAY_SIZE(tuner_temic_40x6f_5_pal_ranges),
320         },
321 };
322
323 /* 20-29 */
324 /* ------------ TUNER_TEMIC_4009FR5_PAL - TEMIC PAL ------------ */
325
326 static struct tuner_range tuner_temic_4009f_5_pal_ranges[] = {
327         { 16 * 141.00 /*MHz*/, 0x8e, 0xa0, },
328         { 16 * 464.00 /*MHz*/, 0x8e, 0x90, },
329         { 16 * 999.99        , 0x8e, 0x30, },
330 };
331
332 static struct tuner_params tuner_temic_4009f_5_params[] = {
333         {
334                 .type   = TUNER_PARAM_TYPE_PAL,
335                 .ranges = tuner_temic_4009f_5_pal_ranges,
336                 .count  = ARRAY_SIZE(tuner_temic_4009f_5_pal_ranges),
337         },
338 };
339
340 /* ------------ TUNER_TEMIC_4039FR5_NTSC - TEMIC NTSC ------------ */
341
342 static struct tuner_range tuner_temic_4x3x_f_5_ntsc_ranges[] = {
343         { 16 * 158.00 /*MHz*/, 0x8e, 0xa0, },
344         { 16 * 453.00 /*MHz*/, 0x8e, 0x90, },
345         { 16 * 999.99        , 0x8e, 0x30, },
346 };
347
348 static struct tuner_params tuner_temic_4039fr5_params[] = {
349         {
350                 .type   = TUNER_PARAM_TYPE_NTSC,
351                 .ranges = tuner_temic_4x3x_f_5_ntsc_ranges,
352                 .count  = ARRAY_SIZE(tuner_temic_4x3x_f_5_ntsc_ranges),
353         },
354 };
355
356 /* ------------ TUNER_TEMIC_4046FM5 - TEMIC PAL ------------ */
357
358 static struct tuner_params tuner_temic_4046fm5_params[] = {
359         {
360                 .type   = TUNER_PARAM_TYPE_PAL,
361                 .ranges = tuner_temic_40x6f_5_pal_ranges,
362                 .count  = ARRAY_SIZE(tuner_temic_40x6f_5_pal_ranges),
363         },
364 };
365
366 /* ------------ TUNER_PHILIPS_PAL_DK - Philips PAL ------------ */
367
368 static struct tuner_params tuner_philips_pal_dk_params[] = {
369         {
370                 .type   = TUNER_PARAM_TYPE_PAL,
371                 .ranges = tuner_lg_pal_ranges,
372                 .count  = ARRAY_SIZE(tuner_lg_pal_ranges),
373         },
374 };
375
376 /* ------------ TUNER_PHILIPS_FQ1216ME - Philips PAL ------------ */
377
378 static struct tuner_params tuner_philips_fq1216me_params[] = {
379         {
380                 .type   = TUNER_PARAM_TYPE_PAL,
381                 .ranges = tuner_lg_pal_ranges,
382                 .count  = ARRAY_SIZE(tuner_lg_pal_ranges),
383                 .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         },
654 };
655
656 /* ------------ TUNER_PANASONIC_VP27 - Panasonic NTSC ------------ */
657
658 static struct tuner_range tuner_panasonic_vp27_ntsc_ranges[] = {
659         { 16 * 160.00 /*MHz*/, 0xce, 0x01, },
660         { 16 * 454.00 /*MHz*/, 0xce, 0x02, },
661         { 16 * 999.99        , 0xce, 0x08, },
662 };
663
664 static struct tuner_params tuner_panasonic_vp27_params[] = {
665         {
666                 .type   = TUNER_PARAM_TYPE_NTSC,
667                 .ranges = tuner_panasonic_vp27_ntsc_ranges,
668                 .count  = ARRAY_SIZE(tuner_panasonic_vp27_ntsc_ranges),
669                 .has_tda9887 = 1,
670                 .intercarrier_mode = 1,
671         },
672 };
673
674 /* ------------ TUNER_LG_NTSC_TAPE - LGINNOTEK NTSC ------------ */
675
676 static struct tuner_params tuner_lg_ntsc_tape_params[] = {
677         {
678                 .type   = TUNER_PARAM_TYPE_NTSC,
679                 .ranges = tuner_fm1236_mk3_ntsc_ranges,
680                 .count  = ARRAY_SIZE(tuner_fm1236_mk3_ntsc_ranges),
681         },
682 };
683
684 /* ------------ TUNER_TNF_8831BGFF - Philips PAL ------------ */
685
686 static struct tuner_range tuner_tnf_8831bgff_pal_ranges[] = {
687         { 16 * 161.25 /*MHz*/, 0x8e, 0xa0, },
688         { 16 * 463.25 /*MHz*/, 0x8e, 0x90, },
689         { 16 * 999.99        , 0x8e, 0x30, },
690 };
691
692 static struct tuner_params tuner_tnf_8831bgff_params[] = {
693         {
694                 .type   = TUNER_PARAM_TYPE_PAL,
695                 .ranges = tuner_tnf_8831bgff_pal_ranges,
696                 .count  = ARRAY_SIZE(tuner_tnf_8831bgff_pal_ranges),
697         },
698 };
699
700 /* ------------ TUNER_MICROTUNE_4042FI5 - Microtune NTSC ------------ */
701
702 static struct tuner_range tuner_microtune_4042fi5_ntsc_ranges[] = {
703         { 16 * 162.00 /*MHz*/, 0x8e, 0xa2, },
704         { 16 * 457.00 /*MHz*/, 0x8e, 0x94, },
705         { 16 * 999.99        , 0x8e, 0x31, },
706 };
707
708 static struct tuner_params tuner_microtune_4042fi5_params[] = {
709         {
710                 .type   = TUNER_PARAM_TYPE_NTSC,
711                 .ranges = tuner_microtune_4042fi5_ntsc_ranges,
712                 .count  = ARRAY_SIZE(tuner_microtune_4042fi5_ntsc_ranges),
713         },
714 };
715
716 /* 50-59 */
717 /* ------------ TUNER_TCL_2002N - TCL NTSC ------------ */
718
719 static struct tuner_range tuner_tcl_2002n_ntsc_ranges[] = {
720         { 16 * 172.00 /*MHz*/, 0x8e, 0x01, },
721         { 16 * 448.00 /*MHz*/, 0x8e, 0x02, },
722         { 16 * 999.99        , 0x8e, 0x08, },
723 };
724
725 static struct tuner_params tuner_tcl_2002n_params[] = {
726         {
727                 .type   = TUNER_PARAM_TYPE_NTSC,
728                 .ranges = tuner_tcl_2002n_ntsc_ranges,
729                 .count  = ARRAY_SIZE(tuner_tcl_2002n_ntsc_ranges),
730                 .cb_first_if_lower_freq = 1,
731         },
732 };
733
734 /* ------------ TUNER_PHILIPS_FM1256_IH3 - Philips PAL ------------ */
735
736 static struct tuner_params tuner_philips_fm1256_ih3_params[] = {
737         {
738                 .type   = TUNER_PARAM_TYPE_PAL,
739                 .ranges = tuner_fm1236_mk3_ntsc_ranges,
740                 .count  = ARRAY_SIZE(tuner_fm1236_mk3_ntsc_ranges),
741         },
742 };
743
744 /* ------------ TUNER_THOMSON_DTT7610 - THOMSON ATSC ------------ */
745
746 static struct tuner_range tuner_thomson_dtt7610_ntsc_ranges[] = {
747         { 16 * 157.25 /*MHz*/, 0x8e, 0x39, },
748         { 16 * 454.00 /*MHz*/, 0x8e, 0x3a, },
749         { 16 * 999.99        , 0x8e, 0x3c, },
750 };
751
752 static struct tuner_params tuner_thomson_dtt7610_params[] = {
753         {
754                 .type   = TUNER_PARAM_TYPE_NTSC,
755                 .ranges = tuner_thomson_dtt7610_ntsc_ranges,
756                 .count  = ARRAY_SIZE(tuner_thomson_dtt7610_ntsc_ranges),
757         },
758 };
759
760 /* ------------ TUNER_PHILIPS_FQ1286 - Philips NTSC ------------ */
761
762 static struct tuner_range tuner_philips_fq1286_ntsc_ranges[] = {
763         { 16 * 160.00 /*MHz*/, 0x8e, 0x41, },
764         { 16 * 454.00 /*MHz*/, 0x8e, 0x42, },
765         { 16 * 999.99        , 0x8e, 0x04, },
766 };
767
768 static struct tuner_params tuner_philips_fq1286_params[] = {
769         {
770                 .type   = TUNER_PARAM_TYPE_NTSC,
771                 .ranges = tuner_philips_fq1286_ntsc_ranges,
772                 .count  = ARRAY_SIZE(tuner_philips_fq1286_ntsc_ranges),
773         },
774 };
775
776 /* ------------ TUNER_TCL_2002MB - TCL PAL ------------ */
777
778 static struct tuner_range tuner_tcl_2002mb_pal_ranges[] = {
779         { 16 * 170.00 /*MHz*/, 0xce, 0x01, },
780         { 16 * 450.00 /*MHz*/, 0xce, 0x02, },
781         { 16 * 999.99        , 0xce, 0x08, },
782 };
783
784 static struct tuner_params tuner_tcl_2002mb_params[] = {
785         {
786                 .type   = TUNER_PARAM_TYPE_PAL,
787                 .ranges = tuner_tcl_2002mb_pal_ranges,
788                 .count  = ARRAY_SIZE(tuner_tcl_2002mb_pal_ranges),
789         },
790 };
791
792 /* ------------ TUNER_PHILIPS_FQ1216AME_MK4 - Philips PAL ------------ */
793
794 static struct tuner_range tuner_philips_fq12_6a___mk4_pal_ranges[] = {
795         { 16 * 160.00 /*MHz*/, 0xce, 0x01, },
796         { 16 * 442.00 /*MHz*/, 0xce, 0x02, },
797         { 16 * 999.99        , 0xce, 0x04, },
798 };
799
800 static struct tuner_params tuner_philips_fq1216ame_mk4_params[] = {
801         {
802                 .type   = TUNER_PARAM_TYPE_PAL,
803                 .ranges = tuner_philips_fq12_6a___mk4_pal_ranges,
804                 .count  = ARRAY_SIZE(tuner_philips_fq12_6a___mk4_pal_ranges),
805                 .has_tda9887 = 1,
806                 .port1_active = 1,
807                 .port2_invert_for_secam_lc = 1,
808                 .default_top_mid = -2,
809                 .default_top_secam_low = -2,
810                 .default_top_secam_mid = -2,
811                 .default_top_secam_high = -2,
812         },
813 };
814
815 /* ------------ TUNER_PHILIPS_FQ1236A_MK4 - Philips NTSC ------------ */
816
817 static struct tuner_params tuner_philips_fq1236a_mk4_params[] = {
818         {
819                 .type   = TUNER_PARAM_TYPE_NTSC,
820                 .ranges = tuner_fm1236_mk3_ntsc_ranges,
821                 .count  = ARRAY_SIZE(tuner_fm1236_mk3_ntsc_ranges),
822         },
823 };
824
825 /* ------------ TUNER_YMEC_TVF_8531MF - Philips NTSC ------------ */
826
827 static struct tuner_params tuner_ymec_tvf_8531mf_params[] = {
828         {
829                 .type   = TUNER_PARAM_TYPE_NTSC,
830                 .ranges = tuner_philips_ntsc_m_ranges,
831                 .count  = ARRAY_SIZE(tuner_philips_ntsc_m_ranges),
832         },
833 };
834
835 /* ------------ TUNER_YMEC_TVF_5533MF - Philips NTSC ------------ */
836
837 static struct tuner_range tuner_ymec_tvf_5533mf_ntsc_ranges[] = {
838         { 16 * 160.00 /*MHz*/, 0x8e, 0x01, },
839         { 16 * 454.00 /*MHz*/, 0x8e, 0x02, },
840         { 16 * 999.99        , 0x8e, 0x04, },
841 };
842
843 static struct tuner_params tuner_ymec_tvf_5533mf_params[] = {
844         {
845                 .type   = TUNER_PARAM_TYPE_NTSC,
846                 .ranges = tuner_ymec_tvf_5533mf_ntsc_ranges,
847                 .count  = ARRAY_SIZE(tuner_ymec_tvf_5533mf_ntsc_ranges),
848         },
849 };
850
851 /* 60-69 */
852 /* ------------ TUNER_THOMSON_DTT761X - THOMSON ATSC ------------ */
853 /* DTT 7611 7611A 7612 7613 7613A 7614 7615 7615A */
854
855 static struct tuner_range tuner_thomson_dtt761x_ntsc_ranges[] = {
856         { 16 * 145.25 /*MHz*/, 0x8e, 0x39, },
857         { 16 * 415.25 /*MHz*/, 0x8e, 0x3a, },
858         { 16 * 999.99        , 0x8e, 0x3c, },
859 };
860
861
862 static struct tuner_params tuner_thomson_dtt761x_params[] = {
863         {
864                 .type   = TUNER_PARAM_TYPE_NTSC,
865                 .ranges = tuner_thomson_dtt761x_ntsc_ranges,
866                 .count  = ARRAY_SIZE(tuner_thomson_dtt761x_ntsc_ranges),
867         },
868 };
869
870 /* ------------ TUNER_TENA_9533_DI - Philips PAL ------------ */
871
872 static struct tuner_range tuner_tena_9533_di_pal_ranges[] = {
873         { 16 * 160.25 /*MHz*/, 0x8e, 0x01, },
874         { 16 * 464.25 /*MHz*/, 0x8e, 0x02, },
875         { 16 * 999.99        , 0x8e, 0x04, },
876 };
877
878 static struct tuner_params tuner_tena_9533_di_params[] = {
879         {
880                 .type   = TUNER_PARAM_TYPE_PAL,
881                 .ranges = tuner_tena_9533_di_pal_ranges,
882                 .count  = ARRAY_SIZE(tuner_tena_9533_di_pal_ranges),
883         },
884 };
885
886 /* ------------ TUNER_PHILIPS_FMD1216ME_MK3 - Philips PAL ------------ */
887
888 static struct tuner_range tuner_philips_fmd1216me_mk3_pal_ranges[] = {
889         { 16 * 160.00 /*MHz*/, 0x86, 0x51, },
890         { 16 * 442.00 /*MHz*/, 0x86, 0x52, },
891         { 16 * 999.99        , 0x86, 0x54, },
892 };
893
894
895 static struct tuner_params tuner_philips_fmd1216me_mk3_params[] = {
896         {
897                 .type   = TUNER_PARAM_TYPE_PAL,
898                 .ranges = tuner_philips_fmd1216me_mk3_pal_ranges,
899                 .count  = ARRAY_SIZE(tuner_philips_fmd1216me_mk3_pal_ranges),
900                 .has_tda9887 = 1,
901                 .port1_active = 1,
902                 .port2_active = 1,
903                 .port2_fm_high_sensitivity = 1,
904                 .port2_invert_for_secam_lc = 1,
905                 .port1_set_for_fm_mono = 1,
906         },
907 };
908
909
910 /* ------ TUNER_LG_TDVS_H06XF - LG INNOTEK / INFINEON ATSC ----- */
911
912 static struct tuner_range tuner_tua6034_ntsc_ranges[] = {
913         { 16 * 165.00 /*MHz*/, 0x8e, 0x01 },
914         { 16 * 450.00 /*MHz*/, 0x8e, 0x02 },
915         { 16 * 999.99        , 0x8e, 0x04 },
916 };
917
918
919 static struct tuner_params tuner_lg_tdvs_h06xf_params[] = {
920         {
921                 .type   = TUNER_PARAM_TYPE_NTSC,
922                 .ranges = tuner_tua6034_ntsc_ranges,
923                 .count  = ARRAY_SIZE(tuner_tua6034_ntsc_ranges),
924         },
925 };
926
927 /* ------------ TUNER_YMEC_TVF66T5_B_DFF - Philips PAL ------------ */
928
929 static struct tuner_params tuner_ymec_tvf66t5_b_dff_params[] = {
930         {
931                 .type   = TUNER_PARAM_TYPE_PAL,
932                 .ranges = tuner_tena_9533_di_pal_ranges,
933                 .count  = ARRAY_SIZE(tuner_tena_9533_di_pal_ranges),
934         },
935 };
936
937 /* ------------ TUNER_LG_NTSC_TALN_MINI - LGINNOTEK NTSC ------------ */
938
939 static struct tuner_range tuner_lg_taln_ntsc_ranges[] = {
940         { 16 * 137.25 /*MHz*/, 0x8e, 0x01, },
941         { 16 * 373.25 /*MHz*/, 0x8e, 0x02, },
942         { 16 * 999.99        , 0x8e, 0x08, },
943 };
944
945 static struct tuner_range tuner_lg_taln_pal_secam_ranges[] = {
946         { 16 * 150.00 /*MHz*/, 0x8e, 0x01, },
947         { 16 * 425.00 /*MHz*/, 0x8e, 0x02, },
948         { 16 * 999.99        , 0x8e, 0x08, },
949 };
950
951 static struct tuner_params tuner_lg_taln_params[] = {
952         {
953                 .type   = TUNER_PARAM_TYPE_NTSC,
954                 .ranges = tuner_lg_taln_ntsc_ranges,
955                 .count  = ARRAY_SIZE(tuner_lg_taln_ntsc_ranges),
956         },{
957                 .type   = TUNER_PARAM_TYPE_PAL,
958                 .ranges = tuner_lg_taln_pal_secam_ranges,
959                 .count  = ARRAY_SIZE(tuner_lg_taln_pal_secam_ranges),
960         },
961 };
962
963 /* ------------ TUNER_PHILIPS_TD1316 - Philips PAL ------------ */
964
965 static struct tuner_range tuner_philips_td1316_pal_ranges[] = {
966         { 16 * 160.00 /*MHz*/, 0xc8, 0xa1, },
967         { 16 * 442.00 /*MHz*/, 0xc8, 0xa2, },
968         { 16 * 999.99        , 0xc8, 0xa4, },
969 };
970
971 static struct tuner_params tuner_philips_td1316_params[] = {
972         {
973                 .type   = TUNER_PARAM_TYPE_PAL,
974                 .ranges = tuner_philips_td1316_pal_ranges,
975                 .count  = ARRAY_SIZE(tuner_philips_td1316_pal_ranges),
976         },
977 };
978
979 /* ------------ TUNER_PHILIPS_TUV1236D - Philips ATSC ------------ */
980
981 static struct tuner_range tuner_tuv1236d_ntsc_ranges[] = {
982         { 16 * 157.25 /*MHz*/, 0xce, 0x01, },
983         { 16 * 454.00 /*MHz*/, 0xce, 0x02, },
984         { 16 * 999.99        , 0xce, 0x04, },
985 };
986
987
988 static struct tuner_params tuner_tuv1236d_params[] = {
989         {
990                 .type   = TUNER_PARAM_TYPE_NTSC,
991                 .ranges = tuner_tuv1236d_ntsc_ranges,
992                 .count  = ARRAY_SIZE(tuner_tuv1236d_ntsc_ranges),
993         },
994 };
995
996 /* ------------ TUNER_TNF_xxx5  - Texas Instruments--------- */
997 /* This is known to work with Tenna TVF58t5-MFF and TVF5835 MFF
998  *      but it is expected to work also with other Tenna/Ymec
999  *      models based on TI SN 761677 chip on both PAL and NTSC
1000  */
1001
1002 static struct tuner_range tuner_tnf_5335_d_if_pal_ranges[] = {
1003         { 16 * 168.25 /*MHz*/, 0x8e, 0x01, },
1004         { 16 * 471.25 /*MHz*/, 0x8e, 0x02, },
1005         { 16 * 999.99        , 0x8e, 0x08, },
1006 };
1007
1008 static struct tuner_range tuner_tnf_5335mf_ntsc_ranges[] = {
1009         { 16 * 169.25 /*MHz*/, 0x8e, 0x01, },
1010         { 16 * 469.25 /*MHz*/, 0x8e, 0x02, },
1011         { 16 * 999.99        , 0x8e, 0x08, },
1012 };
1013
1014 static struct tuner_params tuner_tnf_5335mf_params[] = {
1015         {
1016                 .type   = TUNER_PARAM_TYPE_NTSC,
1017                 .ranges = tuner_tnf_5335mf_ntsc_ranges,
1018                 .count  = ARRAY_SIZE(tuner_tnf_5335mf_ntsc_ranges),
1019         },
1020         {
1021                 .type   = TUNER_PARAM_TYPE_PAL,
1022                 .ranges = tuner_tnf_5335_d_if_pal_ranges,
1023                 .count  = ARRAY_SIZE(tuner_tnf_5335_d_if_pal_ranges),
1024         },
1025 };
1026
1027 /* 70-79 */
1028 /* ------------ TUNER_SAMSUNG_TCPN_2121P30A - Samsung NTSC ------------ */
1029
1030 static struct tuner_range tuner_samsung_tcpn_2121p30a_ntsc_ranges[] = {
1031         { 16 * 130.00 /*MHz*/, 0xce, 0x01, },
1032         { 16 * 364.50 /*MHz*/, 0xce, 0x02, },
1033         { 16 * 999.99        , 0xce, 0x08, },
1034 };
1035
1036 static struct tuner_params tuner_samsung_tcpn_2121p30a_params[] = {
1037         {
1038                 .type   = TUNER_PARAM_TYPE_NTSC,
1039                 .ranges = tuner_samsung_tcpn_2121p30a_ntsc_ranges,
1040                 .count  = ARRAY_SIZE(tuner_samsung_tcpn_2121p30a_ntsc_ranges),
1041                 .has_tda9887 = 1,
1042         },
1043 };
1044
1045 /* ------------ TUNER_THOMSON_FE6600 - DViCO Hybrid PAL ------------ */
1046
1047 static struct tuner_range tuner_thomson_fe6600_ranges[] = {
1048         { 16 * 160.00 /*MHz*/, 0xfe, 0x11, },
1049         { 16 * 442.00 /*MHz*/, 0xf6, 0x12, },
1050         { 16 * 999.99        , 0xf6, 0x18, },
1051 };
1052
1053 static struct tuner_params tuner_thomson_fe6600_params[] = {
1054         {
1055                 .type   = TUNER_PARAM_TYPE_PAL,
1056                 .ranges = tuner_thomson_fe6600_ranges,
1057                 .count  = ARRAY_SIZE(tuner_thomson_fe6600_ranges),
1058         },
1059 };
1060
1061 /* ------------ TUNER_SAMSUNG_TCPG_6121P30A - Samsung PAL ------------ */
1062
1063 static struct tuner_range tuner_samsung_tcpg_6121p30a_pal_ranges[] = {
1064         { 16 * 146.25 /*MHz*/, 0xce, 0x01, },
1065         { 16 * 428.50 /*MHz*/, 0xce, 0x02, },
1066         { 16 * 999.99        , 0xce, 0x08, },
1067 };
1068
1069 static struct tuner_params tuner_samsung_tcpg_6121p30a_params[] = {
1070         {
1071                 .type   = TUNER_PARAM_TYPE_PAL,
1072                 .ranges = tuner_samsung_tcpg_6121p30a_pal_ranges,
1073                 .count  = ARRAY_SIZE(tuner_samsung_tcpg_6121p30a_pal_ranges),
1074                 .has_tda9887 = 1,
1075                 .port1_active = 1,
1076                 .port2_active = 1,
1077                 .port2_invert_for_secam_lc = 1,
1078         },
1079 };
1080
1081 /* --------------------------------------------------------------------- */
1082
1083 struct tunertype tuners[] = {
1084         /* 0-9 */
1085         [TUNER_TEMIC_PAL] = { /* TEMIC PAL */
1086                 .name   = "Temic PAL (4002 FH5)",
1087                 .params = tuner_temic_pal_params,
1088                 .count  = ARRAY_SIZE(tuner_temic_pal_params),
1089         },
1090         [TUNER_PHILIPS_PAL_I] = { /* Philips PAL_I */
1091                 .name   = "Philips PAL_I (FI1246 and compatibles)",
1092                 .params = tuner_philips_pal_i_params,
1093                 .count  = ARRAY_SIZE(tuner_philips_pal_i_params),
1094         },
1095         [TUNER_PHILIPS_NTSC] = { /* Philips NTSC */
1096                 .name   = "Philips NTSC (FI1236,FM1236 and compatibles)",
1097                 .params = tuner_philips_ntsc_params,
1098                 .count  = ARRAY_SIZE(tuner_philips_ntsc_params),
1099         },
1100         [TUNER_PHILIPS_SECAM] = { /* Philips SECAM */
1101                 .name   = "Philips (SECAM+PAL_BG) (FI1216MF, FM1216MF, FR1216MF)",
1102                 .params = tuner_philips_secam_params,
1103                 .count  = ARRAY_SIZE(tuner_philips_secam_params),
1104         },
1105         [TUNER_ABSENT] = { /* Tuner Absent */
1106                 .name   = "NoTuner",
1107         },
1108         [TUNER_PHILIPS_PAL] = { /* Philips PAL */
1109                 .name   = "Philips PAL_BG (FI1216 and compatibles)",
1110                 .params = tuner_philips_pal_params,
1111                 .count  = ARRAY_SIZE(tuner_philips_pal_params),
1112         },
1113         [TUNER_TEMIC_NTSC] = { /* TEMIC NTSC */
1114                 .name   = "Temic NTSC (4032 FY5)",
1115                 .params = tuner_temic_ntsc_params,
1116                 .count  = ARRAY_SIZE(tuner_temic_ntsc_params),
1117         },
1118         [TUNER_TEMIC_PAL_I] = { /* TEMIC PAL_I */
1119                 .name   = "Temic PAL_I (4062 FY5)",
1120                 .params = tuner_temic_pal_i_params,
1121                 .count  = ARRAY_SIZE(tuner_temic_pal_i_params),
1122         },
1123         [TUNER_TEMIC_4036FY5_NTSC] = { /* TEMIC NTSC */
1124                 .name   = "Temic NTSC (4036 FY5)",
1125                 .params = tuner_temic_4036fy5_ntsc_params,
1126                 .count  = ARRAY_SIZE(tuner_temic_4036fy5_ntsc_params),
1127         },
1128         [TUNER_ALPS_TSBH1_NTSC] = { /* TEMIC NTSC */
1129                 .name   = "Alps HSBH1",
1130                 .params = tuner_alps_tsbh1_ntsc_params,
1131                 .count  = ARRAY_SIZE(tuner_alps_tsbh1_ntsc_params),
1132         },
1133
1134         /* 10-19 */
1135         [TUNER_ALPS_TSBE1_PAL] = { /* TEMIC PAL */
1136                 .name   = "Alps TSBE1",
1137                 .params = tuner_alps_tsb_1_params,
1138                 .count  = ARRAY_SIZE(tuner_alps_tsb_1_params),
1139         },
1140         [TUNER_ALPS_TSBB5_PAL_I] = { /* Alps PAL_I */
1141                 .name   = "Alps TSBB5",
1142                 .params = tuner_alps_tsbb5_params,
1143                 .count  = ARRAY_SIZE(tuner_alps_tsbb5_params),
1144         },
1145         [TUNER_ALPS_TSBE5_PAL] = { /* Alps PAL */
1146                 .name   = "Alps TSBE5",
1147                 .params = tuner_alps_tsbe5_params,
1148                 .count  = ARRAY_SIZE(tuner_alps_tsbe5_params),
1149         },
1150         [TUNER_ALPS_TSBC5_PAL] = { /* Alps PAL */
1151                 .name   = "Alps TSBC5",
1152                 .params = tuner_alps_tsbc5_params,
1153                 .count  = ARRAY_SIZE(tuner_alps_tsbc5_params),
1154         },
1155         [TUNER_TEMIC_4006FH5_PAL] = { /* TEMIC PAL */
1156                 .name   = "Temic PAL_BG (4006FH5)",
1157                 .params = tuner_temic_4006fh5_params,
1158                 .count  = ARRAY_SIZE(tuner_temic_4006fh5_params),
1159         },
1160         [TUNER_ALPS_TSHC6_NTSC] = { /* Alps NTSC */
1161                 .name   = "Alps TSCH6",
1162                 .params = tuner_alps_tshc6_params,
1163                 .count  = ARRAY_SIZE(tuner_alps_tshc6_params),
1164         },
1165         [TUNER_TEMIC_PAL_DK] = { /* TEMIC PAL */
1166                 .name   = "Temic PAL_DK (4016 FY5)",
1167                 .params = tuner_temic_pal_dk_params,
1168                 .count  = ARRAY_SIZE(tuner_temic_pal_dk_params),
1169         },
1170         [TUNER_PHILIPS_NTSC_M] = { /* Philips NTSC */
1171                 .name   = "Philips NTSC_M (MK2)",
1172                 .params = tuner_philips_ntsc_m_params,
1173                 .count  = ARRAY_SIZE(tuner_philips_ntsc_m_params),
1174         },
1175         [TUNER_TEMIC_4066FY5_PAL_I] = { /* TEMIC PAL_I */
1176                 .name   = "Temic PAL_I (4066 FY5)",
1177                 .params = tuner_temic_4066fy5_pal_i_params,
1178                 .count  = ARRAY_SIZE(tuner_temic_4066fy5_pal_i_params),
1179         },
1180         [TUNER_TEMIC_4006FN5_MULTI_PAL] = { /* TEMIC PAL */
1181                 .name   = "Temic PAL* auto (4006 FN5)",
1182                 .params = tuner_temic_4006fn5_multi_params,
1183                 .count  = ARRAY_SIZE(tuner_temic_4006fn5_multi_params),
1184         },
1185
1186         /* 20-29 */
1187         [TUNER_TEMIC_4009FR5_PAL] = { /* TEMIC PAL */
1188                 .name   = "Temic PAL_BG (4009 FR5) or PAL_I (4069 FR5)",
1189                 .params = tuner_temic_4009f_5_params,
1190                 .count  = ARRAY_SIZE(tuner_temic_4009f_5_params),
1191         },
1192         [TUNER_TEMIC_4039FR5_NTSC] = { /* TEMIC NTSC */
1193                 .name   = "Temic NTSC (4039 FR5)",
1194                 .params = tuner_temic_4039fr5_params,
1195                 .count  = ARRAY_SIZE(tuner_temic_4039fr5_params),
1196         },
1197         [TUNER_TEMIC_4046FM5] = { /* TEMIC PAL */
1198                 .name   = "Temic PAL/SECAM multi (4046 FM5)",
1199                 .params = tuner_temic_4046fm5_params,
1200                 .count  = ARRAY_SIZE(tuner_temic_4046fm5_params),
1201         },
1202         [TUNER_PHILIPS_PAL_DK] = { /* Philips PAL */
1203                 .name   = "Philips PAL_DK (FI1256 and compatibles)",
1204                 .params = tuner_philips_pal_dk_params,
1205                 .count  = ARRAY_SIZE(tuner_philips_pal_dk_params),
1206         },
1207         [TUNER_PHILIPS_FQ1216ME] = { /* Philips PAL */
1208                 .name   = "Philips PAL/SECAM multi (FQ1216ME)",
1209                 .params = tuner_philips_fq1216me_params,
1210                 .count  = ARRAY_SIZE(tuner_philips_fq1216me_params),
1211         },
1212         [TUNER_LG_PAL_I_FM] = { /* LGINNOTEK PAL_I */
1213                 .name   = "LG PAL_I+FM (TAPC-I001D)",
1214                 .params = tuner_lg_pal_i_fm_params,
1215                 .count  = ARRAY_SIZE(tuner_lg_pal_i_fm_params),
1216         },
1217         [TUNER_LG_PAL_I] = { /* LGINNOTEK PAL_I */
1218                 .name   = "LG PAL_I (TAPC-I701D)",
1219                 .params = tuner_lg_pal_i_params,
1220                 .count  = ARRAY_SIZE(tuner_lg_pal_i_params),
1221         },
1222         [TUNER_LG_NTSC_FM] = { /* LGINNOTEK NTSC */
1223                 .name   = "LG NTSC+FM (TPI8NSR01F)",
1224                 .params = tuner_lg_ntsc_fm_params,
1225                 .count  = ARRAY_SIZE(tuner_lg_ntsc_fm_params),
1226         },
1227         [TUNER_LG_PAL_FM] = { /* LGINNOTEK PAL */
1228                 .name   = "LG PAL_BG+FM (TPI8PSB01D)",
1229                 .params = tuner_lg_pal_fm_params,
1230                 .count  = ARRAY_SIZE(tuner_lg_pal_fm_params),
1231         },
1232         [TUNER_LG_PAL] = { /* LGINNOTEK PAL */
1233                 .name   = "LG PAL_BG (TPI8PSB11D)",
1234                 .params = tuner_lg_pal_params,
1235                 .count  = ARRAY_SIZE(tuner_lg_pal_params),
1236         },
1237
1238         /* 30-39 */
1239         [TUNER_TEMIC_4009FN5_MULTI_PAL_FM] = { /* TEMIC PAL */
1240                 .name   = "Temic PAL* auto + FM (4009 FN5)",
1241                 .params = tuner_temic_4009_fn5_multi_pal_fm_params,
1242                 .count  = ARRAY_SIZE(tuner_temic_4009_fn5_multi_pal_fm_params),
1243         },
1244         [TUNER_SHARP_2U5JF5540_NTSC] = { /* SHARP NTSC */
1245                 .name   = "SHARP NTSC_JP (2U5JF5540)",
1246                 .params = tuner_sharp_2u5jf5540_params,
1247                 .count  = ARRAY_SIZE(tuner_sharp_2u5jf5540_params),
1248         },
1249         [TUNER_Samsung_PAL_TCPM9091PD27] = { /* Samsung PAL */
1250                 .name   = "Samsung PAL TCPM9091PD27",
1251                 .params = tuner_samsung_pal_tcpm9091pd27_params,
1252                 .count  = ARRAY_SIZE(tuner_samsung_pal_tcpm9091pd27_params),
1253         },
1254         [TUNER_MT2032] = { /* Microtune PAL|NTSC */
1255                 .name   = "MT20xx universal",
1256                 /* see mt20xx.c for details */ },
1257         [TUNER_TEMIC_4106FH5] = { /* TEMIC PAL */
1258                 .name   = "Temic PAL_BG (4106 FH5)",
1259                 .params = tuner_temic_4106fh5_params,
1260                 .count  = ARRAY_SIZE(tuner_temic_4106fh5_params),
1261         },
1262         [TUNER_TEMIC_4012FY5] = { /* TEMIC PAL */
1263                 .name   = "Temic PAL_DK/SECAM_L (4012 FY5)",
1264                 .params = tuner_temic_4012fy5_params,
1265                 .count  = ARRAY_SIZE(tuner_temic_4012fy5_params),
1266         },
1267         [TUNER_TEMIC_4136FY5] = { /* TEMIC NTSC */
1268                 .name   = "Temic NTSC (4136 FY5)",
1269                 .params = tuner_temic_4136_fy5_params,
1270                 .count  = ARRAY_SIZE(tuner_temic_4136_fy5_params),
1271         },
1272         [TUNER_LG_PAL_NEW_TAPC] = { /* LGINNOTEK PAL */
1273                 .name   = "LG PAL (newer TAPC series)",
1274                 .params = tuner_lg_pal_new_tapc_params,
1275                 .count  = ARRAY_SIZE(tuner_lg_pal_new_tapc_params),
1276         },
1277         [TUNER_PHILIPS_FM1216ME_MK3] = { /* Philips PAL */
1278                 .name   = "Philips PAL/SECAM multi (FM1216ME MK3)",
1279                 .params = tuner_fm1216me_mk3_params,
1280                 .count  = ARRAY_SIZE(tuner_fm1216me_mk3_params),
1281         },
1282         [TUNER_LG_NTSC_NEW_TAPC] = { /* LGINNOTEK NTSC */
1283                 .name   = "LG NTSC (newer TAPC series)",
1284                 .params = tuner_lg_ntsc_new_tapc_params,
1285                 .count  = ARRAY_SIZE(tuner_lg_ntsc_new_tapc_params),
1286         },
1287
1288         /* 40-49 */
1289         [TUNER_HITACHI_NTSC] = { /* HITACHI NTSC */
1290                 .name   = "HITACHI V7-J180AT",
1291                 .params = tuner_hitachi_ntsc_params,
1292                 .count  = ARRAY_SIZE(tuner_hitachi_ntsc_params),
1293         },
1294         [TUNER_PHILIPS_PAL_MK] = { /* Philips PAL */
1295                 .name   = "Philips PAL_MK (FI1216 MK)",
1296                 .params = tuner_philips_pal_mk_params,
1297                 .count  = ARRAY_SIZE(tuner_philips_pal_mk_params),
1298         },
1299         [TUNER_PHILIPS_ATSC] = { /* Philips ATSC */
1300                 .name   = "Philips 1236D ATSC/NTSC dual in",
1301                 .params = tuner_philips_atsc_params,
1302                 .count  = ARRAY_SIZE(tuner_philips_atsc_params),
1303         },
1304         [TUNER_PHILIPS_FM1236_MK3] = { /* Philips NTSC */
1305                 .name   = "Philips NTSC MK3 (FM1236MK3 or FM1236/F)",
1306                 .params = tuner_fm1236_mk3_params,
1307                 .count  = ARRAY_SIZE(tuner_fm1236_mk3_params),
1308         },
1309         [TUNER_PHILIPS_4IN1] = { /* Philips NTSC */
1310                 .name   = "Philips 4 in 1 (ATI TV Wonder Pro/Conexant)",
1311                 .params = tuner_philips_4in1_params,
1312                 .count  = ARRAY_SIZE(tuner_philips_4in1_params),
1313         },
1314         [TUNER_MICROTUNE_4049FM5] = { /* Microtune PAL */
1315                 .name   = "Microtune 4049 FM5",
1316                 .params = tuner_microtune_4049_fm5_params,
1317                 .count  = ARRAY_SIZE(tuner_microtune_4049_fm5_params),
1318         },
1319         [TUNER_PANASONIC_VP27] = { /* Panasonic NTSC */
1320                 .name   = "Panasonic VP27s/ENGE4324D",
1321                 .params = tuner_panasonic_vp27_params,
1322                 .count  = ARRAY_SIZE(tuner_panasonic_vp27_params),
1323         },
1324         [TUNER_LG_NTSC_TAPE] = { /* LGINNOTEK NTSC */
1325                 .name   = "LG NTSC (TAPE series)",
1326                 .params = tuner_lg_ntsc_tape_params,
1327                 .count  = ARRAY_SIZE(tuner_lg_ntsc_tape_params),
1328         },
1329         [TUNER_TNF_8831BGFF] = { /* Philips PAL */
1330                 .name   = "Tenna TNF 8831 BGFF)",
1331                 .params = tuner_tnf_8831bgff_params,
1332                 .count  = ARRAY_SIZE(tuner_tnf_8831bgff_params),
1333         },
1334         [TUNER_MICROTUNE_4042FI5] = { /* Microtune NTSC */
1335                 .name   = "Microtune 4042 FI5 ATSC/NTSC dual in",
1336                 .params = tuner_microtune_4042fi5_params,
1337                 .count  = ARRAY_SIZE(tuner_microtune_4042fi5_params),
1338         },
1339
1340         /* 50-59 */
1341         [TUNER_TCL_2002N] = { /* TCL NTSC */
1342                 .name   = "TCL 2002N",
1343                 .params = tuner_tcl_2002n_params,
1344                 .count  = ARRAY_SIZE(tuner_tcl_2002n_params),
1345         },
1346         [TUNER_PHILIPS_FM1256_IH3] = { /* Philips PAL */
1347                 .name   = "Philips PAL/SECAM_D (FM 1256 I-H3)",
1348                 .params = tuner_philips_fm1256_ih3_params,
1349                 .count  = ARRAY_SIZE(tuner_philips_fm1256_ih3_params),
1350         },
1351         [TUNER_THOMSON_DTT7610] = { /* THOMSON ATSC */
1352                 .name   = "Thomson DTT 7610 (ATSC/NTSC)",
1353                 .params = tuner_thomson_dtt7610_params,
1354                 .count  = ARRAY_SIZE(tuner_thomson_dtt7610_params),
1355         },
1356         [TUNER_PHILIPS_FQ1286] = { /* Philips NTSC */
1357                 .name   = "Philips FQ1286",
1358                 .params = tuner_philips_fq1286_params,
1359                 .count  = ARRAY_SIZE(tuner_philips_fq1286_params),
1360         },
1361         [TUNER_PHILIPS_TDA8290] = { /* Philips PAL|NTSC */
1362                 .name   = "tda8290+75",
1363                 /* see tda8290.c for details */ },
1364         [TUNER_TCL_2002MB] = { /* TCL PAL */
1365                 .name   = "TCL 2002MB",
1366                 .params = tuner_tcl_2002mb_params,
1367                 .count  = ARRAY_SIZE(tuner_tcl_2002mb_params),
1368         },
1369         [TUNER_PHILIPS_FQ1216AME_MK4] = { /* Philips PAL */
1370                 .name   = "Philips PAL/SECAM multi (FQ1216AME MK4)",
1371                 .params = tuner_philips_fq1216ame_mk4_params,
1372                 .count  = ARRAY_SIZE(tuner_philips_fq1216ame_mk4_params),
1373         },
1374         [TUNER_PHILIPS_FQ1236A_MK4] = { /* Philips NTSC */
1375                 .name   = "Philips FQ1236A MK4",
1376                 .params = tuner_philips_fq1236a_mk4_params,
1377                 .count  = ARRAY_SIZE(tuner_philips_fq1236a_mk4_params),
1378         },
1379         [TUNER_YMEC_TVF_8531MF] = { /* Philips NTSC */
1380                 .name   = "Ymec TVision TVF-8531MF/8831MF/8731MF",
1381                 .params = tuner_ymec_tvf_8531mf_params,
1382                 .count  = ARRAY_SIZE(tuner_ymec_tvf_8531mf_params),
1383         },
1384         [TUNER_YMEC_TVF_5533MF] = { /* Philips NTSC */
1385                 .name   = "Ymec TVision TVF-5533MF",
1386                 .params = tuner_ymec_tvf_5533mf_params,
1387                 .count  = ARRAY_SIZE(tuner_ymec_tvf_5533mf_params),
1388         },
1389
1390         /* 60-69 */
1391         [TUNER_THOMSON_DTT761X] = { /* THOMSON ATSC */
1392                 /* DTT 7611 7611A 7612 7613 7613A 7614 7615 7615A */
1393                 .name   = "Thomson DTT 761X (ATSC/NTSC)",
1394                 .params = tuner_thomson_dtt761x_params,
1395                 .count  = ARRAY_SIZE(tuner_thomson_dtt761x_params),
1396         },
1397         [TUNER_TENA_9533_DI] = { /* Philips PAL */
1398                 .name   = "Tena TNF9533-D/IF/TNF9533-B/DF",
1399                 .params = tuner_tena_9533_di_params,
1400                 .count  = ARRAY_SIZE(tuner_tena_9533_di_params),
1401         },
1402         [TUNER_TEA5767] = { /* Philips RADIO */
1403                 .name   = "Philips TEA5767HN FM Radio",
1404                 /* see tea5767.c for details */
1405         },
1406         [TUNER_PHILIPS_FMD1216ME_MK3] = { /* Philips PAL */
1407                 .name   = "Philips FMD1216ME MK3 Hybrid Tuner",
1408                 .params = tuner_philips_fmd1216me_mk3_params,
1409                 .count  = ARRAY_SIZE(tuner_philips_fmd1216me_mk3_params),
1410         },
1411         [TUNER_LG_TDVS_H06XF] = { /* LGINNOTEK ATSC */
1412                 .name   = "LG TDVS-H06xF", /* H061F, H062F & H064F */
1413                 .params = tuner_lg_tdvs_h06xf_params,
1414                 .count  = ARRAY_SIZE(tuner_lg_tdvs_h06xf_params),
1415         },
1416         [TUNER_YMEC_TVF66T5_B_DFF] = { /* Philips PAL */
1417                 .name   = "Ymec TVF66T5-B/DFF",
1418                 .params = tuner_ymec_tvf66t5_b_dff_params,
1419                 .count  = ARRAY_SIZE(tuner_ymec_tvf66t5_b_dff_params),
1420         },
1421         [TUNER_LG_TALN] = { /* LGINNOTEK NTSC / PAL / SECAM */
1422                 .name   = "LG TALN series",
1423                 .params = tuner_lg_taln_params,
1424                 .count  = ARRAY_SIZE(tuner_lg_taln_params),
1425         },
1426         [TUNER_PHILIPS_TD1316] = { /* Philips PAL */
1427                 .name   = "Philips TD1316 Hybrid Tuner",
1428                 .params = tuner_philips_td1316_params,
1429                 .count  = ARRAY_SIZE(tuner_philips_td1316_params),
1430         },
1431         [TUNER_PHILIPS_TUV1236D] = { /* Philips ATSC */
1432                 .name   = "Philips TUV1236D ATSC/NTSC dual in",
1433                 .params = tuner_tuv1236d_params,
1434                 .count  = ARRAY_SIZE(tuner_tuv1236d_params),
1435         },
1436         [TUNER_TNF_5335MF] = { /* Tenna PAL/NTSC */
1437                 .name   = "Tena TNF 5335 and similar models",
1438                 .params = tuner_tnf_5335mf_params,
1439                 .count  = ARRAY_SIZE(tuner_tnf_5335mf_params),
1440         },
1441
1442         /* 70-79 */
1443         [TUNER_SAMSUNG_TCPN_2121P30A] = { /* Samsung NTSC */
1444                 .name   = "Samsung TCPN 2121P30A",
1445                 .params = tuner_samsung_tcpn_2121p30a_params,
1446                 .count  = ARRAY_SIZE(tuner_samsung_tcpn_2121p30a_params),
1447         },
1448         [TUNER_XCEIVE_XC3028] = { /* Xceive 3028 */
1449                 .name   = "Xceive xc3028",
1450                 /* see xc3028.c for details */
1451         },
1452         [TUNER_THOMSON_FE6600] = { /* Thomson PAL / DVB-T */
1453                 .name   = "Thomson FE6600",
1454                 .params = tuner_thomson_fe6600_params,
1455                 .count  = ARRAY_SIZE(tuner_thomson_fe6600_params),
1456         },
1457         [TUNER_SAMSUNG_TCPG_6121P30A] = { /* Samsung PAL */
1458                 .name   = "Samsung TCPG 6121P30A",
1459                 .params = tuner_samsung_tcpg_6121p30a_params,
1460                 .count  = ARRAY_SIZE(tuner_samsung_tcpg_6121p30a_params),
1461         },
1462         [TUNER_TDA9887] = { /* Philips TDA 9887 IF PLL Demodulator.
1463                                 This chip is part of some modern tuners */
1464                 .name   = "Philips TDA988[5,6,7] IF PLL Demodulator",
1465                 /* see tda9887.c for details */
1466         },
1467 };
1468
1469 unsigned const int tuner_count = ARRAY_SIZE(tuners);