]> err.no Git - linux-2.6/blob - drivers/media/video/tuner-types.c
V4L/DVB (7352): tuner-simple: enable digital tuning support for Philips FMD1216ME
[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 /* 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_ATSC - Philips FCV1236D (ATSC/NTSC) ---- */
619
620 static struct tuner_range tuner_philips_fcv1236d_ranges[] = {
621         { 16 * 157.25 /*MHz*/, 0x8e, 0xa0, },
622         { 16 * 451.25 /*MHz*/, 0x8e, 0x90, },
623         { 16 * 999.99        , 0x8e, 0x30, },
624 };
625
626 static struct tuner_params tuner_philips_fcv1236d_params[] = {
627         {
628                 .type   = TUNER_PARAM_TYPE_NTSC,
629                 .ranges = tuner_philips_fcv1236d_ranges,
630                 .count  = ARRAY_SIZE(tuner_philips_fcv1236d_ranges),
631         },
632 };
633
634 /* ------------ TUNER_PHILIPS_FM1236_MK3 - Philips NTSC ------------ */
635
636 static struct tuner_range tuner_fm1236_mk3_ntsc_ranges[] = {
637         { 16 * 160.00 /*MHz*/, 0x8e, 0x01, },
638         { 16 * 442.00 /*MHz*/, 0x8e, 0x02, },
639         { 16 * 999.99        , 0x8e, 0x04, },
640 };
641
642 static struct tuner_params tuner_fm1236_mk3_params[] = {
643         {
644                 .type   = TUNER_PARAM_TYPE_NTSC,
645                 .ranges = tuner_fm1236_mk3_ntsc_ranges,
646                 .count  = ARRAY_SIZE(tuner_fm1236_mk3_ntsc_ranges),
647                 .cb_first_if_lower_freq = 1,
648                 .has_tda9887 = 1,
649                 .port1_active = 1,
650                 .port2_active = 1,
651                 .port1_fm_high_sensitivity = 1,
652         },
653 };
654
655 /* ------------ TUNER_PHILIPS_4IN1 - Philips NTSC ------------ */
656
657 static struct tuner_params tuner_philips_4in1_params[] = {
658         {
659                 .type   = TUNER_PARAM_TYPE_NTSC,
660                 .ranges = tuner_fm1236_mk3_ntsc_ranges,
661                 .count  = ARRAY_SIZE(tuner_fm1236_mk3_ntsc_ranges),
662         },
663 };
664
665 /* ------------ TUNER_MICROTUNE_4049FM5 - Microtune PAL ------------ */
666
667 static struct tuner_params tuner_microtune_4049_fm5_params[] = {
668         {
669                 .type   = TUNER_PARAM_TYPE_PAL,
670                 .ranges = tuner_temic_4009f_5_pal_ranges,
671                 .count  = ARRAY_SIZE(tuner_temic_4009f_5_pal_ranges),
672                 .has_tda9887 = 1,
673                 .port1_invert_for_secam_lc = 1,
674                 .default_pll_gating_18 = 1,
675                 .fm_gain_normal=1,
676                 .radio_if = 1, /* 33.3 MHz */
677         },
678 };
679
680 /* ------------ TUNER_PANASONIC_VP27 - Panasonic NTSC ------------ */
681
682 static struct tuner_range tuner_panasonic_vp27_ntsc_ranges[] = {
683         { 16 * 160.00 /*MHz*/, 0xce, 0x01, },
684         { 16 * 454.00 /*MHz*/, 0xce, 0x02, },
685         { 16 * 999.99        , 0xce, 0x08, },
686 };
687
688 static struct tuner_params tuner_panasonic_vp27_params[] = {
689         {
690                 .type   = TUNER_PARAM_TYPE_NTSC,
691                 .ranges = tuner_panasonic_vp27_ntsc_ranges,
692                 .count  = ARRAY_SIZE(tuner_panasonic_vp27_ntsc_ranges),
693                 .has_tda9887 = 1,
694                 .intercarrier_mode = 1,
695                 .default_top_low = -3,
696                 .default_top_mid = -3,
697                 .default_top_high = -3,
698         },
699 };
700
701 /* ------------ TUNER_TNF_8831BGFF - Philips PAL ------------ */
702
703 static struct tuner_range tuner_tnf_8831bgff_pal_ranges[] = {
704         { 16 * 161.25 /*MHz*/, 0x8e, 0xa0, },
705         { 16 * 463.25 /*MHz*/, 0x8e, 0x90, },
706         { 16 * 999.99        , 0x8e, 0x30, },
707 };
708
709 static struct tuner_params tuner_tnf_8831bgff_params[] = {
710         {
711                 .type   = TUNER_PARAM_TYPE_PAL,
712                 .ranges = tuner_tnf_8831bgff_pal_ranges,
713                 .count  = ARRAY_SIZE(tuner_tnf_8831bgff_pal_ranges),
714         },
715 };
716
717 /* ------------ TUNER_MICROTUNE_4042FI5 - Microtune NTSC ------------ */
718
719 static struct tuner_range tuner_microtune_4042fi5_ntsc_ranges[] = {
720         { 16 * 162.00 /*MHz*/, 0x8e, 0xa2, },
721         { 16 * 457.00 /*MHz*/, 0x8e, 0x94, },
722         { 16 * 999.99        , 0x8e, 0x31, },
723 };
724
725 static struct tuner_params tuner_microtune_4042fi5_params[] = {
726         {
727                 .type   = TUNER_PARAM_TYPE_NTSC,
728                 .ranges = tuner_microtune_4042fi5_ntsc_ranges,
729                 .count  = ARRAY_SIZE(tuner_microtune_4042fi5_ntsc_ranges),
730         },
731 };
732
733 /* 50-59 */
734 /* ------------ TUNER_TCL_2002N - TCL NTSC ------------ */
735
736 static struct tuner_range tuner_tcl_2002n_ntsc_ranges[] = {
737         { 16 * 172.00 /*MHz*/, 0x8e, 0x01, },
738         { 16 * 448.00 /*MHz*/, 0x8e, 0x02, },
739         { 16 * 999.99        , 0x8e, 0x08, },
740 };
741
742 static struct tuner_params tuner_tcl_2002n_params[] = {
743         {
744                 .type   = TUNER_PARAM_TYPE_NTSC,
745                 .ranges = tuner_tcl_2002n_ntsc_ranges,
746                 .count  = ARRAY_SIZE(tuner_tcl_2002n_ntsc_ranges),
747                 .cb_first_if_lower_freq = 1,
748         },
749 };
750
751 /* ------------ TUNER_PHILIPS_FM1256_IH3 - Philips PAL ------------ */
752
753 static struct tuner_params tuner_philips_fm1256_ih3_params[] = {
754         {
755                 .type   = TUNER_PARAM_TYPE_PAL,
756                 .ranges = tuner_fm1236_mk3_ntsc_ranges,
757                 .count  = ARRAY_SIZE(tuner_fm1236_mk3_ntsc_ranges),
758                 .radio_if = 1, /* 33.3 MHz */
759         },
760 };
761
762 /* ------------ TUNER_THOMSON_DTT7610 - THOMSON ATSC ------------ */
763
764 static struct tuner_range tuner_thomson_dtt7610_ntsc_ranges[] = {
765         { 16 * 157.25 /*MHz*/, 0x8e, 0x39, },
766         { 16 * 454.00 /*MHz*/, 0x8e, 0x3a, },
767         { 16 * 999.99        , 0x8e, 0x3c, },
768 };
769
770 static struct tuner_params tuner_thomson_dtt7610_params[] = {
771         {
772                 .type   = TUNER_PARAM_TYPE_NTSC,
773                 .ranges = tuner_thomson_dtt7610_ntsc_ranges,
774                 .count  = ARRAY_SIZE(tuner_thomson_dtt7610_ntsc_ranges),
775         },
776 };
777
778 /* ------------ TUNER_PHILIPS_FQ1286 - Philips NTSC ------------ */
779
780 static struct tuner_range tuner_philips_fq1286_ntsc_ranges[] = {
781         { 16 * 160.00 /*MHz*/, 0x8e, 0x41, },
782         { 16 * 454.00 /*MHz*/, 0x8e, 0x42, },
783         { 16 * 999.99        , 0x8e, 0x04, },
784 };
785
786 static struct tuner_params tuner_philips_fq1286_params[] = {
787         {
788                 .type   = TUNER_PARAM_TYPE_NTSC,
789                 .ranges = tuner_philips_fq1286_ntsc_ranges,
790                 .count  = ARRAY_SIZE(tuner_philips_fq1286_ntsc_ranges),
791         },
792 };
793
794 /* ------------ TUNER_TCL_2002MB - TCL PAL ------------ */
795
796 static struct tuner_range tuner_tcl_2002mb_pal_ranges[] = {
797         { 16 * 170.00 /*MHz*/, 0xce, 0x01, },
798         { 16 * 450.00 /*MHz*/, 0xce, 0x02, },
799         { 16 * 999.99        , 0xce, 0x08, },
800 };
801
802 static struct tuner_params tuner_tcl_2002mb_params[] = {
803         {
804                 .type   = TUNER_PARAM_TYPE_PAL,
805                 .ranges = tuner_tcl_2002mb_pal_ranges,
806                 .count  = ARRAY_SIZE(tuner_tcl_2002mb_pal_ranges),
807         },
808 };
809
810 /* ------------ TUNER_PHILIPS_FQ1216AME_MK4 - Philips PAL ------------ */
811
812 static struct tuner_range tuner_philips_fq12_6a___mk4_pal_ranges[] = {
813         { 16 * 160.00 /*MHz*/, 0xce, 0x01, },
814         { 16 * 442.00 /*MHz*/, 0xce, 0x02, },
815         { 16 * 999.99        , 0xce, 0x04, },
816 };
817
818 static struct tuner_params tuner_philips_fq1216ame_mk4_params[] = {
819         {
820                 .type   = TUNER_PARAM_TYPE_PAL,
821                 .ranges = tuner_philips_fq12_6a___mk4_pal_ranges,
822                 .count  = ARRAY_SIZE(tuner_philips_fq12_6a___mk4_pal_ranges),
823                 .has_tda9887 = 1,
824                 .port1_active = 1,
825                 .port2_invert_for_secam_lc = 1,
826                 .default_top_mid = -2,
827                 .default_top_secam_low = -2,
828                 .default_top_secam_mid = -2,
829                 .default_top_secam_high = -2,
830         },
831 };
832
833 /* ------------ TUNER_PHILIPS_FQ1236A_MK4 - Philips NTSC ------------ */
834
835 static struct tuner_params tuner_philips_fq1236a_mk4_params[] = {
836         {
837                 .type   = TUNER_PARAM_TYPE_NTSC,
838                 .ranges = tuner_fm1236_mk3_ntsc_ranges,
839                 .count  = ARRAY_SIZE(tuner_fm1236_mk3_ntsc_ranges),
840         },
841 };
842
843 /* ------------ TUNER_YMEC_TVF_8531MF - Philips NTSC ------------ */
844
845 static struct tuner_params tuner_ymec_tvf_8531mf_params[] = {
846         {
847                 .type   = TUNER_PARAM_TYPE_NTSC,
848                 .ranges = tuner_philips_ntsc_m_ranges,
849                 .count  = ARRAY_SIZE(tuner_philips_ntsc_m_ranges),
850         },
851 };
852
853 /* ------------ TUNER_YMEC_TVF_5533MF - Philips NTSC ------------ */
854
855 static struct tuner_range tuner_ymec_tvf_5533mf_ntsc_ranges[] = {
856         { 16 * 160.00 /*MHz*/, 0x8e, 0x01, },
857         { 16 * 454.00 /*MHz*/, 0x8e, 0x02, },
858         { 16 * 999.99        , 0x8e, 0x04, },
859 };
860
861 static struct tuner_params tuner_ymec_tvf_5533mf_params[] = {
862         {
863                 .type   = TUNER_PARAM_TYPE_NTSC,
864                 .ranges = tuner_ymec_tvf_5533mf_ntsc_ranges,
865                 .count  = ARRAY_SIZE(tuner_ymec_tvf_5533mf_ntsc_ranges),
866         },
867 };
868
869 /* 60-69 */
870 /* ------------ TUNER_THOMSON_DTT761X - THOMSON ATSC ------------ */
871 /* DTT 7611 7611A 7612 7613 7613A 7614 7615 7615A */
872
873 static struct tuner_range tuner_thomson_dtt761x_ntsc_ranges[] = {
874         { 16 * 145.25 /*MHz*/, 0x8e, 0x39, },
875         { 16 * 415.25 /*MHz*/, 0x8e, 0x3a, },
876         { 16 * 999.99        , 0x8e, 0x3c, },
877 };
878
879 static struct tuner_range tuner_thomson_dtt761x_atsc_ranges[] = {
880         { 16 * 147.00 /*MHz*/, 0x8e, 0x39, },
881         { 16 * 417.00 /*MHz*/, 0x8e, 0x3a, },
882         { 16 * 999.99        , 0x8e, 0x3c, },
883 };
884
885 static struct tuner_params tuner_thomson_dtt761x_params[] = {
886         {
887                 .type   = TUNER_PARAM_TYPE_NTSC,
888                 .ranges = tuner_thomson_dtt761x_ntsc_ranges,
889                 .count  = ARRAY_SIZE(tuner_thomson_dtt761x_ntsc_ranges),
890                 .has_tda9887 = 1,
891                 .fm_gain_normal = 1,
892                 .radio_if = 2, /* 41.3 MHz */
893         },
894         {
895                 .type   = TUNER_PARAM_TYPE_DIGITAL,
896                 .ranges = tuner_thomson_dtt761x_atsc_ranges,
897                 .count  = ARRAY_SIZE(tuner_thomson_dtt761x_atsc_ranges),
898                 .iffreq = 16 * 44.00, /*MHz*/
899         },
900 };
901
902 /* ------------ TUNER_TENA_9533_DI - Philips PAL ------------ */
903
904 static struct tuner_range tuner_tena_9533_di_pal_ranges[] = {
905         { 16 * 160.25 /*MHz*/, 0x8e, 0x01, },
906         { 16 * 464.25 /*MHz*/, 0x8e, 0x02, },
907         { 16 * 999.99        , 0x8e, 0x04, },
908 };
909
910 static struct tuner_params tuner_tena_9533_di_params[] = {
911         {
912                 .type   = TUNER_PARAM_TYPE_PAL,
913                 .ranges = tuner_tena_9533_di_pal_ranges,
914                 .count  = ARRAY_SIZE(tuner_tena_9533_di_pal_ranges),
915         },
916 };
917
918 /* ------------ TUNER_PHILIPS_FMD1216ME_MK3 - Philips PAL ------------ */
919
920 static struct tuner_range tuner_philips_fmd1216me_mk3_pal_ranges[] = {
921         { 16 * 160.00 /*MHz*/, 0x86, 0x51, },
922         { 16 * 442.00 /*MHz*/, 0x86, 0x52, },
923         { 16 * 999.99        , 0x86, 0x54, },
924 };
925
926 static struct tuner_range tuner_philips_fmd1216me_mk3_dvb_ranges[] = {
927         { 16 * 143.87 /*MHz*/, 0xbc, 0x41 },
928         { 16 * 158.87 /*MHz*/, 0xf4, 0x41 },
929         { 16 * 329.87 /*MHz*/, 0xbc, 0x42 },
930         { 16 * 441.87 /*MHz*/, 0xf4, 0x42 },
931         { 16 * 625.87 /*MHz*/, 0xbc, 0x44 },
932         { 16 * 803.87 /*MHz*/, 0xf4, 0x44 },
933         { 16 * 999.99        , 0xfc, 0x44 },
934 };
935
936 static struct tuner_params tuner_philips_fmd1216me_mk3_params[] = {
937         {
938                 .type   = TUNER_PARAM_TYPE_PAL,
939                 .ranges = tuner_philips_fmd1216me_mk3_pal_ranges,
940                 .count  = ARRAY_SIZE(tuner_philips_fmd1216me_mk3_pal_ranges),
941                 .has_tda9887 = 1,
942                 .port1_active = 1,
943                 .port2_active = 1,
944                 .port2_fm_high_sensitivity = 1,
945                 .port2_invert_for_secam_lc = 1,
946                 .port1_set_for_fm_mono = 1,
947         },
948         {
949                 .type   = TUNER_PARAM_TYPE_DIGITAL,
950                 .ranges = tuner_philips_fmd1216me_mk3_dvb_ranges,
951                 .count  = ARRAY_SIZE(tuner_philips_fmd1216me_mk3_dvb_ranges),
952                 .iffreq = 16 * 36.125, /*MHz*/
953         },
954 };
955
956
957 /* ------ TUNER_LG_TDVS_H06XF - LG INNOTEK / INFINEON ATSC ----- */
958
959 static struct tuner_range tuner_tua6034_ntsc_ranges[] = {
960         { 16 * 165.00 /*MHz*/, 0x8e, 0x01 },
961         { 16 * 450.00 /*MHz*/, 0x8e, 0x02 },
962         { 16 * 999.99        , 0x8e, 0x04 },
963 };
964
965 static struct tuner_range tuner_tua6034_atsc_ranges[] = {
966         { 16 * 165.00 /*MHz*/, 0xce, 0x01 },
967         { 16 * 450.00 /*MHz*/, 0xce, 0x02 },
968         { 16 * 999.99        , 0xce, 0x04 },
969 };
970
971 static struct tuner_params tuner_lg_tdvs_h06xf_params[] = {
972         {
973                 .type   = TUNER_PARAM_TYPE_NTSC,
974                 .ranges = tuner_tua6034_ntsc_ranges,
975                 .count  = ARRAY_SIZE(tuner_tua6034_ntsc_ranges),
976         },
977         {
978                 .type   = TUNER_PARAM_TYPE_DIGITAL,
979                 .ranges = tuner_tua6034_atsc_ranges,
980                 .count  = ARRAY_SIZE(tuner_tua6034_atsc_ranges),
981                 .iffreq = 16 * 44.00,
982         },
983 };
984
985 /* ------------ TUNER_YMEC_TVF66T5_B_DFF - Philips PAL ------------ */
986
987 static struct tuner_range tuner_ymec_tvf66t5_b_dff_pal_ranges[] = {
988         { 16 * 160.25 /*MHz*/, 0x8e, 0x01, },
989         { 16 * 464.25 /*MHz*/, 0x8e, 0x02, },
990         { 16 * 999.99        , 0x8e, 0x08, },
991 };
992
993 static struct tuner_params tuner_ymec_tvf66t5_b_dff_params[] = {
994         {
995                 .type   = TUNER_PARAM_TYPE_PAL,
996                 .ranges = tuner_ymec_tvf66t5_b_dff_pal_ranges,
997                 .count  = ARRAY_SIZE(tuner_ymec_tvf66t5_b_dff_pal_ranges),
998         },
999 };
1000
1001 /* ------------ TUNER_LG_NTSC_TALN_MINI - LGINNOTEK NTSC ------------ */
1002
1003 static struct tuner_range tuner_lg_taln_ntsc_ranges[] = {
1004         { 16 * 137.25 /*MHz*/, 0x8e, 0x01, },
1005         { 16 * 373.25 /*MHz*/, 0x8e, 0x02, },
1006         { 16 * 999.99        , 0x8e, 0x08, },
1007 };
1008
1009 static struct tuner_range tuner_lg_taln_pal_secam_ranges[] = {
1010         { 16 * 150.00 /*MHz*/, 0x8e, 0x01, },
1011         { 16 * 425.00 /*MHz*/, 0x8e, 0x02, },
1012         { 16 * 999.99        , 0x8e, 0x08, },
1013 };
1014
1015 static struct tuner_params tuner_lg_taln_params[] = {
1016         {
1017                 .type   = TUNER_PARAM_TYPE_NTSC,
1018                 .ranges = tuner_lg_taln_ntsc_ranges,
1019                 .count  = ARRAY_SIZE(tuner_lg_taln_ntsc_ranges),
1020         },{
1021                 .type   = TUNER_PARAM_TYPE_PAL,
1022                 .ranges = tuner_lg_taln_pal_secam_ranges,
1023                 .count  = ARRAY_SIZE(tuner_lg_taln_pal_secam_ranges),
1024         },
1025 };
1026
1027 /* ------------ TUNER_PHILIPS_TD1316 - Philips PAL ------------ */
1028
1029 static struct tuner_range tuner_philips_td1316_pal_ranges[] = {
1030         { 16 * 160.00 /*MHz*/, 0xc8, 0xa1, },
1031         { 16 * 442.00 /*MHz*/, 0xc8, 0xa2, },
1032         { 16 * 999.99        , 0xc8, 0xa4, },
1033 };
1034
1035 static struct tuner_params tuner_philips_td1316_params[] = {
1036         {
1037                 .type   = TUNER_PARAM_TYPE_PAL,
1038                 .ranges = tuner_philips_td1316_pal_ranges,
1039                 .count  = ARRAY_SIZE(tuner_philips_td1316_pal_ranges),
1040         },
1041 };
1042
1043 /* ------------ TUNER_PHILIPS_TUV1236D - Philips ATSC ------------ */
1044
1045 static struct tuner_range tuner_tuv1236d_ntsc_ranges[] = {
1046         { 16 * 157.25 /*MHz*/, 0xce, 0x01, },
1047         { 16 * 454.00 /*MHz*/, 0xce, 0x02, },
1048         { 16 * 999.99        , 0xce, 0x04, },
1049 };
1050
1051
1052 static struct tuner_params tuner_tuv1236d_params[] = {
1053         {
1054                 .type   = TUNER_PARAM_TYPE_NTSC,
1055                 .ranges = tuner_tuv1236d_ntsc_ranges,
1056                 .count  = ARRAY_SIZE(tuner_tuv1236d_ntsc_ranges),
1057         },
1058 };
1059
1060 /* ------------ TUNER_TNF_xxx5  - Texas Instruments--------- */
1061 /* This is known to work with Tenna TVF58t5-MFF and TVF5835 MFF
1062  *      but it is expected to work also with other Tenna/Ymec
1063  *      models based on TI SN 761677 chip on both PAL and NTSC
1064  */
1065
1066 static struct tuner_range tuner_tnf_5335_d_if_pal_ranges[] = {
1067         { 16 * 168.25 /*MHz*/, 0x8e, 0x01, },
1068         { 16 * 471.25 /*MHz*/, 0x8e, 0x02, },
1069         { 16 * 999.99        , 0x8e, 0x08, },
1070 };
1071
1072 static struct tuner_range tuner_tnf_5335mf_ntsc_ranges[] = {
1073         { 16 * 169.25 /*MHz*/, 0x8e, 0x01, },
1074         { 16 * 469.25 /*MHz*/, 0x8e, 0x02, },
1075         { 16 * 999.99        , 0x8e, 0x08, },
1076 };
1077
1078 static struct tuner_params tuner_tnf_5335mf_params[] = {
1079         {
1080                 .type   = TUNER_PARAM_TYPE_NTSC,
1081                 .ranges = tuner_tnf_5335mf_ntsc_ranges,
1082                 .count  = ARRAY_SIZE(tuner_tnf_5335mf_ntsc_ranges),
1083         },
1084         {
1085                 .type   = TUNER_PARAM_TYPE_PAL,
1086                 .ranges = tuner_tnf_5335_d_if_pal_ranges,
1087                 .count  = ARRAY_SIZE(tuner_tnf_5335_d_if_pal_ranges),
1088         },
1089 };
1090
1091 /* 70-79 */
1092 /* ------------ TUNER_SAMSUNG_TCPN_2121P30A - Samsung NTSC ------------ */
1093
1094 /* '+ 4' turns on the Low Noise Amplifier */
1095 static struct tuner_range tuner_samsung_tcpn_2121p30a_ntsc_ranges[] = {
1096         { 16 * 130.00 /*MHz*/, 0xce, 0x01 + 4, },
1097         { 16 * 364.50 /*MHz*/, 0xce, 0x02 + 4, },
1098         { 16 * 999.99        , 0xce, 0x08 + 4, },
1099 };
1100
1101 static struct tuner_params tuner_samsung_tcpn_2121p30a_params[] = {
1102         {
1103                 .type   = TUNER_PARAM_TYPE_NTSC,
1104                 .ranges = tuner_samsung_tcpn_2121p30a_ntsc_ranges,
1105                 .count  = ARRAY_SIZE(tuner_samsung_tcpn_2121p30a_ntsc_ranges),
1106         },
1107 };
1108
1109 /* ------------ TUNER_THOMSON_FE6600 - DViCO Hybrid PAL ------------ */
1110
1111 static struct tuner_range tuner_thomson_fe6600_ranges[] = {
1112         { 16 * 160.00 /*MHz*/, 0xfe, 0x11, },
1113         { 16 * 442.00 /*MHz*/, 0xf6, 0x12, },
1114         { 16 * 999.99        , 0xf6, 0x18, },
1115 };
1116
1117 static struct tuner_params tuner_thomson_fe6600_params[] = {
1118         {
1119                 .type   = TUNER_PARAM_TYPE_PAL,
1120                 .ranges = tuner_thomson_fe6600_ranges,
1121                 .count  = ARRAY_SIZE(tuner_thomson_fe6600_ranges),
1122         },
1123 };
1124
1125 /* ------------ TUNER_SAMSUNG_TCPG_6121P30A - Samsung PAL ------------ */
1126
1127 /* '+ 4' turns on the Low Noise Amplifier */
1128 static struct tuner_range tuner_samsung_tcpg_6121p30a_pal_ranges[] = {
1129         { 16 * 146.25 /*MHz*/, 0xce, 0x01 + 4, },
1130         { 16 * 428.50 /*MHz*/, 0xce, 0x02 + 4, },
1131         { 16 * 999.99        , 0xce, 0x08 + 4, },
1132 };
1133
1134 static struct tuner_params tuner_samsung_tcpg_6121p30a_params[] = {
1135         {
1136                 .type   = TUNER_PARAM_TYPE_PAL,
1137                 .ranges = tuner_samsung_tcpg_6121p30a_pal_ranges,
1138                 .count  = ARRAY_SIZE(tuner_samsung_tcpg_6121p30a_pal_ranges),
1139                 .has_tda9887 = 1,
1140                 .port1_active = 1,
1141                 .port2_active = 1,
1142                 .port2_invert_for_secam_lc = 1,
1143         },
1144 };
1145
1146 /* --------------------------------------------------------------------- */
1147
1148 struct tunertype tuners[] = {
1149         /* 0-9 */
1150         [TUNER_TEMIC_PAL] = { /* TEMIC PAL */
1151                 .name   = "Temic PAL (4002 FH5)",
1152                 .params = tuner_temic_pal_params,
1153                 .count  = ARRAY_SIZE(tuner_temic_pal_params),
1154         },
1155         [TUNER_PHILIPS_PAL_I] = { /* Philips PAL_I */
1156                 .name   = "Philips PAL_I (FI1246 and compatibles)",
1157                 .params = tuner_philips_pal_i_params,
1158                 .count  = ARRAY_SIZE(tuner_philips_pal_i_params),
1159         },
1160         [TUNER_PHILIPS_NTSC] = { /* Philips NTSC */
1161                 .name   = "Philips NTSC (FI1236,FM1236 and compatibles)",
1162                 .params = tuner_philips_ntsc_params,
1163                 .count  = ARRAY_SIZE(tuner_philips_ntsc_params),
1164         },
1165         [TUNER_PHILIPS_SECAM] = { /* Philips SECAM */
1166                 .name   = "Philips (SECAM+PAL_BG) (FI1216MF, FM1216MF, FR1216MF)",
1167                 .params = tuner_philips_secam_params,
1168                 .count  = ARRAY_SIZE(tuner_philips_secam_params),
1169         },
1170         [TUNER_ABSENT] = { /* Tuner Absent */
1171                 .name   = "NoTuner",
1172         },
1173         [TUNER_PHILIPS_PAL] = { /* Philips PAL */
1174                 .name   = "Philips PAL_BG (FI1216 and compatibles)",
1175                 .params = tuner_philips_pal_params,
1176                 .count  = ARRAY_SIZE(tuner_philips_pal_params),
1177         },
1178         [TUNER_TEMIC_NTSC] = { /* TEMIC NTSC */
1179                 .name   = "Temic NTSC (4032 FY5)",
1180                 .params = tuner_temic_ntsc_params,
1181                 .count  = ARRAY_SIZE(tuner_temic_ntsc_params),
1182         },
1183         [TUNER_TEMIC_PAL_I] = { /* TEMIC PAL_I */
1184                 .name   = "Temic PAL_I (4062 FY5)",
1185                 .params = tuner_temic_pal_i_params,
1186                 .count  = ARRAY_SIZE(tuner_temic_pal_i_params),
1187         },
1188         [TUNER_TEMIC_4036FY5_NTSC] = { /* TEMIC NTSC */
1189                 .name   = "Temic NTSC (4036 FY5)",
1190                 .params = tuner_temic_4036fy5_ntsc_params,
1191                 .count  = ARRAY_SIZE(tuner_temic_4036fy5_ntsc_params),
1192         },
1193         [TUNER_ALPS_TSBH1_NTSC] = { /* TEMIC NTSC */
1194                 .name   = "Alps HSBH1",
1195                 .params = tuner_alps_tsbh1_ntsc_params,
1196                 .count  = ARRAY_SIZE(tuner_alps_tsbh1_ntsc_params),
1197         },
1198
1199         /* 10-19 */
1200         [TUNER_ALPS_TSBE1_PAL] = { /* TEMIC PAL */
1201                 .name   = "Alps TSBE1",
1202                 .params = tuner_alps_tsb_1_params,
1203                 .count  = ARRAY_SIZE(tuner_alps_tsb_1_params),
1204         },
1205         [TUNER_ALPS_TSBB5_PAL_I] = { /* Alps PAL_I */
1206                 .name   = "Alps TSBB5",
1207                 .params = tuner_alps_tsbb5_params,
1208                 .count  = ARRAY_SIZE(tuner_alps_tsbb5_params),
1209         },
1210         [TUNER_ALPS_TSBE5_PAL] = { /* Alps PAL */
1211                 .name   = "Alps TSBE5",
1212                 .params = tuner_alps_tsbe5_params,
1213                 .count  = ARRAY_SIZE(tuner_alps_tsbe5_params),
1214         },
1215         [TUNER_ALPS_TSBC5_PAL] = { /* Alps PAL */
1216                 .name   = "Alps TSBC5",
1217                 .params = tuner_alps_tsbc5_params,
1218                 .count  = ARRAY_SIZE(tuner_alps_tsbc5_params),
1219         },
1220         [TUNER_TEMIC_4006FH5_PAL] = { /* TEMIC PAL */
1221                 .name   = "Temic PAL_BG (4006FH5)",
1222                 .params = tuner_temic_4006fh5_params,
1223                 .count  = ARRAY_SIZE(tuner_temic_4006fh5_params),
1224         },
1225         [TUNER_ALPS_TSHC6_NTSC] = { /* Alps NTSC */
1226                 .name   = "Alps TSCH6",
1227                 .params = tuner_alps_tshc6_params,
1228                 .count  = ARRAY_SIZE(tuner_alps_tshc6_params),
1229         },
1230         [TUNER_TEMIC_PAL_DK] = { /* TEMIC PAL */
1231                 .name   = "Temic PAL_DK (4016 FY5)",
1232                 .params = tuner_temic_pal_dk_params,
1233                 .count  = ARRAY_SIZE(tuner_temic_pal_dk_params),
1234         },
1235         [TUNER_PHILIPS_NTSC_M] = { /* Philips NTSC */
1236                 .name   = "Philips NTSC_M (MK2)",
1237                 .params = tuner_philips_ntsc_m_params,
1238                 .count  = ARRAY_SIZE(tuner_philips_ntsc_m_params),
1239         },
1240         [TUNER_TEMIC_4066FY5_PAL_I] = { /* TEMIC PAL_I */
1241                 .name   = "Temic PAL_I (4066 FY5)",
1242                 .params = tuner_temic_4066fy5_pal_i_params,
1243                 .count  = ARRAY_SIZE(tuner_temic_4066fy5_pal_i_params),
1244         },
1245         [TUNER_TEMIC_4006FN5_MULTI_PAL] = { /* TEMIC PAL */
1246                 .name   = "Temic PAL* auto (4006 FN5)",
1247                 .params = tuner_temic_4006fn5_multi_params,
1248                 .count  = ARRAY_SIZE(tuner_temic_4006fn5_multi_params),
1249         },
1250
1251         /* 20-29 */
1252         [TUNER_TEMIC_4009FR5_PAL] = { /* TEMIC PAL */
1253                 .name   = "Temic PAL_BG (4009 FR5) or PAL_I (4069 FR5)",
1254                 .params = tuner_temic_4009f_5_params,
1255                 .count  = ARRAY_SIZE(tuner_temic_4009f_5_params),
1256         },
1257         [TUNER_TEMIC_4039FR5_NTSC] = { /* TEMIC NTSC */
1258                 .name   = "Temic NTSC (4039 FR5)",
1259                 .params = tuner_temic_4039fr5_params,
1260                 .count  = ARRAY_SIZE(tuner_temic_4039fr5_params),
1261         },
1262         [TUNER_TEMIC_4046FM5] = { /* TEMIC PAL */
1263                 .name   = "Temic PAL/SECAM multi (4046 FM5)",
1264                 .params = tuner_temic_4046fm5_params,
1265                 .count  = ARRAY_SIZE(tuner_temic_4046fm5_params),
1266         },
1267         [TUNER_PHILIPS_PAL_DK] = { /* Philips PAL */
1268                 .name   = "Philips PAL_DK (FI1256 and compatibles)",
1269                 .params = tuner_philips_pal_dk_params,
1270                 .count  = ARRAY_SIZE(tuner_philips_pal_dk_params),
1271         },
1272         [TUNER_PHILIPS_FQ1216ME] = { /* Philips PAL */
1273                 .name   = "Philips PAL/SECAM multi (FQ1216ME)",
1274                 .params = tuner_philips_fq1216me_params,
1275                 .count  = ARRAY_SIZE(tuner_philips_fq1216me_params),
1276         },
1277         [TUNER_LG_PAL_I_FM] = { /* LGINNOTEK PAL_I */
1278                 .name   = "LG PAL_I+FM (TAPC-I001D)",
1279                 .params = tuner_lg_pal_i_fm_params,
1280                 .count  = ARRAY_SIZE(tuner_lg_pal_i_fm_params),
1281         },
1282         [TUNER_LG_PAL_I] = { /* LGINNOTEK PAL_I */
1283                 .name   = "LG PAL_I (TAPC-I701D)",
1284                 .params = tuner_lg_pal_i_params,
1285                 .count  = ARRAY_SIZE(tuner_lg_pal_i_params),
1286         },
1287         [TUNER_LG_NTSC_FM] = { /* LGINNOTEK NTSC */
1288                 .name   = "LG NTSC+FM (TPI8NSR01F)",
1289                 .params = tuner_lg_ntsc_fm_params,
1290                 .count  = ARRAY_SIZE(tuner_lg_ntsc_fm_params),
1291         },
1292         [TUNER_LG_PAL_FM] = { /* LGINNOTEK PAL */
1293                 .name   = "LG PAL_BG+FM (TPI8PSB01D)",
1294                 .params = tuner_lg_pal_fm_params,
1295                 .count  = ARRAY_SIZE(tuner_lg_pal_fm_params),
1296         },
1297         [TUNER_LG_PAL] = { /* LGINNOTEK PAL */
1298                 .name   = "LG PAL_BG (TPI8PSB11D)",
1299                 .params = tuner_lg_pal_params,
1300                 .count  = ARRAY_SIZE(tuner_lg_pal_params),
1301         },
1302
1303         /* 30-39 */
1304         [TUNER_TEMIC_4009FN5_MULTI_PAL_FM] = { /* TEMIC PAL */
1305                 .name   = "Temic PAL* auto + FM (4009 FN5)",
1306                 .params = tuner_temic_4009_fn5_multi_pal_fm_params,
1307                 .count  = ARRAY_SIZE(tuner_temic_4009_fn5_multi_pal_fm_params),
1308         },
1309         [TUNER_SHARP_2U5JF5540_NTSC] = { /* SHARP NTSC */
1310                 .name   = "SHARP NTSC_JP (2U5JF5540)",
1311                 .params = tuner_sharp_2u5jf5540_params,
1312                 .count  = ARRAY_SIZE(tuner_sharp_2u5jf5540_params),
1313         },
1314         [TUNER_Samsung_PAL_TCPM9091PD27] = { /* Samsung PAL */
1315                 .name   = "Samsung PAL TCPM9091PD27",
1316                 .params = tuner_samsung_pal_tcpm9091pd27_params,
1317                 .count  = ARRAY_SIZE(tuner_samsung_pal_tcpm9091pd27_params),
1318         },
1319         [TUNER_MT2032] = { /* Microtune PAL|NTSC */
1320                 .name   = "MT20xx universal",
1321                 /* see mt20xx.c for details */ },
1322         [TUNER_TEMIC_4106FH5] = { /* TEMIC PAL */
1323                 .name   = "Temic PAL_BG (4106 FH5)",
1324                 .params = tuner_temic_4106fh5_params,
1325                 .count  = ARRAY_SIZE(tuner_temic_4106fh5_params),
1326         },
1327         [TUNER_TEMIC_4012FY5] = { /* TEMIC PAL */
1328                 .name   = "Temic PAL_DK/SECAM_L (4012 FY5)",
1329                 .params = tuner_temic_4012fy5_params,
1330                 .count  = ARRAY_SIZE(tuner_temic_4012fy5_params),
1331         },
1332         [TUNER_TEMIC_4136FY5] = { /* TEMIC NTSC */
1333                 .name   = "Temic NTSC (4136 FY5)",
1334                 .params = tuner_temic_4136_fy5_params,
1335                 .count  = ARRAY_SIZE(tuner_temic_4136_fy5_params),
1336         },
1337         [TUNER_LG_PAL_NEW_TAPC] = { /* LGINNOTEK PAL */
1338                 .name   = "LG PAL (newer TAPC series)",
1339                 .params = tuner_lg_pal_new_tapc_params,
1340                 .count  = ARRAY_SIZE(tuner_lg_pal_new_tapc_params),
1341         },
1342         [TUNER_PHILIPS_FM1216ME_MK3] = { /* Philips PAL */
1343                 .name   = "Philips PAL/SECAM multi (FM1216ME MK3)",
1344                 .params = tuner_fm1216me_mk3_params,
1345                 .count  = ARRAY_SIZE(tuner_fm1216me_mk3_params),
1346         },
1347         [TUNER_LG_NTSC_NEW_TAPC] = { /* LGINNOTEK NTSC */
1348                 .name   = "LG NTSC (newer TAPC series)",
1349                 .params = tuner_lg_ntsc_new_tapc_params,
1350                 .count  = ARRAY_SIZE(tuner_lg_ntsc_new_tapc_params),
1351         },
1352
1353         /* 40-49 */
1354         [TUNER_HITACHI_NTSC] = { /* HITACHI NTSC */
1355                 .name   = "HITACHI V7-J180AT",
1356                 .params = tuner_hitachi_ntsc_params,
1357                 .count  = ARRAY_SIZE(tuner_hitachi_ntsc_params),
1358         },
1359         [TUNER_PHILIPS_PAL_MK] = { /* Philips PAL */
1360                 .name   = "Philips PAL_MK (FI1216 MK)",
1361                 .params = tuner_philips_pal_mk_params,
1362                 .count  = ARRAY_SIZE(tuner_philips_pal_mk_params),
1363         },
1364         [TUNER_PHILIPS_ATSC] = { /* Philips ATSC */
1365                 .name   = "Philips FCV1236D ATSC/NTSC dual in",
1366                 .params = tuner_philips_fcv1236d_params,
1367                 .count  = ARRAY_SIZE(tuner_philips_fcv1236d_params),
1368         },
1369         [TUNER_PHILIPS_FM1236_MK3] = { /* Philips NTSC */
1370                 .name   = "Philips NTSC MK3 (FM1236MK3 or FM1236/F)",
1371                 .params = tuner_fm1236_mk3_params,
1372                 .count  = ARRAY_SIZE(tuner_fm1236_mk3_params),
1373         },
1374         [TUNER_PHILIPS_4IN1] = { /* Philips NTSC */
1375                 .name   = "Philips 4 in 1 (ATI TV Wonder Pro/Conexant)",
1376                 .params = tuner_philips_4in1_params,
1377                 .count  = ARRAY_SIZE(tuner_philips_4in1_params),
1378         },
1379         [TUNER_MICROTUNE_4049FM5] = { /* Microtune PAL */
1380                 .name   = "Microtune 4049 FM5",
1381                 .params = tuner_microtune_4049_fm5_params,
1382                 .count  = ARRAY_SIZE(tuner_microtune_4049_fm5_params),
1383         },
1384         [TUNER_PANASONIC_VP27] = { /* Panasonic NTSC */
1385                 .name   = "Panasonic VP27s/ENGE4324D",
1386                 .params = tuner_panasonic_vp27_params,
1387                 .count  = ARRAY_SIZE(tuner_panasonic_vp27_params),
1388         },
1389         [TUNER_LG_NTSC_TAPE] = { /* LGINNOTEK NTSC */
1390                 .name   = "LG NTSC (TAPE series)",
1391                 .params = tuner_fm1236_mk3_params,
1392                 .count  = ARRAY_SIZE(tuner_fm1236_mk3_params),
1393         },
1394         [TUNER_TNF_8831BGFF] = { /* Philips PAL */
1395                 .name   = "Tenna TNF 8831 BGFF)",
1396                 .params = tuner_tnf_8831bgff_params,
1397                 .count  = ARRAY_SIZE(tuner_tnf_8831bgff_params),
1398         },
1399         [TUNER_MICROTUNE_4042FI5] = { /* Microtune NTSC */
1400                 .name   = "Microtune 4042 FI5 ATSC/NTSC dual in",
1401                 .params = tuner_microtune_4042fi5_params,
1402                 .count  = ARRAY_SIZE(tuner_microtune_4042fi5_params),
1403         },
1404
1405         /* 50-59 */
1406         [TUNER_TCL_2002N] = { /* TCL NTSC */
1407                 .name   = "TCL 2002N",
1408                 .params = tuner_tcl_2002n_params,
1409                 .count  = ARRAY_SIZE(tuner_tcl_2002n_params),
1410         },
1411         [TUNER_PHILIPS_FM1256_IH3] = { /* Philips PAL */
1412                 .name   = "Philips PAL/SECAM_D (FM 1256 I-H3)",
1413                 .params = tuner_philips_fm1256_ih3_params,
1414                 .count  = ARRAY_SIZE(tuner_philips_fm1256_ih3_params),
1415         },
1416         [TUNER_THOMSON_DTT7610] = { /* THOMSON ATSC */
1417                 .name   = "Thomson DTT 7610 (ATSC/NTSC)",
1418                 .params = tuner_thomson_dtt7610_params,
1419                 .count  = ARRAY_SIZE(tuner_thomson_dtt7610_params),
1420         },
1421         [TUNER_PHILIPS_FQ1286] = { /* Philips NTSC */
1422                 .name   = "Philips FQ1286",
1423                 .params = tuner_philips_fq1286_params,
1424                 .count  = ARRAY_SIZE(tuner_philips_fq1286_params),
1425         },
1426         [TUNER_PHILIPS_TDA8290] = { /* Philips PAL|NTSC */
1427                 .name   = "Philips/NXP TDA 8290/8295 + 8275/8275A/18271",
1428                 /* see tda8290.c for details */ },
1429         [TUNER_TCL_2002MB] = { /* TCL PAL */
1430                 .name   = "TCL 2002MB",
1431                 .params = tuner_tcl_2002mb_params,
1432                 .count  = ARRAY_SIZE(tuner_tcl_2002mb_params),
1433         },
1434         [TUNER_PHILIPS_FQ1216AME_MK4] = { /* Philips PAL */
1435                 .name   = "Philips PAL/SECAM multi (FQ1216AME MK4)",
1436                 .params = tuner_philips_fq1216ame_mk4_params,
1437                 .count  = ARRAY_SIZE(tuner_philips_fq1216ame_mk4_params),
1438         },
1439         [TUNER_PHILIPS_FQ1236A_MK4] = { /* Philips NTSC */
1440                 .name   = "Philips FQ1236A MK4",
1441                 .params = tuner_philips_fq1236a_mk4_params,
1442                 .count  = ARRAY_SIZE(tuner_philips_fq1236a_mk4_params),
1443         },
1444         [TUNER_YMEC_TVF_8531MF] = { /* Philips NTSC */
1445                 .name   = "Ymec TVision TVF-8531MF/8831MF/8731MF",
1446                 .params = tuner_ymec_tvf_8531mf_params,
1447                 .count  = ARRAY_SIZE(tuner_ymec_tvf_8531mf_params),
1448         },
1449         [TUNER_YMEC_TVF_5533MF] = { /* Philips NTSC */
1450                 .name   = "Ymec TVision TVF-5533MF",
1451                 .params = tuner_ymec_tvf_5533mf_params,
1452                 .count  = ARRAY_SIZE(tuner_ymec_tvf_5533mf_params),
1453         },
1454
1455         /* 60-69 */
1456         [TUNER_THOMSON_DTT761X] = { /* THOMSON ATSC */
1457                 /* DTT 7611 7611A 7612 7613 7613A 7614 7615 7615A */
1458                 .name   = "Thomson DTT 761X (ATSC/NTSC)",
1459                 .params = tuner_thomson_dtt761x_params,
1460                 .count  = ARRAY_SIZE(tuner_thomson_dtt761x_params),
1461                 .min    = 16 *  57.00,
1462                 .max    = 16 * 863.00,
1463                 .stepsize = 62500,
1464                 .initdata = tua603x_agc103,
1465         },
1466         [TUNER_TENA_9533_DI] = { /* Philips PAL */
1467                 .name   = "Tena TNF9533-D/IF/TNF9533-B/DF",
1468                 .params = tuner_tena_9533_di_params,
1469                 .count  = ARRAY_SIZE(tuner_tena_9533_di_params),
1470         },
1471         [TUNER_TEA5767] = { /* Philips RADIO */
1472                 .name   = "Philips TEA5767HN FM Radio",
1473                 /* see tea5767.c for details */
1474         },
1475         [TUNER_PHILIPS_FMD1216ME_MK3] = { /* Philips PAL */
1476                 .name   = "Philips FMD1216ME MK3 Hybrid Tuner",
1477                 .params = tuner_philips_fmd1216me_mk3_params,
1478                 .count  = ARRAY_SIZE(tuner_philips_fmd1216me_mk3_params),
1479                 .min = 16 *  50.87,
1480                 .max = 16 * 858.00,
1481                 .stepsize = 166667,
1482                 .initdata = tua603x_agc112,
1483                 .sleepdata = (u8[]){ 4, 0x9c, 0x60, 0x85, 0x54 },
1484         },
1485         [TUNER_LG_TDVS_H06XF] = { /* LGINNOTEK ATSC */
1486                 .name   = "LG TDVS-H06xF", /* H061F, H062F & H064F */
1487                 .params = tuner_lg_tdvs_h06xf_params,
1488                 .count  = ARRAY_SIZE(tuner_lg_tdvs_h06xf_params),
1489                 .min    = 16 *  54.00,
1490                 .max    = 16 * 863.00,
1491                 .stepsize = 62500,
1492                 .initdata = tua603x_agc103,
1493         },
1494         [TUNER_YMEC_TVF66T5_B_DFF] = { /* Philips PAL */
1495                 .name   = "Ymec TVF66T5-B/DFF",
1496                 .params = tuner_ymec_tvf66t5_b_dff_params,
1497                 .count  = ARRAY_SIZE(tuner_ymec_tvf66t5_b_dff_params),
1498         },
1499         [TUNER_LG_TALN] = { /* LGINNOTEK NTSC / PAL / SECAM */
1500                 .name   = "LG TALN series",
1501                 .params = tuner_lg_taln_params,
1502                 .count  = ARRAY_SIZE(tuner_lg_taln_params),
1503         },
1504         [TUNER_PHILIPS_TD1316] = { /* Philips PAL */
1505                 .name   = "Philips TD1316 Hybrid Tuner",
1506                 .params = tuner_philips_td1316_params,
1507                 .count  = ARRAY_SIZE(tuner_philips_td1316_params),
1508         },
1509         [TUNER_PHILIPS_TUV1236D] = { /* Philips ATSC */
1510                 .name   = "Philips TUV1236D ATSC/NTSC dual in",
1511                 .params = tuner_tuv1236d_params,
1512                 .count  = ARRAY_SIZE(tuner_tuv1236d_params),
1513         },
1514         [TUNER_TNF_5335MF] = { /* Tenna PAL/NTSC */
1515                 .name   = "Tena TNF 5335 and similar models",
1516                 .params = tuner_tnf_5335mf_params,
1517                 .count  = ARRAY_SIZE(tuner_tnf_5335mf_params),
1518         },
1519
1520         /* 70-79 */
1521         [TUNER_SAMSUNG_TCPN_2121P30A] = { /* Samsung NTSC */
1522                 .name   = "Samsung TCPN 2121P30A",
1523                 .params = tuner_samsung_tcpn_2121p30a_params,
1524                 .count  = ARRAY_SIZE(tuner_samsung_tcpn_2121p30a_params),
1525         },
1526         [TUNER_XC2028] = { /* Xceive 2028 */
1527                 .name   = "Xceive xc2028/xc3028 tuner",
1528                 /* see tuner-xc2028.c for details */
1529         },
1530         [TUNER_THOMSON_FE6600] = { /* Thomson PAL / DVB-T */
1531                 .name   = "Thomson FE6600",
1532                 .params = tuner_thomson_fe6600_params,
1533                 .count  = ARRAY_SIZE(tuner_thomson_fe6600_params),
1534         },
1535         [TUNER_SAMSUNG_TCPG_6121P30A] = { /* Samsung PAL */
1536                 .name   = "Samsung TCPG 6121P30A",
1537                 .params = tuner_samsung_tcpg_6121p30a_params,
1538                 .count  = ARRAY_SIZE(tuner_samsung_tcpg_6121p30a_params),
1539         },
1540         [TUNER_TDA9887] = { /* Philips TDA 9887 IF PLL Demodulator.
1541                                 This chip is part of some modern tuners */
1542                 .name   = "Philips TDA988[5,6,7] IF PLL Demodulator",
1543                 /* see tda9887.c for details */
1544         },
1545         [TUNER_TEA5761] = { /* Philips RADIO */
1546                 .name   = "Philips TEA5761 FM Radio",
1547                 /* see tea5767.c for details */
1548         },
1549         [TUNER_XC5000] = { /* Xceive 5000 */
1550                 .name   = "Xceive 5000 tuner",
1551                 /* see xc5000.c for details */
1552         },
1553 };
1554 EXPORT_SYMBOL(tuners);
1555
1556 unsigned const int tuner_count = ARRAY_SIZE(tuners);
1557 EXPORT_SYMBOL(tuner_count);
1558
1559 MODULE_DESCRIPTION("Simple tuner device type database");
1560 MODULE_AUTHOR("Ralph Metzler, Gerd Knorr, Gunther Mayer");
1561 MODULE_LICENSE("GPL");