Merge branch 'bugzilla-11715' into test
[sfrench/cifs-2.6.git] / drivers / media / common / tuners / 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 /* The following was taken from dvb-pll.c: */
39
40 /* Set AGC TOP value to 103 dBuV:
41  *      0x80 = Control Byte
42  *      0x40 = 250 uA charge pump (irrelevant)
43  *      0x18 = Aux Byte to follow
44  *      0x06 = 64.5 kHz divider (irrelevant)
45  *      0x01 = Disable Vt (aka sleep)
46  *
47  *      0x00 = AGC Time constant 2s Iagc = 300 nA (vs 0x80 = 9 nA)
48  *      0x50 = AGC Take over point = 103 dBuV
49  */
50 static u8 tua603x_agc103[] = { 2, 0x80|0x40|0x18|0x06|0x01, 0x00|0x50 };
51
52 /*      0x04 = 166.67 kHz divider
53  *
54  *      0x80 = AGC Time constant 50ms Iagc = 9 uA
55  *      0x20 = AGC Take over point = 112 dBuV
56  */
57 static u8 tua603x_agc112[] = { 2, 0x80|0x40|0x18|0x04|0x01, 0x80|0x20 };
58
59 /* 0-9 */
60 /* ------------ TUNER_TEMIC_PAL - TEMIC PAL ------------ */
61
62 static struct tuner_range tuner_temic_pal_ranges[] = {
63         { 16 * 140.25 /*MHz*/, 0x8e, 0x02, },
64         { 16 * 463.25 /*MHz*/, 0x8e, 0x04, },
65         { 16 * 999.99        , 0x8e, 0x01, },
66 };
67
68 static struct tuner_params tuner_temic_pal_params[] = {
69         {
70                 .type   = TUNER_PARAM_TYPE_PAL,
71                 .ranges = tuner_temic_pal_ranges,
72                 .count  = ARRAY_SIZE(tuner_temic_pal_ranges),
73         },
74 };
75
76 /* ------------ TUNER_PHILIPS_PAL_I - Philips PAL_I ------------ */
77
78 static struct tuner_range tuner_philips_pal_i_ranges[] = {
79         { 16 * 140.25 /*MHz*/, 0x8e, 0xa0, },
80         { 16 * 463.25 /*MHz*/, 0x8e, 0x90, },
81         { 16 * 999.99        , 0x8e, 0x30, },
82 };
83
84 static struct tuner_params tuner_philips_pal_i_params[] = {
85         {
86                 .type   = TUNER_PARAM_TYPE_PAL,
87                 .ranges = tuner_philips_pal_i_ranges,
88                 .count  = ARRAY_SIZE(tuner_philips_pal_i_ranges),
89         },
90 };
91
92 /* ------------ TUNER_PHILIPS_NTSC - Philips NTSC ------------ */
93
94 static struct tuner_range tuner_philips_ntsc_ranges[] = {
95         { 16 * 157.25 /*MHz*/, 0x8e, 0xa0, },
96         { 16 * 451.25 /*MHz*/, 0x8e, 0x90, },
97         { 16 * 999.99        , 0x8e, 0x30, },
98 };
99
100 static struct tuner_params tuner_philips_ntsc_params[] = {
101         {
102                 .type   = TUNER_PARAM_TYPE_NTSC,
103                 .ranges = tuner_philips_ntsc_ranges,
104                 .count  = ARRAY_SIZE(tuner_philips_ntsc_ranges),
105                 .cb_first_if_lower_freq = 1,
106         },
107 };
108
109 /* ------------ TUNER_PHILIPS_SECAM - Philips SECAM ------------ */
110
111 static struct tuner_range tuner_philips_secam_ranges[] = {
112         { 16 * 168.25 /*MHz*/, 0x8e, 0xa7, },
113         { 16 * 447.25 /*MHz*/, 0x8e, 0x97, },
114         { 16 * 999.99        , 0x8e, 0x37, },
115 };
116
117 static struct tuner_params tuner_philips_secam_params[] = {
118         {
119                 .type   = TUNER_PARAM_TYPE_SECAM,
120                 .ranges = tuner_philips_secam_ranges,
121                 .count  = ARRAY_SIZE(tuner_philips_secam_ranges),
122                 .cb_first_if_lower_freq = 1,
123         },
124 };
125
126 /* ------------ TUNER_PHILIPS_PAL - Philips PAL ------------ */
127
128 static struct tuner_range tuner_philips_pal_ranges[] = {
129         { 16 * 168.25 /*MHz*/, 0x8e, 0xa0, },
130         { 16 * 447.25 /*MHz*/, 0x8e, 0x90, },
131         { 16 * 999.99        , 0x8e, 0x30, },
132 };
133
134 static struct tuner_params tuner_philips_pal_params[] = {
135         {
136                 .type   = TUNER_PARAM_TYPE_PAL,
137                 .ranges = tuner_philips_pal_ranges,
138                 .count  = ARRAY_SIZE(tuner_philips_pal_ranges),
139                 .cb_first_if_lower_freq = 1,
140         },
141 };
142
143 /* ------------ TUNER_TEMIC_NTSC - TEMIC NTSC ------------ */
144
145 static struct tuner_range tuner_temic_ntsc_ranges[] = {
146         { 16 * 157.25 /*MHz*/, 0x8e, 0x02, },
147         { 16 * 463.25 /*MHz*/, 0x8e, 0x04, },
148         { 16 * 999.99        , 0x8e, 0x01, },
149 };
150
151 static struct tuner_params tuner_temic_ntsc_params[] = {
152         {
153                 .type   = TUNER_PARAM_TYPE_NTSC,
154                 .ranges = tuner_temic_ntsc_ranges,
155                 .count  = ARRAY_SIZE(tuner_temic_ntsc_ranges),
156         },
157 };
158
159 /* ------------ TUNER_TEMIC_PAL_I - TEMIC PAL_I ------------ */
160
161 static struct tuner_range tuner_temic_pal_i_ranges[] = {
162         { 16 * 170.00 /*MHz*/, 0x8e, 0x02, },
163         { 16 * 450.00 /*MHz*/, 0x8e, 0x04, },
164         { 16 * 999.99        , 0x8e, 0x01, },
165 };
166
167 static struct tuner_params tuner_temic_pal_i_params[] = {
168         {
169                 .type   = TUNER_PARAM_TYPE_PAL,
170                 .ranges = tuner_temic_pal_i_ranges,
171                 .count  = ARRAY_SIZE(tuner_temic_pal_i_ranges),
172         },
173 };
174
175 /* ------------ TUNER_TEMIC_4036FY5_NTSC - TEMIC NTSC ------------ */
176
177 static struct tuner_range tuner_temic_4036fy5_ntsc_ranges[] = {
178         { 16 * 157.25 /*MHz*/, 0x8e, 0xa0, },
179         { 16 * 463.25 /*MHz*/, 0x8e, 0x90, },
180         { 16 * 999.99        , 0x8e, 0x30, },
181 };
182
183 static struct tuner_params tuner_temic_4036fy5_ntsc_params[] = {
184         {
185                 .type   = TUNER_PARAM_TYPE_NTSC,
186                 .ranges = tuner_temic_4036fy5_ntsc_ranges,
187                 .count  = ARRAY_SIZE(tuner_temic_4036fy5_ntsc_ranges),
188         },
189 };
190
191 /* ------------ TUNER_ALPS_TSBH1_NTSC - TEMIC NTSC ------------ */
192
193 static struct tuner_range tuner_alps_tsb_1_ranges[] = {
194         { 16 * 137.25 /*MHz*/, 0x8e, 0x01, },
195         { 16 * 385.25 /*MHz*/, 0x8e, 0x02, },
196         { 16 * 999.99        , 0x8e, 0x08, },
197 };
198
199 static struct tuner_params tuner_alps_tsbh1_ntsc_params[] = {
200         {
201                 .type   = TUNER_PARAM_TYPE_NTSC,
202                 .ranges = tuner_alps_tsb_1_ranges,
203                 .count  = ARRAY_SIZE(tuner_alps_tsb_1_ranges),
204         },
205 };
206
207 /* 10-19 */
208 /* ------------ TUNER_ALPS_TSBE1_PAL - TEMIC PAL ------------ */
209
210 static struct tuner_params tuner_alps_tsb_1_params[] = {
211         {
212                 .type   = TUNER_PARAM_TYPE_PAL,
213                 .ranges = tuner_alps_tsb_1_ranges,
214                 .count  = ARRAY_SIZE(tuner_alps_tsb_1_ranges),
215         },
216 };
217
218 /* ------------ TUNER_ALPS_TSBB5_PAL_I - Alps PAL_I ------------ */
219
220 static struct tuner_range tuner_alps_tsb_5_pal_ranges[] = {
221         { 16 * 133.25 /*MHz*/, 0x8e, 0x01, },
222         { 16 * 351.25 /*MHz*/, 0x8e, 0x02, },
223         { 16 * 999.99        , 0x8e, 0x08, },
224 };
225
226 static struct tuner_params tuner_alps_tsbb5_params[] = {
227         {
228                 .type   = TUNER_PARAM_TYPE_PAL,
229                 .ranges = tuner_alps_tsb_5_pal_ranges,
230                 .count  = ARRAY_SIZE(tuner_alps_tsb_5_pal_ranges),
231         },
232 };
233
234 /* ------------ TUNER_ALPS_TSBE5_PAL - Alps PAL ------------ */
235
236 static struct tuner_params tuner_alps_tsbe5_params[] = {
237         {
238                 .type   = TUNER_PARAM_TYPE_PAL,
239                 .ranges = tuner_alps_tsb_5_pal_ranges,
240                 .count  = ARRAY_SIZE(tuner_alps_tsb_5_pal_ranges),
241         },
242 };
243
244 /* ------------ TUNER_ALPS_TSBC5_PAL - Alps PAL ------------ */
245
246 static struct tuner_params tuner_alps_tsbc5_params[] = {
247         {
248                 .type   = TUNER_PARAM_TYPE_PAL,
249                 .ranges = tuner_alps_tsb_5_pal_ranges,
250                 .count  = ARRAY_SIZE(tuner_alps_tsb_5_pal_ranges),
251         },
252 };
253
254 /* ------------ TUNER_TEMIC_4006FH5_PAL - TEMIC PAL ------------ */
255
256 static struct tuner_range tuner_lg_pal_ranges[] = {
257         { 16 * 170.00 /*MHz*/, 0x8e, 0xa0, },
258         { 16 * 450.00 /*MHz*/, 0x8e, 0x90, },
259         { 16 * 999.99        , 0x8e, 0x30, },
260 };
261
262 static struct tuner_params tuner_temic_4006fh5_params[] = {
263         {
264                 .type   = TUNER_PARAM_TYPE_PAL,
265                 .ranges = tuner_lg_pal_ranges,
266                 .count  = ARRAY_SIZE(tuner_lg_pal_ranges),
267         },
268 };
269
270 /* ------------ TUNER_ALPS_TSHC6_NTSC - Alps NTSC ------------ */
271
272 static struct tuner_range tuner_alps_tshc6_ntsc_ranges[] = {
273         { 16 * 137.25 /*MHz*/, 0x8e, 0x14, },
274         { 16 * 385.25 /*MHz*/, 0x8e, 0x12, },
275         { 16 * 999.99        , 0x8e, 0x11, },
276 };
277
278 static struct tuner_params tuner_alps_tshc6_params[] = {
279         {
280                 .type   = TUNER_PARAM_TYPE_NTSC,
281                 .ranges = tuner_alps_tshc6_ntsc_ranges,
282                 .count  = ARRAY_SIZE(tuner_alps_tshc6_ntsc_ranges),
283         },
284 };
285
286 /* ------------ TUNER_TEMIC_PAL_DK - TEMIC PAL ------------ */
287
288 static struct tuner_range tuner_temic_pal_dk_ranges[] = {
289         { 16 * 168.25 /*MHz*/, 0x8e, 0xa0, },
290         { 16 * 456.25 /*MHz*/, 0x8e, 0x90, },
291         { 16 * 999.99        , 0x8e, 0x30, },
292 };
293
294 static struct tuner_params tuner_temic_pal_dk_params[] = {
295         {
296                 .type   = TUNER_PARAM_TYPE_PAL,
297                 .ranges = tuner_temic_pal_dk_ranges,
298                 .count  = ARRAY_SIZE(tuner_temic_pal_dk_ranges),
299         },
300 };
301
302 /* ------------ TUNER_PHILIPS_NTSC_M - Philips NTSC ------------ */
303
304 static struct tuner_range tuner_philips_ntsc_m_ranges[] = {
305         { 16 * 160.00 /*MHz*/, 0x8e, 0xa0, },
306         { 16 * 454.00 /*MHz*/, 0x8e, 0x90, },
307         { 16 * 999.99        , 0x8e, 0x30, },
308 };
309
310 static struct tuner_params tuner_philips_ntsc_m_params[] = {
311         {
312                 .type   = TUNER_PARAM_TYPE_NTSC,
313                 .ranges = tuner_philips_ntsc_m_ranges,
314                 .count  = ARRAY_SIZE(tuner_philips_ntsc_m_ranges),
315         },
316 };
317
318 /* ------------ TUNER_TEMIC_4066FY5_PAL_I - TEMIC PAL_I ------------ */
319
320 static struct tuner_range tuner_temic_40x6f_5_pal_ranges[] = {
321         { 16 * 169.00 /*MHz*/, 0x8e, 0xa0, },
322         { 16 * 454.00 /*MHz*/, 0x8e, 0x90, },
323         { 16 * 999.99        , 0x8e, 0x30, },
324 };
325
326 static struct tuner_params tuner_temic_4066fy5_pal_i_params[] = {
327         {
328                 .type   = TUNER_PARAM_TYPE_PAL,
329                 .ranges = tuner_temic_40x6f_5_pal_ranges,
330                 .count  = ARRAY_SIZE(tuner_temic_40x6f_5_pal_ranges),
331         },
332 };
333
334 /* ------------ TUNER_TEMIC_4006FN5_MULTI_PAL - TEMIC PAL ------------ */
335
336 static struct tuner_params tuner_temic_4006fn5_multi_params[] = {
337         {
338                 .type   = TUNER_PARAM_TYPE_PAL,
339                 .ranges = tuner_temic_40x6f_5_pal_ranges,
340                 .count  = ARRAY_SIZE(tuner_temic_40x6f_5_pal_ranges),
341         },
342 };
343
344 /* 20-29 */
345 /* ------------ TUNER_TEMIC_4009FR5_PAL - TEMIC PAL ------------ */
346
347 static struct tuner_range tuner_temic_4009f_5_pal_ranges[] = {
348         { 16 * 141.00 /*MHz*/, 0x8e, 0xa0, },
349         { 16 * 464.00 /*MHz*/, 0x8e, 0x90, },
350         { 16 * 999.99        , 0x8e, 0x30, },
351 };
352
353 static struct tuner_params tuner_temic_4009f_5_params[] = {
354         {
355                 .type   = TUNER_PARAM_TYPE_PAL,
356                 .ranges = tuner_temic_4009f_5_pal_ranges,
357                 .count  = ARRAY_SIZE(tuner_temic_4009f_5_pal_ranges),
358         },
359 };
360
361 /* ------------ TUNER_TEMIC_4039FR5_NTSC - TEMIC NTSC ------------ */
362
363 static struct tuner_range tuner_temic_4x3x_f_5_ntsc_ranges[] = {
364         { 16 * 158.00 /*MHz*/, 0x8e, 0xa0, },
365         { 16 * 453.00 /*MHz*/, 0x8e, 0x90, },
366         { 16 * 999.99        , 0x8e, 0x30, },
367 };
368
369 static struct tuner_params tuner_temic_4039fr5_params[] = {
370         {
371                 .type   = TUNER_PARAM_TYPE_NTSC,
372                 .ranges = tuner_temic_4x3x_f_5_ntsc_ranges,
373                 .count  = ARRAY_SIZE(tuner_temic_4x3x_f_5_ntsc_ranges),
374         },
375 };
376
377 /* ------------ TUNER_TEMIC_4046FM5 - TEMIC PAL ------------ */
378
379 static struct tuner_params tuner_temic_4046fm5_params[] = {
380         {
381                 .type   = TUNER_PARAM_TYPE_PAL,
382                 .ranges = tuner_temic_40x6f_5_pal_ranges,
383                 .count  = ARRAY_SIZE(tuner_temic_40x6f_5_pal_ranges),
384         },
385 };
386
387 /* ------------ TUNER_PHILIPS_PAL_DK - Philips PAL ------------ */
388
389 static struct tuner_params tuner_philips_pal_dk_params[] = {
390         {
391                 .type   = TUNER_PARAM_TYPE_PAL,
392                 .ranges = tuner_lg_pal_ranges,
393                 .count  = ARRAY_SIZE(tuner_lg_pal_ranges),
394         },
395 };
396
397 /* ------------ TUNER_PHILIPS_FQ1216ME - Philips PAL ------------ */
398
399 static struct tuner_params tuner_philips_fq1216me_params[] = {
400         {
401                 .type   = TUNER_PARAM_TYPE_PAL,
402                 .ranges = tuner_lg_pal_ranges,
403                 .count  = ARRAY_SIZE(tuner_lg_pal_ranges),
404                 .has_tda9887 = 1,
405                 .port1_active = 1,
406                 .port2_active = 1,
407                 .port2_invert_for_secam_lc = 1,
408         },
409 };
410
411 /* ------------ TUNER_LG_PAL_I_FM - LGINNOTEK PAL_I ------------ */
412
413 static struct tuner_params tuner_lg_pal_i_fm_params[] = {
414         {
415                 .type   = TUNER_PARAM_TYPE_PAL,
416                 .ranges = tuner_lg_pal_ranges,
417                 .count  = ARRAY_SIZE(tuner_lg_pal_ranges),
418         },
419 };
420
421 /* ------------ TUNER_LG_PAL_I - LGINNOTEK PAL_I ------------ */
422
423 static struct tuner_params tuner_lg_pal_i_params[] = {
424         {
425                 .type   = TUNER_PARAM_TYPE_PAL,
426                 .ranges = tuner_lg_pal_ranges,
427                 .count  = ARRAY_SIZE(tuner_lg_pal_ranges),
428         },
429 };
430
431 /* ------------ TUNER_LG_NTSC_FM - LGINNOTEK NTSC ------------ */
432
433 static struct tuner_range tuner_lg_ntsc_fm_ranges[] = {
434         { 16 * 210.00 /*MHz*/, 0x8e, 0xa0, },
435         { 16 * 497.00 /*MHz*/, 0x8e, 0x90, },
436         { 16 * 999.99        , 0x8e, 0x30, },
437 };
438
439 static struct tuner_params tuner_lg_ntsc_fm_params[] = {
440         {
441                 .type   = TUNER_PARAM_TYPE_NTSC,
442                 .ranges = tuner_lg_ntsc_fm_ranges,
443                 .count  = ARRAY_SIZE(tuner_lg_ntsc_fm_ranges),
444         },
445 };
446
447 /* ------------ TUNER_LG_PAL_FM - LGINNOTEK PAL ------------ */
448
449 static struct tuner_params tuner_lg_pal_fm_params[] = {
450         {
451                 .type   = TUNER_PARAM_TYPE_PAL,
452                 .ranges = tuner_lg_pal_ranges,
453                 .count  = ARRAY_SIZE(tuner_lg_pal_ranges),
454         },
455 };
456
457 /* ------------ TUNER_LG_PAL - LGINNOTEK PAL ------------ */
458
459 static struct tuner_params tuner_lg_pal_params[] = {
460         {
461                 .type   = TUNER_PARAM_TYPE_PAL,
462                 .ranges = tuner_lg_pal_ranges,
463                 .count  = ARRAY_SIZE(tuner_lg_pal_ranges),
464         },
465 };
466
467 /* 30-39 */
468 /* ------------ TUNER_TEMIC_4009FN5_MULTI_PAL_FM - TEMIC PAL ------------ */
469
470 static struct tuner_params tuner_temic_4009_fn5_multi_pal_fm_params[] = {
471         {
472                 .type   = TUNER_PARAM_TYPE_PAL,
473                 .ranges = tuner_temic_4009f_5_pal_ranges,
474                 .count  = ARRAY_SIZE(tuner_temic_4009f_5_pal_ranges),
475         },
476 };
477
478 /* ------------ TUNER_SHARP_2U5JF5540_NTSC - SHARP NTSC ------------ */
479
480 static struct tuner_range tuner_sharp_2u5jf5540_ntsc_ranges[] = {
481         { 16 * 137.25 /*MHz*/, 0x8e, 0x01, },
482         { 16 * 317.25 /*MHz*/, 0x8e, 0x02, },
483         { 16 * 999.99        , 0x8e, 0x08, },
484 };
485
486 static struct tuner_params tuner_sharp_2u5jf5540_params[] = {
487         {
488                 .type   = TUNER_PARAM_TYPE_NTSC,
489                 .ranges = tuner_sharp_2u5jf5540_ntsc_ranges,
490                 .count  = ARRAY_SIZE(tuner_sharp_2u5jf5540_ntsc_ranges),
491         },
492 };
493
494 /* ------------ TUNER_Samsung_PAL_TCPM9091PD27 - Samsung PAL ------------ */
495
496 static struct tuner_range tuner_samsung_pal_tcpm9091pd27_ranges[] = {
497         { 16 * 169 /*MHz*/, 0x8e, 0xa0, },
498         { 16 * 464 /*MHz*/, 0x8e, 0x90, },
499         { 16 * 999.99     , 0x8e, 0x30, },
500 };
501
502 static struct tuner_params tuner_samsung_pal_tcpm9091pd27_params[] = {
503         {
504                 .type   = TUNER_PARAM_TYPE_PAL,
505                 .ranges = tuner_samsung_pal_tcpm9091pd27_ranges,
506                 .count  = ARRAY_SIZE(tuner_samsung_pal_tcpm9091pd27_ranges),
507         },
508 };
509
510 /* ------------ TUNER_TEMIC_4106FH5 - TEMIC PAL ------------ */
511
512 static struct tuner_params tuner_temic_4106fh5_params[] = {
513         {
514                 .type   = TUNER_PARAM_TYPE_PAL,
515                 .ranges = tuner_temic_4009f_5_pal_ranges,
516                 .count  = ARRAY_SIZE(tuner_temic_4009f_5_pal_ranges),
517         },
518 };
519
520 /* ------------ TUNER_TEMIC_4012FY5 - TEMIC PAL ------------ */
521
522 static struct tuner_params tuner_temic_4012fy5_params[] = {
523         {
524                 .type   = TUNER_PARAM_TYPE_PAL,
525                 .ranges = tuner_temic_pal_ranges,
526                 .count  = ARRAY_SIZE(tuner_temic_pal_ranges),
527         },
528 };
529
530 /* ------------ TUNER_TEMIC_4136FY5 - TEMIC NTSC ------------ */
531
532 static struct tuner_params tuner_temic_4136_fy5_params[] = {
533         {
534                 .type   = TUNER_PARAM_TYPE_NTSC,
535                 .ranges = tuner_temic_4x3x_f_5_ntsc_ranges,
536                 .count  = ARRAY_SIZE(tuner_temic_4x3x_f_5_ntsc_ranges),
537         },
538 };
539
540 /* ------------ TUNER_LG_PAL_NEW_TAPC - LGINNOTEK PAL ------------ */
541
542 static struct tuner_range tuner_lg_new_tapc_ranges[] = {
543         { 16 * 170.00 /*MHz*/, 0x8e, 0x01, },
544         { 16 * 450.00 /*MHz*/, 0x8e, 0x02, },
545         { 16 * 999.99        , 0x8e, 0x08, },
546 };
547
548 static struct tuner_params tuner_lg_pal_new_tapc_params[] = {
549         {
550                 .type   = TUNER_PARAM_TYPE_PAL,
551                 .ranges = tuner_lg_new_tapc_ranges,
552                 .count  = ARRAY_SIZE(tuner_lg_new_tapc_ranges),
553         },
554 };
555
556 /* ------------ TUNER_PHILIPS_FM1216ME_MK3 - Philips PAL ------------ */
557
558 static struct tuner_range tuner_fm1216me_mk3_pal_ranges[] = {
559         { 16 * 158.00 /*MHz*/, 0x8e, 0x01, },
560         { 16 * 442.00 /*MHz*/, 0x8e, 0x02, },
561         { 16 * 999.99        , 0x8e, 0x04, },
562 };
563
564 static struct tuner_params tuner_fm1216me_mk3_params[] = {
565         {
566                 .type   = TUNER_PARAM_TYPE_PAL,
567                 .ranges = tuner_fm1216me_mk3_pal_ranges,
568                 .count  = ARRAY_SIZE(tuner_fm1216me_mk3_pal_ranges),
569                 .cb_first_if_lower_freq = 1,
570                 .has_tda9887 = 1,
571                 .port1_active = 1,
572                 .port2_active = 1,
573                 .port2_invert_for_secam_lc = 1,
574                 .port1_fm_high_sensitivity = 1,
575                 .default_top_mid = -2,
576                 .default_top_secam_mid = -2,
577                 .default_top_secam_high = -2,
578         },
579 };
580
581 /* ------------ TUNER_LG_NTSC_NEW_TAPC - LGINNOTEK NTSC ------------ */
582
583 static struct tuner_params tuner_lg_ntsc_new_tapc_params[] = {
584         {
585                 .type   = TUNER_PARAM_TYPE_NTSC,
586                 .ranges = tuner_lg_new_tapc_ranges,
587                 .count  = ARRAY_SIZE(tuner_lg_new_tapc_ranges),
588         },
589 };
590
591 /* 40-49 */
592 /* ------------ TUNER_HITACHI_NTSC - HITACHI NTSC ------------ */
593
594 static struct tuner_params tuner_hitachi_ntsc_params[] = {
595         {
596                 .type   = TUNER_PARAM_TYPE_NTSC,
597                 .ranges = tuner_lg_new_tapc_ranges,
598                 .count  = ARRAY_SIZE(tuner_lg_new_tapc_ranges),
599         },
600 };
601
602 /* ------------ TUNER_PHILIPS_PAL_MK - Philips PAL ------------ */
603
604 static struct tuner_range tuner_philips_pal_mk_pal_ranges[] = {
605         { 16 * 140.25 /*MHz*/, 0x8e, 0x01, },
606         { 16 * 463.25 /*MHz*/, 0x8e, 0xc2, },
607         { 16 * 999.99        , 0x8e, 0xcf, },
608 };
609
610 static struct tuner_params tuner_philips_pal_mk_params[] = {
611         {
612                 .type   = TUNER_PARAM_TYPE_PAL,
613                 .ranges = tuner_philips_pal_mk_pal_ranges,
614                 .count  = ARRAY_SIZE(tuner_philips_pal_mk_pal_ranges),
615         },
616 };
617
618 /* ---- TUNER_PHILIPS_FCV1236D - Philips FCV1236D (ATSC/NTSC) ---- */
619
620 static struct tuner_range tuner_philips_fcv1236d_ntsc_ranges[] = {
621         { 16 * 157.25 /*MHz*/, 0x8e, 0xa2, },
622         { 16 * 451.25 /*MHz*/, 0x8e, 0x92, },
623         { 16 * 999.99        , 0x8e, 0x32, },
624 };
625
626 static struct tuner_range tuner_philips_fcv1236d_atsc_ranges[] = {
627         { 16 * 159.00 /*MHz*/, 0x8e, 0xa0, },
628         { 16 * 453.00 /*MHz*/, 0x8e, 0x90, },
629         { 16 * 999.99        , 0x8e, 0x30, },
630 };
631
632 static struct tuner_params tuner_philips_fcv1236d_params[] = {
633         {
634                 .type   = TUNER_PARAM_TYPE_NTSC,
635                 .ranges = tuner_philips_fcv1236d_ntsc_ranges,
636                 .count  = ARRAY_SIZE(tuner_philips_fcv1236d_ntsc_ranges),
637         },
638         {
639                 .type   = TUNER_PARAM_TYPE_DIGITAL,
640                 .ranges = tuner_philips_fcv1236d_atsc_ranges,
641                 .count  = ARRAY_SIZE(tuner_philips_fcv1236d_atsc_ranges),
642                 .iffreq = 16 * 44.00,
643         },
644 };
645
646 /* ------------ TUNER_PHILIPS_FM1236_MK3 - Philips NTSC ------------ */
647
648 static struct tuner_range tuner_fm1236_mk3_ntsc_ranges[] = {
649         { 16 * 160.00 /*MHz*/, 0x8e, 0x01, },
650         { 16 * 442.00 /*MHz*/, 0x8e, 0x02, },
651         { 16 * 999.99        , 0x8e, 0x04, },
652 };
653
654 static struct tuner_params tuner_fm1236_mk3_params[] = {
655         {
656                 .type   = TUNER_PARAM_TYPE_NTSC,
657                 .ranges = tuner_fm1236_mk3_ntsc_ranges,
658                 .count  = ARRAY_SIZE(tuner_fm1236_mk3_ntsc_ranges),
659                 .cb_first_if_lower_freq = 1,
660                 .has_tda9887 = 1,
661                 .port1_active = 1,
662                 .port2_active = 1,
663                 .port1_fm_high_sensitivity = 1,
664         },
665 };
666
667 /* ------------ TUNER_PHILIPS_4IN1 - Philips NTSC ------------ */
668
669 static struct tuner_params tuner_philips_4in1_params[] = {
670         {
671                 .type   = TUNER_PARAM_TYPE_NTSC,
672                 .ranges = tuner_fm1236_mk3_ntsc_ranges,
673                 .count  = ARRAY_SIZE(tuner_fm1236_mk3_ntsc_ranges),
674         },
675 };
676
677 /* ------------ TUNER_MICROTUNE_4049FM5 - Microtune PAL ------------ */
678
679 static struct tuner_params tuner_microtune_4049_fm5_params[] = {
680         {
681                 .type   = TUNER_PARAM_TYPE_PAL,
682                 .ranges = tuner_temic_4009f_5_pal_ranges,
683                 .count  = ARRAY_SIZE(tuner_temic_4009f_5_pal_ranges),
684                 .has_tda9887 = 1,
685                 .port1_invert_for_secam_lc = 1,
686                 .default_pll_gating_18 = 1,
687                 .fm_gain_normal=1,
688                 .radio_if = 1, /* 33.3 MHz */
689         },
690 };
691
692 /* ------------ TUNER_PANASONIC_VP27 - Panasonic NTSC ------------ */
693
694 static struct tuner_range tuner_panasonic_vp27_ntsc_ranges[] = {
695         { 16 * 160.00 /*MHz*/, 0xce, 0x01, },
696         { 16 * 454.00 /*MHz*/, 0xce, 0x02, },
697         { 16 * 999.99        , 0xce, 0x08, },
698 };
699
700 static struct tuner_params tuner_panasonic_vp27_params[] = {
701         {
702                 .type   = TUNER_PARAM_TYPE_NTSC,
703                 .ranges = tuner_panasonic_vp27_ntsc_ranges,
704                 .count  = ARRAY_SIZE(tuner_panasonic_vp27_ntsc_ranges),
705                 .has_tda9887 = 1,
706                 .intercarrier_mode = 1,
707                 .default_top_low = -3,
708                 .default_top_mid = -3,
709                 .default_top_high = -3,
710         },
711 };
712
713 /* ------------ TUNER_TNF_8831BGFF - Philips PAL ------------ */
714
715 static struct tuner_range tuner_tnf_8831bgff_pal_ranges[] = {
716         { 16 * 161.25 /*MHz*/, 0x8e, 0xa0, },
717         { 16 * 463.25 /*MHz*/, 0x8e, 0x90, },
718         { 16 * 999.99        , 0x8e, 0x30, },
719 };
720
721 static struct tuner_params tuner_tnf_8831bgff_params[] = {
722         {
723                 .type   = TUNER_PARAM_TYPE_PAL,
724                 .ranges = tuner_tnf_8831bgff_pal_ranges,
725                 .count  = ARRAY_SIZE(tuner_tnf_8831bgff_pal_ranges),
726         },
727 };
728
729 /* ------------ TUNER_MICROTUNE_4042FI5 - Microtune NTSC ------------ */
730
731 static struct tuner_range tuner_microtune_4042fi5_ntsc_ranges[] = {
732         { 16 * 162.00 /*MHz*/, 0x8e, 0xa2, },
733         { 16 * 457.00 /*MHz*/, 0x8e, 0x94, },
734         { 16 * 999.99        , 0x8e, 0x31, },
735 };
736
737 static struct tuner_range tuner_microtune_4042fi5_atsc_ranges[] = {
738         { 16 * 162.00 /*MHz*/, 0x8e, 0xa1, },
739         { 16 * 457.00 /*MHz*/, 0x8e, 0x91, },
740         { 16 * 999.99        , 0x8e, 0x31, },
741 };
742
743 static struct tuner_params tuner_microtune_4042fi5_params[] = {
744         {
745                 .type   = TUNER_PARAM_TYPE_NTSC,
746                 .ranges = tuner_microtune_4042fi5_ntsc_ranges,
747                 .count  = ARRAY_SIZE(tuner_microtune_4042fi5_ntsc_ranges),
748         },
749         {
750                 .type   = TUNER_PARAM_TYPE_DIGITAL,
751                 .ranges = tuner_microtune_4042fi5_atsc_ranges,
752                 .count  = ARRAY_SIZE(tuner_microtune_4042fi5_atsc_ranges),
753                 .iffreq = 16 * 44.00 /*MHz*/,
754         },
755 };
756
757 /* 50-59 */
758 /* ------------ TUNER_TCL_2002N - TCL NTSC ------------ */
759
760 static struct tuner_range tuner_tcl_2002n_ntsc_ranges[] = {
761         { 16 * 172.00 /*MHz*/, 0x8e, 0x01, },
762         { 16 * 448.00 /*MHz*/, 0x8e, 0x02, },
763         { 16 * 999.99        , 0x8e, 0x08, },
764 };
765
766 static struct tuner_params tuner_tcl_2002n_params[] = {
767         {
768                 .type   = TUNER_PARAM_TYPE_NTSC,
769                 .ranges = tuner_tcl_2002n_ntsc_ranges,
770                 .count  = ARRAY_SIZE(tuner_tcl_2002n_ntsc_ranges),
771                 .cb_first_if_lower_freq = 1,
772         },
773 };
774
775 /* ------------ TUNER_PHILIPS_FM1256_IH3 - Philips PAL ------------ */
776
777 static struct tuner_params tuner_philips_fm1256_ih3_params[] = {
778         {
779                 .type   = TUNER_PARAM_TYPE_PAL,
780                 .ranges = tuner_fm1236_mk3_ntsc_ranges,
781                 .count  = ARRAY_SIZE(tuner_fm1236_mk3_ntsc_ranges),
782                 .radio_if = 1, /* 33.3 MHz */
783         },
784 };
785
786 /* ------------ TUNER_THOMSON_DTT7610 - THOMSON ATSC ------------ */
787
788 /* single range used for both ntsc and atsc */
789 static struct tuner_range tuner_thomson_dtt7610_ntsc_ranges[] = {
790         { 16 * 157.25 /*MHz*/, 0x8e, 0x39, },
791         { 16 * 454.00 /*MHz*/, 0x8e, 0x3a, },
792         { 16 * 999.99        , 0x8e, 0x3c, },
793 };
794
795 static struct tuner_params tuner_thomson_dtt7610_params[] = {
796         {
797                 .type   = TUNER_PARAM_TYPE_NTSC,
798                 .ranges = tuner_thomson_dtt7610_ntsc_ranges,
799                 .count  = ARRAY_SIZE(tuner_thomson_dtt7610_ntsc_ranges),
800         },
801         {
802                 .type   = TUNER_PARAM_TYPE_DIGITAL,
803                 .ranges = tuner_thomson_dtt7610_ntsc_ranges,
804                 .count  = ARRAY_SIZE(tuner_thomson_dtt7610_ntsc_ranges),
805                 .iffreq = 16 * 44.00 /*MHz*/,
806         },
807 };
808
809 /* ------------ TUNER_PHILIPS_FQ1286 - Philips NTSC ------------ */
810
811 static struct tuner_range tuner_philips_fq1286_ntsc_ranges[] = {
812         { 16 * 160.00 /*MHz*/, 0x8e, 0x41, },
813         { 16 * 454.00 /*MHz*/, 0x8e, 0x42, },
814         { 16 * 999.99        , 0x8e, 0x04, },
815 };
816
817 static struct tuner_params tuner_philips_fq1286_params[] = {
818         {
819                 .type   = TUNER_PARAM_TYPE_NTSC,
820                 .ranges = tuner_philips_fq1286_ntsc_ranges,
821                 .count  = ARRAY_SIZE(tuner_philips_fq1286_ntsc_ranges),
822         },
823 };
824
825 /* ------------ TUNER_TCL_2002MB - TCL PAL ------------ */
826
827 static struct tuner_range tuner_tcl_2002mb_pal_ranges[] = {
828         { 16 * 170.00 /*MHz*/, 0xce, 0x01, },
829         { 16 * 450.00 /*MHz*/, 0xce, 0x02, },
830         { 16 * 999.99        , 0xce, 0x08, },
831 };
832
833 static struct tuner_params tuner_tcl_2002mb_params[] = {
834         {
835                 .type   = TUNER_PARAM_TYPE_PAL,
836                 .ranges = tuner_tcl_2002mb_pal_ranges,
837                 .count  = ARRAY_SIZE(tuner_tcl_2002mb_pal_ranges),
838         },
839 };
840
841 /* ------------ TUNER_PHILIPS_FQ1216AME_MK4 - Philips PAL ------------ */
842
843 static struct tuner_range tuner_philips_fq12_6a___mk4_pal_ranges[] = {
844         { 16 * 160.00 /*MHz*/, 0xce, 0x01, },
845         { 16 * 442.00 /*MHz*/, 0xce, 0x02, },
846         { 16 * 999.99        , 0xce, 0x04, },
847 };
848
849 static struct tuner_params tuner_philips_fq1216ame_mk4_params[] = {
850         {
851                 .type   = TUNER_PARAM_TYPE_PAL,
852                 .ranges = tuner_philips_fq12_6a___mk4_pal_ranges,
853                 .count  = ARRAY_SIZE(tuner_philips_fq12_6a___mk4_pal_ranges),
854                 .has_tda9887 = 1,
855                 .port1_active = 1,
856                 .port2_invert_for_secam_lc = 1,
857                 .default_top_mid = -2,
858                 .default_top_secam_low = -2,
859                 .default_top_secam_mid = -2,
860                 .default_top_secam_high = -2,
861         },
862 };
863
864 /* ------------ TUNER_PHILIPS_FQ1236A_MK4 - Philips NTSC ------------ */
865
866 static struct tuner_params tuner_philips_fq1236a_mk4_params[] = {
867         {
868                 .type   = TUNER_PARAM_TYPE_NTSC,
869                 .ranges = tuner_fm1236_mk3_ntsc_ranges,
870                 .count  = ARRAY_SIZE(tuner_fm1236_mk3_ntsc_ranges),
871         },
872 };
873
874 /* ------------ TUNER_YMEC_TVF_8531MF - Philips NTSC ------------ */
875
876 static struct tuner_params tuner_ymec_tvf_8531mf_params[] = {
877         {
878                 .type   = TUNER_PARAM_TYPE_NTSC,
879                 .ranges = tuner_philips_ntsc_m_ranges,
880                 .count  = ARRAY_SIZE(tuner_philips_ntsc_m_ranges),
881         },
882 };
883
884 /* ------------ TUNER_YMEC_TVF_5533MF - Philips NTSC ------------ */
885
886 static struct tuner_range tuner_ymec_tvf_5533mf_ntsc_ranges[] = {
887         { 16 * 160.00 /*MHz*/, 0x8e, 0x01, },
888         { 16 * 454.00 /*MHz*/, 0x8e, 0x02, },
889         { 16 * 999.99        , 0x8e, 0x04, },
890 };
891
892 static struct tuner_params tuner_ymec_tvf_5533mf_params[] = {
893         {
894                 .type   = TUNER_PARAM_TYPE_NTSC,
895                 .ranges = tuner_ymec_tvf_5533mf_ntsc_ranges,
896                 .count  = ARRAY_SIZE(tuner_ymec_tvf_5533mf_ntsc_ranges),
897         },
898 };
899
900 /* 60-69 */
901 /* ------------ TUNER_THOMSON_DTT761X - THOMSON ATSC ------------ */
902 /* DTT 7611 7611A 7612 7613 7613A 7614 7615 7615A */
903
904 static struct tuner_range tuner_thomson_dtt761x_ntsc_ranges[] = {
905         { 16 * 145.25 /*MHz*/, 0x8e, 0x39, },
906         { 16 * 415.25 /*MHz*/, 0x8e, 0x3a, },
907         { 16 * 999.99        , 0x8e, 0x3c, },
908 };
909
910 static struct tuner_range tuner_thomson_dtt761x_atsc_ranges[] = {
911         { 16 * 147.00 /*MHz*/, 0x8e, 0x39, },
912         { 16 * 417.00 /*MHz*/, 0x8e, 0x3a, },
913         { 16 * 999.99        , 0x8e, 0x3c, },
914 };
915
916 static struct tuner_params tuner_thomson_dtt761x_params[] = {
917         {
918                 .type   = TUNER_PARAM_TYPE_NTSC,
919                 .ranges = tuner_thomson_dtt761x_ntsc_ranges,
920                 .count  = ARRAY_SIZE(tuner_thomson_dtt761x_ntsc_ranges),
921                 .has_tda9887 = 1,
922                 .fm_gain_normal = 1,
923                 .radio_if = 2, /* 41.3 MHz */
924         },
925         {
926                 .type   = TUNER_PARAM_TYPE_DIGITAL,
927                 .ranges = tuner_thomson_dtt761x_atsc_ranges,
928                 .count  = ARRAY_SIZE(tuner_thomson_dtt761x_atsc_ranges),
929                 .iffreq = 16 * 44.00, /*MHz*/
930         },
931 };
932
933 /* ------------ TUNER_TENA_9533_DI - Philips PAL ------------ */
934
935 static struct tuner_range tuner_tena_9533_di_pal_ranges[] = {
936         { 16 * 160.25 /*MHz*/, 0x8e, 0x01, },
937         { 16 * 464.25 /*MHz*/, 0x8e, 0x02, },
938         { 16 * 999.99        , 0x8e, 0x04, },
939 };
940
941 static struct tuner_params tuner_tena_9533_di_params[] = {
942         {
943                 .type   = TUNER_PARAM_TYPE_PAL,
944                 .ranges = tuner_tena_9533_di_pal_ranges,
945                 .count  = ARRAY_SIZE(tuner_tena_9533_di_pal_ranges),
946         },
947 };
948
949 /* ------------ TUNER_PHILIPS_FMD1216ME(X)_MK3 - Philips PAL ------------ */
950
951 static struct tuner_range tuner_philips_fmd1216me_mk3_pal_ranges[] = {
952         { 16 * 160.00 /*MHz*/, 0x86, 0x51, },
953         { 16 * 442.00 /*MHz*/, 0x86, 0x52, },
954         { 16 * 999.99        , 0x86, 0x54, },
955 };
956
957 static struct tuner_range tuner_philips_fmd1216me_mk3_dvb_ranges[] = {
958         { 16 * 143.87 /*MHz*/, 0xbc, 0x41 },
959         { 16 * 158.87 /*MHz*/, 0xf4, 0x41 },
960         { 16 * 329.87 /*MHz*/, 0xbc, 0x42 },
961         { 16 * 441.87 /*MHz*/, 0xf4, 0x42 },
962         { 16 * 625.87 /*MHz*/, 0xbc, 0x44 },
963         { 16 * 803.87 /*MHz*/, 0xf4, 0x44 },
964         { 16 * 999.99        , 0xfc, 0x44 },
965 };
966
967 static struct tuner_params tuner_philips_fmd1216me_mk3_params[] = {
968         {
969                 .type   = TUNER_PARAM_TYPE_PAL,
970                 .ranges = tuner_philips_fmd1216me_mk3_pal_ranges,
971                 .count  = ARRAY_SIZE(tuner_philips_fmd1216me_mk3_pal_ranges),
972                 .has_tda9887 = 1,
973                 .port1_active = 1,
974                 .port2_active = 1,
975                 .port2_fm_high_sensitivity = 1,
976                 .port2_invert_for_secam_lc = 1,
977                 .port1_set_for_fm_mono = 1,
978         },
979         {
980                 .type   = TUNER_PARAM_TYPE_DIGITAL,
981                 .ranges = tuner_philips_fmd1216me_mk3_dvb_ranges,
982                 .count  = ARRAY_SIZE(tuner_philips_fmd1216me_mk3_dvb_ranges),
983                 .iffreq = 16 * 36.125, /*MHz*/
984         },
985 };
986
987 static struct tuner_params tuner_philips_fmd1216mex_mk3_params[] = {
988         {
989                 .type   = TUNER_PARAM_TYPE_PAL,
990                 .ranges = tuner_philips_fmd1216me_mk3_pal_ranges,
991                 .count  = ARRAY_SIZE(tuner_philips_fmd1216me_mk3_pal_ranges),
992                 .has_tda9887 = 1,
993                 .port1_active = 1,
994                 .port2_active = 1,
995                 .port2_fm_high_sensitivity = 1,
996                 .port2_invert_for_secam_lc = 1,
997                 .port1_set_for_fm_mono = 1,
998                 .radio_if = 1,
999                 .fm_gain_normal = 1,
1000         },
1001         {
1002                 .type   = TUNER_PARAM_TYPE_DIGITAL,
1003                 .ranges = tuner_philips_fmd1216me_mk3_dvb_ranges,
1004                 .count  = ARRAY_SIZE(tuner_philips_fmd1216me_mk3_dvb_ranges),
1005                 .iffreq = 16 * 36.125, /*MHz*/
1006         },
1007 };
1008
1009 /* ------ TUNER_LG_TDVS_H06XF - LG INNOTEK / INFINEON ATSC ----- */
1010
1011 static struct tuner_range tuner_tua6034_ntsc_ranges[] = {
1012         { 16 * 165.00 /*MHz*/, 0x8e, 0x01 },
1013         { 16 * 450.00 /*MHz*/, 0x8e, 0x02 },
1014         { 16 * 999.99        , 0x8e, 0x04 },
1015 };
1016
1017 static struct tuner_range tuner_tua6034_atsc_ranges[] = {
1018         { 16 * 165.00 /*MHz*/, 0xce, 0x01 },
1019         { 16 * 450.00 /*MHz*/, 0xce, 0x02 },
1020         { 16 * 999.99        , 0xce, 0x04 },
1021 };
1022
1023 static struct tuner_params tuner_lg_tdvs_h06xf_params[] = {
1024         {
1025                 .type   = TUNER_PARAM_TYPE_NTSC,
1026                 .ranges = tuner_tua6034_ntsc_ranges,
1027                 .count  = ARRAY_SIZE(tuner_tua6034_ntsc_ranges),
1028         },
1029         {
1030                 .type   = TUNER_PARAM_TYPE_DIGITAL,
1031                 .ranges = tuner_tua6034_atsc_ranges,
1032                 .count  = ARRAY_SIZE(tuner_tua6034_atsc_ranges),
1033                 .iffreq = 16 * 44.00,
1034         },
1035 };
1036
1037 /* ------------ TUNER_YMEC_TVF66T5_B_DFF - Philips PAL ------------ */
1038
1039 static struct tuner_range tuner_ymec_tvf66t5_b_dff_pal_ranges[] = {
1040         { 16 * 160.25 /*MHz*/, 0x8e, 0x01, },
1041         { 16 * 464.25 /*MHz*/, 0x8e, 0x02, },
1042         { 16 * 999.99        , 0x8e, 0x08, },
1043 };
1044
1045 static struct tuner_params tuner_ymec_tvf66t5_b_dff_params[] = {
1046         {
1047                 .type   = TUNER_PARAM_TYPE_PAL,
1048                 .ranges = tuner_ymec_tvf66t5_b_dff_pal_ranges,
1049                 .count  = ARRAY_SIZE(tuner_ymec_tvf66t5_b_dff_pal_ranges),
1050         },
1051 };
1052
1053 /* ------------ TUNER_LG_NTSC_TALN_MINI - LGINNOTEK NTSC ------------ */
1054
1055 static struct tuner_range tuner_lg_taln_ntsc_ranges[] = {
1056         { 16 * 137.25 /*MHz*/, 0x8e, 0x01, },
1057         { 16 * 373.25 /*MHz*/, 0x8e, 0x02, },
1058         { 16 * 999.99        , 0x8e, 0x08, },
1059 };
1060
1061 static struct tuner_range tuner_lg_taln_pal_secam_ranges[] = {
1062         { 16 * 150.00 /*MHz*/, 0x8e, 0x01, },
1063         { 16 * 425.00 /*MHz*/, 0x8e, 0x02, },
1064         { 16 * 999.99        , 0x8e, 0x08, },
1065 };
1066
1067 static struct tuner_params tuner_lg_taln_params[] = {
1068         {
1069                 .type   = TUNER_PARAM_TYPE_NTSC,
1070                 .ranges = tuner_lg_taln_ntsc_ranges,
1071                 .count  = ARRAY_SIZE(tuner_lg_taln_ntsc_ranges),
1072         },{
1073                 .type   = TUNER_PARAM_TYPE_PAL,
1074                 .ranges = tuner_lg_taln_pal_secam_ranges,
1075                 .count  = ARRAY_SIZE(tuner_lg_taln_pal_secam_ranges),
1076         },
1077 };
1078
1079 /* ------------ TUNER_PHILIPS_TD1316 - Philips PAL ------------ */
1080
1081 static struct tuner_range tuner_philips_td1316_pal_ranges[] = {
1082         { 16 * 160.00 /*MHz*/, 0xc8, 0xa1, },
1083         { 16 * 442.00 /*MHz*/, 0xc8, 0xa2, },
1084         { 16 * 999.99        , 0xc8, 0xa4, },
1085 };
1086
1087 static struct tuner_range tuner_philips_td1316_dvb_ranges[] = {
1088         { 16 *  93.834 /*MHz*/, 0xca, 0x60, },
1089         { 16 * 123.834 /*MHz*/, 0xca, 0xa0, },
1090         { 16 * 163.834 /*MHz*/, 0xca, 0xc0, },
1091         { 16 * 253.834 /*MHz*/, 0xca, 0x60, },
1092         { 16 * 383.834 /*MHz*/, 0xca, 0xa0, },
1093         { 16 * 443.834 /*MHz*/, 0xca, 0xc0, },
1094         { 16 * 583.834 /*MHz*/, 0xca, 0x60, },
1095         { 16 * 793.834 /*MHz*/, 0xca, 0xa0, },
1096         { 16 * 999.999        , 0xca, 0xe0, },
1097 };
1098
1099 static struct tuner_params tuner_philips_td1316_params[] = {
1100         {
1101                 .type   = TUNER_PARAM_TYPE_PAL,
1102                 .ranges = tuner_philips_td1316_pal_ranges,
1103                 .count  = ARRAY_SIZE(tuner_philips_td1316_pal_ranges),
1104         },
1105         {
1106                 .type   = TUNER_PARAM_TYPE_DIGITAL,
1107                 .ranges = tuner_philips_td1316_dvb_ranges,
1108                 .count  = ARRAY_SIZE(tuner_philips_td1316_dvb_ranges),
1109                 .iffreq = 16 * 36.166667 /*MHz*/,
1110         },
1111 };
1112
1113 /* ------------ TUNER_PHILIPS_TUV1236D - Philips ATSC ------------ */
1114
1115 static struct tuner_range tuner_tuv1236d_ntsc_ranges[] = {
1116         { 16 * 157.25 /*MHz*/, 0xce, 0x01, },
1117         { 16 * 454.00 /*MHz*/, 0xce, 0x02, },
1118         { 16 * 999.99        , 0xce, 0x04, },
1119 };
1120
1121 static struct tuner_range tuner_tuv1236d_atsc_ranges[] = {
1122         { 16 * 157.25 /*MHz*/, 0xc6, 0x41, },
1123         { 16 * 454.00 /*MHz*/, 0xc6, 0x42, },
1124         { 16 * 999.99        , 0xc6, 0x44, },
1125 };
1126
1127 static struct tuner_params tuner_tuv1236d_params[] = {
1128         {
1129                 .type   = TUNER_PARAM_TYPE_NTSC,
1130                 .ranges = tuner_tuv1236d_ntsc_ranges,
1131                 .count  = ARRAY_SIZE(tuner_tuv1236d_ntsc_ranges),
1132         },
1133         {
1134                 .type   = TUNER_PARAM_TYPE_DIGITAL,
1135                 .ranges = tuner_tuv1236d_atsc_ranges,
1136                 .count  = ARRAY_SIZE(tuner_tuv1236d_atsc_ranges),
1137                 .iffreq = 16 * 44.00,
1138         },
1139 };
1140
1141 /* ------------ TUNER_TNF_xxx5  - Texas Instruments--------- */
1142 /* This is known to work with Tenna TVF58t5-MFF and TVF5835 MFF
1143  *      but it is expected to work also with other Tenna/Ymec
1144  *      models based on TI SN 761677 chip on both PAL and NTSC
1145  */
1146
1147 static struct tuner_range tuner_tnf_5335_d_if_pal_ranges[] = {
1148         { 16 * 168.25 /*MHz*/, 0x8e, 0x01, },
1149         { 16 * 471.25 /*MHz*/, 0x8e, 0x02, },
1150         { 16 * 999.99        , 0x8e, 0x08, },
1151 };
1152
1153 static struct tuner_range tuner_tnf_5335mf_ntsc_ranges[] = {
1154         { 16 * 169.25 /*MHz*/, 0x8e, 0x01, },
1155         { 16 * 469.25 /*MHz*/, 0x8e, 0x02, },
1156         { 16 * 999.99        , 0x8e, 0x08, },
1157 };
1158
1159 static struct tuner_params tuner_tnf_5335mf_params[] = {
1160         {
1161                 .type   = TUNER_PARAM_TYPE_NTSC,
1162                 .ranges = tuner_tnf_5335mf_ntsc_ranges,
1163                 .count  = ARRAY_SIZE(tuner_tnf_5335mf_ntsc_ranges),
1164         },
1165         {
1166                 .type   = TUNER_PARAM_TYPE_PAL,
1167                 .ranges = tuner_tnf_5335_d_if_pal_ranges,
1168                 .count  = ARRAY_SIZE(tuner_tnf_5335_d_if_pal_ranges),
1169         },
1170 };
1171
1172 /* 70-79 */
1173 /* ------------ TUNER_SAMSUNG_TCPN_2121P30A - Samsung NTSC ------------ */
1174
1175 /* '+ 4' turns on the Low Noise Amplifier */
1176 static struct tuner_range tuner_samsung_tcpn_2121p30a_ntsc_ranges[] = {
1177         { 16 * 130.00 /*MHz*/, 0xce, 0x01 + 4, },
1178         { 16 * 364.50 /*MHz*/, 0xce, 0x02 + 4, },
1179         { 16 * 999.99        , 0xce, 0x08 + 4, },
1180 };
1181
1182 static struct tuner_params tuner_samsung_tcpn_2121p30a_params[] = {
1183         {
1184                 .type   = TUNER_PARAM_TYPE_NTSC,
1185                 .ranges = tuner_samsung_tcpn_2121p30a_ntsc_ranges,
1186                 .count  = ARRAY_SIZE(tuner_samsung_tcpn_2121p30a_ntsc_ranges),
1187         },
1188 };
1189
1190 /* ------------ TUNER_THOMSON_FE6600 - DViCO Hybrid PAL ------------ */
1191
1192 static struct tuner_range tuner_thomson_fe6600_pal_ranges[] = {
1193         { 16 * 160.00 /*MHz*/, 0xfe, 0x11, },
1194         { 16 * 442.00 /*MHz*/, 0xf6, 0x12, },
1195         { 16 * 999.99        , 0xf6, 0x18, },
1196 };
1197
1198 static struct tuner_range tuner_thomson_fe6600_dvb_ranges[] = {
1199         { 16 * 250.00 /*MHz*/, 0xb4, 0x12, },
1200         { 16 * 455.00 /*MHz*/, 0xfe, 0x11, },
1201         { 16 * 775.50 /*MHz*/, 0xbc, 0x18, },
1202         { 16 * 999.99        , 0xf4, 0x18, },
1203 };
1204
1205 static struct tuner_params tuner_thomson_fe6600_params[] = {
1206         {
1207                 .type   = TUNER_PARAM_TYPE_PAL,
1208                 .ranges = tuner_thomson_fe6600_pal_ranges,
1209                 .count  = ARRAY_SIZE(tuner_thomson_fe6600_pal_ranges),
1210         },
1211         {
1212                 .type   = TUNER_PARAM_TYPE_DIGITAL,
1213                 .ranges = tuner_thomson_fe6600_dvb_ranges,
1214                 .count  = ARRAY_SIZE(tuner_thomson_fe6600_dvb_ranges),
1215                 .iffreq = 16 * 36.125 /*MHz*/,
1216         },
1217 };
1218
1219 /* ------------ TUNER_SAMSUNG_TCPG_6121P30A - Samsung PAL ------------ */
1220
1221 /* '+ 4' turns on the Low Noise Amplifier */
1222 static struct tuner_range tuner_samsung_tcpg_6121p30a_pal_ranges[] = {
1223         { 16 * 146.25 /*MHz*/, 0xce, 0x01 + 4, },
1224         { 16 * 428.50 /*MHz*/, 0xce, 0x02 + 4, },
1225         { 16 * 999.99        , 0xce, 0x08 + 4, },
1226 };
1227
1228 static struct tuner_params tuner_samsung_tcpg_6121p30a_params[] = {
1229         {
1230                 .type   = TUNER_PARAM_TYPE_PAL,
1231                 .ranges = tuner_samsung_tcpg_6121p30a_pal_ranges,
1232                 .count  = ARRAY_SIZE(tuner_samsung_tcpg_6121p30a_pal_ranges),
1233                 .has_tda9887 = 1,
1234                 .port1_active = 1,
1235                 .port2_active = 1,
1236                 .port2_invert_for_secam_lc = 1,
1237         },
1238 };
1239
1240 /* ------------ TUNER_TCL_MF02GIP-5N-E - TCL MF02GIP-5N ------------ */
1241
1242 static struct tuner_range tuner_tcl_mf02gip_5n_ntsc_ranges[] = {
1243         { 16 * 172.00 /*MHz*/, 0x8e, 0x01, },
1244         { 16 * 448.00 /*MHz*/, 0x8e, 0x02, },
1245         { 16 * 999.99        , 0x8e, 0x04, },
1246 };
1247
1248 static struct tuner_params tuner_tcl_mf02gip_5n_params[] = {
1249         {
1250                 .type   = TUNER_PARAM_TYPE_NTSC,
1251                 .ranges = tuner_tcl_mf02gip_5n_ntsc_ranges,
1252                 .count  = ARRAY_SIZE(tuner_tcl_mf02gip_5n_ntsc_ranges),
1253                 .cb_first_if_lower_freq = 1,
1254         },
1255 };
1256
1257 /* --------------------------------------------------------------------- */
1258
1259 struct tunertype tuners[] = {
1260         /* 0-9 */
1261         [TUNER_TEMIC_PAL] = { /* TEMIC PAL */
1262                 .name   = "Temic PAL (4002 FH5)",
1263                 .params = tuner_temic_pal_params,
1264                 .count  = ARRAY_SIZE(tuner_temic_pal_params),
1265         },
1266         [TUNER_PHILIPS_PAL_I] = { /* Philips PAL_I */
1267                 .name   = "Philips PAL_I (FI1246 and compatibles)",
1268                 .params = tuner_philips_pal_i_params,
1269                 .count  = ARRAY_SIZE(tuner_philips_pal_i_params),
1270         },
1271         [TUNER_PHILIPS_NTSC] = { /* Philips NTSC */
1272                 .name   = "Philips NTSC (FI1236,FM1236 and compatibles)",
1273                 .params = tuner_philips_ntsc_params,
1274                 .count  = ARRAY_SIZE(tuner_philips_ntsc_params),
1275         },
1276         [TUNER_PHILIPS_SECAM] = { /* Philips SECAM */
1277                 .name   = "Philips (SECAM+PAL_BG) (FI1216MF, FM1216MF, FR1216MF)",
1278                 .params = tuner_philips_secam_params,
1279                 .count  = ARRAY_SIZE(tuner_philips_secam_params),
1280         },
1281         [TUNER_ABSENT] = { /* Tuner Absent */
1282                 .name   = "NoTuner",
1283         },
1284         [TUNER_PHILIPS_PAL] = { /* Philips PAL */
1285                 .name   = "Philips PAL_BG (FI1216 and compatibles)",
1286                 .params = tuner_philips_pal_params,
1287                 .count  = ARRAY_SIZE(tuner_philips_pal_params),
1288         },
1289         [TUNER_TEMIC_NTSC] = { /* TEMIC NTSC */
1290                 .name   = "Temic NTSC (4032 FY5)",
1291                 .params = tuner_temic_ntsc_params,
1292                 .count  = ARRAY_SIZE(tuner_temic_ntsc_params),
1293         },
1294         [TUNER_TEMIC_PAL_I] = { /* TEMIC PAL_I */
1295                 .name   = "Temic PAL_I (4062 FY5)",
1296                 .params = tuner_temic_pal_i_params,
1297                 .count  = ARRAY_SIZE(tuner_temic_pal_i_params),
1298         },
1299         [TUNER_TEMIC_4036FY5_NTSC] = { /* TEMIC NTSC */
1300                 .name   = "Temic NTSC (4036 FY5)",
1301                 .params = tuner_temic_4036fy5_ntsc_params,
1302                 .count  = ARRAY_SIZE(tuner_temic_4036fy5_ntsc_params),
1303         },
1304         [TUNER_ALPS_TSBH1_NTSC] = { /* TEMIC NTSC */
1305                 .name   = "Alps HSBH1",
1306                 .params = tuner_alps_tsbh1_ntsc_params,
1307                 .count  = ARRAY_SIZE(tuner_alps_tsbh1_ntsc_params),
1308         },
1309
1310         /* 10-19 */
1311         [TUNER_ALPS_TSBE1_PAL] = { /* TEMIC PAL */
1312                 .name   = "Alps TSBE1",
1313                 .params = tuner_alps_tsb_1_params,
1314                 .count  = ARRAY_SIZE(tuner_alps_tsb_1_params),
1315         },
1316         [TUNER_ALPS_TSBB5_PAL_I] = { /* Alps PAL_I */
1317                 .name   = "Alps TSBB5",
1318                 .params = tuner_alps_tsbb5_params,
1319                 .count  = ARRAY_SIZE(tuner_alps_tsbb5_params),
1320         },
1321         [TUNER_ALPS_TSBE5_PAL] = { /* Alps PAL */
1322                 .name   = "Alps TSBE5",
1323                 .params = tuner_alps_tsbe5_params,
1324                 .count  = ARRAY_SIZE(tuner_alps_tsbe5_params),
1325         },
1326         [TUNER_ALPS_TSBC5_PAL] = { /* Alps PAL */
1327                 .name   = "Alps TSBC5",
1328                 .params = tuner_alps_tsbc5_params,
1329                 .count  = ARRAY_SIZE(tuner_alps_tsbc5_params),
1330         },
1331         [TUNER_TEMIC_4006FH5_PAL] = { /* TEMIC PAL */
1332                 .name   = "Temic PAL_BG (4006FH5)",
1333                 .params = tuner_temic_4006fh5_params,
1334                 .count  = ARRAY_SIZE(tuner_temic_4006fh5_params),
1335         },
1336         [TUNER_ALPS_TSHC6_NTSC] = { /* Alps NTSC */
1337                 .name   = "Alps TSCH6",
1338                 .params = tuner_alps_tshc6_params,
1339                 .count  = ARRAY_SIZE(tuner_alps_tshc6_params),
1340         },
1341         [TUNER_TEMIC_PAL_DK] = { /* TEMIC PAL */
1342                 .name   = "Temic PAL_DK (4016 FY5)",
1343                 .params = tuner_temic_pal_dk_params,
1344                 .count  = ARRAY_SIZE(tuner_temic_pal_dk_params),
1345         },
1346         [TUNER_PHILIPS_NTSC_M] = { /* Philips NTSC */
1347                 .name   = "Philips NTSC_M (MK2)",
1348                 .params = tuner_philips_ntsc_m_params,
1349                 .count  = ARRAY_SIZE(tuner_philips_ntsc_m_params),
1350         },
1351         [TUNER_TEMIC_4066FY5_PAL_I] = { /* TEMIC PAL_I */
1352                 .name   = "Temic PAL_I (4066 FY5)",
1353                 .params = tuner_temic_4066fy5_pal_i_params,
1354                 .count  = ARRAY_SIZE(tuner_temic_4066fy5_pal_i_params),
1355         },
1356         [TUNER_TEMIC_4006FN5_MULTI_PAL] = { /* TEMIC PAL */
1357                 .name   = "Temic PAL* auto (4006 FN5)",
1358                 .params = tuner_temic_4006fn5_multi_params,
1359                 .count  = ARRAY_SIZE(tuner_temic_4006fn5_multi_params),
1360         },
1361
1362         /* 20-29 */
1363         [TUNER_TEMIC_4009FR5_PAL] = { /* TEMIC PAL */
1364                 .name   = "Temic PAL_BG (4009 FR5) or PAL_I (4069 FR5)",
1365                 .params = tuner_temic_4009f_5_params,
1366                 .count  = ARRAY_SIZE(tuner_temic_4009f_5_params),
1367         },
1368         [TUNER_TEMIC_4039FR5_NTSC] = { /* TEMIC NTSC */
1369                 .name   = "Temic NTSC (4039 FR5)",
1370                 .params = tuner_temic_4039fr5_params,
1371                 .count  = ARRAY_SIZE(tuner_temic_4039fr5_params),
1372         },
1373         [TUNER_TEMIC_4046FM5] = { /* TEMIC PAL */
1374                 .name   = "Temic PAL/SECAM multi (4046 FM5)",
1375                 .params = tuner_temic_4046fm5_params,
1376                 .count  = ARRAY_SIZE(tuner_temic_4046fm5_params),
1377         },
1378         [TUNER_PHILIPS_PAL_DK] = { /* Philips PAL */
1379                 .name   = "Philips PAL_DK (FI1256 and compatibles)",
1380                 .params = tuner_philips_pal_dk_params,
1381                 .count  = ARRAY_SIZE(tuner_philips_pal_dk_params),
1382         },
1383         [TUNER_PHILIPS_FQ1216ME] = { /* Philips PAL */
1384                 .name   = "Philips PAL/SECAM multi (FQ1216ME)",
1385                 .params = tuner_philips_fq1216me_params,
1386                 .count  = ARRAY_SIZE(tuner_philips_fq1216me_params),
1387         },
1388         [TUNER_LG_PAL_I_FM] = { /* LGINNOTEK PAL_I */
1389                 .name   = "LG PAL_I+FM (TAPC-I001D)",
1390                 .params = tuner_lg_pal_i_fm_params,
1391                 .count  = ARRAY_SIZE(tuner_lg_pal_i_fm_params),
1392         },
1393         [TUNER_LG_PAL_I] = { /* LGINNOTEK PAL_I */
1394                 .name   = "LG PAL_I (TAPC-I701D)",
1395                 .params = tuner_lg_pal_i_params,
1396                 .count  = ARRAY_SIZE(tuner_lg_pal_i_params),
1397         },
1398         [TUNER_LG_NTSC_FM] = { /* LGINNOTEK NTSC */
1399                 .name   = "LG NTSC+FM (TPI8NSR01F)",
1400                 .params = tuner_lg_ntsc_fm_params,
1401                 .count  = ARRAY_SIZE(tuner_lg_ntsc_fm_params),
1402         },
1403         [TUNER_LG_PAL_FM] = { /* LGINNOTEK PAL */
1404                 .name   = "LG PAL_BG+FM (TPI8PSB01D)",
1405                 .params = tuner_lg_pal_fm_params,
1406                 .count  = ARRAY_SIZE(tuner_lg_pal_fm_params),
1407         },
1408         [TUNER_LG_PAL] = { /* LGINNOTEK PAL */
1409                 .name   = "LG PAL_BG (TPI8PSB11D)",
1410                 .params = tuner_lg_pal_params,
1411                 .count  = ARRAY_SIZE(tuner_lg_pal_params),
1412         },
1413
1414         /* 30-39 */
1415         [TUNER_TEMIC_4009FN5_MULTI_PAL_FM] = { /* TEMIC PAL */
1416                 .name   = "Temic PAL* auto + FM (4009 FN5)",
1417                 .params = tuner_temic_4009_fn5_multi_pal_fm_params,
1418                 .count  = ARRAY_SIZE(tuner_temic_4009_fn5_multi_pal_fm_params),
1419         },
1420         [TUNER_SHARP_2U5JF5540_NTSC] = { /* SHARP NTSC */
1421                 .name   = "SHARP NTSC_JP (2U5JF5540)",
1422                 .params = tuner_sharp_2u5jf5540_params,
1423                 .count  = ARRAY_SIZE(tuner_sharp_2u5jf5540_params),
1424         },
1425         [TUNER_Samsung_PAL_TCPM9091PD27] = { /* Samsung PAL */
1426                 .name   = "Samsung PAL TCPM9091PD27",
1427                 .params = tuner_samsung_pal_tcpm9091pd27_params,
1428                 .count  = ARRAY_SIZE(tuner_samsung_pal_tcpm9091pd27_params),
1429         },
1430         [TUNER_MT2032] = { /* Microtune PAL|NTSC */
1431                 .name   = "MT20xx universal",
1432                 /* see mt20xx.c for details */ },
1433         [TUNER_TEMIC_4106FH5] = { /* TEMIC PAL */
1434                 .name   = "Temic PAL_BG (4106 FH5)",
1435                 .params = tuner_temic_4106fh5_params,
1436                 .count  = ARRAY_SIZE(tuner_temic_4106fh5_params),
1437         },
1438         [TUNER_TEMIC_4012FY5] = { /* TEMIC PAL */
1439                 .name   = "Temic PAL_DK/SECAM_L (4012 FY5)",
1440                 .params = tuner_temic_4012fy5_params,
1441                 .count  = ARRAY_SIZE(tuner_temic_4012fy5_params),
1442         },
1443         [TUNER_TEMIC_4136FY5] = { /* TEMIC NTSC */
1444                 .name   = "Temic NTSC (4136 FY5)",
1445                 .params = tuner_temic_4136_fy5_params,
1446                 .count  = ARRAY_SIZE(tuner_temic_4136_fy5_params),
1447         },
1448         [TUNER_LG_PAL_NEW_TAPC] = { /* LGINNOTEK PAL */
1449                 .name   = "LG PAL (newer TAPC series)",
1450                 .params = tuner_lg_pal_new_tapc_params,
1451                 .count  = ARRAY_SIZE(tuner_lg_pal_new_tapc_params),
1452         },
1453         [TUNER_PHILIPS_FM1216ME_MK3] = { /* Philips PAL */
1454                 .name   = "Philips PAL/SECAM multi (FM1216ME MK3)",
1455                 .params = tuner_fm1216me_mk3_params,
1456                 .count  = ARRAY_SIZE(tuner_fm1216me_mk3_params),
1457         },
1458         [TUNER_LG_NTSC_NEW_TAPC] = { /* LGINNOTEK NTSC */
1459                 .name   = "LG NTSC (newer TAPC series)",
1460                 .params = tuner_lg_ntsc_new_tapc_params,
1461                 .count  = ARRAY_SIZE(tuner_lg_ntsc_new_tapc_params),
1462         },
1463
1464         /* 40-49 */
1465         [TUNER_HITACHI_NTSC] = { /* HITACHI NTSC */
1466                 .name   = "HITACHI V7-J180AT",
1467                 .params = tuner_hitachi_ntsc_params,
1468                 .count  = ARRAY_SIZE(tuner_hitachi_ntsc_params),
1469         },
1470         [TUNER_PHILIPS_PAL_MK] = { /* Philips PAL */
1471                 .name   = "Philips PAL_MK (FI1216 MK)",
1472                 .params = tuner_philips_pal_mk_params,
1473                 .count  = ARRAY_SIZE(tuner_philips_pal_mk_params),
1474         },
1475         [TUNER_PHILIPS_FCV1236D] = { /* Philips ATSC */
1476                 .name   = "Philips FCV1236D ATSC/NTSC dual in",
1477                 .params = tuner_philips_fcv1236d_params,
1478                 .count  = ARRAY_SIZE(tuner_philips_fcv1236d_params),
1479                 .min = 16 *  53.00,
1480                 .max = 16 * 803.00,
1481                 .stepsize = 62500,
1482         },
1483         [TUNER_PHILIPS_FM1236_MK3] = { /* Philips NTSC */
1484                 .name   = "Philips NTSC MK3 (FM1236MK3 or FM1236/F)",
1485                 .params = tuner_fm1236_mk3_params,
1486                 .count  = ARRAY_SIZE(tuner_fm1236_mk3_params),
1487         },
1488         [TUNER_PHILIPS_4IN1] = { /* Philips NTSC */
1489                 .name   = "Philips 4 in 1 (ATI TV Wonder Pro/Conexant)",
1490                 .params = tuner_philips_4in1_params,
1491                 .count  = ARRAY_SIZE(tuner_philips_4in1_params),
1492         },
1493         [TUNER_MICROTUNE_4049FM5] = { /* Microtune PAL */
1494                 .name   = "Microtune 4049 FM5",
1495                 .params = tuner_microtune_4049_fm5_params,
1496                 .count  = ARRAY_SIZE(tuner_microtune_4049_fm5_params),
1497         },
1498         [TUNER_PANASONIC_VP27] = { /* Panasonic NTSC */
1499                 .name   = "Panasonic VP27s/ENGE4324D",
1500                 .params = tuner_panasonic_vp27_params,
1501                 .count  = ARRAY_SIZE(tuner_panasonic_vp27_params),
1502         },
1503         [TUNER_LG_NTSC_TAPE] = { /* LGINNOTEK NTSC */
1504                 .name   = "LG NTSC (TAPE series)",
1505                 .params = tuner_fm1236_mk3_params,
1506                 .count  = ARRAY_SIZE(tuner_fm1236_mk3_params),
1507         },
1508         [TUNER_TNF_8831BGFF] = { /* Philips PAL */
1509                 .name   = "Tenna TNF 8831 BGFF)",
1510                 .params = tuner_tnf_8831bgff_params,
1511                 .count  = ARRAY_SIZE(tuner_tnf_8831bgff_params),
1512         },
1513         [TUNER_MICROTUNE_4042FI5] = { /* Microtune NTSC */
1514                 .name   = "Microtune 4042 FI5 ATSC/NTSC dual in",
1515                 .params = tuner_microtune_4042fi5_params,
1516                 .count  = ARRAY_SIZE(tuner_microtune_4042fi5_params),
1517                 .min    = 16 *  57.00,
1518                 .max    = 16 * 858.00,
1519                 .stepsize = 62500,
1520         },
1521
1522         /* 50-59 */
1523         [TUNER_TCL_2002N] = { /* TCL NTSC */
1524                 .name   = "TCL 2002N",
1525                 .params = tuner_tcl_2002n_params,
1526                 .count  = ARRAY_SIZE(tuner_tcl_2002n_params),
1527         },
1528         [TUNER_PHILIPS_FM1256_IH3] = { /* Philips PAL */
1529                 .name   = "Philips PAL/SECAM_D (FM 1256 I-H3)",
1530                 .params = tuner_philips_fm1256_ih3_params,
1531                 .count  = ARRAY_SIZE(tuner_philips_fm1256_ih3_params),
1532         },
1533         [TUNER_THOMSON_DTT7610] = { /* THOMSON ATSC */
1534                 .name   = "Thomson DTT 7610 (ATSC/NTSC)",
1535                 .params = tuner_thomson_dtt7610_params,
1536                 .count  = ARRAY_SIZE(tuner_thomson_dtt7610_params),
1537                 .min    = 16 *  44.00,
1538                 .max    = 16 * 958.00,
1539                 .stepsize = 62500,
1540         },
1541         [TUNER_PHILIPS_FQ1286] = { /* Philips NTSC */
1542                 .name   = "Philips FQ1286",
1543                 .params = tuner_philips_fq1286_params,
1544                 .count  = ARRAY_SIZE(tuner_philips_fq1286_params),
1545         },
1546         [TUNER_PHILIPS_TDA8290] = { /* Philips PAL|NTSC */
1547                 .name   = "Philips/NXP TDA 8290/8295 + 8275/8275A/18271",
1548                 /* see tda8290.c for details */ },
1549         [TUNER_TCL_2002MB] = { /* TCL PAL */
1550                 .name   = "TCL 2002MB",
1551                 .params = tuner_tcl_2002mb_params,
1552                 .count  = ARRAY_SIZE(tuner_tcl_2002mb_params),
1553         },
1554         [TUNER_PHILIPS_FQ1216AME_MK4] = { /* Philips PAL */
1555                 .name   = "Philips PAL/SECAM multi (FQ1216AME MK4)",
1556                 .params = tuner_philips_fq1216ame_mk4_params,
1557                 .count  = ARRAY_SIZE(tuner_philips_fq1216ame_mk4_params),
1558         },
1559         [TUNER_PHILIPS_FQ1236A_MK4] = { /* Philips NTSC */
1560                 .name   = "Philips FQ1236A MK4",
1561                 .params = tuner_philips_fq1236a_mk4_params,
1562                 .count  = ARRAY_SIZE(tuner_philips_fq1236a_mk4_params),
1563         },
1564         [TUNER_YMEC_TVF_8531MF] = { /* Philips NTSC */
1565                 .name   = "Ymec TVision TVF-8531MF/8831MF/8731MF",
1566                 .params = tuner_ymec_tvf_8531mf_params,
1567                 .count  = ARRAY_SIZE(tuner_ymec_tvf_8531mf_params),
1568         },
1569         [TUNER_YMEC_TVF_5533MF] = { /* Philips NTSC */
1570                 .name   = "Ymec TVision TVF-5533MF",
1571                 .params = tuner_ymec_tvf_5533mf_params,
1572                 .count  = ARRAY_SIZE(tuner_ymec_tvf_5533mf_params),
1573         },
1574
1575         /* 60-69 */
1576         [TUNER_THOMSON_DTT761X] = { /* THOMSON ATSC */
1577                 /* DTT 7611 7611A 7612 7613 7613A 7614 7615 7615A */
1578                 .name   = "Thomson DTT 761X (ATSC/NTSC)",
1579                 .params = tuner_thomson_dtt761x_params,
1580                 .count  = ARRAY_SIZE(tuner_thomson_dtt761x_params),
1581                 .min    = 16 *  57.00,
1582                 .max    = 16 * 863.00,
1583                 .stepsize = 62500,
1584                 .initdata = tua603x_agc103,
1585         },
1586         [TUNER_TENA_9533_DI] = { /* Philips PAL */
1587                 .name   = "Tena TNF9533-D/IF/TNF9533-B/DF",
1588                 .params = tuner_tena_9533_di_params,
1589                 .count  = ARRAY_SIZE(tuner_tena_9533_di_params),
1590         },
1591         [TUNER_TEA5767] = { /* Philips RADIO */
1592                 .name   = "Philips TEA5767HN FM Radio",
1593                 /* see tea5767.c for details */
1594         },
1595         [TUNER_PHILIPS_FMD1216ME_MK3] = { /* Philips PAL */
1596                 .name   = "Philips FMD1216ME MK3 Hybrid Tuner",
1597                 .params = tuner_philips_fmd1216me_mk3_params,
1598                 .count  = ARRAY_SIZE(tuner_philips_fmd1216me_mk3_params),
1599                 .min = 16 *  50.87,
1600                 .max = 16 * 858.00,
1601                 .stepsize = 166667,
1602                 .initdata = tua603x_agc112,
1603                 .sleepdata = (u8[]){ 4, 0x9c, 0x60, 0x85, 0x54 },
1604         },
1605         [TUNER_LG_TDVS_H06XF] = { /* LGINNOTEK ATSC */
1606                 .name   = "LG TDVS-H06xF", /* H061F, H062F & H064F */
1607                 .params = tuner_lg_tdvs_h06xf_params,
1608                 .count  = ARRAY_SIZE(tuner_lg_tdvs_h06xf_params),
1609                 .min    = 16 *  54.00,
1610                 .max    = 16 * 863.00,
1611                 .stepsize = 62500,
1612                 .initdata = tua603x_agc103,
1613         },
1614         [TUNER_YMEC_TVF66T5_B_DFF] = { /* Philips PAL */
1615                 .name   = "Ymec TVF66T5-B/DFF",
1616                 .params = tuner_ymec_tvf66t5_b_dff_params,
1617                 .count  = ARRAY_SIZE(tuner_ymec_tvf66t5_b_dff_params),
1618         },
1619         [TUNER_LG_TALN] = { /* LGINNOTEK NTSC / PAL / SECAM */
1620                 .name   = "LG TALN series",
1621                 .params = tuner_lg_taln_params,
1622                 .count  = ARRAY_SIZE(tuner_lg_taln_params),
1623         },
1624         [TUNER_PHILIPS_TD1316] = { /* Philips PAL */
1625                 .name   = "Philips TD1316 Hybrid Tuner",
1626                 .params = tuner_philips_td1316_params,
1627                 .count  = ARRAY_SIZE(tuner_philips_td1316_params),
1628                 .min    = 16 *  87.00,
1629                 .max    = 16 * 895.00,
1630                 .stepsize = 166667,
1631         },
1632         [TUNER_PHILIPS_TUV1236D] = { /* Philips ATSC */
1633                 .name   = "Philips TUV1236D ATSC/NTSC dual in",
1634                 .params = tuner_tuv1236d_params,
1635                 .count  = ARRAY_SIZE(tuner_tuv1236d_params),
1636                 .min    = 16 *  54.00,
1637                 .max    = 16 * 864.00,
1638                 .stepsize = 62500,
1639         },
1640         [TUNER_TNF_5335MF] = { /* Tenna PAL/NTSC */
1641                 .name   = "Tena TNF 5335 and similar models",
1642                 .params = tuner_tnf_5335mf_params,
1643                 .count  = ARRAY_SIZE(tuner_tnf_5335mf_params),
1644         },
1645
1646         /* 70-79 */
1647         [TUNER_SAMSUNG_TCPN_2121P30A] = { /* Samsung NTSC */
1648                 .name   = "Samsung TCPN 2121P30A",
1649                 .params = tuner_samsung_tcpn_2121p30a_params,
1650                 .count  = ARRAY_SIZE(tuner_samsung_tcpn_2121p30a_params),
1651         },
1652         [TUNER_XC2028] = { /* Xceive 2028 */
1653                 .name   = "Xceive xc2028/xc3028 tuner",
1654                 /* see tuner-xc2028.c for details */
1655         },
1656         [TUNER_THOMSON_FE6600] = { /* Thomson PAL / DVB-T */
1657                 .name   = "Thomson FE6600",
1658                 .params = tuner_thomson_fe6600_params,
1659                 .count  = ARRAY_SIZE(tuner_thomson_fe6600_params),
1660                 .min    = 16 *  44.25,
1661                 .max    = 16 * 858.00,
1662                 .stepsize = 166667,
1663         },
1664         [TUNER_SAMSUNG_TCPG_6121P30A] = { /* Samsung PAL */
1665                 .name   = "Samsung TCPG 6121P30A",
1666                 .params = tuner_samsung_tcpg_6121p30a_params,
1667                 .count  = ARRAY_SIZE(tuner_samsung_tcpg_6121p30a_params),
1668         },
1669         [TUNER_TDA9887] = { /* Philips TDA 9887 IF PLL Demodulator.
1670                                 This chip is part of some modern tuners */
1671                 .name   = "Philips TDA988[5,6,7] IF PLL Demodulator",
1672                 /* see tda9887.c for details */
1673         },
1674         [TUNER_TEA5761] = { /* Philips RADIO */
1675                 .name   = "Philips TEA5761 FM Radio",
1676                 /* see tea5767.c for details */
1677         },
1678         [TUNER_XC5000] = { /* Xceive 5000 */
1679                 .name   = "Xceive 5000 tuner",
1680                 /* see xc5000.c for details */
1681         },
1682         [TUNER_TCL_MF02GIP_5N] = { /* TCL tuner MF02GIP-5N-E */
1683                 .name   = "TCL tuner MF02GIP-5N-E",
1684                 .params = tuner_tcl_mf02gip_5n_params,
1685                 .count  = ARRAY_SIZE(tuner_tcl_mf02gip_5n_params),
1686         },
1687         [TUNER_PHILIPS_FMD1216MEX_MK3] = { /* Philips PAL */
1688                 .name   = "Philips FMD1216MEX MK3 Hybrid Tuner",
1689                 .params = tuner_philips_fmd1216mex_mk3_params,
1690                 .count  = ARRAY_SIZE(tuner_philips_fmd1216mex_mk3_params),
1691                 .min = 16 *  50.87,
1692                 .max = 16 * 858.00,
1693                 .stepsize = 166667,
1694                 .initdata = tua603x_agc112,
1695                 .sleepdata = (u8[]){ 4, 0x9c, 0x60, 0x85, 0x54 },
1696         },
1697 };
1698 EXPORT_SYMBOL(tuners);
1699
1700 unsigned const int tuner_count = ARRAY_SIZE(tuners);
1701 EXPORT_SYMBOL(tuner_count);
1702
1703 MODULE_DESCRIPTION("Simple tuner device type database");
1704 MODULE_AUTHOR("Ralph Metzler, Gerd Knorr, Gunther Mayer");
1705 MODULE_LICENSE("GPL");