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