2 em28xx-cards.c - driver for Empia EM2800/EM2820/2840 USB
5 Copyright (C) 2005 Ludovico Cavedon <cavedon@sssup.it>
6 Markus Rechberger <mrechberger@gmail.com>
7 Mauro Carvalho Chehab <mchehab@infradead.org>
8 Sascha Sommer <saschasommer@freenet.de>
10 This program is free software; you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 2 of the License, or
13 (at your option) any later version.
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
25 #include <linux/init.h>
26 #include <linux/module.h>
27 #include <linux/delay.h>
28 #include <linux/i2c.h>
29 #include <linux/usb.h>
30 #include <media/tuner.h>
31 #include <media/msp3400.h>
32 #include <media/saa7115.h>
33 #include <media/tvp5150.h>
34 #include <media/tveeprom.h>
35 #include <media/audiochip.h>
36 #include <media/v4l2-common.h>
39 #include "tuner-xc2028.h"
41 static int tuner = -1;
42 module_param(tuner, int, 0444);
43 MODULE_PARM_DESC(tuner, "tuner type");
45 struct em28xx_hash_table {
51 struct em28xx_board em28xx_boards[] = {
52 [EM2800_BOARD_UNKNOWN] = {
53 .name = "Unknown EM2800 video grabber",
56 .tda9887_conf = TDA9887_PRESENT,
58 .decoder = EM28XX_SAA7113,
60 .type = EM28XX_VMUX_COMPOSITE1,
61 .vmux = SAA7115_COMPOSITE0,
64 .type = EM28XX_VMUX_SVIDEO,
65 .vmux = SAA7115_SVIDEO3,
69 [EM2820_BOARD_UNKNOWN] = {
70 .name = "Unknown EM2750/28xx video grabber",
73 [EM2820_BOARD_KWORLD_PVRTV2800RF] = {
74 .name = "Kworld PVR TV 2800 RF",
77 .tda9887_conf = TDA9887_PRESENT,
79 .decoder = EM28XX_SAA7113,
81 .type = EM28XX_VMUX_COMPOSITE1,
82 .vmux = SAA7115_COMPOSITE0,
85 .type = EM28XX_VMUX_SVIDEO,
86 .vmux = SAA7115_SVIDEO3,
90 [EM2820_BOARD_TERRATEC_CINERGY_250] = {
91 .name = "Terratec Cinergy 250 USB",
93 .tuner_type = TUNER_LG_PAL_NEW_TAPC,
94 .tda9887_conf = TDA9887_PRESENT,
96 .decoder = EM28XX_SAA7113,
98 .type = EM28XX_VMUX_TELEVISION,
99 .vmux = SAA7115_COMPOSITE2,
102 .type = EM28XX_VMUX_COMPOSITE1,
103 .vmux = SAA7115_COMPOSITE0,
106 .type = EM28XX_VMUX_SVIDEO,
107 .vmux = SAA7115_SVIDEO3,
111 [EM2820_BOARD_PINNACLE_USB_2] = {
112 .name = "Pinnacle PCTV USB 2",
114 .tuner_type = TUNER_LG_PAL_NEW_TAPC,
115 .tda9887_conf = TDA9887_PRESENT,
117 .decoder = EM28XX_SAA7113,
119 .type = EM28XX_VMUX_TELEVISION,
120 .vmux = SAA7115_COMPOSITE2,
123 .type = EM28XX_VMUX_COMPOSITE1,
124 .vmux = SAA7115_COMPOSITE0,
127 .type = EM28XX_VMUX_SVIDEO,
128 .vmux = SAA7115_SVIDEO3,
132 [EM2820_BOARD_HAUPPAUGE_WINTV_USB_2] = {
133 .name = "Hauppauge WinTV USB 2",
135 .tuner_type = TUNER_PHILIPS_FM1236_MK3,
136 .tda9887_conf = TDA9887_PRESENT |
137 TDA9887_PORT1_ACTIVE|
138 TDA9887_PORT2_ACTIVE,
140 .decoder = EM28XX_TVP5150,
142 /*FIXME: S-Video not tested */
144 .type = EM28XX_VMUX_TELEVISION,
145 .vmux = TVP5150_COMPOSITE0,
146 .amux = MSP_INPUT_DEFAULT,
148 .type = EM28XX_VMUX_SVIDEO,
149 .vmux = TVP5150_SVIDEO,
150 .amux = MSP_INPUT(MSP_IN_SCART1, MSP_IN_TUNER1,
151 MSP_DSP_IN_SCART, MSP_DSP_IN_SCART),
154 [EM2880_BOARD_HAUPPAUGE_WINTV_HVR_900] = {
155 .name = "Hauppauge WinTV HVR 900",
157 .tda9887_conf = TDA9887_PRESENT,
158 .tuner_type = TUNER_XC2028,
161 .decoder = EM28XX_TVP5150,
163 .type = EM28XX_VMUX_TELEVISION,
164 .vmux = TVP5150_COMPOSITE0,
167 .type = EM28XX_VMUX_COMPOSITE1,
168 .vmux = TVP5150_COMPOSITE1,
171 .type = EM28XX_VMUX_SVIDEO,
172 .vmux = TVP5150_SVIDEO,
176 [EM2880_BOARD_HAUPPAUGE_WINTV_HVR_950] = {
177 .name = "Hauppauge WinTV HVR 950",
179 .tda9887_conf = TDA9887_PRESENT,
180 .tuner_type = TUNER_XC2028,
184 .decoder = EM28XX_TVP5150,
186 .type = EM28XX_VMUX_TELEVISION,
187 .vmux = TVP5150_COMPOSITE0,
190 .type = EM28XX_VMUX_COMPOSITE1,
191 .vmux = TVP5150_COMPOSITE1,
194 .type = EM28XX_VMUX_SVIDEO,
195 .vmux = TVP5150_SVIDEO,
200 .analog_gpio = 0x003d2d,
202 [EM2880_BOARD_TERRATEC_HYBRID_XS] = {
203 .name = "Terratec Hybrid XS",
205 .tda9887_conf = TDA9887_PRESENT,
207 .tuner_type = TUNER_XC2028,
208 .decoder = EM28XX_TVP5150,
210 .type = EM28XX_VMUX_TELEVISION,
211 .vmux = TVP5150_COMPOSITE0,
214 .type = EM28XX_VMUX_COMPOSITE1,
215 .vmux = TVP5150_COMPOSITE1,
218 .type = EM28XX_VMUX_SVIDEO,
219 .vmux = TVP5150_SVIDEO,
223 /* maybe there's a reason behind it why Terratec sells the Hybrid XS
224 as Prodigy XS with a different PID, let's keep it separated for now
225 maybe we'll need it lateron */
226 [EM2880_BOARD_TERRATEC_PRODIGY_XS] = {
227 .name = "Terratec Prodigy XS",
229 .tda9887_conf = TDA9887_PRESENT,
231 .tuner_type = TUNER_XC2028,
232 .decoder = EM28XX_TVP5150,
234 .type = EM28XX_VMUX_TELEVISION,
235 .vmux = TVP5150_COMPOSITE0,
238 .type = EM28XX_VMUX_COMPOSITE1,
239 .vmux = TVP5150_COMPOSITE1,
242 .type = EM28XX_VMUX_SVIDEO,
243 .vmux = TVP5150_SVIDEO,
247 [EM2820_BOARD_MSI_VOX_USB_2] = {
248 .name = "MSI VOX USB 2.0",
250 .tuner_type = TUNER_LG_PAL_NEW_TAPC,
251 .tda9887_conf = TDA9887_PRESENT |
252 TDA9887_PORT1_ACTIVE |
253 TDA9887_PORT2_ACTIVE,
255 .decoder = EM28XX_SAA7114,
257 .type = EM28XX_VMUX_TELEVISION,
258 .vmux = SAA7115_COMPOSITE4,
261 .type = EM28XX_VMUX_COMPOSITE1,
262 .vmux = SAA7115_COMPOSITE0,
265 .type = EM28XX_VMUX_SVIDEO,
266 .vmux = SAA7115_SVIDEO3,
270 [EM2800_BOARD_TERRATEC_CINERGY_200] = {
271 .name = "Terratec Cinergy 200 USB",
274 .tuner_type = TUNER_LG_PAL_NEW_TAPC,
275 .tda9887_conf = TDA9887_PRESENT,
277 .decoder = EM28XX_SAA7113,
279 .type = EM28XX_VMUX_TELEVISION,
280 .vmux = SAA7115_COMPOSITE2,
283 .type = EM28XX_VMUX_COMPOSITE1,
284 .vmux = SAA7115_COMPOSITE0,
287 .type = EM28XX_VMUX_SVIDEO,
288 .vmux = SAA7115_SVIDEO3,
292 [EM2800_BOARD_LEADTEK_WINFAST_USBII] = {
293 .name = "Leadtek Winfast USB II",
296 .tuner_type = TUNER_LG_PAL_NEW_TAPC,
297 .tda9887_conf = TDA9887_PRESENT,
299 .decoder = EM28XX_SAA7113,
301 .type = EM28XX_VMUX_TELEVISION,
302 .vmux = SAA7115_COMPOSITE2,
305 .type = EM28XX_VMUX_COMPOSITE1,
306 .vmux = SAA7115_COMPOSITE0,
309 .type = EM28XX_VMUX_SVIDEO,
310 .vmux = SAA7115_SVIDEO3,
314 [EM2800_BOARD_KWORLD_USB2800] = {
315 .name = "Kworld USB2800",
318 .tuner_type = TUNER_PHILIPS_ATSC,
319 .tda9887_conf = TDA9887_PRESENT,
321 .decoder = EM28XX_SAA7113,
323 .type = EM28XX_VMUX_TELEVISION,
324 .vmux = SAA7115_COMPOSITE2,
327 .type = EM28XX_VMUX_COMPOSITE1,
328 .vmux = SAA7115_COMPOSITE0,
331 .type = EM28XX_VMUX_SVIDEO,
332 .vmux = SAA7115_SVIDEO3,
336 [EM2820_BOARD_PINNACLE_DVC_90] = {
337 .name = "Pinnacle Dazzle DVC 90/DVC 100",
340 .decoder = EM28XX_SAA7113,
342 .type = EM28XX_VMUX_COMPOSITE1,
343 .vmux = SAA7115_COMPOSITE0,
346 .type = EM28XX_VMUX_SVIDEO,
347 .vmux = SAA7115_SVIDEO3,
351 [EM2800_BOARD_VGEAR_POCKETTV] = {
352 .name = "V-Gear PocketTV",
355 .tuner_type = TUNER_LG_PAL_NEW_TAPC,
356 .tda9887_conf = TDA9887_PRESENT,
358 .decoder = EM28XX_SAA7113,
360 .type = EM28XX_VMUX_TELEVISION,
361 .vmux = SAA7115_COMPOSITE2,
364 .type = EM28XX_VMUX_COMPOSITE1,
365 .vmux = SAA7115_COMPOSITE0,
368 .type = EM28XX_VMUX_SVIDEO,
369 .vmux = SAA7115_SVIDEO3,
373 [EM2820_BOARD_PROLINK_PLAYTV_USB2] = {
374 .name = "Pixelview Prolink PlayTV USB 2.0",
376 .tda9887_conf = TDA9887_PRESENT,
378 .decoder = EM28XX_SAA7113,
380 .type = EM28XX_VMUX_TELEVISION,
381 .vmux = SAA7115_COMPOSITE2,
384 .type = EM28XX_VMUX_COMPOSITE1,
385 .vmux = SAA7115_COMPOSITE0,
388 .type = EM28XX_VMUX_SVIDEO,
389 .vmux = SAA7115_SVIDEO3,
394 const unsigned int em28xx_bcount = ARRAY_SIZE(em28xx_boards);
396 /* table of devices that work with this driver */
397 struct usb_device_id em28xx_id_table [] = {
398 { USB_DEVICE(0xeb1a, 0x2750),
399 .driver_info = EM2820_BOARD_UNKNOWN },
400 { USB_DEVICE(0xeb1a, 0x2800),
401 .driver_info = EM2800_BOARD_UNKNOWN },
402 { USB_DEVICE(0xeb1a, 0x2820),
403 .driver_info = EM2820_BOARD_UNKNOWN },
404 { USB_DEVICE(0xeb1a, 0x2821),
405 .driver_info = EM2820_BOARD_UNKNOWN },
406 { USB_DEVICE(0xeb1a, 0x2860),
407 .driver_info = EM2820_BOARD_UNKNOWN },
408 { USB_DEVICE(0xeb1a, 0x2861),
409 .driver_info = EM2820_BOARD_UNKNOWN },
410 { USB_DEVICE(0xeb1a, 0x2870),
411 .driver_info = EM2820_BOARD_UNKNOWN },
412 { USB_DEVICE(0xeb1a, 0x2881),
413 .driver_info = EM2820_BOARD_UNKNOWN },
414 { USB_DEVICE(0xeb1a, 0x2883),
415 .driver_info = EM2820_BOARD_UNKNOWN },
416 { USB_DEVICE(0x0ccd, 0x0036),
417 .driver_info = EM2820_BOARD_TERRATEC_CINERGY_250 },
418 { USB_DEVICE(0x2304, 0x0208),
419 .driver_info = EM2820_BOARD_PINNACLE_USB_2 },
420 { USB_DEVICE(0x2040, 0x4200),
421 .driver_info = EM2820_BOARD_HAUPPAUGE_WINTV_USB_2 },
422 { USB_DEVICE(0x2040, 0x4201),
423 .driver_info = EM2820_BOARD_HAUPPAUGE_WINTV_USB_2 },
424 { USB_DEVICE(0x2304, 0x0207),
425 .driver_info = EM2820_BOARD_PINNACLE_DVC_90 },
426 { USB_DEVICE(0x2304, 0x021a),
427 .driver_info = EM2820_BOARD_PINNACLE_DVC_90 },
428 { USB_DEVICE(0x2040, 0x6500),
429 .driver_info = EM2880_BOARD_HAUPPAUGE_WINTV_HVR_900 },
430 { USB_DEVICE(0x2040, 0x6513),
431 .driver_info = EM2880_BOARD_HAUPPAUGE_WINTV_HVR_950 },
432 { USB_DEVICE(0x0ccd, 0x0042),
433 .driver_info = EM2880_BOARD_TERRATEC_HYBRID_XS },
434 { USB_DEVICE(0x0ccd, 0x0047),
435 .driver_info = EM2880_BOARD_TERRATEC_PRODIGY_XS },
438 MODULE_DEVICE_TABLE(usb, em28xx_id_table);
440 /* EEPROM hash table for devices with generic USB IDs */
441 static struct em28xx_hash_table em28xx_eeprom_hash [] = {
442 /* P/N: SA 60002070465 Tuner: TVF7533-MF */
443 {0x6ce05a8f, EM2820_BOARD_PROLINK_PLAYTV_USB2, TUNER_YMEC_TVF_5533MF},
446 /* I2C devicelist hash table for devices with generic USB IDs */
447 static struct em28xx_hash_table em28xx_i2c_hash[] = {
448 {0xb06a32c3, EM2800_BOARD_TERRATEC_CINERGY_200, TUNER_LG_PAL_NEW_TAPC},
449 {0xf51200e3, EM2800_BOARD_VGEAR_POCKETTV, TUNER_LG_PAL_NEW_TAPC},
452 /* Since em28xx_pre_card_setup() requires a proper dev->model,
453 * this won't work for boards with generic PCI IDs
455 void em28xx_pre_card_setup(struct em28xx *dev)
457 /* request some modules */
458 switch (dev->model) {
459 case EM2880_BOARD_TERRATEC_PRODIGY_XS:
460 case EM2880_BOARD_HAUPPAUGE_WINTV_HVR_900:
461 case EM2880_BOARD_HAUPPAUGE_WINTV_HVR_950:
462 case EM2880_BOARD_TERRATEC_HYBRID_XS:
463 em28xx_write_regs(dev, XCLK_REG, "\x27", 1);
464 em28xx_write_regs(dev, I2C_CLK_REG, "\x40", 1);
465 em28xx_write_regs(dev, 0x08, "\xff", 1);
466 em28xx_write_regs(dev, 0x04, "\x00", 1);
468 em28xx_write_regs(dev, 0x04, "\x08", 1);
470 em28xx_write_regs(dev, 0x08, "\xff", 1);
472 em28xx_write_regs(dev, 0x08, "\x2d", 1);
474 em28xx_write_regs(dev, 0x08, "\x3d", 1);
479 static int em28xx_tuner_callback(void *ptr, int command, int arg)
482 struct em28xx *dev = ptr;
484 if (dev->tuner_type != TUNER_XC2028)
488 case XC2028_TUNER_RESET:
490 /* GPIO and initialization codes for analog TV and radio
491 This code should be complemented for DTV, since reset
495 dev->em28xx_write_regs_req(dev, 0x00, 0x48, "\x00", 1);
496 dev->em28xx_write_regs_req(dev, 0x00, 0x12, "\x67", 1);
498 if (dev->analog_gpio) {
499 char gpio0 = dev->analog_gpio & 0xff;
500 char gpio1 = (dev->analog_gpio >> 8) & 0xff;
501 char gpio4 = dev->analog_gpio >> 24;
504 dev->em28xx_write_regs(dev, 0x04, &gpio4, 1);
509 dev->em28xx_write_regs(dev, 0x08, &gpio0, 1);
511 dev->em28xx_write_regs(dev, 0x08, &gpio1, 1);
521 static void em28xx_config_tuner(struct em28xx *dev)
523 struct v4l2_priv_tun_config xc2028_cfg;
524 struct xc2028_ctrl ctl;
525 struct tuner_setup tun_setup;
526 struct v4l2_frequency f;
531 tun_setup.mode_mask = T_ANALOG_TV | T_RADIO;
532 tun_setup.type = dev->tuner_type;
533 tun_setup.addr = dev->tuner_addr;
534 tun_setup.tuner_callback = em28xx_tuner_callback;
536 em28xx_i2c_call_clients(dev, TUNER_SET_TYPE_ADDR, &tun_setup);
538 if (dev->tuner_type == TUNER_XC2028) {
539 memset(&ctl, 0, sizeof(ctl));
541 ctl.fname = XC2028_DEFAULT_FIRMWARE;
543 ctl.mts = em28xx_boards[dev->model].mts_firmware;
545 xc2028_cfg.tuner = TUNER_XC2028;
546 xc2028_cfg.priv = &ctl;
548 em28xx_i2c_call_clients(dev, TUNER_SET_CONFIG, &xc2028_cfg);
551 /* configure tuner */
553 f.type = V4L2_TUNER_ANALOG_TV;
554 f.frequency = 9076; /* just a magic number */
555 dev->ctl_freq = f.frequency;
556 em28xx_i2c_call_clients(dev, VIDIOC_S_FREQUENCY, &f);
559 static int em28xx_hint_board(struct em28xx *dev)
563 /* HINT method: EEPROM
565 * This method works only for boards with eeprom.
566 * Uses a hash of all eeprom bytes. The hash should be
567 * unique for a vendor/tuner pair.
568 * There are a high chance that tuners for different
569 * video standards produce different hashes.
571 for (i = 0; i < ARRAY_SIZE(em28xx_eeprom_hash); i++) {
572 if (dev->hash == em28xx_eeprom_hash[i].hash) {
573 dev->model = em28xx_eeprom_hash[i].model;
574 dev->tuner_type = em28xx_eeprom_hash[i].tuner;
576 em28xx_errdev("Your board has no unique USB ID.\n");
577 em28xx_errdev("A hint were successfully done, "
578 "based on eeprom hash.\n");
579 em28xx_errdev("This method is not 100%% failproof.\n");
580 em28xx_errdev("If the board were missdetected, "
581 "please email this log to:\n");
582 em28xx_errdev("\tV4L Mailing List "
583 " <video4linux-list@redhat.com>\n");
584 em28xx_errdev("Board detected as %s\n",
585 em28xx_boards[dev->model].name);
591 /* HINT method: I2C attached devices
593 * This method works for all boards.
594 * Uses a hash of i2c scanned devices.
595 * Devices with the same i2c attached chips will
596 * be considered equal.
597 * This method is less precise than the eeprom one.
600 /* user did not request i2c scanning => do it now */
602 em28xx_do_i2c_scan(dev);
604 for (i = 0; i < ARRAY_SIZE(em28xx_i2c_hash); i++) {
605 if (dev->i2c_hash == em28xx_i2c_hash[i].hash) {
606 dev->model = em28xx_i2c_hash[i].model;
607 dev->tuner_type = em28xx_i2c_hash[i].tuner;
608 em28xx_errdev("Your board has no unique USB ID.\n");
609 em28xx_errdev("A hint were successfully done, "
610 "based on i2c devicelist hash.\n");
611 em28xx_errdev("This method is not 100%% failproof.\n");
612 em28xx_errdev("If the board were missdetected, "
613 "please email this log to:\n");
614 em28xx_errdev("\tV4L Mailing List "
615 " <video4linux-list@redhat.com>\n");
616 em28xx_errdev("Board detected as %s\n",
617 em28xx_boards[dev->model].name);
623 em28xx_errdev("Your board has no unique USB ID and thus need a "
624 "hint to be detected.\n");
625 em28xx_errdev("You may try to use card=<n> insmod option to "
626 "workaround that.\n");
627 em28xx_errdev("Please send an email with this log to:\n");
628 em28xx_errdev("\tV4L Mailing List <video4linux-list@redhat.com>\n");
629 em28xx_errdev("Board eeprom hash is 0x%08lx\n", dev->hash);
630 em28xx_errdev("Board i2c devicelist hash is 0x%08lx\n", dev->i2c_hash);
632 em28xx_errdev("Here is a list of valid choices for the card=<n>"
633 " insmod option:\n");
634 for (i = 0; i < em28xx_bcount; i++) {
635 em28xx_errdev(" card=%d -> %s\n",
636 i, em28xx_boards[i].name);
642 static void em28xx_set_model(struct em28xx *dev)
644 dev->is_em2800 = em28xx_boards[dev->model].is_em2800;
645 dev->has_tuner = em28xx_boards[dev->model].has_tuner;
646 dev->has_msp34xx = em28xx_boards[dev->model].has_msp34xx;
647 dev->tda9887_conf = em28xx_boards[dev->model].tda9887_conf;
648 dev->decoder = em28xx_boards[dev->model].decoder;
649 dev->video_inputs = em28xx_boards[dev->model].vchannels;
650 dev->analog_gpio = em28xx_boards[dev->model].analog_gpio;
651 dev->has_12mhz_i2s = em28xx_boards[dev->model].has_12mhz_i2s;
653 if (!em28xx_boards[dev->model].has_tuner)
654 dev->tuner_type = UNSET;
657 void em28xx_card_setup(struct em28xx *dev)
659 em28xx_set_model(dev);
661 dev->tuner_type = em28xx_boards[dev->model].tuner_type;
663 /* request some modules */
664 switch (dev->model) {
665 case EM2820_BOARD_HAUPPAUGE_WINTV_USB_2:
666 case EM2880_BOARD_HAUPPAUGE_WINTV_HVR_900:
667 case EM2880_BOARD_HAUPPAUGE_WINTV_HVR_950:
670 #ifdef CONFIG_MODULES
671 request_module("tveeprom");
673 /* Call first TVeeprom */
675 dev->i2c_client.addr = 0xa0 >> 1;
676 tveeprom_hauppauge_analog(&dev->i2c_client, &tv, dev->eedata);
678 dev->tuner_type = tv.tuner_type;
679 if (tv.audio_processor == AUDIO_CHIP_MSP34XX) {
680 dev->i2s_speed = 2048000;
681 dev->has_msp34xx = 1;
683 #ifdef CONFIG_MODULES
685 request_module("ir-kbd-i2c");
689 case EM2820_BOARD_KWORLD_PVRTV2800RF:
690 /* GPIO enables sound on KWORLD PVR TV 2800RF */
691 em28xx_write_regs_req(dev, 0x00, 0x08, "\xf9", 1);
693 case EM2820_BOARD_UNKNOWN:
694 case EM2800_BOARD_UNKNOWN:
695 if (!em28xx_hint_board(dev))
696 em28xx_set_model(dev);
699 /* Allow override tuner type by a module parameter */
701 dev->tuner_type = tuner;
703 #ifdef CONFIG_MODULES
704 /* request some modules */
705 if (dev->has_msp34xx)
706 request_module("msp3400");
707 if (dev->decoder == EM28XX_SAA7113 || dev->decoder == EM28XX_SAA7114)
708 request_module("saa7115");
709 if (dev->decoder == EM28XX_TVP5150)
710 request_module("tvp5150");
712 request_module("tuner");
715 em28xx_config_tuner(dev);