akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 1 | /* |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 2 | em28xx-cards.c - driver for Empia EM2800/EM2820/2840 USB |
| 3 | video capture devices |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 4 | |
Mauro Carvalho Chehab | f7abcd3 | 2005-11-08 21:38:25 -0800 | [diff] [blame] | 5 | Copyright (C) 2005 Ludovico Cavedon <cavedon@sssup.it> |
| 6 | Markus Rechberger <mrechberger@gmail.com> |
Mauro Carvalho Chehab | 2e7c6dc | 2006-04-03 07:53:40 -0300 | [diff] [blame] | 7 | Mauro Carvalho Chehab <mchehab@infradead.org> |
Mauro Carvalho Chehab | f7abcd3 | 2005-11-08 21:38:25 -0800 | [diff] [blame] | 8 | Sascha Sommer <saschasommer@freenet.de> |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 9 | |
| 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. |
| 14 | |
| 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. |
| 19 | |
| 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. |
| 23 | */ |
| 24 | |
| 25 | #include <linux/init.h> |
| 26 | #include <linux/module.h> |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 27 | #include <linux/delay.h> |
| 28 | #include <linux/i2c.h> |
| 29 | #include <linux/usb.h> |
| 30 | #include <media/tuner.h> |
Hans Verkuil | 2474ed4 | 2006-03-19 12:35:57 -0300 | [diff] [blame] | 31 | #include <media/msp3400.h> |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 32 | #include <media/saa7115.h> |
| 33 | #include <media/tvp5150.h> |
Mauro Carvalho Chehab | 1f6173e | 2005-11-08 21:37:16 -0800 | [diff] [blame] | 34 | #include <media/tveeprom.h> |
Mauro Carvalho Chehab | 9bb13a6 | 2006-01-09 15:25:37 -0200 | [diff] [blame] | 35 | #include <media/v4l2-common.h> |
Hans Verkuil | 38f9d30 | 2008-07-23 05:09:15 -0300 | [diff] [blame] | 36 | #include <media/v4l2-chip-ident.h> |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 37 | |
Mauro Carvalho Chehab | f7abcd3 | 2005-11-08 21:38:25 -0800 | [diff] [blame] | 38 | #include "em28xx.h" |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 39 | |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 40 | static int tuner = -1; |
| 41 | module_param(tuner, int, 0444); |
| 42 | MODULE_PARM_DESC(tuner, "tuner type"); |
| 43 | |
Mauro Carvalho Chehab | c8793b0 | 2008-01-13 15:42:17 -0300 | [diff] [blame] | 44 | static unsigned int disable_ir; |
| 45 | module_param(disable_ir, int, 0444); |
| 46 | MODULE_PARM_DESC(disable_ir, "disable infrared remote support"); |
| 47 | |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 48 | struct em28xx_hash_table { |
| 49 | unsigned long hash; |
| 50 | unsigned int model; |
| 51 | unsigned int tuner; |
| 52 | }; |
| 53 | |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 54 | struct em28xx_board em28xx_boards[] = { |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 55 | [EM2750_BOARD_UNKNOWN] = { |
| 56 | .name = "Unknown EM2750/EM2751 webcam grabber", |
| 57 | .vchannels = 1, |
| 58 | .input = { { |
| 59 | .type = EM28XX_VMUX_COMPOSITE1, |
| 60 | .vmux = 0, |
| 61 | .amux = 0, |
| 62 | } }, |
| 63 | }, |
Mauro Carvalho Chehab | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 64 | [EM2800_BOARD_UNKNOWN] = { |
| 65 | .name = "Unknown EM2800 video grabber", |
| 66 | .is_em2800 = 1, |
| 67 | .vchannels = 2, |
Mauro Carvalho Chehab | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 68 | .tda9887_conf = TDA9887_PRESENT, |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 69 | .decoder = EM28XX_SAA7113, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 70 | .input = { { |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 71 | .type = EM28XX_VMUX_COMPOSITE1, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 72 | .vmux = SAA7115_COMPOSITE0, |
Mauro Carvalho Chehab | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 73 | .amux = 1, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 74 | }, { |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 75 | .type = EM28XX_VMUX_SVIDEO, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 76 | .vmux = SAA7115_SVIDEO3, |
Mauro Carvalho Chehab | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 77 | .amux = 1, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 78 | } }, |
Mauro Carvalho Chehab | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 79 | }, |
| 80 | [EM2820_BOARD_UNKNOWN] = { |
Mauro Carvalho Chehab | 3dbd85b | 2007-11-03 08:07:07 -0300 | [diff] [blame] | 81 | .name = "Unknown EM2750/28xx video grabber", |
Mauro Carvalho Chehab | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 82 | .is_em2800 = 0, |
Mauro Carvalho Chehab | ed08631 | 2008-01-24 06:59:20 -0300 | [diff] [blame] | 83 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 84 | }, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 85 | [EM2750_BOARD_DLCW_130] = { |
| 86 | /* Beijing Huaqi Information Digital Technology Co., Ltd */ |
| 87 | .name = "Huaqi DLCW-130", |
| 88 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 89 | .vchannels = 1, |
| 90 | .input = { { |
| 91 | .type = EM28XX_VMUX_COMPOSITE1, |
| 92 | .vmux = 0, |
| 93 | .amux = 0, |
| 94 | } }, |
| 95 | }, |
| 96 | [EM2800_BOARD_KWORLD_USB2800] = { |
| 97 | .name = "Kworld USB2800", |
| 98 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 99 | .is_em2800 = 1, |
| 100 | .vchannels = 3, |
| 101 | .tuner_type = TUNER_PHILIPS_FCV1236D, |
| 102 | .tda9887_conf = TDA9887_PRESENT, |
| 103 | .decoder = EM28XX_SAA7113, |
| 104 | .input = { { |
| 105 | .type = EM28XX_VMUX_TELEVISION, |
| 106 | .vmux = SAA7115_COMPOSITE2, |
| 107 | .amux = 0, |
| 108 | }, { |
| 109 | .type = EM28XX_VMUX_COMPOSITE1, |
| 110 | .vmux = SAA7115_COMPOSITE0, |
| 111 | .amux = 1, |
| 112 | }, { |
| 113 | .type = EM28XX_VMUX_SVIDEO, |
| 114 | .vmux = SAA7115_SVIDEO3, |
| 115 | .amux = 1, |
| 116 | } }, |
| 117 | }, |
Markus Rechberger | 4d17d08 | 2006-02-07 06:25:39 -0200 | [diff] [blame] | 118 | [EM2820_BOARD_KWORLD_PVRTV2800RF] = { |
Markus Rechberger | 33ccaa3 | 2006-02-07 06:25:41 -0200 | [diff] [blame] | 119 | .name = "Kworld PVR TV 2800 RF", |
Markus Rechberger | 4d17d08 | 2006-02-07 06:25:39 -0200 | [diff] [blame] | 120 | .is_em2800 = 0, |
| 121 | .vchannels = 2, |
Mauro Carvalho Chehab | ed08631 | 2008-01-24 06:59:20 -0300 | [diff] [blame] | 122 | .tuner_type = TUNER_TEMIC_PAL, |
Markus Rechberger | 4d17d08 | 2006-02-07 06:25:39 -0200 | [diff] [blame] | 123 | .tda9887_conf = TDA9887_PRESENT, |
Markus Rechberger | 4d17d08 | 2006-02-07 06:25:39 -0200 | [diff] [blame] | 124 | .decoder = EM28XX_SAA7113, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 125 | .input = { { |
Markus Rechberger | 4d17d08 | 2006-02-07 06:25:39 -0200 | [diff] [blame] | 126 | .type = EM28XX_VMUX_COMPOSITE1, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 127 | .vmux = SAA7115_COMPOSITE0, |
Markus Rechberger | 4d17d08 | 2006-02-07 06:25:39 -0200 | [diff] [blame] | 128 | .amux = 1, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 129 | }, { |
Markus Rechberger | 4d17d08 | 2006-02-07 06:25:39 -0200 | [diff] [blame] | 130 | .type = EM28XX_VMUX_SVIDEO, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 131 | .vmux = SAA7115_SVIDEO3, |
Markus Rechberger | 4d17d08 | 2006-02-07 06:25:39 -0200 | [diff] [blame] | 132 | .amux = 1, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 133 | } }, |
Markus Rechberger | 4d17d08 | 2006-02-07 06:25:39 -0200 | [diff] [blame] | 134 | }, |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 135 | [EM2820_BOARD_TERRATEC_CINERGY_250] = { |
| 136 | .name = "Terratec Cinergy 250 USB", |
| 137 | .vchannels = 3, |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 138 | .tuner_type = TUNER_LG_PAL_NEW_TAPC, |
| 139 | .tda9887_conf = TDA9887_PRESENT, |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 140 | .decoder = EM28XX_SAA7113, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 141 | .input = { { |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 142 | .type = EM28XX_VMUX_TELEVISION, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 143 | .vmux = SAA7115_COMPOSITE2, |
Markus Rechberger | 9475fb1 | 2006-02-27 00:07:34 -0300 | [diff] [blame] | 144 | .amux = 1, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 145 | }, { |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 146 | .type = EM28XX_VMUX_COMPOSITE1, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 147 | .vmux = SAA7115_COMPOSITE0, |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 148 | .amux = 1, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 149 | }, { |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 150 | .type = EM28XX_VMUX_SVIDEO, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 151 | .vmux = SAA7115_SVIDEO3, |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 152 | .amux = 1, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 153 | } }, |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 154 | }, |
| 155 | [EM2820_BOARD_PINNACLE_USB_2] = { |
| 156 | .name = "Pinnacle PCTV USB 2", |
| 157 | .vchannels = 3, |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 158 | .tuner_type = TUNER_LG_PAL_NEW_TAPC, |
| 159 | .tda9887_conf = TDA9887_PRESENT, |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 160 | .decoder = EM28XX_SAA7113, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 161 | .input = { { |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 162 | .type = EM28XX_VMUX_TELEVISION, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 163 | .vmux = SAA7115_COMPOSITE2, |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 164 | .amux = 0, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 165 | }, { |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 166 | .type = EM28XX_VMUX_COMPOSITE1, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 167 | .vmux = SAA7115_COMPOSITE0, |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 168 | .amux = 1, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 169 | }, { |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 170 | .type = EM28XX_VMUX_SVIDEO, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 171 | .vmux = SAA7115_SVIDEO3, |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 172 | .amux = 1, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 173 | } }, |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 174 | }, |
| 175 | [EM2820_BOARD_HAUPPAUGE_WINTV_USB_2] = { |
| 176 | .name = "Hauppauge WinTV USB 2", |
| 177 | .vchannels = 3, |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 178 | .tuner_type = TUNER_PHILIPS_FM1236_MK3, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 179 | .tda9887_conf = TDA9887_PRESENT | |
| 180 | TDA9887_PORT1_ACTIVE| |
| 181 | TDA9887_PORT2_ACTIVE, |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 182 | .decoder = EM28XX_TVP5150, |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 183 | .has_msp34xx = 1, |
| 184 | /*FIXME: S-Video not tested */ |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 185 | .input = { { |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 186 | .type = EM28XX_VMUX_TELEVISION, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 187 | .vmux = TVP5150_COMPOSITE0, |
Hans Verkuil | 2474ed4 | 2006-03-19 12:35:57 -0300 | [diff] [blame] | 188 | .amux = MSP_INPUT_DEFAULT, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 189 | }, { |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 190 | .type = EM28XX_VMUX_SVIDEO, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 191 | .vmux = TVP5150_SVIDEO, |
Hans Verkuil | 0715172 | 2006-04-01 18:03:23 -0300 | [diff] [blame] | 192 | .amux = MSP_INPUT(MSP_IN_SCART1, MSP_IN_TUNER1, |
| 193 | MSP_DSP_IN_SCART, MSP_DSP_IN_SCART), |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 194 | } }, |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 195 | }, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 196 | [EM2820_BOARD_DLINK_USB_TV] = { |
| 197 | .name = "D-Link DUB-T210 TV Tuner", |
| 198 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 199 | .vchannels = 3, |
| 200 | .is_em2800 = 0, |
| 201 | .tuner_type = TUNER_LG_PAL_NEW_TAPC, |
| 202 | .tda9887_conf = TDA9887_PRESENT, |
| 203 | .decoder = EM28XX_SAA7113, |
| 204 | .input = { { |
| 205 | .type = EM28XX_VMUX_TELEVISION, |
| 206 | .vmux = SAA7115_COMPOSITE2, |
| 207 | .amux = 1, |
| 208 | }, { |
| 209 | .type = EM28XX_VMUX_COMPOSITE1, |
| 210 | .vmux = SAA7115_COMPOSITE0, |
| 211 | .amux = 1, |
| 212 | }, { |
| 213 | .type = EM28XX_VMUX_SVIDEO, |
| 214 | .vmux = SAA7115_SVIDEO3, |
| 215 | .amux = 1, |
| 216 | } }, |
| 217 | }, |
| 218 | [EM2820_BOARD_HERCULES_SMART_TV_USB2] = { |
| 219 | .name = "Hercules Smart TV USB 2.0", |
| 220 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 221 | .vchannels = 3, |
| 222 | .tuner_type = TUNER_LG_PAL_NEW_TAPC, |
| 223 | .tda9887_conf = TDA9887_PRESENT, |
| 224 | .decoder = EM28XX_SAA7113, |
| 225 | .input = { { |
| 226 | .type = EM28XX_VMUX_TELEVISION, |
| 227 | .vmux = SAA7115_COMPOSITE2, |
| 228 | .amux = 1, |
| 229 | }, { |
| 230 | .type = EM28XX_VMUX_COMPOSITE1, |
| 231 | .vmux = SAA7115_COMPOSITE0, |
| 232 | .amux = 1, |
| 233 | }, { |
| 234 | .type = EM28XX_VMUX_SVIDEO, |
| 235 | .vmux = SAA7115_SVIDEO3, |
| 236 | .amux = 1, |
| 237 | } }, |
| 238 | }, |
| 239 | [EM2820_BOARD_PINNACLE_USB_2_FM1216ME] = { |
| 240 | .name = "Pinnacle PCTV USB 2 (Philips FM1216ME)", |
| 241 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 242 | .vchannels = 3, |
| 243 | .is_em2800 = 0, |
| 244 | .tuner_type = TUNER_PHILIPS_FM1216ME_MK3, |
| 245 | .tda9887_conf = TDA9887_PRESENT, |
| 246 | .decoder = EM28XX_SAA7113, |
| 247 | .input = { { |
| 248 | .type = EM28XX_VMUX_TELEVISION, |
| 249 | .vmux = SAA7115_COMPOSITE2, |
| 250 | .amux = 0, |
| 251 | }, { |
| 252 | .type = EM28XX_VMUX_COMPOSITE1, |
| 253 | .vmux = SAA7115_COMPOSITE0, |
| 254 | .amux = 1, |
| 255 | }, { |
| 256 | .type = EM28XX_VMUX_SVIDEO, |
| 257 | .vmux = SAA7115_SVIDEO3, |
| 258 | .amux = 1, |
| 259 | } }, |
| 260 | }, |
| 261 | [EM2820_BOARD_GADMEI_UTV310] = { |
| 262 | .name = "Gadmei UTV310", |
| 263 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 264 | .vchannels = 3, |
| 265 | .tuner_type = TUNER_TNF_5335MF, |
| 266 | .tda9887_conf = TDA9887_PRESENT, |
| 267 | .decoder = EM28XX_SAA7113, |
| 268 | .input = { { |
| 269 | .type = EM28XX_VMUX_TELEVISION, |
| 270 | .vmux = SAA7115_COMPOSITE1, |
| 271 | .amux = 1, |
| 272 | }, { |
| 273 | .type = EM28XX_VMUX_COMPOSITE1, |
| 274 | .vmux = SAA7115_COMPOSITE0, |
| 275 | .amux = 1, |
| 276 | }, { |
| 277 | .type = EM28XX_VMUX_SVIDEO, |
| 278 | .vmux = SAA7115_SVIDEO3, |
| 279 | .amux = 1, |
| 280 | } }, |
| 281 | }, |
| 282 | [EM2820_BOARD_LEADTEK_WINFAST_USBII_DELUXE] = { |
| 283 | .name = "Leadtek Winfast USB II Deluxe", |
| 284 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 285 | .vchannels = 3, |
| 286 | .tuner_type = TUNER_PHILIPS_FM1216ME_MK3, |
| 287 | .tda9887_conf = TDA9887_PRESENT, |
| 288 | .decoder = EM28XX_SAA7114, |
| 289 | .input = { { |
| 290 | .type = EM28XX_VMUX_TELEVISION, |
| 291 | .vmux = 2, |
| 292 | .amux = 0, |
| 293 | }, { |
| 294 | .type = EM28XX_VMUX_COMPOSITE1, |
| 295 | .vmux = 0, |
| 296 | .amux = 1, |
| 297 | }, { |
| 298 | .type = EM28XX_VMUX_SVIDEO, |
| 299 | .vmux = 9, |
| 300 | .amux = 1, |
| 301 | } }, |
| 302 | }, |
| 303 | [EM2820_BOARD_PINNACLE_DVC_100] = { |
| 304 | .name = "Pinnacle Dazzle DVC 100", |
| 305 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 306 | .vchannels = 3, |
| 307 | .decoder = EM28XX_SAA7113, |
| 308 | .input = { { |
| 309 | .type = EM28XX_VMUX_COMPOSITE1, |
| 310 | .vmux = SAA7115_COMPOSITE0, |
| 311 | .amux = 1, |
| 312 | }, { |
| 313 | .type = EM28XX_VMUX_SVIDEO, |
| 314 | .vmux = SAA7115_SVIDEO3, |
| 315 | .amux = 1, |
| 316 | } }, |
| 317 | }, |
| 318 | [EM2820_BOARD_VIDEOLOGY_20K14XUSB] = { |
| 319 | .name = "Videology 20K14XUSB USB2.0", |
| 320 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 321 | .vchannels = 1, |
| 322 | .input = { { |
| 323 | .type = EM28XX_VMUX_COMPOSITE1, |
| 324 | .vmux = 0, |
| 325 | .amux = 0, |
| 326 | } }, |
| 327 | }, |
| 328 | [EM2821_BOARD_PROLINK_PLAYTV_USB2] = { |
| 329 | .name = "SIIG AVTuner-PVR/Prolink PlayTV USB 2.0", |
| 330 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 331 | .vchannels = 3, |
| 332 | .is_em2800 = 0, |
| 333 | .tuner_type = TUNER_LG_PAL_NEW_TAPC, /* unknown? */ |
| 334 | .tda9887_conf = TDA9887_PRESENT, /* unknown? */ |
| 335 | .decoder = EM28XX_SAA7113, |
| 336 | .input = { { |
| 337 | .type = EM28XX_VMUX_TELEVISION, |
| 338 | .vmux = SAA7115_COMPOSITE2, |
| 339 | .amux = 1, |
| 340 | }, { |
| 341 | .type = EM28XX_VMUX_COMPOSITE1, |
| 342 | .vmux = SAA7115_COMPOSITE0, |
| 343 | .amux = 1, |
| 344 | }, { |
| 345 | .type = EM28XX_VMUX_SVIDEO, |
| 346 | .vmux = SAA7115_SVIDEO3, |
| 347 | .amux = 1, |
| 348 | } }, |
| 349 | }, |
| 350 | [EM2821_BOARD_SUPERCOMP_USB_2] = { |
| 351 | .name = "Supercomp USB 2.0 TV", |
| 352 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 353 | .vchannels = 3, |
| 354 | .is_em2800 = 0, |
| 355 | .tuner_type = TUNER_PHILIPS_FM1236_MK3, |
| 356 | .tda9887_conf = TDA9887_PRESENT | |
| 357 | TDA9887_PORT1_ACTIVE | |
| 358 | TDA9887_PORT2_ACTIVE, |
| 359 | .decoder = EM28XX_SAA7113, |
| 360 | .input = { { |
| 361 | .type = EM28XX_VMUX_TELEVISION, |
| 362 | .vmux = SAA7115_COMPOSITE2, |
| 363 | .amux = 1, |
| 364 | }, { |
| 365 | .type = EM28XX_VMUX_COMPOSITE1, |
| 366 | .vmux = SAA7115_COMPOSITE0, |
| 367 | .amux = 0, |
| 368 | }, { |
| 369 | .type = EM28XX_VMUX_SVIDEO, |
| 370 | .vmux = SAA7115_SVIDEO3, |
| 371 | .amux = 1, |
| 372 | } }, |
| 373 | }, |
| 374 | [EM2821_BOARD_USBGEAR_VD204] = { |
| 375 | .name = "Usbgear VD204v9", |
| 376 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 377 | .vchannels = 2, |
| 378 | .decoder = EM28XX_SAA7113, |
| 379 | .input = { { |
| 380 | .type = EM28XX_VMUX_COMPOSITE1, |
| 381 | .vmux = SAA7115_COMPOSITE0, |
| 382 | .amux = 1, |
| 383 | }, { |
| 384 | .type = EM28XX_VMUX_SVIDEO, |
| 385 | .vmux = SAA7115_SVIDEO3, |
| 386 | .amux = 1, |
| 387 | } }, |
| 388 | }, |
| 389 | [EM2860_BOARD_NETGMBH_CAM] = { |
| 390 | /* Beijing Huaqi Information Digital Technology Co., Ltd */ |
| 391 | .name = "NetGMBH Cam", |
| 392 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 393 | .vchannels = 1, |
| 394 | .input = { { |
| 395 | .type = EM28XX_VMUX_COMPOSITE1, |
| 396 | .vmux = 0, |
| 397 | .amux = 0, |
| 398 | } }, |
| 399 | }, |
| 400 | [EM2860_BOARD_TYPHOON_DVD_MAKER] = { |
| 401 | .name = "Typhoon DVD Maker", |
| 402 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 403 | .vchannels = 2, |
| 404 | .decoder = EM28XX_SAA7113, |
| 405 | .input = { { |
| 406 | .type = EM28XX_VMUX_COMPOSITE1, |
| 407 | .vmux = SAA7115_COMPOSITE0, |
| 408 | .amux = 1, |
| 409 | }, { |
| 410 | .type = EM28XX_VMUX_SVIDEO, |
| 411 | .vmux = SAA7115_SVIDEO3, |
| 412 | .amux = 1, |
| 413 | } }, |
| 414 | }, |
| 415 | [EM2860_BOARD_GADMEI_UTV330] = { |
| 416 | .name = "Gadmei UTV330", |
| 417 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 418 | .vchannels = 3, |
| 419 | .tuner_type = TUNER_TNF_5335MF, |
| 420 | .tda9887_conf = TDA9887_PRESENT, |
| 421 | .decoder = EM28XX_SAA7113, |
| 422 | .input = { { |
| 423 | .type = EM28XX_VMUX_TELEVISION, |
| 424 | .vmux = SAA7115_COMPOSITE2, |
| 425 | .amux = 0, |
| 426 | }, { |
| 427 | .type = EM28XX_VMUX_COMPOSITE1, |
| 428 | .vmux = SAA7115_COMPOSITE0, |
| 429 | .amux = 1, |
| 430 | }, { |
| 431 | .type = EM28XX_VMUX_SVIDEO, |
| 432 | .vmux = SAA7115_SVIDEO3, |
| 433 | .amux = 1, |
| 434 | } }, |
| 435 | }, |
| 436 | [EM2860_BOARD_TERRATEC_HYBRID_XS] = { |
| 437 | .name = "Terratec Cinergy A Hybrid XS", |
| 438 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 439 | .vchannels = 3, |
| 440 | .tuner_type = TUNER_XC2028, |
| 441 | .decoder = EM28XX_TVP5150, |
| 442 | .input = { { |
| 443 | .type = EM28XX_VMUX_TELEVISION, |
| 444 | .vmux = TVP5150_COMPOSITE0, |
| 445 | .amux = 0, |
| 446 | }, { |
| 447 | .type = EM28XX_VMUX_COMPOSITE1, |
| 448 | .vmux = TVP5150_COMPOSITE1, |
| 449 | .amux = 1, |
| 450 | }, { |
| 451 | .type = EM28XX_VMUX_SVIDEO, |
| 452 | .vmux = TVP5150_SVIDEO, |
| 453 | .amux = 1, |
| 454 | } }, |
| 455 | }, |
| 456 | [EM2861_BOARD_KWORLD_PVRTV_300U] = { |
| 457 | .name = "KWorld PVRTV 300U", |
| 458 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 459 | .vchannels = 3, |
| 460 | .tuner_type = TUNER_XC2028, |
| 461 | .decoder = EM28XX_TVP5150, |
| 462 | .input = { { |
| 463 | .type = EM28XX_VMUX_TELEVISION, |
| 464 | .vmux = TVP5150_COMPOSITE0, |
| 465 | .amux = 0, |
| 466 | }, { |
| 467 | .type = EM28XX_VMUX_COMPOSITE1, |
| 468 | .vmux = TVP5150_COMPOSITE1, |
| 469 | .amux = 1, |
| 470 | }, { |
| 471 | .type = EM28XX_VMUX_SVIDEO, |
| 472 | .vmux = TVP5150_SVIDEO, |
| 473 | .amux = 1, |
| 474 | } }, |
| 475 | }, |
| 476 | [EM2861_BOARD_YAKUMO_MOVIE_MIXER] = { |
| 477 | .name = "Yakumo MovieMixer", |
| 478 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 479 | .vchannels = 1, |
| 480 | .decoder = EM28XX_TVP5150, |
| 481 | .input = { { |
| 482 | .type = EM28XX_VMUX_TELEVISION, |
| 483 | .vmux = TVP5150_COMPOSITE0, |
| 484 | .amux = 0, |
| 485 | }, { |
| 486 | .type = EM28XX_VMUX_COMPOSITE1, |
| 487 | .vmux = TVP5150_COMPOSITE1, |
| 488 | .amux = 1, |
| 489 | }, { |
| 490 | .type = EM28XX_VMUX_SVIDEO, |
| 491 | .vmux = TVP5150_SVIDEO, |
| 492 | .amux = 1, |
| 493 | } }, |
| 494 | }, |
| 495 | [EM2861_BOARD_PLEXTOR_PX_TV100U] = { |
| 496 | .name = "Plextor ConvertX PX-TV100U", |
| 497 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 498 | .vchannels = 3, |
| 499 | .tuner_type = TUNER_TNF_5335MF, |
| 500 | .tda9887_conf = TDA9887_PRESENT, |
| 501 | .decoder = EM28XX_TVP5150, |
| 502 | .input = { { |
| 503 | .type = EM28XX_VMUX_TELEVISION, |
| 504 | .vmux = TVP5150_COMPOSITE0, |
| 505 | .amux = 1, |
| 506 | }, { |
| 507 | .type = EM28XX_VMUX_COMPOSITE1, |
| 508 | .vmux = TVP5150_COMPOSITE1, |
| 509 | .amux = 1, |
| 510 | }, { |
| 511 | .type = EM28XX_VMUX_SVIDEO, |
| 512 | .vmux = TVP5150_SVIDEO, |
| 513 | .amux = 1, |
| 514 | } }, |
| 515 | }, |
| 516 | [EM2870_BOARD_TERRATEC_XS] = { |
| 517 | .name = "Terratec Cinergy T XS", |
| 518 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 519 | .tuner_type = TUNER_XC2028, |
| 520 | }, |
| 521 | [EM2870_BOARD_TERRATEC_XS_MT2060] = { |
| 522 | .name = "Terratec Cinergy T XS (MT2060)", |
| 523 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 524 | .tuner_type = TUNER_ABSENT, /* MT2060 */ |
| 525 | }, |
| 526 | [EM2870_BOARD_KWORLD_350U] = { |
| 527 | .name = "Kworld 350 U DVB-T", |
| 528 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 529 | .tuner_type = TUNER_XC2028, |
| 530 | }, |
| 531 | [EM2870_BOARD_KWORLD_355U] = { |
| 532 | .name = "Kworld 355 U DVB-T", |
| 533 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 534 | }, |
| 535 | [EM2870_BOARD_PINNACLE_PCTV_DVB] = { |
| 536 | .name = "Pinnacle PCTV DVB-T", |
| 537 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 538 | .tuner_type = TUNER_ABSENT, /* MT2060 */ |
| 539 | }, |
| 540 | [EM2870_BOARD_COMPRO_VIDEOMATE] = { |
| 541 | .name = "Compro, VideoMate U3", |
| 542 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 543 | .tuner_type = TUNER_ABSENT, /* MT2060 */ |
| 544 | }, |
| 545 | [EM2880_BOARD_TERRATEC_HYBRID_XS_FR] = { |
| 546 | .name = "Terratec Hybrid XS Secam", |
| 547 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 548 | .vchannels = 3, |
| 549 | .has_msp34xx = 1, |
| 550 | .tuner_type = TUNER_XC2028, |
| 551 | .decoder = EM28XX_TVP5150, |
| 552 | .input = { { |
| 553 | .type = EM28XX_VMUX_TELEVISION, |
| 554 | .vmux = TVP5150_COMPOSITE0, |
| 555 | .amux = 0, |
| 556 | }, { |
| 557 | .type = EM28XX_VMUX_COMPOSITE1, |
| 558 | .vmux = TVP5150_COMPOSITE1, |
| 559 | .amux = 1, |
| 560 | }, { |
| 561 | .type = EM28XX_VMUX_SVIDEO, |
| 562 | .vmux = TVP5150_SVIDEO, |
| 563 | .amux = 1, |
| 564 | } }, |
| 565 | }, |
Mauro Carvalho Chehab | 1246657 | 2007-10-24 11:08:20 -0300 | [diff] [blame] | 566 | [EM2880_BOARD_HAUPPAUGE_WINTV_HVR_900] = { |
Aidan Thornton | 122d158 | 2007-11-20 15:25:08 -0300 | [diff] [blame] | 567 | .name = "Hauppauge WinTV HVR 900", |
| 568 | .vchannels = 3, |
| 569 | .tda9887_conf = TDA9887_PRESENT, |
| 570 | .tuner_type = TUNER_XC2028, |
Mauro Carvalho Chehab | 5add9a6 | 2007-11-22 12:08:53 -0300 | [diff] [blame] | 571 | .mts_firmware = 1, |
Devin Heitmueller | b38cc64 | 2008-06-09 14:59:05 -0300 | [diff] [blame] | 572 | .has_dvb = 1, |
Aidan Thornton | 122d158 | 2007-11-20 15:25:08 -0300 | [diff] [blame] | 573 | .decoder = EM28XX_TVP5150, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 574 | .input = { { |
Aidan Thornton | 122d158 | 2007-11-20 15:25:08 -0300 | [diff] [blame] | 575 | .type = EM28XX_VMUX_TELEVISION, |
| 576 | .vmux = TVP5150_COMPOSITE0, |
| 577 | .amux = 0, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 578 | }, { |
Aidan Thornton | 122d158 | 2007-11-20 15:25:08 -0300 | [diff] [blame] | 579 | .type = EM28XX_VMUX_COMPOSITE1, |
| 580 | .vmux = TVP5150_COMPOSITE1, |
| 581 | .amux = 1, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 582 | }, { |
Aidan Thornton | 122d158 | 2007-11-20 15:25:08 -0300 | [diff] [blame] | 583 | .type = EM28XX_VMUX_SVIDEO, |
| 584 | .vmux = TVP5150_SVIDEO, |
| 585 | .amux = 1, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 586 | } }, |
Aidan Thornton | 122d158 | 2007-11-20 15:25:08 -0300 | [diff] [blame] | 587 | }, |
Devin Heitmueller | 17d9d55 | 2008-06-08 10:22:03 -0300 | [diff] [blame] | 588 | [EM2880_BOARD_HAUPPAUGE_WINTV_HVR_900_R2] = { |
| 589 | .name = "Hauppauge WinTV HVR 900 (R2)", |
| 590 | .vchannels = 3, |
| 591 | .tda9887_conf = TDA9887_PRESENT, |
| 592 | .tuner_type = TUNER_XC2028, |
| 593 | .mts_firmware = 1, |
| 594 | .decoder = EM28XX_TVP5150, |
| 595 | .input = { { |
| 596 | .type = EM28XX_VMUX_TELEVISION, |
| 597 | .vmux = TVP5150_COMPOSITE0, |
| 598 | .amux = 0, |
| 599 | }, { |
| 600 | .type = EM28XX_VMUX_COMPOSITE1, |
| 601 | .vmux = TVP5150_COMPOSITE1, |
| 602 | .amux = 1, |
| 603 | }, { |
| 604 | .type = EM28XX_VMUX_SVIDEO, |
| 605 | .vmux = TVP5150_SVIDEO, |
| 606 | .amux = 1, |
| 607 | } }, |
| 608 | }, |
Mauro Carvalho Chehab | 10ac660 | 2008-07-27 14:58:58 -0300 | [diff] [blame] | 609 | [EM2883_BOARD_HAUPPAUGE_WINTV_HVR_950] = { |
Mauro Carvalho Chehab | 3abee53 | 2008-01-05 17:01:41 -0300 | [diff] [blame] | 610 | .name = "Hauppauge WinTV HVR 950", |
| 611 | .vchannels = 3, |
| 612 | .tda9887_conf = TDA9887_PRESENT, |
| 613 | .tuner_type = TUNER_XC2028, |
Mauro Carvalho Chehab | 3abee53 | 2008-01-05 17:01:41 -0300 | [diff] [blame] | 614 | .mts_firmware = 1, |
| 615 | .has_12mhz_i2s = 1, |
Mauro Carvalho Chehab | 227ad4a | 2008-04-17 21:37:40 -0300 | [diff] [blame] | 616 | .has_dvb = 1, |
Mauro Carvalho Chehab | 3abee53 | 2008-01-05 17:01:41 -0300 | [diff] [blame] | 617 | .decoder = EM28XX_TVP5150, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 618 | .input = { { |
Mauro Carvalho Chehab | 1246657 | 2007-10-24 11:08:20 -0300 | [diff] [blame] | 619 | .type = EM28XX_VMUX_TELEVISION, |
| 620 | .vmux = TVP5150_COMPOSITE0, |
| 621 | .amux = 0, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 622 | }, { |
Mauro Carvalho Chehab | 7d070e2 | 2007-11-01 21:52:58 -0300 | [diff] [blame] | 623 | .type = EM28XX_VMUX_COMPOSITE1, |
| 624 | .vmux = TVP5150_COMPOSITE1, |
| 625 | .amux = 1, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 626 | }, { |
Mauro Carvalho Chehab | 1246657 | 2007-10-24 11:08:20 -0300 | [diff] [blame] | 627 | .type = EM28XX_VMUX_SVIDEO, |
| 628 | .vmux = TVP5150_SVIDEO, |
| 629 | .amux = 1, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 630 | } }, |
Mauro Carvalho Chehab | 1246657 | 2007-10-24 11:08:20 -0300 | [diff] [blame] | 631 | }, |
Devin Heitmueller | 4fd305b | 2008-06-04 13:43:46 -0300 | [diff] [blame] | 632 | [EM2880_BOARD_PINNACLE_PCTV_HD_PRO] = { |
| 633 | .name = "Pinnacle PCTV HD Pro Stick", |
| 634 | .vchannels = 3, |
| 635 | .tda9887_conf = TDA9887_PRESENT, |
| 636 | .tuner_type = TUNER_XC2028, |
| 637 | .mts_firmware = 1, |
| 638 | .has_12mhz_i2s = 1, |
| 639 | .has_dvb = 1, |
| 640 | .decoder = EM28XX_TVP5150, |
| 641 | .input = { { |
| 642 | .type = EM28XX_VMUX_TELEVISION, |
| 643 | .vmux = TVP5150_COMPOSITE0, |
| 644 | .amux = 0, |
| 645 | }, { |
| 646 | .type = EM28XX_VMUX_COMPOSITE1, |
| 647 | .vmux = TVP5150_COMPOSITE1, |
| 648 | .amux = 1, |
| 649 | }, { |
| 650 | .type = EM28XX_VMUX_SVIDEO, |
| 651 | .vmux = TVP5150_SVIDEO, |
| 652 | .amux = 1, |
| 653 | } }, |
| 654 | }, |
Devin Heitmueller | e14b365 | 2008-07-26 11:04:33 -0300 | [diff] [blame] | 655 | [EM2880_BOARD_AMD_ATI_TV_WONDER_HD_600] = { |
| 656 | .name = "AMD ATI TV Wonder HD 600", |
| 657 | .vchannels = 3, |
| 658 | .tda9887_conf = TDA9887_PRESENT, |
| 659 | .tuner_type = TUNER_XC2028, |
| 660 | .mts_firmware = 1, |
| 661 | .has_12mhz_i2s = 1, |
| 662 | .has_dvb = 1, |
| 663 | .decoder = EM28XX_TVP5150, |
| 664 | .input = { { |
| 665 | .type = EM28XX_VMUX_TELEVISION, |
| 666 | .vmux = TVP5150_COMPOSITE0, |
| 667 | .amux = 0, |
| 668 | }, { |
| 669 | .type = EM28XX_VMUX_COMPOSITE1, |
| 670 | .vmux = TVP5150_COMPOSITE1, |
| 671 | .amux = 1, |
| 672 | }, { |
| 673 | .type = EM28XX_VMUX_SVIDEO, |
| 674 | .vmux = TVP5150_SVIDEO, |
| 675 | .amux = 1, |
| 676 | } }, |
| 677 | }, |
Mauro Carvalho Chehab | 1246657 | 2007-10-24 11:08:20 -0300 | [diff] [blame] | 678 | [EM2880_BOARD_TERRATEC_HYBRID_XS] = { |
| 679 | .name = "Terratec Hybrid XS", |
| 680 | .vchannels = 3, |
Mauro Carvalho Chehab | 1246657 | 2007-10-24 11:08:20 -0300 | [diff] [blame] | 681 | .tda9887_conf = TDA9887_PRESENT, |
Mauro Carvalho Chehab | 1246657 | 2007-10-24 11:08:20 -0300 | [diff] [blame] | 682 | .tuner_type = TUNER_XC2028, |
| 683 | .decoder = EM28XX_TVP5150, |
reinhard schwab | 655b840 | 2008-07-26 10:47:00 -0300 | [diff] [blame] | 684 | .has_dvb = 1, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 685 | .input = { { |
Mauro Carvalho Chehab | 1246657 | 2007-10-24 11:08:20 -0300 | [diff] [blame] | 686 | .type = EM28XX_VMUX_TELEVISION, |
| 687 | .vmux = TVP5150_COMPOSITE0, |
| 688 | .amux = 0, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 689 | }, { |
Mauro Carvalho Chehab | 1246657 | 2007-10-24 11:08:20 -0300 | [diff] [blame] | 690 | .type = EM28XX_VMUX_COMPOSITE1, |
| 691 | .vmux = TVP5150_COMPOSITE1, |
| 692 | .amux = 1, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 693 | }, { |
Mauro Carvalho Chehab | 1246657 | 2007-10-24 11:08:20 -0300 | [diff] [blame] | 694 | .type = EM28XX_VMUX_SVIDEO, |
| 695 | .vmux = TVP5150_SVIDEO, |
| 696 | .amux = 1, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 697 | } }, |
Mauro Carvalho Chehab | 1246657 | 2007-10-24 11:08:20 -0300 | [diff] [blame] | 698 | }, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 699 | /* maybe there's a reason behind it why Terratec sells the Hybrid XS |
| 700 | as Prodigy XS with a different PID, let's keep it separated for now |
| 701 | maybe we'll need it lateron */ |
Mauro Carvalho Chehab | 1246657 | 2007-10-24 11:08:20 -0300 | [diff] [blame] | 702 | [EM2880_BOARD_TERRATEC_PRODIGY_XS] = { |
| 703 | .name = "Terratec Prodigy XS", |
| 704 | .vchannels = 3, |
Mauro Carvalho Chehab | 1246657 | 2007-10-24 11:08:20 -0300 | [diff] [blame] | 705 | .tda9887_conf = TDA9887_PRESENT, |
Mauro Carvalho Chehab | 1246657 | 2007-10-24 11:08:20 -0300 | [diff] [blame] | 706 | .tuner_type = TUNER_XC2028, |
| 707 | .decoder = EM28XX_TVP5150, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 708 | .input = { { |
Mauro Carvalho Chehab | 1246657 | 2007-10-24 11:08:20 -0300 | [diff] [blame] | 709 | .type = EM28XX_VMUX_TELEVISION, |
| 710 | .vmux = TVP5150_COMPOSITE0, |
| 711 | .amux = 0, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 712 | }, { |
Mauro Carvalho Chehab | 1246657 | 2007-10-24 11:08:20 -0300 | [diff] [blame] | 713 | .type = EM28XX_VMUX_COMPOSITE1, |
| 714 | .vmux = TVP5150_COMPOSITE1, |
| 715 | .amux = 1, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 716 | }, { |
Mauro Carvalho Chehab | 1246657 | 2007-10-24 11:08:20 -0300 | [diff] [blame] | 717 | .type = EM28XX_VMUX_SVIDEO, |
| 718 | .vmux = TVP5150_SVIDEO, |
| 719 | .amux = 1, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 720 | } }, |
Mauro Carvalho Chehab | 1246657 | 2007-10-24 11:08:20 -0300 | [diff] [blame] | 721 | }, |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 722 | [EM2820_BOARD_MSI_VOX_USB_2] = { |
Mauro Carvalho Chehab | c8793b0 | 2008-01-13 15:42:17 -0300 | [diff] [blame] | 723 | .name = "MSI VOX USB 2.0", |
| 724 | .vchannels = 3, |
| 725 | .tuner_type = TUNER_LG_PAL_NEW_TAPC, |
| 726 | .tda9887_conf = TDA9887_PRESENT | |
| 727 | TDA9887_PORT1_ACTIVE | |
| 728 | TDA9887_PORT2_ACTIVE, |
Mauro Carvalho Chehab | c8793b0 | 2008-01-13 15:42:17 -0300 | [diff] [blame] | 729 | .max_range_640_480 = 1, |
| 730 | |
| 731 | .decoder = EM28XX_SAA7114, |
| 732 | .input = { { |
| 733 | .type = EM28XX_VMUX_TELEVISION, |
| 734 | .vmux = SAA7115_COMPOSITE4, |
| 735 | .amux = 0, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 736 | }, { |
Mauro Carvalho Chehab | c8793b0 | 2008-01-13 15:42:17 -0300 | [diff] [blame] | 737 | .type = EM28XX_VMUX_COMPOSITE1, |
| 738 | .vmux = SAA7115_COMPOSITE0, |
| 739 | .amux = 1, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 740 | }, { |
Mauro Carvalho Chehab | c8793b0 | 2008-01-13 15:42:17 -0300 | [diff] [blame] | 741 | .type = EM28XX_VMUX_SVIDEO, |
| 742 | .vmux = SAA7115_SVIDEO3, |
| 743 | .amux = 1, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 744 | } }, |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 745 | }, |
Mauro Carvalho Chehab | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 746 | [EM2800_BOARD_TERRATEC_CINERGY_200] = { |
| 747 | .name = "Terratec Cinergy 200 USB", |
Mauro Carvalho Chehab | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 748 | .is_em2800 = 1, |
| 749 | .vchannels = 3, |
Mauro Carvalho Chehab | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 750 | .tuner_type = TUNER_LG_PAL_NEW_TAPC, |
| 751 | .tda9887_conf = TDA9887_PRESENT, |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 752 | .decoder = EM28XX_SAA7113, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 753 | .input = { { |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 754 | .type = EM28XX_VMUX_TELEVISION, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 755 | .vmux = SAA7115_COMPOSITE2, |
Mauro Carvalho Chehab | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 756 | .amux = 0, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 757 | }, { |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 758 | .type = EM28XX_VMUX_COMPOSITE1, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 759 | .vmux = SAA7115_COMPOSITE0, |
Mauro Carvalho Chehab | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 760 | .amux = 1, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 761 | }, { |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 762 | .type = EM28XX_VMUX_SVIDEO, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 763 | .vmux = SAA7115_SVIDEO3, |
Mauro Carvalho Chehab | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 764 | .amux = 1, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 765 | } }, |
Mauro Carvalho Chehab | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 766 | }, |
Aron Szabo | 59d07f1 | 2008-07-27 13:47:52 -0300 | [diff] [blame] | 767 | [EM2800_BOARD_GRABBEEX_USB2800] = { |
| 768 | .name = "eMPIA Technology, Inc. GrabBeeX+ Video Encoder", |
| 769 | .is_em2800 = 1, |
| 770 | .vchannels = 2, |
| 771 | .decoder = EM28XX_SAA7113, |
| 772 | .input = { { |
| 773 | .type = EM28XX_VMUX_COMPOSITE1, |
| 774 | .vmux = SAA7115_COMPOSITE0, |
| 775 | .amux = 1, |
| 776 | }, { |
| 777 | .type = EM28XX_VMUX_SVIDEO, |
| 778 | .vmux = SAA7115_SVIDEO3, |
| 779 | .amux = 1, |
| 780 | } }, |
| 781 | }, |
Mauro Carvalho Chehab | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 782 | [EM2800_BOARD_LEADTEK_WINFAST_USBII] = { |
| 783 | .name = "Leadtek Winfast USB II", |
Mauro Carvalho Chehab | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 784 | .is_em2800 = 1, |
| 785 | .vchannels = 3, |
Mauro Carvalho Chehab | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 786 | .tuner_type = TUNER_LG_PAL_NEW_TAPC, |
| 787 | .tda9887_conf = TDA9887_PRESENT, |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 788 | .decoder = EM28XX_SAA7113, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 789 | .input = { { |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 790 | .type = EM28XX_VMUX_TELEVISION, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 791 | .vmux = SAA7115_COMPOSITE2, |
Mauro Carvalho Chehab | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 792 | .amux = 0, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 793 | }, { |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 794 | .type = EM28XX_VMUX_COMPOSITE1, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 795 | .vmux = SAA7115_COMPOSITE0, |
Mauro Carvalho Chehab | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 796 | .amux = 1, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 797 | }, { |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 798 | .type = EM28XX_VMUX_SVIDEO, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 799 | .vmux = SAA7115_SVIDEO3, |
Mauro Carvalho Chehab | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 800 | .amux = 1, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 801 | } }, |
Mauro Carvalho Chehab | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 802 | }, |
| 803 | [EM2800_BOARD_KWORLD_USB2800] = { |
| 804 | .name = "Kworld USB2800", |
Mauro Carvalho Chehab | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 805 | .is_em2800 = 1, |
| 806 | .vchannels = 3, |
Michael Krufky | ab8b870 | 2008-04-22 14:46:05 -0300 | [diff] [blame] | 807 | .tuner_type = TUNER_PHILIPS_FCV1236D, |
Mauro Carvalho Chehab | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 808 | .tda9887_conf = TDA9887_PRESENT, |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 809 | .decoder = EM28XX_SAA7113, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 810 | .input = { { |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 811 | .type = EM28XX_VMUX_TELEVISION, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 812 | .vmux = SAA7115_COMPOSITE2, |
Mauro Carvalho Chehab | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 813 | .amux = 0, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 814 | }, { |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 815 | .type = EM28XX_VMUX_COMPOSITE1, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 816 | .vmux = SAA7115_COMPOSITE0, |
Mauro Carvalho Chehab | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 817 | .amux = 1, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 818 | }, { |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 819 | .type = EM28XX_VMUX_SVIDEO, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 820 | .vmux = SAA7115_SVIDEO3, |
Mauro Carvalho Chehab | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 821 | .amux = 1, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 822 | } }, |
Mauro Carvalho Chehab | 596d92d | 2005-11-08 21:37:24 -0800 | [diff] [blame] | 823 | }, |
Mauro Carvalho Chehab | 45632c4 | 2005-11-08 21:38:15 -0800 | [diff] [blame] | 824 | [EM2820_BOARD_PINNACLE_DVC_90] = { |
Aurelien Jarno | aec2aef | 2007-12-17 13:49:17 -0300 | [diff] [blame] | 825 | .name = "Pinnacle Dazzle DVC 90/DVC 100", |
Mauro Carvalho Chehab | 45632c4 | 2005-11-08 21:38:15 -0800 | [diff] [blame] | 826 | .vchannels = 3, |
Mauro Carvalho Chehab | ed08631 | 2008-01-24 06:59:20 -0300 | [diff] [blame] | 827 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 828 | .decoder = EM28XX_SAA7113, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 829 | .input = { { |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 830 | .type = EM28XX_VMUX_COMPOSITE1, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 831 | .vmux = SAA7115_COMPOSITE0, |
Mauro Carvalho Chehab | 45632c4 | 2005-11-08 21:38:15 -0800 | [diff] [blame] | 832 | .amux = 1, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 833 | }, { |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 834 | .type = EM28XX_VMUX_SVIDEO, |
Hans Verkuil | c7c0b34 | 2006-04-02 13:35:00 -0300 | [diff] [blame] | 835 | .vmux = SAA7115_SVIDEO3, |
Mauro Carvalho Chehab | 45632c4 | 2005-11-08 21:38:15 -0800 | [diff] [blame] | 836 | .amux = 1, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 837 | } }, |
Mauro Carvalho Chehab | 45632c4 | 2005-11-08 21:38:15 -0800 | [diff] [blame] | 838 | }, |
Sascha Sommer | 4362559 | 2007-11-03 15:05:07 -0300 | [diff] [blame] | 839 | [EM2800_BOARD_VGEAR_POCKETTV] = { |
| 840 | .name = "V-Gear PocketTV", |
| 841 | .is_em2800 = 1, |
| 842 | .vchannels = 3, |
Sascha Sommer | 4362559 | 2007-11-03 15:05:07 -0300 | [diff] [blame] | 843 | .tuner_type = TUNER_LG_PAL_NEW_TAPC, |
| 844 | .tda9887_conf = TDA9887_PRESENT, |
Sascha Sommer | 4362559 | 2007-11-03 15:05:07 -0300 | [diff] [blame] | 845 | .decoder = EM28XX_SAA7113, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 846 | .input = { { |
Sascha Sommer | 4362559 | 2007-11-03 15:05:07 -0300 | [diff] [blame] | 847 | .type = EM28XX_VMUX_TELEVISION, |
| 848 | .vmux = SAA7115_COMPOSITE2, |
| 849 | .amux = 0, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 850 | }, { |
Sascha Sommer | 4362559 | 2007-11-03 15:05:07 -0300 | [diff] [blame] | 851 | .type = EM28XX_VMUX_COMPOSITE1, |
| 852 | .vmux = SAA7115_COMPOSITE0, |
| 853 | .amux = 1, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 854 | }, { |
Sascha Sommer | 4362559 | 2007-11-03 15:05:07 -0300 | [diff] [blame] | 855 | .type = EM28XX_VMUX_SVIDEO, |
| 856 | .vmux = SAA7115_SVIDEO3, |
| 857 | .amux = 1, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 858 | } }, |
Sascha Sommer | 4362559 | 2007-11-03 15:05:07 -0300 | [diff] [blame] | 859 | }, |
Mauro Carvalho Chehab | ea4fd56 | 2007-11-03 21:21:57 -0300 | [diff] [blame] | 860 | [EM2820_BOARD_PROLINK_PLAYTV_USB2] = { |
| 861 | .name = "Pixelview Prolink PlayTV USB 2.0", |
| 862 | .vchannels = 3, |
| 863 | .tda9887_conf = TDA9887_PRESENT, |
Mauro Carvalho Chehab | ed08631 | 2008-01-24 06:59:20 -0300 | [diff] [blame] | 864 | .tuner_type = TUNER_YMEC_TVF_5533MF, |
Mauro Carvalho Chehab | ea4fd56 | 2007-11-03 21:21:57 -0300 | [diff] [blame] | 865 | .decoder = EM28XX_SAA7113, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 866 | .input = { { |
Mauro Carvalho Chehab | ea4fd56 | 2007-11-03 21:21:57 -0300 | [diff] [blame] | 867 | .type = EM28XX_VMUX_TELEVISION, |
| 868 | .vmux = SAA7115_COMPOSITE2, |
Mauro Carvalho Chehab | 7463dda | 2008-02-05 22:29:26 -0300 | [diff] [blame] | 869 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 870 | }, { |
Mauro Carvalho Chehab | ea4fd56 | 2007-11-03 21:21:57 -0300 | [diff] [blame] | 871 | .type = EM28XX_VMUX_COMPOSITE1, |
| 872 | .vmux = SAA7115_COMPOSITE0, |
Mauro Carvalho Chehab | 7463dda | 2008-02-05 22:29:26 -0300 | [diff] [blame] | 873 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 874 | }, { |
Mauro Carvalho Chehab | ea4fd56 | 2007-11-03 21:21:57 -0300 | [diff] [blame] | 875 | .type = EM28XX_VMUX_SVIDEO, |
| 876 | .vmux = SAA7115_SVIDEO3, |
Mauro Carvalho Chehab | 7463dda | 2008-02-05 22:29:26 -0300 | [diff] [blame] | 877 | .amux = EM28XX_AMUX_LINE_IN, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 878 | } }, |
Mauro Carvalho Chehab | ea4fd56 | 2007-11-03 21:21:57 -0300 | [diff] [blame] | 879 | }, |
Devin Heitmueller | a9fc52b | 2008-06-28 08:57:06 -0300 | [diff] [blame] | 880 | [EM2860_BOARD_POINTNIX_INTRAORAL_CAMERA] = { |
| 881 | .name = "PointNix Intra-Oral Camera", |
| 882 | .has_snapshot_button = 1, |
| 883 | .vchannels = 1, |
| 884 | .tda9887_conf = TDA9887_PRESENT, |
| 885 | .tuner_type = TUNER_ABSENT, |
| 886 | .decoder = EM28XX_SAA7113, |
| 887 | .input = { { |
| 888 | .type = EM28XX_VMUX_SVIDEO, |
| 889 | .vmux = SAA7115_SVIDEO3, |
| 890 | .amux = 0, |
| 891 | } }, |
| 892 | }, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 893 | [EM2880_BOARD_MSI_DIGIVOX_AD] = { |
| 894 | .name = "MSI DigiVox A/D", |
| 895 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 896 | .vchannels = 3, |
| 897 | .tuner_type = TUNER_XC2028, |
| 898 | .decoder = EM28XX_TVP5150, |
| 899 | .input = { { |
| 900 | .type = EM28XX_VMUX_TELEVISION, |
| 901 | .vmux = TVP5150_COMPOSITE0, |
| 902 | .amux = 0, |
| 903 | }, { |
| 904 | .type = EM28XX_VMUX_COMPOSITE1, |
| 905 | .vmux = TVP5150_COMPOSITE1, |
| 906 | .amux = 1, |
| 907 | }, { |
| 908 | .type = EM28XX_VMUX_SVIDEO, |
| 909 | .vmux = TVP5150_SVIDEO, |
| 910 | .amux = 1, |
| 911 | } }, |
| 912 | }, |
| 913 | [EM2880_BOARD_MSI_DIGIVOX_AD_II] = { |
| 914 | .name = "MSI DigiVox A/D II", |
| 915 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 916 | .vchannels = 3, |
| 917 | .tuner_type = TUNER_XC2028, |
| 918 | .decoder = EM28XX_TVP5150, |
| 919 | .input = { { |
| 920 | .type = EM28XX_VMUX_TELEVISION, |
| 921 | .vmux = TVP5150_COMPOSITE0, |
| 922 | .amux = 0, |
| 923 | }, { |
| 924 | .type = EM28XX_VMUX_COMPOSITE1, |
| 925 | .vmux = TVP5150_COMPOSITE1, |
| 926 | .amux = 1, |
| 927 | }, { |
| 928 | .type = EM28XX_VMUX_SVIDEO, |
| 929 | .vmux = TVP5150_SVIDEO, |
| 930 | .amux = 1, |
| 931 | } }, |
| 932 | }, |
| 933 | [EM2880_BOARD_KWORLD_DVB_305U] = { |
| 934 | .name = "KWorld DVB-T 305U", |
| 935 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 936 | .vchannels = 3, |
| 937 | .tuner_type = TUNER_XC2028, |
| 938 | .decoder = EM28XX_TVP5150, |
| 939 | .input = { { |
| 940 | .type = EM28XX_VMUX_TELEVISION, |
| 941 | .vmux = TVP5150_COMPOSITE0, |
| 942 | .amux = 0, |
| 943 | }, { |
| 944 | .type = EM28XX_VMUX_COMPOSITE1, |
| 945 | .vmux = TVP5150_COMPOSITE1, |
| 946 | .amux = 1, |
| 947 | }, { |
| 948 | .type = EM28XX_VMUX_SVIDEO, |
| 949 | .vmux = TVP5150_SVIDEO, |
| 950 | .amux = 1, |
| 951 | } }, |
| 952 | }, |
| 953 | [EM2880_BOARD_KWORLD_DVB_310U] = { |
| 954 | .name = "KWorld DVB-T 310U", |
| 955 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 956 | .vchannels = 3, |
| 957 | .tuner_type = TUNER_XC2028, |
| 958 | .decoder = EM28XX_TVP5150, |
| 959 | .input = { { |
| 960 | .type = EM28XX_VMUX_TELEVISION, |
| 961 | .vmux = TVP5150_COMPOSITE0, |
| 962 | .amux = 0, |
| 963 | }, { |
| 964 | .type = EM28XX_VMUX_COMPOSITE1, |
| 965 | .vmux = TVP5150_COMPOSITE1, |
| 966 | .amux = 1, |
| 967 | }, { |
| 968 | .type = EM28XX_VMUX_SVIDEO, |
| 969 | .vmux = TVP5150_SVIDEO, |
| 970 | .amux = 1, |
| 971 | } }, |
| 972 | }, |
| 973 | [EM2881_BOARD_DNT_DA2_HYBRID] = { |
| 974 | .name = "DNT DA2 Hybrid", |
| 975 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 976 | .vchannels = 3, |
| 977 | .tuner_type = TUNER_XC2028, |
| 978 | .decoder = EM28XX_TVP5150, |
| 979 | .input = { { |
| 980 | .type = EM28XX_VMUX_TELEVISION, |
| 981 | .vmux = TVP5150_COMPOSITE0, |
| 982 | .amux = 0, |
| 983 | }, { |
| 984 | .type = EM28XX_VMUX_COMPOSITE1, |
| 985 | .vmux = TVP5150_COMPOSITE1, |
| 986 | .amux = 1, |
| 987 | }, { |
| 988 | .type = EM28XX_VMUX_SVIDEO, |
| 989 | .vmux = TVP5150_SVIDEO, |
| 990 | .amux = 1, |
| 991 | } }, |
| 992 | }, |
| 993 | [EM2881_BOARD_PINNACLE_HYBRID_PRO] = { |
| 994 | .name = "Pinnacle Hybrid Pro", |
| 995 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 996 | .vchannels = 3, |
| 997 | .tuner_type = TUNER_XC2028, |
| 998 | .decoder = EM28XX_TVP5150, |
| 999 | .input = { { |
| 1000 | .type = EM28XX_VMUX_TELEVISION, |
| 1001 | .vmux = TVP5150_COMPOSITE0, |
| 1002 | .amux = 0, |
| 1003 | }, { |
| 1004 | .type = EM28XX_VMUX_COMPOSITE1, |
| 1005 | .vmux = TVP5150_COMPOSITE1, |
| 1006 | .amux = 1, |
| 1007 | }, { |
| 1008 | .type = EM28XX_VMUX_SVIDEO, |
| 1009 | .vmux = TVP5150_SVIDEO, |
| 1010 | .amux = 1, |
| 1011 | } }, |
| 1012 | }, |
| 1013 | [EM2882_BOARD_PINNACLE_HYBRID_PRO] = { |
| 1014 | .name = "Pinnacle Hybrid Pro (2)", |
| 1015 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 1016 | .vchannels = 3, |
| 1017 | .tuner_type = TUNER_XC2028, |
| 1018 | .decoder = EM28XX_TVP5150, |
| 1019 | .input = { { |
| 1020 | .type = EM28XX_VMUX_TELEVISION, |
| 1021 | .vmux = TVP5150_COMPOSITE0, |
| 1022 | .amux = 0, |
| 1023 | }, { |
| 1024 | .type = EM28XX_VMUX_COMPOSITE1, |
| 1025 | .vmux = TVP5150_COMPOSITE1, |
| 1026 | .amux = 1, |
| 1027 | }, { |
| 1028 | .type = EM28XX_VMUX_SVIDEO, |
| 1029 | .vmux = TVP5150_SVIDEO, |
| 1030 | .amux = 1, |
| 1031 | } }, |
| 1032 | }, |
| 1033 | [EM2882_BOARD_KWORLD_VS_DVBT] = { |
| 1034 | .name = "Kworld VS-DVB-T 323UR", |
| 1035 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 1036 | .vchannels = 3, |
| 1037 | .tuner_type = TUNER_XC2028, |
| 1038 | .decoder = EM28XX_TVP5150, |
| 1039 | .input = { { |
| 1040 | .type = EM28XX_VMUX_TELEVISION, |
| 1041 | .vmux = TVP5150_COMPOSITE0, |
| 1042 | .amux = 0, |
| 1043 | }, { |
| 1044 | .type = EM28XX_VMUX_COMPOSITE1, |
| 1045 | .vmux = TVP5150_COMPOSITE1, |
| 1046 | .amux = 1, |
| 1047 | }, { |
| 1048 | .type = EM28XX_VMUX_SVIDEO, |
| 1049 | .vmux = TVP5150_SVIDEO, |
| 1050 | .amux = 1, |
| 1051 | } }, |
| 1052 | }, |
| 1053 | [EM2882_BOARD_TERRATEC_HYBRID_XS] = { |
| 1054 | .name = "Terratec Hybrid XS (em2882)", |
| 1055 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 1056 | .vchannels = 3, |
| 1057 | .tuner_type = TUNER_XC2028, |
| 1058 | .decoder = EM28XX_TVP5150, |
| 1059 | .input = { { |
| 1060 | .type = EM28XX_VMUX_TELEVISION, |
| 1061 | .vmux = TVP5150_COMPOSITE0, |
| 1062 | .amux = 0, |
| 1063 | }, { |
| 1064 | .type = EM28XX_VMUX_COMPOSITE1, |
| 1065 | .vmux = TVP5150_COMPOSITE1, |
| 1066 | .amux = 1, |
| 1067 | }, { |
| 1068 | .type = EM28XX_VMUX_SVIDEO, |
| 1069 | .vmux = TVP5150_SVIDEO, |
| 1070 | .amux = 1, |
| 1071 | } }, |
| 1072 | }, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1073 | [EM2883_BOARD_KWORLD_HYBRID_A316] = { |
| 1074 | .name = "Kworld PlusTV HD Hybrid 330", |
| 1075 | .valid = EM28XX_BOARD_NOT_VALIDATED, |
| 1076 | .vchannels = 3, |
| 1077 | .is_em2800 = 0, |
| 1078 | .tuner_type = TUNER_XC2028, |
| 1079 | .decoder = EM28XX_TVP5150, |
| 1080 | .input = { { |
| 1081 | .type = EM28XX_VMUX_TELEVISION, |
| 1082 | .vmux = TVP5150_COMPOSITE0, |
| 1083 | .amux = 0, |
| 1084 | }, { |
| 1085 | .type = EM28XX_VMUX_COMPOSITE1, |
| 1086 | .vmux = TVP5150_COMPOSITE1, |
| 1087 | .amux = 1, |
| 1088 | }, { |
| 1089 | .type = EM28XX_VMUX_SVIDEO, |
| 1090 | .vmux = TVP5150_SVIDEO, |
| 1091 | .amux = 1, |
| 1092 | } }, |
| 1093 | }, |
Mauro Carvalho Chehab | ee281b8 | 2008-07-27 16:58:04 -0300 | [diff] [blame^] | 1094 | [EM2820_BOARD_COMPRO_VIDEOMATE_FORYOU] = { |
Vitaly Wool | d360334 | 2008-07-27 14:10:11 -0300 | [diff] [blame] | 1095 | .name = "Compro VideoMate ForYou/Stereo", |
| 1096 | .vchannels = 2, |
| 1097 | .tuner_type = TUNER_LG_PAL_NEW_TAPC, |
| 1098 | .tda9887_conf = TDA9887_PRESENT, |
| 1099 | .decoder = EM28XX_TVP5150, |
| 1100 | .input = { { |
| 1101 | .type = EM28XX_VMUX_TELEVISION, |
| 1102 | .vmux = TVP5150_COMPOSITE0, |
| 1103 | .amux = EM28XX_AMUX_LINE_IN, |
| 1104 | }, { |
| 1105 | .type = EM28XX_VMUX_SVIDEO, |
| 1106 | .vmux = TVP5150_SVIDEO, |
| 1107 | .amux = EM28XX_AMUX_LINE_IN, |
| 1108 | } }, |
| 1109 | }, |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 1110 | }; |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 1111 | const unsigned int em28xx_bcount = ARRAY_SIZE(em28xx_boards); |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 1112 | |
| 1113 | /* table of devices that work with this driver */ |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 1114 | struct usb_device_id em28xx_id_table [] = { |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1115 | { USB_DEVICE(0xeb1a, 0x2750), |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1116 | .driver_info = EM2750_BOARD_UNKNOWN }, |
| 1117 | { USB_DEVICE(0xeb1a, 0x2751), |
| 1118 | .driver_info = EM2750_BOARD_UNKNOWN }, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1119 | { USB_DEVICE(0xeb1a, 0x2800), |
| 1120 | .driver_info = EM2800_BOARD_UNKNOWN }, |
| 1121 | { USB_DEVICE(0xeb1a, 0x2820), |
| 1122 | .driver_info = EM2820_BOARD_UNKNOWN }, |
| 1123 | { USB_DEVICE(0xeb1a, 0x2821), |
| 1124 | .driver_info = EM2820_BOARD_UNKNOWN }, |
| 1125 | { USB_DEVICE(0xeb1a, 0x2860), |
| 1126 | .driver_info = EM2820_BOARD_UNKNOWN }, |
| 1127 | { USB_DEVICE(0xeb1a, 0x2861), |
| 1128 | .driver_info = EM2820_BOARD_UNKNOWN }, |
| 1129 | { USB_DEVICE(0xeb1a, 0x2870), |
| 1130 | .driver_info = EM2820_BOARD_UNKNOWN }, |
| 1131 | { USB_DEVICE(0xeb1a, 0x2881), |
| 1132 | .driver_info = EM2820_BOARD_UNKNOWN }, |
| 1133 | { USB_DEVICE(0xeb1a, 0x2883), |
| 1134 | .driver_info = EM2820_BOARD_UNKNOWN }, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1135 | { USB_DEVICE(0xeb1a, 0xe300), |
| 1136 | .driver_info = EM2861_BOARD_KWORLD_PVRTV_300U }, |
| 1137 | { USB_DEVICE(0xeb1a, 0xe305), |
| 1138 | .driver_info = EM2880_BOARD_KWORLD_DVB_305U }, |
| 1139 | { USB_DEVICE(0xeb1a, 0xe310), |
| 1140 | .driver_info = EM2880_BOARD_MSI_DIGIVOX_AD }, |
| 1141 | { USB_DEVICE(0xeb1a, 0xa316), |
| 1142 | .driver_info = EM2883_BOARD_KWORLD_HYBRID_A316 }, |
| 1143 | { USB_DEVICE(0xeb1a, 0xe320), |
| 1144 | .driver_info = EM2880_BOARD_MSI_DIGIVOX_AD_II }, |
| 1145 | { USB_DEVICE(0xeb1a, 0xe323), |
| 1146 | .driver_info = EM2882_BOARD_KWORLD_VS_DVBT }, |
| 1147 | { USB_DEVICE(0xeb1a, 0xe350), |
| 1148 | .driver_info = EM2870_BOARD_KWORLD_350U }, |
| 1149 | { USB_DEVICE(0xeb1a, 0xe355), |
| 1150 | .driver_info = EM2870_BOARD_KWORLD_355U }, |
| 1151 | { USB_DEVICE(0xeb1a, 0x2801), |
| 1152 | .driver_info = EM2800_BOARD_GRABBEEX_USB2800 }, |
| 1153 | { USB_DEVICE(0xeb1a, 0xe357), |
| 1154 | .driver_info = EM2870_BOARD_KWORLD_355U }, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1155 | { USB_DEVICE(0x0ccd, 0x0036), |
| 1156 | .driver_info = EM2820_BOARD_TERRATEC_CINERGY_250 }, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1157 | { USB_DEVICE(0x0ccd, 0x004c), |
| 1158 | .driver_info = EM2880_BOARD_TERRATEC_HYBRID_XS_FR }, |
| 1159 | { USB_DEVICE(0x0ccd, 0x004f), |
| 1160 | .driver_info = EM2860_BOARD_TERRATEC_HYBRID_XS }, |
| 1161 | { USB_DEVICE(0x0ccd, 0x005e), |
| 1162 | .driver_info = EM2882_BOARD_TERRATEC_HYBRID_XS }, |
| 1163 | { USB_DEVICE(0x0ccd, 0x0042), |
| 1164 | .driver_info = EM2880_BOARD_TERRATEC_HYBRID_XS }, |
| 1165 | { USB_DEVICE(0x0ccd, 0x0043), |
| 1166 | .driver_info = EM2870_BOARD_TERRATEC_XS }, |
| 1167 | { USB_DEVICE(0x0ccd, 0x0047), |
| 1168 | .driver_info = EM2880_BOARD_TERRATEC_PRODIGY_XS }, |
| 1169 | { USB_DEVICE(0x185b, 0x2870), |
| 1170 | .driver_info = EM2870_BOARD_COMPRO_VIDEOMATE }, |
Vitaly Wool | d360334 | 2008-07-27 14:10:11 -0300 | [diff] [blame] | 1171 | { USB_DEVICE(0x185b, 0x2041), |
Mauro Carvalho Chehab | ee281b8 | 2008-07-27 16:58:04 -0300 | [diff] [blame^] | 1172 | .driver_info = EM2820_BOARD_COMPRO_VIDEOMATE_FORYOU }, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1173 | { USB_DEVICE(0x2040, 0x4200), |
| 1174 | .driver_info = EM2820_BOARD_HAUPPAUGE_WINTV_USB_2 }, |
Mauro Carvalho Chehab | 15b9bec | 2008-01-13 12:02:20 -0300 | [diff] [blame] | 1175 | { USB_DEVICE(0x2040, 0x4201), |
| 1176 | .driver_info = EM2820_BOARD_HAUPPAUGE_WINTV_USB_2 }, |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1177 | { USB_DEVICE(0x2040, 0x6500), |
| 1178 | .driver_info = EM2880_BOARD_HAUPPAUGE_WINTV_HVR_900 }, |
Luc Saillard | 427d20c | 2008-01-30 17:23:00 -0300 | [diff] [blame] | 1179 | { USB_DEVICE(0x2040, 0x6502), |
Devin Heitmueller | 17d9d55 | 2008-06-08 10:22:03 -0300 | [diff] [blame] | 1180 | .driver_info = EM2880_BOARD_HAUPPAUGE_WINTV_HVR_900_R2 }, |
Michael Krufky | 74ee051 | 2008-05-01 18:02:30 -0300 | [diff] [blame] | 1181 | { USB_DEVICE(0x2040, 0x6513), /* HCW HVR-980 */ |
Mauro Carvalho Chehab | 10ac660 | 2008-07-27 14:58:58 -0300 | [diff] [blame] | 1182 | .driver_info = EM2883_BOARD_HAUPPAUGE_WINTV_HVR_950 }, |
Michael Krufky | 74ee051 | 2008-05-01 18:02:30 -0300 | [diff] [blame] | 1183 | { USB_DEVICE(0x2040, 0x6517), /* HP HVR-950 */ |
Mauro Carvalho Chehab | 10ac660 | 2008-07-27 14:58:58 -0300 | [diff] [blame] | 1184 | .driver_info = EM2883_BOARD_HAUPPAUGE_WINTV_HVR_950 }, |
Michael Krufky | 74ee051 | 2008-05-01 18:02:30 -0300 | [diff] [blame] | 1185 | { USB_DEVICE(0x2040, 0x651b), /* RP HVR-950 */ |
Mauro Carvalho Chehab | 10ac660 | 2008-07-27 14:58:58 -0300 | [diff] [blame] | 1186 | .driver_info = EM2883_BOARD_HAUPPAUGE_WINTV_HVR_950 }, |
Michael Krufky | 74ee051 | 2008-05-01 18:02:30 -0300 | [diff] [blame] | 1187 | { USB_DEVICE(0x2040, 0x651f), /* HCW HVR-850 */ |
Mauro Carvalho Chehab | 10ac660 | 2008-07-27 14:58:58 -0300 | [diff] [blame] | 1188 | .driver_info = EM2883_BOARD_HAUPPAUGE_WINTV_HVR_950 }, |
Devin Heitmueller | e14b365 | 2008-07-26 11:04:33 -0300 | [diff] [blame] | 1189 | { USB_DEVICE(0x0438, 0xb002), |
| 1190 | .driver_info = EM2880_BOARD_AMD_ATI_TV_WONDER_HD_600 }, |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1191 | { USB_DEVICE(0x2001, 0xf112), |
| 1192 | .driver_info = EM2820_BOARD_DLINK_USB_TV }, |
| 1193 | { USB_DEVICE(0x2304, 0x0207), |
| 1194 | .driver_info = EM2820_BOARD_PINNACLE_DVC_90 }, |
| 1195 | { USB_DEVICE(0x2304, 0x0208), |
| 1196 | .driver_info = EM2820_BOARD_PINNACLE_USB_2 }, |
| 1197 | { USB_DEVICE(0x2304, 0x021a), |
| 1198 | .driver_info = EM2820_BOARD_PINNACLE_DVC_90 }, |
| 1199 | { USB_DEVICE(0x2304, 0x0226), |
| 1200 | .driver_info = EM2882_BOARD_PINNACLE_HYBRID_PRO }, |
| 1201 | { USB_DEVICE(0x2304, 0x0227), |
| 1202 | .driver_info = EM2880_BOARD_PINNACLE_PCTV_HD_PRO }, |
| 1203 | { USB_DEVICE(0x0413, 0x6023), |
| 1204 | .driver_info = EM2800_BOARD_LEADTEK_WINFAST_USBII }, |
| 1205 | { USB_DEVICE(0x093b, 0xa005), |
| 1206 | .driver_info = EM2861_BOARD_PLEXTOR_PX_TV100U }, |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 1207 | { }, |
| 1208 | }; |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1209 | MODULE_DEVICE_TABLE(usb, em28xx_id_table); |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 1210 | |
Mauro Carvalho Chehab | 102a0b0 | 2008-04-17 21:40:45 -0300 | [diff] [blame] | 1211 | /* |
| 1212 | * Reset sequences for analog/digital modes |
| 1213 | */ |
| 1214 | |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1215 | /* Reset for the most [analog] boards */ |
| 1216 | static struct em28xx_reg_seq default_analog[] = { |
| 1217 | {EM28XX_R08_GPIO, 0x6d, ~EM_GPIO_4, 10}, |
| 1218 | { -1, -1, -1, -1}, |
| 1219 | }; |
| 1220 | |
| 1221 | /* Reset for the most [digital] boards */ |
| 1222 | static struct em28xx_reg_seq default_digital[] = { |
| 1223 | {EM28XX_R08_GPIO, 0x6e, ~EM_GPIO_4, 10}, |
| 1224 | { -1, -1, -1, -1}, |
| 1225 | }; |
| 1226 | |
Mauro Carvalho Chehab | 102a0b0 | 2008-04-17 21:40:45 -0300 | [diff] [blame] | 1227 | /* Board Hauppauge WinTV HVR 900 analog */ |
Mauro Carvalho Chehab | e54318e | 2008-04-18 18:34:31 -0300 | [diff] [blame] | 1228 | static struct em28xx_reg_seq hauppauge_wintv_hvr_900_analog[] = { |
Mauro Carvalho Chehab | c67ec53 | 2008-04-17 21:48:00 -0300 | [diff] [blame] | 1229 | {EM28XX_R08_GPIO, 0x2d, ~EM_GPIO_4, 10}, |
| 1230 | {0x05, 0xff, 0x10, 10}, |
| 1231 | { -1, -1, -1, -1}, |
Mauro Carvalho Chehab | 102a0b0 | 2008-04-17 21:40:45 -0300 | [diff] [blame] | 1232 | }; |
Mauro Carvalho Chehab | c67ec53 | 2008-04-17 21:48:00 -0300 | [diff] [blame] | 1233 | |
Mauro Carvalho Chehab | 102a0b0 | 2008-04-17 21:40:45 -0300 | [diff] [blame] | 1234 | /* Board Hauppauge WinTV HVR 900 digital */ |
Mauro Carvalho Chehab | e54318e | 2008-04-18 18:34:31 -0300 | [diff] [blame] | 1235 | static struct em28xx_reg_seq hauppauge_wintv_hvr_900_digital[] = { |
Mauro Carvalho Chehab | c67ec53 | 2008-04-17 21:48:00 -0300 | [diff] [blame] | 1236 | {EM28XX_R08_GPIO, 0x2e, ~EM_GPIO_4, 10}, |
| 1237 | {EM2880_R04_GPO, 0x04, 0x0f, 10}, |
| 1238 | {EM2880_R04_GPO, 0x0c, 0x0f, 10}, |
| 1239 | { -1, -1, -1, -1}, |
| 1240 | }; |
| 1241 | |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1242 | /* Boards - EM2880 MSI DIGIVOX AD and EM2880_BOARD_MSI_DIGIVOX_AD_II */ |
| 1243 | static struct em28xx_reg_seq em2880_msi_digivox_ad_analog[] = { |
| 1244 | {EM28XX_R08_GPIO, 0x69, ~EM_GPIO_4, 10}, |
| 1245 | { -1, -1, -1, -1}, |
| 1246 | }; |
| 1247 | |
| 1248 | /* Boards - EM2880 MSI DIGIVOX AD and EM2880_BOARD_MSI_DIGIVOX_AD_II */ |
| 1249 | static struct em28xx_reg_seq em2880_msi_digivox_ad_digital[] = { |
| 1250 | {EM28XX_R08_GPIO, 0x6a, ~EM_GPIO_4, 10}, |
| 1251 | { -1, -1, -1, -1}, |
| 1252 | }; |
| 1253 | |
| 1254 | /* Board - EM2870 Kworld 355u |
| 1255 | Analog - No input analog */ |
| 1256 | static struct em28xx_reg_seq em2870_kworld_355u_digital[] = { |
| 1257 | {EM2880_R04_GPO, 0x01, 0xff, 10}, |
| 1258 | { -1, -1, -1, -1}, |
| 1259 | }; |
| 1260 | |
| 1261 | /* Callback for the most boards */ |
| 1262 | static struct em28xx_reg_seq default_callback[] = { |
Mauro Carvalho Chehab | c67ec53 | 2008-04-17 21:48:00 -0300 | [diff] [blame] | 1263 | {EM28XX_R08_GPIO, EM_GPIO_4, EM_GPIO_4, 10}, |
| 1264 | {EM28XX_R08_GPIO, 0, EM_GPIO_4, 10}, |
| 1265 | {EM28XX_R08_GPIO, EM_GPIO_4, EM_GPIO_4, 10}, |
| 1266 | { -1, -1, -1, -1}, |
Mauro Carvalho Chehab | 102a0b0 | 2008-04-17 21:40:45 -0300 | [diff] [blame] | 1267 | }; |
| 1268 | |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1269 | /* Callback for EM2882 TERRATEC HYBRID XS */ |
| 1270 | static struct em28xx_reg_seq em2882_terratec_hybrid_xs_digital[] = { |
| 1271 | {EM28XX_R08_GPIO, 0x2e, 0xff, 6}, |
| 1272 | {EM28XX_R08_GPIO, 0x3e, ~EM_GPIO_4, 6}, |
| 1273 | {EM2880_R04_GPO, 0x04, 0xff, 10}, |
| 1274 | {EM2880_R04_GPO, 0x0c, 0xff, 10}, |
| 1275 | { -1, -1, -1, -1}, |
| 1276 | }; |
| 1277 | |
Mauro Carvalho Chehab | 102a0b0 | 2008-04-17 21:40:45 -0300 | [diff] [blame] | 1278 | /* |
| 1279 | * EEPROM hash table for devices with generic USB IDs |
| 1280 | */ |
Mauro Carvalho Chehab | d2ba055 | 2007-11-04 08:32:42 -0300 | [diff] [blame] | 1281 | static struct em28xx_hash_table em28xx_eeprom_hash [] = { |
Mauro Carvalho Chehab | ea4fd56 | 2007-11-03 21:21:57 -0300 | [diff] [blame] | 1282 | /* P/N: SA 60002070465 Tuner: TVF7533-MF */ |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1283 | {0x6ce05a8f, EM2820_BOARD_PROLINK_PLAYTV_USB2, TUNER_YMEC_TVF_5533MF}, |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 1284 | }; |
| 1285 | |
Mauro Carvalho Chehab | d2ba055 | 2007-11-04 08:32:42 -0300 | [diff] [blame] | 1286 | /* I2C devicelist hash table for devices with generic USB IDs */ |
Sascha Sommer | fad7b95 | 2007-11-04 08:06:48 -0300 | [diff] [blame] | 1287 | static struct em28xx_hash_table em28xx_i2c_hash[] = { |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1288 | {0xb06a32c3, EM2800_BOARD_TERRATEC_CINERGY_200, TUNER_LG_PAL_NEW_TAPC}, |
| 1289 | {0xf51200e3, EM2800_BOARD_VGEAR_POCKETTV, TUNER_LG_PAL_NEW_TAPC}, |
Devin Heitmueller | a9fc52b | 2008-06-28 08:57:06 -0300 | [diff] [blame] | 1290 | {0x1ba50080, EM2860_BOARD_POINTNIX_INTRAORAL_CAMERA, TUNER_ABSENT}, |
Sascha Sommer | fad7b95 | 2007-11-04 08:06:48 -0300 | [diff] [blame] | 1291 | }; |
| 1292 | |
Mauro Carvalho Chehab | ee6e3a8 | 2008-04-17 21:37:31 -0300 | [diff] [blame] | 1293 | int em28xx_tuner_callback(void *ptr, int command, int arg) |
| 1294 | { |
Mauro Carvalho Chehab | 102a0b0 | 2008-04-17 21:40:45 -0300 | [diff] [blame] | 1295 | int rc = 0; |
Mauro Carvalho Chehab | ee6e3a8 | 2008-04-17 21:37:31 -0300 | [diff] [blame] | 1296 | struct em28xx *dev = ptr; |
Mauro Carvalho Chehab | ee6e3a8 | 2008-04-17 21:37:31 -0300 | [diff] [blame] | 1297 | |
| 1298 | if (dev->tuner_type != TUNER_XC2028) |
| 1299 | return 0; |
| 1300 | |
| 1301 | if (command != XC2028_TUNER_RESET) |
| 1302 | return 0; |
| 1303 | |
| 1304 | if (dev->mode == EM28XX_ANALOG_MODE) |
Mauro Carvalho Chehab | c67ec53 | 2008-04-17 21:48:00 -0300 | [diff] [blame] | 1305 | rc = em28xx_gpio_set(dev, dev->tun_analog_gpio); |
Mauro Carvalho Chehab | ee6e3a8 | 2008-04-17 21:37:31 -0300 | [diff] [blame] | 1306 | else |
Mauro Carvalho Chehab | c67ec53 | 2008-04-17 21:48:00 -0300 | [diff] [blame] | 1307 | rc = em28xx_gpio_set(dev, dev->tun_digital_gpio); |
Mauro Carvalho Chehab | ee6e3a8 | 2008-04-17 21:37:31 -0300 | [diff] [blame] | 1308 | |
Mauro Carvalho Chehab | ee6e3a8 | 2008-04-17 21:37:31 -0300 | [diff] [blame] | 1309 | return rc; |
| 1310 | } |
| 1311 | EXPORT_SYMBOL_GPL(em28xx_tuner_callback); |
| 1312 | |
| 1313 | static void em28xx_set_model(struct em28xx *dev) |
| 1314 | { |
| 1315 | dev->is_em2800 = em28xx_boards[dev->model].is_em2800; |
| 1316 | dev->has_msp34xx = em28xx_boards[dev->model].has_msp34xx; |
| 1317 | dev->tda9887_conf = em28xx_boards[dev->model].tda9887_conf; |
| 1318 | dev->decoder = em28xx_boards[dev->model].decoder; |
| 1319 | dev->video_inputs = em28xx_boards[dev->model].vchannels; |
| 1320 | dev->has_12mhz_i2s = em28xx_boards[dev->model].has_12mhz_i2s; |
| 1321 | dev->max_range_640_480 = em28xx_boards[dev->model].max_range_640_480; |
| 1322 | dev->has_dvb = em28xx_boards[dev->model].has_dvb; |
Devin Heitmueller | a9fc52b | 2008-06-28 08:57:06 -0300 | [diff] [blame] | 1323 | dev->has_snapshot_button = em28xx_boards[dev->model].has_snapshot_button; |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1324 | dev->valid = em28xx_boards[dev->model].valid; |
Mauro Carvalho Chehab | ee6e3a8 | 2008-04-17 21:37:31 -0300 | [diff] [blame] | 1325 | } |
| 1326 | |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 1327 | /* Since em28xx_pre_card_setup() requires a proper dev->model, |
| 1328 | * this won't work for boards with generic PCI IDs |
| 1329 | */ |
Markus Rechberger | a94e95b | 2006-01-23 17:11:10 -0200 | [diff] [blame] | 1330 | void em28xx_pre_card_setup(struct em28xx *dev) |
| 1331 | { |
Mauro Carvalho Chehab | 89b329e | 2008-04-17 21:42:14 -0300 | [diff] [blame] | 1332 | int rc; |
| 1333 | |
Mauro Carvalho Chehab | c67ec53 | 2008-04-17 21:48:00 -0300 | [diff] [blame] | 1334 | rc = em28xx_read_reg(dev, EM2880_R04_GPO); |
| 1335 | if (rc >= 0) |
| 1336 | dev->reg_gpo = rc; |
| 1337 | |
Mauro Carvalho Chehab | 89b329e | 2008-04-17 21:42:14 -0300 | [diff] [blame] | 1338 | dev->wait_after_write = 5; |
Mauro Carvalho Chehab | 41facaa | 2008-04-17 21:44:58 -0300 | [diff] [blame] | 1339 | rc = em28xx_read_reg(dev, EM28XX_R0A_CHIPID); |
Mauro Carvalho Chehab | 89b329e | 2008-04-17 21:42:14 -0300 | [diff] [blame] | 1340 | if (rc > 0) { |
| 1341 | switch (rc) { |
Devin Heitmueller | a8a1f8c | 2008-06-10 12:35:42 -0300 | [diff] [blame] | 1342 | case CHIP_ID_EM2860: |
| 1343 | em28xx_info("chip ID is em2860\n"); |
| 1344 | break; |
Mauro Carvalho Chehab | 2ba890e | 2008-04-17 21:42:58 -0300 | [diff] [blame] | 1345 | case CHIP_ID_EM2883: |
Mauro Carvalho Chehab | 89b329e | 2008-04-17 21:42:14 -0300 | [diff] [blame] | 1346 | em28xx_info("chip ID is em2882/em2883\n"); |
| 1347 | dev->wait_after_write = 0; |
| 1348 | break; |
| 1349 | default: |
| 1350 | em28xx_info("em28xx chip ID = %d\n", rc); |
| 1351 | } |
| 1352 | } |
Mauro Carvalho Chehab | ee6e3a8 | 2008-04-17 21:37:31 -0300 | [diff] [blame] | 1353 | em28xx_set_model(dev); |
| 1354 | |
Markus Rechberger | a94e95b | 2006-01-23 17:11:10 -0200 | [diff] [blame] | 1355 | /* request some modules */ |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1356 | switch (dev->model) { |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 1357 | case EM2880_BOARD_TERRATEC_PRODIGY_XS: |
| 1358 | case EM2880_BOARD_HAUPPAUGE_WINTV_HVR_900: |
Devin Heitmueller | 17d9d55 | 2008-06-08 10:22:03 -0300 | [diff] [blame] | 1359 | case EM2880_BOARD_HAUPPAUGE_WINTV_HVR_900_R2: |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1360 | case EM2860_BOARD_TERRATEC_HYBRID_XS: |
Mauro Carvalho Chehab | 10ac660 | 2008-07-27 14:58:58 -0300 | [diff] [blame] | 1361 | case EM2883_BOARD_HAUPPAUGE_WINTV_HVR_950: |
Devin Heitmueller | 4fd305b | 2008-06-04 13:43:46 -0300 | [diff] [blame] | 1362 | case EM2880_BOARD_PINNACLE_PCTV_HD_PRO: |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1363 | case EM2882_BOARD_PINNACLE_HYBRID_PRO: |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1364 | case EM2883_BOARD_KWORLD_HYBRID_A316: |
Devin Heitmueller | e14b365 | 2008-07-26 11:04:33 -0300 | [diff] [blame] | 1365 | case EM2880_BOARD_AMD_ATI_TV_WONDER_HD_600: |
Mauro Carvalho Chehab | c67ec53 | 2008-04-17 21:48:00 -0300 | [diff] [blame] | 1366 | em28xx_write_regs(dev, EM28XX_R0F_XCLK, "\x27", 1); |
Mauro Carvalho Chehab | 41facaa | 2008-04-17 21:44:58 -0300 | [diff] [blame] | 1367 | em28xx_write_regs(dev, EM28XX_R06_I2C_CLK, "\x40", 1); |
Mauro Carvalho Chehab | 102a0b0 | 2008-04-17 21:40:45 -0300 | [diff] [blame] | 1368 | msleep(50); |
Markus Rechberger | a94e95b | 2006-01-23 17:11:10 -0200 | [diff] [blame] | 1369 | |
Mauro Carvalho Chehab | c67ec53 | 2008-04-17 21:48:00 -0300 | [diff] [blame] | 1370 | /* Sets GPO/GPIO sequences for this device */ |
| 1371 | dev->analog_gpio = hauppauge_wintv_hvr_900_analog; |
| 1372 | dev->digital_gpio = hauppauge_wintv_hvr_900_digital; |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1373 | dev->tun_analog_gpio = default_callback; |
| 1374 | dev->tun_digital_gpio = default_callback; |
| 1375 | break; |
Mauro Carvalho Chehab | 102a0b0 | 2008-04-17 21:40:45 -0300 | [diff] [blame] | 1376 | |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1377 | case EM2882_BOARD_TERRATEC_HYBRID_XS: |
| 1378 | em28xx_write_regs(dev, EM28XX_R0F_XCLK, "\x27", 1); |
| 1379 | em28xx_write_regs(dev, EM28XX_R06_I2C_CLK, "\x40", 1); |
| 1380 | msleep(50); |
| 1381 | |
| 1382 | /* should be added ir_codes here */ |
| 1383 | |
| 1384 | /* Sets GPO/GPIO sequences for this device */ |
| 1385 | dev->analog_gpio = hauppauge_wintv_hvr_900_analog; |
| 1386 | dev->digital_gpio = hauppauge_wintv_hvr_900_digital; |
| 1387 | dev->tun_analog_gpio = default_callback; |
| 1388 | dev->tun_digital_gpio = em2882_terratec_hybrid_xs_digital; |
| 1389 | break; |
| 1390 | |
| 1391 | case EM2880_BOARD_TERRATEC_HYBRID_XS_FR: |
| 1392 | case EM2880_BOARD_TERRATEC_HYBRID_XS: |
| 1393 | case EM2870_BOARD_TERRATEC_XS: |
| 1394 | case EM2881_BOARD_PINNACLE_HYBRID_PRO: |
| 1395 | case EM2880_BOARD_KWORLD_DVB_310U: |
| 1396 | case EM2870_BOARD_KWORLD_350U: |
| 1397 | case EM2881_BOARD_DNT_DA2_HYBRID: |
| 1398 | em28xx_write_regs(dev, EM28XX_R0F_XCLK, "\x27", 1); |
| 1399 | em28xx_write_regs(dev, EM28XX_R06_I2C_CLK, "\x40", 1); |
| 1400 | msleep(50); |
| 1401 | |
| 1402 | /* NOTE: EM2881_DNT_DA2_HYBRID spend 140 msleep for digital |
| 1403 | and analog commands. If this commands doesn't work, |
| 1404 | add this timer. */ |
| 1405 | |
| 1406 | /* Sets GPO/GPIO sequences for this device */ |
| 1407 | dev->analog_gpio = default_analog; |
| 1408 | dev->digital_gpio = default_digital; |
| 1409 | dev->tun_analog_gpio = default_callback; |
| 1410 | dev->tun_digital_gpio = default_callback; |
| 1411 | break; |
| 1412 | |
| 1413 | case EM2880_BOARD_MSI_DIGIVOX_AD: |
| 1414 | case EM2880_BOARD_MSI_DIGIVOX_AD_II: |
| 1415 | em28xx_write_regs(dev, EM28XX_R0F_XCLK, "\x27", 1); |
| 1416 | em28xx_write_regs(dev, EM28XX_R06_I2C_CLK, "\x40", 1); |
| 1417 | msleep(50); |
| 1418 | |
| 1419 | /* Sets GPO/GPIO sequences for this device */ |
| 1420 | dev->analog_gpio = em2880_msi_digivox_ad_analog; |
| 1421 | dev->digital_gpio = em2880_msi_digivox_ad_digital; |
| 1422 | dev->tun_analog_gpio = default_callback; |
| 1423 | dev->tun_digital_gpio = default_callback; |
| 1424 | break; |
| 1425 | |
| 1426 | case EM2750_BOARD_UNKNOWN: |
| 1427 | case EM2750_BOARD_DLCW_130: |
| 1428 | em28xx_write_regs(dev, EM28XX_R0F_XCLK, "\x0a", 1); |
| 1429 | break; |
| 1430 | |
| 1431 | case EM2861_BOARD_PLEXTOR_PX_TV100U: |
| 1432 | em28xx_write_regs(dev, EM28XX_R0F_XCLK, "\x27", 1); |
| 1433 | em28xx_write_regs(dev, EM28XX_R06_I2C_CLK, "\x40", 1); |
| 1434 | /* FIXME guess */ |
| 1435 | /* Turn on analog audio output */ |
| 1436 | em28xx_write_regs_req(dev, 0x00, 0x08, "\xfd", 1); |
| 1437 | break; |
| 1438 | |
| 1439 | case EM2861_BOARD_KWORLD_PVRTV_300U: |
| 1440 | case EM2880_BOARD_KWORLD_DVB_305U: |
| 1441 | em28xx_write_regs(dev, EM28XX_R0F_XCLK, "\x27", 1); |
| 1442 | em28xx_write_regs(dev, EM28XX_R06_I2C_CLK, "\x4c", 1); |
| 1443 | msleep(10); |
| 1444 | em28xx_write_regs(dev, 0x08, "\x6d", 1); |
| 1445 | msleep(10); |
| 1446 | em28xx_write_regs(dev, 0x08, "\x7d", 1); |
| 1447 | msleep(10); |
| 1448 | break; |
| 1449 | |
| 1450 | case EM2870_BOARD_KWORLD_355U: |
| 1451 | em28xx_write_regs(dev, EM28XX_R0F_XCLK, "\x27", 1); |
| 1452 | em28xx_write_regs(dev, EM28XX_R06_I2C_CLK, "\x40", 1); |
| 1453 | msleep(50); |
| 1454 | |
| 1455 | /* Sets GPO/GPIO sequences for this device */ |
| 1456 | dev->digital_gpio = em2870_kworld_355u_digital; |
| 1457 | break; |
| 1458 | |
| 1459 | case EM2870_BOARD_COMPRO_VIDEOMATE: |
| 1460 | em28xx_write_regs(dev, EM28XX_R0F_XCLK, "\x27", 1); |
| 1461 | em28xx_write_regs(dev, EM28XX_R06_I2C_CLK, "\x40", 1); |
| 1462 | /* TODO: someone can do some cleanup here... |
| 1463 | not everything's needed */ |
| 1464 | em28xx_write_regs(dev, 0x04, "\x00", 1); |
| 1465 | msleep(10); |
| 1466 | em28xx_write_regs(dev, 0x04, "\x01", 1); |
| 1467 | msleep(10); |
| 1468 | em28xx_write_regs(dev, 0x08, "\xfd", 1); |
| 1469 | mdelay(70); |
| 1470 | em28xx_write_regs(dev, 0x08, "\xfc", 1); |
| 1471 | mdelay(70); |
| 1472 | em28xx_write_regs(dev, 0x08, "\xdc", 1); |
| 1473 | mdelay(70); |
| 1474 | em28xx_write_regs(dev, 0x08, "\xfc", 1); |
| 1475 | mdelay(70); |
| 1476 | break; |
| 1477 | |
| 1478 | case EM2870_BOARD_TERRATEC_XS_MT2060: |
| 1479 | em28xx_write_regs(dev, EM28XX_R0F_XCLK, "\x27", 1); |
| 1480 | em28xx_write_regs(dev, EM28XX_R06_I2C_CLK, "\x40", 1); |
| 1481 | /* this device needs some gpio writes to get the DVB-T |
| 1482 | demod work */ |
| 1483 | em28xx_write_regs(dev, 0x08, "\xfe", 1); |
| 1484 | mdelay(70); |
| 1485 | em28xx_write_regs(dev, 0x08, "\xde", 1); |
| 1486 | mdelay(70); |
| 1487 | dev->em28xx_write_regs(dev, 0x08, "\xfe", 1); |
| 1488 | mdelay(70); |
| 1489 | break; |
| 1490 | |
| 1491 | case EM2870_BOARD_PINNACLE_PCTV_DVB: |
| 1492 | em28xx_write_regs(dev, EM28XX_R06_I2C_CLK, "\x40", 1); |
| 1493 | /* this device needs some gpio writes to get the |
| 1494 | DVB-T demod work */ |
| 1495 | em28xx_write_regs(dev, 0x08, "\xfe", 1); |
| 1496 | mdelay(70); |
| 1497 | em28xx_write_regs(dev, 0x08, "\xde", 1); |
| 1498 | mdelay(70); |
| 1499 | em28xx_write_regs(dev, 0x08, "\xfe", 1); |
| 1500 | mdelay(70); |
| 1501 | /* switch em2880 rc protocol */ |
| 1502 | em28xx_write_regs(dev, EM28XX_R0F_XCLK, "\x22", 1); |
| 1503 | /* should be added ir_codes here */ |
| 1504 | break; |
| 1505 | |
| 1506 | case EM2820_BOARD_GADMEI_UTV310: |
| 1507 | em28xx_write_regs(dev, EM28XX_R0F_XCLK, "\x27", 1); |
| 1508 | em28xx_write_regs(dev, EM28XX_R06_I2C_CLK, "\x40", 1); |
| 1509 | /* Turn on analog audio output */ |
| 1510 | em28xx_write_regs_req(dev, 0x00, 0x08, "\xfd", 1); |
| 1511 | break; |
| 1512 | |
| 1513 | case EM2860_BOARD_GADMEI_UTV330: |
| 1514 | /* Turn on IR */ |
| 1515 | em28xx_write_regs(dev, EM28XX_R0F_XCLK, "\x07", 1); |
| 1516 | em28xx_write_regs(dev, EM28XX_R06_I2C_CLK, "\x40", 1); |
| 1517 | /* should be added ir_codes here */ |
| 1518 | break; |
| 1519 | |
| 1520 | case EM2820_BOARD_MSI_VOX_USB_2: |
| 1521 | em28xx_write_regs(dev, EM28XX_R0F_XCLK, "\x27", 1); |
| 1522 | em28xx_write_regs(dev, EM28XX_R06_I2C_CLK, "\x40", 1); |
| 1523 | /* enables audio for that device */ |
| 1524 | em28xx_write_regs_req(dev, 0x00, 0x08, "\xfd", 1); |
Mauro Carvalho Chehab | 102a0b0 | 2008-04-17 21:40:45 -0300 | [diff] [blame] | 1525 | break; |
| 1526 | } |
Mauro Carvalho Chehab | c67ec53 | 2008-04-17 21:48:00 -0300 | [diff] [blame] | 1527 | |
| 1528 | em28xx_gpio_set(dev, dev->tun_analog_gpio); |
| 1529 | em28xx_set_mode(dev, EM28XX_ANALOG_MODE); |
| 1530 | |
| 1531 | /* Unlock device */ |
| 1532 | em28xx_set_mode(dev, EM28XX_MODE_UNDEFINED); |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 1533 | } |
| 1534 | |
Mauro Carvalho Chehab | e54318e | 2008-04-18 18:34:31 -0300 | [diff] [blame] | 1535 | static void em28xx_setup_xc3028(struct em28xx *dev, struct xc2028_ctrl *ctl) |
Mauro Carvalho Chehab | 3ca9c09 | 2008-04-17 21:37:53 -0300 | [diff] [blame] | 1536 | { |
| 1537 | memset(ctl, 0, sizeof(*ctl)); |
| 1538 | |
| 1539 | ctl->fname = XC2028_DEFAULT_FIRMWARE; |
| 1540 | ctl->max_len = 64; |
| 1541 | ctl->mts = em28xx_boards[dev->model].mts_firmware; |
| 1542 | |
| 1543 | switch (dev->model) { |
Mauro Carvalho Chehab | e77ebda | 2008-04-18 18:37:25 -0300 | [diff] [blame] | 1544 | case EM2880_BOARD_HAUPPAUGE_WINTV_HVR_900: |
| 1545 | ctl->demod = XC3028_FE_ZARLINK456; |
| 1546 | break; |
reinhard schwab | 655b840 | 2008-07-26 10:47:00 -0300 | [diff] [blame] | 1547 | case EM2880_BOARD_TERRATEC_HYBRID_XS: |
| 1548 | ctl->demod = XC3028_FE_ZARLINK456; |
| 1549 | break; |
Devin Heitmueller | 17d9d55 | 2008-06-08 10:22:03 -0300 | [diff] [blame] | 1550 | case EM2880_BOARD_HAUPPAUGE_WINTV_HVR_900_R2: |
| 1551 | /* djh - Not sure which demod we need here */ |
| 1552 | ctl->demod = XC3028_FE_DEFAULT; |
| 1553 | break; |
Mauro Carvalho Chehab | 10ac660 | 2008-07-27 14:58:58 -0300 | [diff] [blame] | 1554 | case EM2883_BOARD_HAUPPAUGE_WINTV_HVR_950: |
Devin Heitmueller | 4fd305b | 2008-06-04 13:43:46 -0300 | [diff] [blame] | 1555 | case EM2880_BOARD_PINNACLE_PCTV_HD_PRO: |
Devin Heitmueller | e14b365 | 2008-07-26 11:04:33 -0300 | [diff] [blame] | 1556 | case EM2880_BOARD_AMD_ATI_TV_WONDER_HD_600: |
Mauro Carvalho Chehab | e77ebda | 2008-04-18 18:37:25 -0300 | [diff] [blame] | 1557 | /* FIXME: Better to specify the needed IF */ |
Devin Heitmueller | bdfbf95 | 2008-04-17 21:38:27 -0300 | [diff] [blame] | 1558 | ctl->demod = XC3028_FE_DEFAULT; |
| 1559 | break; |
Mauro Carvalho Chehab | 3ca9c09 | 2008-04-17 21:37:53 -0300 | [diff] [blame] | 1560 | default: |
| 1561 | ctl->demod = XC3028_FE_OREN538; |
| 1562 | } |
| 1563 | } |
Mauro Carvalho Chehab | 3ca9c09 | 2008-04-17 21:37:53 -0300 | [diff] [blame] | 1564 | |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1565 | static void em28xx_config_tuner(struct em28xx *dev) |
Mauro Carvalho Chehab | 882876b | 2007-10-29 11:33:18 -0300 | [diff] [blame] | 1566 | { |
| 1567 | struct v4l2_priv_tun_config xc2028_cfg; |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 1568 | struct tuner_setup tun_setup; |
| 1569 | struct v4l2_frequency f; |
Mauro Carvalho Chehab | 882876b | 2007-10-29 11:33:18 -0300 | [diff] [blame] | 1570 | |
Mauro Carvalho Chehab | ed08631 | 2008-01-24 06:59:20 -0300 | [diff] [blame] | 1571 | if (dev->tuner_type == TUNER_ABSENT) |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 1572 | return; |
Mauro Carvalho Chehab | 882876b | 2007-10-29 11:33:18 -0300 | [diff] [blame] | 1573 | |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 1574 | tun_setup.mode_mask = T_ANALOG_TV | T_RADIO; |
| 1575 | tun_setup.type = dev->tuner_type; |
| 1576 | tun_setup.addr = dev->tuner_addr; |
| 1577 | tun_setup.tuner_callback = em28xx_tuner_callback; |
Mauro Carvalho Chehab | 882876b | 2007-10-29 11:33:18 -0300 | [diff] [blame] | 1578 | |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 1579 | em28xx_i2c_call_clients(dev, TUNER_SET_TYPE_ADDR, &tun_setup); |
Mauro Carvalho Chehab | 882876b | 2007-10-29 11:33:18 -0300 | [diff] [blame] | 1580 | |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 1581 | if (dev->tuner_type == TUNER_XC2028) { |
Mauro Carvalho Chehab | 3ca9c09 | 2008-04-17 21:37:53 -0300 | [diff] [blame] | 1582 | struct xc2028_ctrl ctl; |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 1583 | |
Mauro Carvalho Chehab | 3ca9c09 | 2008-04-17 21:37:53 -0300 | [diff] [blame] | 1584 | em28xx_setup_xc3028(dev, &ctl); |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 1585 | |
| 1586 | xc2028_cfg.tuner = TUNER_XC2028; |
| 1587 | xc2028_cfg.priv = &ctl; |
| 1588 | |
| 1589 | em28xx_i2c_call_clients(dev, TUNER_SET_CONFIG, &xc2028_cfg); |
| 1590 | } |
| 1591 | |
| 1592 | /* configure tuner */ |
| 1593 | f.tuner = 0; |
| 1594 | f.type = V4L2_TUNER_ANALOG_TV; |
| 1595 | f.frequency = 9076; /* just a magic number */ |
| 1596 | dev->ctl_freq = f.frequency; |
| 1597 | em28xx_i2c_call_clients(dev, VIDIOC_S_FREQUENCY, &f); |
| 1598 | } |
| 1599 | |
| 1600 | static int em28xx_hint_board(struct em28xx *dev) |
| 1601 | { |
| 1602 | int i; |
| 1603 | |
Mauro Carvalho Chehab | d2ba055 | 2007-11-04 08:32:42 -0300 | [diff] [blame] | 1604 | /* HINT method: EEPROM |
| 1605 | * |
| 1606 | * This method works only for boards with eeprom. |
| 1607 | * Uses a hash of all eeprom bytes. The hash should be |
| 1608 | * unique for a vendor/tuner pair. |
| 1609 | * There are a high chance that tuners for different |
| 1610 | * video standards produce different hashes. |
| 1611 | */ |
| 1612 | for (i = 0; i < ARRAY_SIZE(em28xx_eeprom_hash); i++) { |
| 1613 | if (dev->hash == em28xx_eeprom_hash[i].hash) { |
| 1614 | dev->model = em28xx_eeprom_hash[i].model; |
| 1615 | dev->tuner_type = em28xx_eeprom_hash[i].tuner; |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 1616 | |
| 1617 | em28xx_errdev("Your board has no unique USB ID.\n"); |
| 1618 | em28xx_errdev("A hint were successfully done, " |
| 1619 | "based on eeprom hash.\n"); |
| 1620 | em28xx_errdev("This method is not 100%% failproof.\n"); |
| 1621 | em28xx_errdev("If the board were missdetected, " |
| 1622 | "please email this log to:\n"); |
| 1623 | em28xx_errdev("\tV4L Mailing List " |
| 1624 | " <video4linux-list@redhat.com>\n"); |
| 1625 | em28xx_errdev("Board detected as %s\n", |
| 1626 | em28xx_boards[dev->model].name); |
| 1627 | |
| 1628 | return 0; |
| 1629 | } |
| 1630 | } |
Sascha Sommer | fad7b95 | 2007-11-04 08:06:48 -0300 | [diff] [blame] | 1631 | |
Mauro Carvalho Chehab | d2ba055 | 2007-11-04 08:32:42 -0300 | [diff] [blame] | 1632 | /* HINT method: I2C attached devices |
| 1633 | * |
| 1634 | * This method works for all boards. |
| 1635 | * Uses a hash of i2c scanned devices. |
| 1636 | * Devices with the same i2c attached chips will |
| 1637 | * be considered equal. |
| 1638 | * This method is less precise than the eeprom one. |
| 1639 | */ |
| 1640 | |
Sascha Sommer | fad7b95 | 2007-11-04 08:06:48 -0300 | [diff] [blame] | 1641 | /* user did not request i2c scanning => do it now */ |
| 1642 | if (!dev->i2c_hash) |
| 1643 | em28xx_do_i2c_scan(dev); |
| 1644 | |
| 1645 | for (i = 0; i < ARRAY_SIZE(em28xx_i2c_hash); i++) { |
| 1646 | if (dev->i2c_hash == em28xx_i2c_hash[i].hash) { |
| 1647 | dev->model = em28xx_i2c_hash[i].model; |
| 1648 | dev->tuner_type = em28xx_i2c_hash[i].tuner; |
| 1649 | em28xx_errdev("Your board has no unique USB ID.\n"); |
| 1650 | em28xx_errdev("A hint were successfully done, " |
| 1651 | "based on i2c devicelist hash.\n"); |
| 1652 | em28xx_errdev("This method is not 100%% failproof.\n"); |
| 1653 | em28xx_errdev("If the board were missdetected, " |
| 1654 | "please email this log to:\n"); |
| 1655 | em28xx_errdev("\tV4L Mailing List " |
| 1656 | " <video4linux-list@redhat.com>\n"); |
| 1657 | em28xx_errdev("Board detected as %s\n", |
| 1658 | em28xx_boards[dev->model].name); |
| 1659 | |
| 1660 | return 0; |
| 1661 | } |
| 1662 | } |
| 1663 | |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 1664 | em28xx_errdev("Your board has no unique USB ID and thus need a " |
| 1665 | "hint to be detected.\n"); |
| 1666 | em28xx_errdev("You may try to use card=<n> insmod option to " |
| 1667 | "workaround that.\n"); |
| 1668 | em28xx_errdev("Please send an email with this log to:\n"); |
| 1669 | em28xx_errdev("\tV4L Mailing List <video4linux-list@redhat.com>\n"); |
| 1670 | em28xx_errdev("Board eeprom hash is 0x%08lx\n", dev->hash); |
Sascha Sommer | fad7b95 | 2007-11-04 08:06:48 -0300 | [diff] [blame] | 1671 | em28xx_errdev("Board i2c devicelist hash is 0x%08lx\n", dev->i2c_hash); |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 1672 | |
| 1673 | em28xx_errdev("Here is a list of valid choices for the card=<n>" |
| 1674 | " insmod option:\n"); |
| 1675 | for (i = 0; i < em28xx_bcount; i++) { |
| 1676 | em28xx_errdev(" card=%d -> %s\n", |
| 1677 | i, em28xx_boards[i].name); |
| 1678 | } |
| 1679 | return -1; |
Mauro Carvalho Chehab | 882876b | 2007-10-29 11:33:18 -0300 | [diff] [blame] | 1680 | } |
| 1681 | |
Mauro Carvalho Chehab | c8793b0 | 2008-01-13 15:42:17 -0300 | [diff] [blame] | 1682 | /* ----------------------------------------------------------------------- */ |
| 1683 | void em28xx_set_ir(struct em28xx *dev, struct IR_i2c *ir) |
| 1684 | { |
| 1685 | if (disable_ir) { |
| 1686 | ir->get_key = NULL; |
| 1687 | return ; |
| 1688 | } |
| 1689 | |
| 1690 | /* detect & configure */ |
| 1691 | switch (dev->model) { |
| 1692 | case (EM2800_BOARD_UNKNOWN): |
| 1693 | break; |
| 1694 | case (EM2820_BOARD_UNKNOWN): |
| 1695 | break; |
| 1696 | case (EM2800_BOARD_TERRATEC_CINERGY_200): |
| 1697 | case (EM2820_BOARD_TERRATEC_CINERGY_250): |
| 1698 | ir->ir_codes = ir_codes_em_terratec; |
| 1699 | ir->get_key = em28xx_get_key_terratec; |
| 1700 | snprintf(ir->c.name, sizeof(ir->c.name), |
| 1701 | "i2c IR (EM28XX Terratec)"); |
| 1702 | break; |
| 1703 | case (EM2820_BOARD_PINNACLE_USB_2): |
| 1704 | ir->ir_codes = ir_codes_pinnacle_grey; |
| 1705 | ir->get_key = em28xx_get_key_pinnacle_usb_grey; |
| 1706 | snprintf(ir->c.name, sizeof(ir->c.name), |
| 1707 | "i2c IR (EM28XX Pinnacle PCTV)"); |
| 1708 | break; |
| 1709 | case (EM2820_BOARD_HAUPPAUGE_WINTV_USB_2): |
| 1710 | ir->ir_codes = ir_codes_hauppauge_new; |
| 1711 | ir->get_key = em28xx_get_key_em_haup; |
| 1712 | snprintf(ir->c.name, sizeof(ir->c.name), |
| 1713 | "i2c IR (EM2840 Hauppauge)"); |
| 1714 | break; |
| 1715 | case (EM2820_BOARD_MSI_VOX_USB_2): |
| 1716 | break; |
| 1717 | case (EM2800_BOARD_LEADTEK_WINFAST_USBII): |
| 1718 | break; |
| 1719 | case (EM2800_BOARD_KWORLD_USB2800): |
| 1720 | break; |
Aron Szabo | 59d07f1 | 2008-07-27 13:47:52 -0300 | [diff] [blame] | 1721 | case (EM2800_BOARD_GRABBEEX_USB2800): |
| 1722 | break; |
Mauro Carvalho Chehab | c8793b0 | 2008-01-13 15:42:17 -0300 | [diff] [blame] | 1723 | } |
| 1724 | } |
| 1725 | |
Mauro Carvalho Chehab | 3acf280 | 2005-11-08 21:38:27 -0800 | [diff] [blame] | 1726 | void em28xx_card_setup(struct em28xx *dev) |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 1727 | { |
Mauro Carvalho Chehab | f8b6030 | 2007-11-05 08:42:55 -0300 | [diff] [blame] | 1728 | em28xx_set_model(dev); |
| 1729 | |
| 1730 | dev->tuner_type = em28xx_boards[dev->model].tuner_type; |
| 1731 | |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 1732 | /* request some modules */ |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 1733 | switch (dev->model) { |
| 1734 | case EM2820_BOARD_HAUPPAUGE_WINTV_USB_2: |
Mauro Carvalho Chehab | 98ae127 | 2007-11-05 09:30:39 -0300 | [diff] [blame] | 1735 | case EM2880_BOARD_HAUPPAUGE_WINTV_HVR_900: |
Devin Heitmueller | 17d9d55 | 2008-06-08 10:22:03 -0300 | [diff] [blame] | 1736 | case EM2880_BOARD_HAUPPAUGE_WINTV_HVR_900_R2: |
Mauro Carvalho Chehab | 10ac660 | 2008-07-27 14:58:58 -0300 | [diff] [blame] | 1737 | case EM2883_BOARD_HAUPPAUGE_WINTV_HVR_950: |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 1738 | { |
| 1739 | struct tveeprom tv; |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 1740 | #ifdef CONFIG_MODULES |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 1741 | request_module("tveeprom"); |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 1742 | #endif |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 1743 | /* Call first TVeeprom */ |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 1744 | |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 1745 | dev->i2c_client.addr = 0xa0 >> 1; |
| 1746 | tveeprom_hauppauge_analog(&dev->i2c_client, &tv, dev->eedata); |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 1747 | |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 1748 | dev->tuner_type = tv.tuner_type; |
Mauro Carvalho Chehab | ed08631 | 2008-01-24 06:59:20 -0300 | [diff] [blame] | 1749 | |
Hans Verkuil | 38f9d30 | 2008-07-23 05:09:15 -0300 | [diff] [blame] | 1750 | if (tv.audio_processor == V4L2_IDENT_MSPX4XX) { |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 1751 | dev->i2s_speed = 2048000; |
| 1752 | dev->has_msp34xx = 1; |
| 1753 | } |
Mauro Carvalho Chehab | 98ae127 | 2007-11-05 09:30:39 -0300 | [diff] [blame] | 1754 | #ifdef CONFIG_MODULES |
| 1755 | if (tv.has_ir) |
| 1756 | request_module("ir-kbd-i2c"); |
| 1757 | #endif |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 1758 | break; |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 1759 | } |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 1760 | case EM2820_BOARD_KWORLD_PVRTV2800RF: |
| 1761 | /* GPIO enables sound on KWORLD PVR TV 2800RF */ |
| 1762 | em28xx_write_regs_req(dev, 0x00, 0x08, "\xf9", 1); |
| 1763 | break; |
| 1764 | case EM2820_BOARD_UNKNOWN: |
| 1765 | case EM2800_BOARD_UNKNOWN: |
Mauro Carvalho Chehab | f8b6030 | 2007-11-05 08:42:55 -0300 | [diff] [blame] | 1766 | if (!em28xx_hint_board(dev)) |
| 1767 | em28xx_set_model(dev); |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1768 | break; |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 1769 | } |
| 1770 | |
Devin Heitmueller | a9fc52b | 2008-06-28 08:57:06 -0300 | [diff] [blame] | 1771 | if (dev->has_snapshot_button) |
| 1772 | em28xx_register_snapshot_button(dev); |
| 1773 | |
Douglas Schilling Landgraf | 95b86a9 | 2008-07-27 14:03:32 -0300 | [diff] [blame] | 1774 | if (dev->valid == EM28XX_BOARD_NOT_VALIDATED) { |
| 1775 | em28xx_errdev("\n\n"); |
| 1776 | em28xx_errdev("The support for this board weren't " |
| 1777 | "valid yet.\n"); |
| 1778 | em28xx_errdev("Please send a report of having this working\n"); |
| 1779 | em28xx_errdev("not to V4L mailing list (and/or to other " |
| 1780 | "addresses)\n\n"); |
| 1781 | } |
| 1782 | |
Mauro Carvalho Chehab | f8b6030 | 2007-11-05 08:42:55 -0300 | [diff] [blame] | 1783 | /* Allow override tuner type by a module parameter */ |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 1784 | if (tuner >= 0) |
| 1785 | dev->tuner_type = tuner; |
| 1786 | |
| 1787 | #ifdef CONFIG_MODULES |
| 1788 | /* request some modules */ |
| 1789 | if (dev->has_msp34xx) |
| 1790 | request_module("msp3400"); |
| 1791 | if (dev->decoder == EM28XX_SAA7113 || dev->decoder == EM28XX_SAA7114) |
| 1792 | request_module("saa7115"); |
| 1793 | if (dev->decoder == EM28XX_TVP5150) |
| 1794 | request_module("tvp5150"); |
Mauro Carvalho Chehab | ed08631 | 2008-01-24 06:59:20 -0300 | [diff] [blame] | 1795 | if (dev->tuner_type != TUNER_ABSENT) |
Mauro Carvalho Chehab | 03910cc | 2007-11-03 21:20:59 -0300 | [diff] [blame] | 1796 | request_module("tuner"); |
| 1797 | #endif |
| 1798 | |
Mauro Carvalho Chehab | c23f594 | 2007-11-23 14:22:14 -0300 | [diff] [blame] | 1799 | em28xx_config_tuner(dev); |
akpm@osdl.org | a6c2ba2 | 2005-11-08 21:37:07 -0800 | [diff] [blame] | 1800 | } |