Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | * |
| 3 | * device driver for Conexant 2388x based TV cards |
| 4 | * card-specific stuff. |
| 5 | * |
| 6 | * (c) 2003 Gerd Knorr <kraxel@bytesex.org> [SuSE Labs] |
| 7 | * |
| 8 | * This program is free software; you can redistribute it and/or modify |
| 9 | * it under the terms of the GNU General Public License as published by |
| 10 | * the Free Software Foundation; either version 2 of the License, or |
| 11 | * (at your option) any later version. |
| 12 | * |
| 13 | * This program is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | * GNU General Public License for more details. |
| 17 | * |
| 18 | * You should have received a copy of the GNU General Public License |
| 19 | * along with this program; if not, write to the Free Software |
| 20 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 21 | */ |
| 22 | |
| 23 | #include <linux/init.h> |
| 24 | #include <linux/module.h> |
| 25 | #include <linux/pci.h> |
| 26 | #include <linux/delay.h> |
| 27 | |
| 28 | #include "cx88.h" |
Mauro Carvalho Chehab | 55c8861 | 2007-10-19 06:59:33 -0300 | [diff] [blame] | 29 | #include "tea5767.h" |
Mauro Carvalho Chehab | c2cb8fc | 2008-04-22 14:45:14 -0300 | [diff] [blame] | 30 | #include "tuner-xc2028.h" |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 31 | |
Trent Piepho | bbc8359 | 2007-08-15 14:41:58 -0300 | [diff] [blame] | 32 | static unsigned int tuner[] = {[0 ... (CX88_MAXBOARDS - 1)] = UNSET }; |
| 33 | static unsigned int radio[] = {[0 ... (CX88_MAXBOARDS - 1)] = UNSET }; |
| 34 | static unsigned int card[] = {[0 ... (CX88_MAXBOARDS - 1)] = UNSET }; |
| 35 | |
| 36 | module_param_array(tuner, int, NULL, 0444); |
| 37 | module_param_array(radio, int, NULL, 0444); |
| 38 | module_param_array(card, int, NULL, 0444); |
| 39 | |
| 40 | MODULE_PARM_DESC(tuner,"tuner type"); |
| 41 | MODULE_PARM_DESC(radio,"radio tuner type"); |
| 42 | MODULE_PARM_DESC(card,"card type"); |
| 43 | |
| 44 | static unsigned int latency = UNSET; |
| 45 | module_param(latency,int,0444); |
| 46 | MODULE_PARM_DESC(latency,"pci latency timer"); |
| 47 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 48 | /* ------------------------------------------------------------------ */ |
| 49 | /* board config info */ |
| 50 | |
Trent Piepho | bbc8359 | 2007-08-15 14:41:58 -0300 | [diff] [blame] | 51 | static const struct cx88_board cx88_boards[] = { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 52 | [CX88_BOARD_UNKNOWN] = { |
| 53 | .name = "UNKNOWN/GENERIC", |
| 54 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 55 | .radio_type = UNSET, |
| 56 | .tuner_addr = ADDR_UNSET, |
| 57 | .radio_addr = ADDR_UNSET, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 58 | .input = {{ |
| 59 | .type = CX88_VMUX_COMPOSITE1, |
| 60 | .vmux = 0, |
| 61 | },{ |
| 62 | .type = CX88_VMUX_COMPOSITE2, |
| 63 | .vmux = 1, |
| 64 | },{ |
| 65 | .type = CX88_VMUX_COMPOSITE3, |
| 66 | .vmux = 2, |
| 67 | },{ |
| 68 | .type = CX88_VMUX_COMPOSITE4, |
| 69 | .vmux = 3, |
| 70 | }}, |
| 71 | }, |
| 72 | [CX88_BOARD_HAUPPAUGE] = { |
| 73 | .name = "Hauppauge WinTV 34xxx models", |
| 74 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 75 | .radio_type = UNSET, |
| 76 | .tuner_addr = ADDR_UNSET, |
| 77 | .radio_addr = ADDR_UNSET, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 78 | .tda9887_conf = TDA9887_PRESENT, |
| 79 | .input = {{ |
| 80 | .type = CX88_VMUX_TELEVISION, |
| 81 | .vmux = 0, |
| 82 | .gpio0 = 0xff00, // internal decoder |
| 83 | },{ |
| 84 | .type = CX88_VMUX_DEBUG, |
| 85 | .vmux = 0, |
| 86 | .gpio0 = 0xff01, // mono from tuner chip |
| 87 | },{ |
| 88 | .type = CX88_VMUX_COMPOSITE1, |
| 89 | .vmux = 1, |
| 90 | .gpio0 = 0xff02, |
| 91 | },{ |
| 92 | .type = CX88_VMUX_SVIDEO, |
| 93 | .vmux = 2, |
| 94 | .gpio0 = 0xff02, |
| 95 | }}, |
| 96 | .radio = { |
| 97 | .type = CX88_RADIO, |
| 98 | .gpio0 = 0xff01, |
| 99 | }, |
| 100 | }, |
| 101 | [CX88_BOARD_GDI] = { |
| 102 | .name = "GDI Black Gold", |
| 103 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 104 | .radio_type = UNSET, |
| 105 | .tuner_addr = ADDR_UNSET, |
| 106 | .radio_addr = ADDR_UNSET, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 107 | .input = {{ |
| 108 | .type = CX88_VMUX_TELEVISION, |
| 109 | .vmux = 0, |
Mauro Carvalho Chehab | fd3113e | 2005-07-31 22:34:43 -0700 | [diff] [blame] | 110 | },{ |
| 111 | .type = CX88_VMUX_SVIDEO, |
| 112 | .vmux = 2, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 113 | }}, |
| 114 | }, |
| 115 | [CX88_BOARD_PIXELVIEW] = { |
| 116 | .name = "PixelView", |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 117 | .tuner_type = TUNER_PHILIPS_PAL, |
| 118 | .radio_type = UNSET, |
| 119 | .tuner_addr = ADDR_UNSET, |
| 120 | .radio_addr = ADDR_UNSET, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 121 | .input = {{ |
| 122 | .type = CX88_VMUX_TELEVISION, |
| 123 | .vmux = 0, |
| 124 | .gpio0 = 0xff00, // internal decoder |
| 125 | },{ |
| 126 | .type = CX88_VMUX_COMPOSITE1, |
| 127 | .vmux = 1, |
| 128 | },{ |
| 129 | .type = CX88_VMUX_SVIDEO, |
| 130 | .vmux = 2, |
| 131 | }}, |
| 132 | .radio = { |
| 133 | .type = CX88_RADIO, |
| 134 | .gpio0 = 0xff10, |
Michael Krufky | 47ee2f3 | 2006-06-06 15:51:38 -0300 | [diff] [blame] | 135 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 136 | }, |
| 137 | [CX88_BOARD_ATI_WONDER_PRO] = { |
| 138 | .name = "ATI TV Wonder Pro", |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 139 | .tuner_type = TUNER_PHILIPS_4IN1, |
| 140 | .radio_type = UNSET, |
| 141 | .tuner_addr = ADDR_UNSET, |
| 142 | .radio_addr = ADDR_UNSET, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 143 | .tda9887_conf = TDA9887_PRESENT | TDA9887_INTERCARRIER, |
| 144 | .input = {{ |
| 145 | .type = CX88_VMUX_TELEVISION, |
| 146 | .vmux = 0, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 147 | .gpio0 = 0x03ff, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 148 | },{ |
| 149 | .type = CX88_VMUX_COMPOSITE1, |
| 150 | .vmux = 1, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 151 | .gpio0 = 0x03fe, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 152 | },{ |
| 153 | .type = CX88_VMUX_SVIDEO, |
| 154 | .vmux = 2, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 155 | .gpio0 = 0x03fe, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 156 | }}, |
| 157 | }, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 158 | [CX88_BOARD_WINFAST2000XP_EXPERT] = { |
| 159 | .name = "Leadtek Winfast 2000XP Expert", |
| 160 | .tuner_type = TUNER_PHILIPS_4IN1, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 161 | .radio_type = UNSET, |
| 162 | .tuner_addr = ADDR_UNSET, |
| 163 | .radio_addr = ADDR_UNSET, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 164 | .tda9887_conf = TDA9887_PRESENT, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 165 | .input = {{ |
| 166 | .type = CX88_VMUX_TELEVISION, |
| 167 | .vmux = 0, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 168 | .gpio0 = 0x00F5e700, |
| 169 | .gpio1 = 0x00003004, |
| 170 | .gpio2 = 0x00F5e700, |
| 171 | .gpio3 = 0x02000000, |
| 172 | },{ |
| 173 | .type = CX88_VMUX_COMPOSITE1, |
| 174 | .vmux = 1, |
| 175 | .gpio0 = 0x00F5c700, |
| 176 | .gpio1 = 0x00003004, |
| 177 | .gpio2 = 0x00F5c700, |
| 178 | .gpio3 = 0x02000000, |
| 179 | },{ |
| 180 | .type = CX88_VMUX_SVIDEO, |
| 181 | .vmux = 2, |
| 182 | .gpio0 = 0x00F5c700, |
| 183 | .gpio1 = 0x00003004, |
| 184 | .gpio2 = 0x00F5c700, |
| 185 | .gpio3 = 0x02000000, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 186 | }}, |
| 187 | .radio = { |
| 188 | .type = CX88_RADIO, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 189 | .gpio0 = 0x00F5d700, |
| 190 | .gpio1 = 0x00003004, |
| 191 | .gpio2 = 0x00F5d700, |
| 192 | .gpio3 = 0x02000000, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 193 | }, |
| 194 | }, |
Lubomir Bulej | 7418f34 | 2005-11-08 21:38:34 -0800 | [diff] [blame] | 195 | [CX88_BOARD_AVERTV_STUDIO_303] = { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 196 | .name = "AverTV Studio 303 (M126)", |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 197 | .tuner_type = TUNER_PHILIPS_FM1216ME_MK3, |
| 198 | .radio_type = UNSET, |
| 199 | .tuner_addr = ADDR_UNSET, |
| 200 | .radio_addr = ADDR_UNSET, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 201 | .tda9887_conf = TDA9887_PRESENT, |
| 202 | .input = {{ |
| 203 | .type = CX88_VMUX_TELEVISION, |
| 204 | .vmux = 0, |
Marcin Rudowski | 4aca483 | 2006-03-09 16:09:51 -0300 | [diff] [blame] | 205 | .gpio1 = 0xe09f, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 206 | },{ |
| 207 | .type = CX88_VMUX_COMPOSITE1, |
| 208 | .vmux = 1, |
Marcin Rudowski | 4aca483 | 2006-03-09 16:09:51 -0300 | [diff] [blame] | 209 | .gpio1 = 0xe05f, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 210 | },{ |
| 211 | .type = CX88_VMUX_SVIDEO, |
| 212 | .vmux = 2, |
Marcin Rudowski | 4aca483 | 2006-03-09 16:09:51 -0300 | [diff] [blame] | 213 | .gpio1 = 0xe05f, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 214 | }}, |
| 215 | .radio = { |
Marcin Rudowski | 4aca483 | 2006-03-09 16:09:51 -0300 | [diff] [blame] | 216 | .gpio1 = 0xe0df, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 217 | .type = CX88_RADIO, |
| 218 | }, |
| 219 | }, |
| 220 | [CX88_BOARD_MSI_TVANYWHERE_MASTER] = { |
| 221 | // added gpio values thanks to Michal |
| 222 | // values for PAL from DScaler |
| 223 | .name = "MSI TV-@nywhere Master", |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 224 | .tuner_type = TUNER_MT2032, |
| 225 | .radio_type = UNSET, |
| 226 | .tuner_addr = ADDR_UNSET, |
| 227 | .radio_addr = ADDR_UNSET, |
Nickolay V. Shmyrev | 3ae1adc | 2005-11-08 21:37:39 -0800 | [diff] [blame] | 228 | .tda9887_conf = TDA9887_PRESENT | TDA9887_INTERCARRIER_NTSC, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 229 | .input = {{ |
| 230 | .type = CX88_VMUX_TELEVISION, |
| 231 | .vmux = 0, |
| 232 | .gpio0 = 0x000040bf, |
| 233 | .gpio1 = 0x000080c0, |
| 234 | .gpio2 = 0x0000ff40, |
| 235 | },{ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 236 | .type = CX88_VMUX_COMPOSITE1, |
| 237 | .vmux = 1, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 238 | .gpio0 = 0x000040bf, |
| 239 | .gpio1 = 0x000080c0, |
| 240 | .gpio2 = 0x0000ff40, |
| 241 | },{ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 242 | .type = CX88_VMUX_SVIDEO, |
| 243 | .vmux = 2, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 244 | .gpio0 = 0x000040bf, |
| 245 | .gpio1 = 0x000080c0, |
| 246 | .gpio2 = 0x0000ff40, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 247 | }}, |
| 248 | .radio = { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 249 | .type = CX88_RADIO, |
Mauro Carvalho Chehab | 55c8861 | 2007-10-19 06:59:33 -0300 | [diff] [blame] | 250 | .vmux = 3, |
| 251 | .gpio0 = 0x000040bf, |
| 252 | .gpio1 = 0x000080c0, |
| 253 | .gpio2 = 0x0000ff20, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 254 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 255 | }, |
| 256 | [CX88_BOARD_WINFAST_DV2000] = { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 257 | .name = "Leadtek Winfast DV2000", |
| 258 | .tuner_type = TUNER_PHILIPS_FM1216ME_MK3, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 259 | .radio_type = UNSET, |
| 260 | .tuner_addr = ADDR_UNSET, |
| 261 | .radio_addr = ADDR_UNSET, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 262 | .tda9887_conf = TDA9887_PRESENT, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 263 | .input = {{ |
| 264 | .type = CX88_VMUX_TELEVISION, |
| 265 | .vmux = 0, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 266 | .gpio0 = 0x0035e700, |
| 267 | .gpio1 = 0x00003004, |
| 268 | .gpio2 = 0x0035e700, |
| 269 | .gpio3 = 0x02000000, |
| 270 | },{ |
| 271 | |
| 272 | .type = CX88_VMUX_COMPOSITE1, |
| 273 | .vmux = 1, |
| 274 | .gpio0 = 0x0035c700, |
| 275 | .gpio1 = 0x00003004, |
| 276 | .gpio2 = 0x0035c700, |
| 277 | .gpio3 = 0x02000000, |
| 278 | },{ |
| 279 | .type = CX88_VMUX_SVIDEO, |
| 280 | .vmux = 2, |
| 281 | .gpio0 = 0x0035c700, |
| 282 | .gpio1 = 0x0035c700, |
| 283 | .gpio2 = 0x02000000, |
| 284 | .gpio3 = 0x02000000, |
| 285 | }}, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 286 | .radio = { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 287 | .type = CX88_RADIO, |
| 288 | .gpio0 = 0x0035d700, |
| 289 | .gpio1 = 0x00007004, |
| 290 | .gpio2 = 0x0035d700, |
| 291 | .gpio3 = 0x02000000, |
Michael Krufky | 47ee2f3 | 2006-06-06 15:51:38 -0300 | [diff] [blame] | 292 | }, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 293 | }, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 294 | [CX88_BOARD_LEADTEK_PVR2000] = { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 295 | // gpio values for PAL version from regspy by DScaler |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 296 | .name = "Leadtek PVR 2000", |
| 297 | .tuner_type = TUNER_PHILIPS_FM1216ME_MK3, |
| 298 | .radio_type = UNSET, |
| 299 | .tuner_addr = ADDR_UNSET, |
| 300 | .radio_addr = ADDR_UNSET, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 301 | .tda9887_conf = TDA9887_PRESENT, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 302 | .input = {{ |
| 303 | .type = CX88_VMUX_TELEVISION, |
| 304 | .vmux = 0, |
| 305 | .gpio0 = 0x0000bde2, |
Ricardo Cerqueira | 7b27d45 | 2007-09-30 13:02:49 -0300 | [diff] [blame] | 306 | .audioroute = 1, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 307 | },{ |
| 308 | .type = CX88_VMUX_COMPOSITE1, |
| 309 | .vmux = 1, |
| 310 | .gpio0 = 0x0000bde6, |
Ricardo Cerqueira | 7b27d45 | 2007-09-30 13:02:49 -0300 | [diff] [blame] | 311 | .audioroute = 1, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 312 | },{ |
| 313 | .type = CX88_VMUX_SVIDEO, |
| 314 | .vmux = 2, |
| 315 | .gpio0 = 0x0000bde6, |
Ricardo Cerqueira | 7b27d45 | 2007-09-30 13:02:49 -0300 | [diff] [blame] | 316 | .audioroute = 1, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 317 | }}, |
| 318 | .radio = { |
| 319 | .type = CX88_RADIO, |
| 320 | .gpio0 = 0x0000bd62, |
Ricardo Cerqueira | 7b27d45 | 2007-09-30 13:02:49 -0300 | [diff] [blame] | 321 | .audioroute = 1, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 322 | }, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 323 | .mpeg = CX88_MPEG_BLACKBIRD, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 324 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 325 | [CX88_BOARD_IODATA_GVVCP3PCI] = { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 326 | .name = "IODATA GV-VCP3/PCI", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 327 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 328 | .radio_type = UNSET, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 329 | .tuner_addr = ADDR_UNSET, |
| 330 | .radio_addr = ADDR_UNSET, |
| 331 | .input = {{ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 332 | .type = CX88_VMUX_COMPOSITE1, |
| 333 | .vmux = 0, |
| 334 | },{ |
| 335 | .type = CX88_VMUX_COMPOSITE2, |
| 336 | .vmux = 1, |
| 337 | },{ |
| 338 | .type = CX88_VMUX_SVIDEO, |
| 339 | .vmux = 2, |
| 340 | }}, |
| 341 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 342 | [CX88_BOARD_PROLINK_PLAYTVPVR] = { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 343 | .name = "Prolink PlayTV PVR", |
| 344 | .tuner_type = TUNER_PHILIPS_FM1236_MK3, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 345 | .radio_type = UNSET, |
| 346 | .tuner_addr = ADDR_UNSET, |
| 347 | .radio_addr = ADDR_UNSET, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 348 | .tda9887_conf = TDA9887_PRESENT, |
| 349 | .input = {{ |
| 350 | .type = CX88_VMUX_TELEVISION, |
| 351 | .vmux = 0, |
Michael Krufky | fc34f16 | 2006-03-13 03:41:44 -0300 | [diff] [blame] | 352 | .gpio0 = 0xbff0, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 353 | },{ |
| 354 | .type = CX88_VMUX_COMPOSITE1, |
| 355 | .vmux = 1, |
Michael Krufky | fc34f16 | 2006-03-13 03:41:44 -0300 | [diff] [blame] | 356 | .gpio0 = 0xbff3, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 357 | },{ |
| 358 | .type = CX88_VMUX_SVIDEO, |
| 359 | .vmux = 2, |
Michael Krufky | fc34f16 | 2006-03-13 03:41:44 -0300 | [diff] [blame] | 360 | .gpio0 = 0xbff3, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 361 | }}, |
| 362 | .radio = { |
| 363 | .type = CX88_RADIO, |
Michael Krufky | fc34f16 | 2006-03-13 03:41:44 -0300 | [diff] [blame] | 364 | .gpio0 = 0xbff0, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 365 | }, |
| 366 | }, |
| 367 | [CX88_BOARD_ASUS_PVR_416] = { |
| 368 | .name = "ASUS PVR-416", |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 369 | .tuner_type = TUNER_PHILIPS_FM1236_MK3, |
| 370 | .radio_type = UNSET, |
| 371 | .tuner_addr = ADDR_UNSET, |
| 372 | .radio_addr = ADDR_UNSET, |
| 373 | .tda9887_conf = TDA9887_PRESENT, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 374 | .input = {{ |
| 375 | .type = CX88_VMUX_TELEVISION, |
| 376 | .vmux = 0, |
| 377 | .gpio0 = 0x0000fde6, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 378 | },{ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 379 | .type = CX88_VMUX_SVIDEO, |
| 380 | .vmux = 2, |
| 381 | .gpio0 = 0x0000fde6, // 0x0000fda6 L,R RCA audio in? |
Ricardo Cerqueira | 7b27d45 | 2007-09-30 13:02:49 -0300 | [diff] [blame] | 382 | .audioroute = 1, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 383 | }}, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 384 | .radio = { |
| 385 | .type = CX88_RADIO, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 386 | .gpio0 = 0x0000fde2, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 387 | }, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 388 | .mpeg = CX88_MPEG_BLACKBIRD, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 389 | }, |
| 390 | [CX88_BOARD_MSI_TVANYWHERE] = { |
| 391 | .name = "MSI TV-@nywhere", |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 392 | .tuner_type = TUNER_MT2032, |
| 393 | .radio_type = UNSET, |
| 394 | .tuner_addr = ADDR_UNSET, |
| 395 | .radio_addr = ADDR_UNSET, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 396 | .tda9887_conf = TDA9887_PRESENT, |
| 397 | .input = {{ |
| 398 | .type = CX88_VMUX_TELEVISION, |
| 399 | .vmux = 0, |
| 400 | .gpio0 = 0x00000fbf, |
| 401 | .gpio2 = 0x0000fc08, |
| 402 | },{ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 403 | .type = CX88_VMUX_COMPOSITE1, |
| 404 | .vmux = 1, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 405 | .gpio0 = 0x00000fbf, |
| 406 | .gpio2 = 0x0000fc68, |
| 407 | },{ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 408 | .type = CX88_VMUX_SVIDEO, |
| 409 | .vmux = 2, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 410 | .gpio0 = 0x00000fbf, |
| 411 | .gpio2 = 0x0000fc68, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 412 | }}, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 413 | }, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 414 | [CX88_BOARD_KWORLD_DVB_T] = { |
| 415 | .name = "KWorld/VStream XPert DVB-T", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 416 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 417 | .radio_type = UNSET, |
| 418 | .tuner_addr = ADDR_UNSET, |
| 419 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 420 | .input = {{ |
| 421 | .type = CX88_VMUX_COMPOSITE1, |
| 422 | .vmux = 1, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 423 | .gpio0 = 0x0700, |
| 424 | .gpio2 = 0x0101, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 425 | },{ |
| 426 | .type = CX88_VMUX_SVIDEO, |
| 427 | .vmux = 2, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 428 | .gpio0 = 0x0700, |
| 429 | .gpio2 = 0x0101, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 430 | }}, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 431 | .mpeg = CX88_MPEG_DVB, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 432 | }, |
| 433 | [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1] = { |
Mauro Carvalho Chehab | a82decf | 2005-07-07 17:58:36 -0700 | [diff] [blame] | 434 | .name = "DViCO FusionHDTV DVB-T1", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 435 | .tuner_type = TUNER_ABSENT, /* No analog tuner */ |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 436 | .radio_type = UNSET, |
| 437 | .tuner_addr = ADDR_UNSET, |
| 438 | .radio_addr = ADDR_UNSET, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 439 | .input = {{ |
| 440 | .type = CX88_VMUX_COMPOSITE1, |
| 441 | .vmux = 1, |
| 442 | .gpio0 = 0x000027df, |
Michael Krufky | 47ee2f3 | 2006-06-06 15:51:38 -0300 | [diff] [blame] | 443 | },{ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 444 | .type = CX88_VMUX_SVIDEO, |
| 445 | .vmux = 2, |
| 446 | .gpio0 = 0x000027df, |
| 447 | }}, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 448 | .mpeg = CX88_MPEG_DVB, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 449 | }, |
| 450 | [CX88_BOARD_KWORLD_LTV883] = { |
| 451 | .name = "KWorld LTV883RF", |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 452 | .tuner_type = TUNER_TNF_8831BGFF, |
| 453 | .radio_type = UNSET, |
| 454 | .tuner_addr = ADDR_UNSET, |
| 455 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 456 | .input = {{ |
| 457 | .type = CX88_VMUX_TELEVISION, |
| 458 | .vmux = 0, |
| 459 | .gpio0 = 0x07f8, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 460 | },{ |
| 461 | .type = CX88_VMUX_DEBUG, |
| 462 | .vmux = 0, |
| 463 | .gpio0 = 0x07f9, // mono from tuner chip |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 464 | },{ |
| 465 | .type = CX88_VMUX_COMPOSITE1, |
| 466 | .vmux = 1, |
| 467 | .gpio0 = 0x000007fa, |
| 468 | },{ |
| 469 | .type = CX88_VMUX_SVIDEO, |
| 470 | .vmux = 2, |
| 471 | .gpio0 = 0x000007fa, |
| 472 | }}, |
| 473 | .radio = { |
| 474 | .type = CX88_RADIO, |
| 475 | .gpio0 = 0x000007f8, |
| 476 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 477 | }, |
Mauro Carvalho Chehab | a82decf | 2005-07-07 17:58:36 -0700 | [diff] [blame] | 478 | [CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q] = { |
| 479 | .name = "DViCO FusionHDTV 3 Gold-Q", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 480 | .tuner_type = TUNER_MICROTUNE_4042FI5, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 481 | .radio_type = UNSET, |
| 482 | .tuner_addr = ADDR_UNSET, |
| 483 | .radio_addr = ADDR_UNSET, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 484 | /* |
| 485 | GPIO[0] resets DT3302 DTV receiver |
| 486 | 0 - reset asserted |
| 487 | 1 - normal operation |
| 488 | GPIO[1] mutes analog audio output connector |
| 489 | 0 - enable selected source |
| 490 | 1 - mute |
| 491 | GPIO[2] selects source for analog audio output connector |
| 492 | 0 - analog audio input connector on tab |
| 493 | 1 - analog DAC output from CX23881 chip |
| 494 | GPIO[3] selects RF input connector on tuner module |
| 495 | 0 - RF connector labeled CABLE |
| 496 | 1 - RF connector labeled ANT |
Mauro Carvalho Chehab | a82decf | 2005-07-07 17:58:36 -0700 | [diff] [blame] | 497 | GPIO[4] selects high RF for QAM256 mode |
| 498 | 0 - normal RF |
| 499 | 1 - high RF |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 500 | */ |
| 501 | .input = {{ |
| 502 | .type = CX88_VMUX_TELEVISION, |
| 503 | .vmux = 0, |
| 504 | .gpio0 = 0x0f0d, |
| 505 | },{ |
| 506 | .type = CX88_VMUX_CABLE, |
| 507 | .vmux = 0, |
| 508 | .gpio0 = 0x0f05, |
| 509 | },{ |
| 510 | .type = CX88_VMUX_COMPOSITE1, |
| 511 | .vmux = 1, |
| 512 | .gpio0 = 0x0f00, |
| 513 | },{ |
| 514 | .type = CX88_VMUX_SVIDEO, |
| 515 | .vmux = 2, |
| 516 | .gpio0 = 0x0f00, |
| 517 | }}, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 518 | .mpeg = CX88_MPEG_DVB, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 519 | }, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 520 | [CX88_BOARD_HAUPPAUGE_DVB_T1] = { |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 521 | .name = "Hauppauge Nova-T DVB-T", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 522 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 523 | .radio_type = UNSET, |
| 524 | .tuner_addr = ADDR_UNSET, |
| 525 | .radio_addr = ADDR_UNSET, |
| 526 | .input = {{ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 527 | .type = CX88_VMUX_DVB, |
| 528 | .vmux = 0, |
| 529 | }}, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 530 | .mpeg = CX88_MPEG_DVB, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 531 | }, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 532 | [CX88_BOARD_CONEXANT_DVB_T1] = { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 533 | .name = "Conexant DVB-T reference design", |
| 534 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 535 | .radio_type = UNSET, |
| 536 | .tuner_addr = ADDR_UNSET, |
| 537 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 538 | .input = {{ |
| 539 | .type = CX88_VMUX_DVB, |
| 540 | .vmux = 0, |
| 541 | }}, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 542 | .mpeg = CX88_MPEG_DVB, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 543 | }, |
| 544 | [CX88_BOARD_PROVIDEO_PV259] = { |
| 545 | .name = "Provideo PV259", |
| 546 | .tuner_type = TUNER_PHILIPS_FQ1216ME, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 547 | .radio_type = UNSET, |
| 548 | .tuner_addr = ADDR_UNSET, |
| 549 | .radio_addr = ADDR_UNSET, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 550 | .input = {{ |
| 551 | .type = CX88_VMUX_TELEVISION, |
| 552 | .vmux = 0, |
Ricardo Cerqueira | 7b27d45 | 2007-09-30 13:02:49 -0300 | [diff] [blame] | 553 | .audioroute = 1, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 554 | }}, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 555 | .mpeg = CX88_MPEG_BLACKBIRD, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 556 | }, |
| 557 | [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS] = { |
Mauro Carvalho Chehab | a82decf | 2005-07-07 17:58:36 -0700 | [diff] [blame] | 558 | .name = "DViCO FusionHDTV DVB-T Plus", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 559 | .tuner_type = TUNER_ABSENT, /* No analog tuner */ |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 560 | .radio_type = UNSET, |
| 561 | .tuner_addr = ADDR_UNSET, |
| 562 | .radio_addr = ADDR_UNSET, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 563 | .input = {{ |
| 564 | .type = CX88_VMUX_COMPOSITE1, |
| 565 | .vmux = 1, |
| 566 | .gpio0 = 0x000027df, |
Michael Krufky | 47ee2f3 | 2006-06-06 15:51:38 -0300 | [diff] [blame] | 567 | },{ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 568 | .type = CX88_VMUX_SVIDEO, |
| 569 | .vmux = 2, |
| 570 | .gpio0 = 0x000027df, |
| 571 | }}, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 572 | .mpeg = CX88_MPEG_DVB, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 573 | }, |
| 574 | [CX88_BOARD_DNTV_LIVE_DVB_T] = { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 575 | .name = "digitalnow DNTV Live! DVB-T", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 576 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 577 | .radio_type = UNSET, |
| 578 | .tuner_addr = ADDR_UNSET, |
| 579 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 580 | .input = {{ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 581 | .type = CX88_VMUX_COMPOSITE1, |
| 582 | .vmux = 1, |
| 583 | .gpio0 = 0x00000700, |
| 584 | .gpio2 = 0x00000101, |
| 585 | },{ |
| 586 | .type = CX88_VMUX_SVIDEO, |
| 587 | .vmux = 2, |
| 588 | .gpio0 = 0x00000700, |
| 589 | .gpio2 = 0x00000101, |
| 590 | }}, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 591 | .mpeg = CX88_MPEG_DVB, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 592 | }, |
| 593 | [CX88_BOARD_PCHDTV_HD3000] = { |
| 594 | .name = "pcHDTV HD3000 HDTV", |
Trent Piepho | 9175b85 | 2006-04-10 09:40:37 -0300 | [diff] [blame] | 595 | .tuner_type = TUNER_THOMSON_DTT761X, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 596 | .radio_type = UNSET, |
| 597 | .tuner_addr = ADDR_UNSET, |
| 598 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | e4f5c82 | 2005-12-04 12:41:54 -0200 | [diff] [blame] | 599 | .tda9887_conf = TDA9887_PRESENT, |
Trent Piepho | 19dc74b | 2007-07-31 23:06:50 -0300 | [diff] [blame] | 600 | /* GPIO[2] = audio source for analog audio out connector |
| 601 | * 0 = analog audio input connector |
| 602 | * 1 = CX88 audio DACs |
| 603 | * |
| 604 | * GPIO[7] = input to CX88's audio/chroma ADC |
| 605 | * 0 = FM 10.7 MHz IF |
| 606 | * 1 = Sound 4.5 MHz IF |
| 607 | * |
| 608 | * GPIO[1,5,6] = Oren 51132 pins 27,35,28 respectively |
| 609 | * |
| 610 | * GPIO[16] = Remote control input |
| 611 | */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 612 | .input = {{ |
| 613 | .type = CX88_VMUX_TELEVISION, |
| 614 | .vmux = 0, |
| 615 | .gpio0 = 0x00008484, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 616 | },{ |
| 617 | .type = CX88_VMUX_COMPOSITE1, |
| 618 | .vmux = 1, |
| 619 | .gpio0 = 0x00008400, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 620 | },{ |
| 621 | .type = CX88_VMUX_SVIDEO, |
| 622 | .vmux = 2, |
| 623 | .gpio0 = 0x00008400, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 624 | }}, |
| 625 | .radio = { |
| 626 | .type = CX88_RADIO, |
Trent Piepho | 19dc74b | 2007-07-31 23:06:50 -0300 | [diff] [blame] | 627 | .gpio0 = 0x00008404, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 628 | }, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 629 | .mpeg = CX88_MPEG_DVB, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 630 | }, |
| 631 | [CX88_BOARD_HAUPPAUGE_ROSLYN] = { |
| 632 | // entry added by Kaustubh D. Bhalerao <bhalerao.1@osu.edu> |
| 633 | // GPIO values obtained from regspy, courtesy Sean Covel |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 634 | .name = "Hauppauge WinTV 28xxx (Roslyn) models", |
| 635 | .tuner_type = UNSET, |
| 636 | .radio_type = UNSET, |
| 637 | .tuner_addr = ADDR_UNSET, |
| 638 | .radio_addr = ADDR_UNSET, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 639 | .input = {{ |
| 640 | .type = CX88_VMUX_TELEVISION, |
| 641 | .vmux = 0, |
Steven Toth | 0345c38 | 2006-01-09 15:25:17 -0200 | [diff] [blame] | 642 | .gpio0 = 0xed1a, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 643 | .gpio2 = 0x00ff, |
| 644 | },{ |
| 645 | .type = CX88_VMUX_DEBUG, |
| 646 | .vmux = 0, |
Steven Toth | 0345c38 | 2006-01-09 15:25:17 -0200 | [diff] [blame] | 647 | .gpio0 = 0xff01, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 648 | },{ |
| 649 | .type = CX88_VMUX_COMPOSITE1, |
| 650 | .vmux = 1, |
| 651 | .gpio0 = 0xff02, |
| 652 | },{ |
| 653 | .type = CX88_VMUX_SVIDEO, |
| 654 | .vmux = 2, |
| 655 | .gpio0 = 0xed92, |
| 656 | .gpio2 = 0x00ff, |
| 657 | }}, |
| 658 | .radio = { |
| 659 | .type = CX88_RADIO, |
| 660 | .gpio0 = 0xed96, |
| 661 | .gpio2 = 0x00ff, |
| 662 | }, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 663 | .mpeg = CX88_MPEG_BLACKBIRD, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 664 | }, |
| 665 | [CX88_BOARD_DIGITALLOGIC_MEC] = { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 666 | .name = "Digital-Logic MICROSPACE Entertainment Center (MEC)", |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 667 | .tuner_type = TUNER_PHILIPS_FM1216ME_MK3, |
| 668 | .radio_type = UNSET, |
| 669 | .tuner_addr = ADDR_UNSET, |
| 670 | .radio_addr = ADDR_UNSET, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 671 | .tda9887_conf = TDA9887_PRESENT, |
| 672 | .input = {{ |
| 673 | .type = CX88_VMUX_TELEVISION, |
| 674 | .vmux = 0, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 675 | .gpio0 = 0x00009d80, |
Ricardo Cerqueira | 7b27d45 | 2007-09-30 13:02:49 -0300 | [diff] [blame] | 676 | .audioroute = 1, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 677 | },{ |
| 678 | .type = CX88_VMUX_COMPOSITE1, |
| 679 | .vmux = 1, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 680 | .gpio0 = 0x00009d76, |
Ricardo Cerqueira | 7b27d45 | 2007-09-30 13:02:49 -0300 | [diff] [blame] | 681 | .audioroute = 1, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 682 | },{ |
| 683 | .type = CX88_VMUX_SVIDEO, |
| 684 | .vmux = 2, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 685 | .gpio0 = 0x00009d76, |
Ricardo Cerqueira | 7b27d45 | 2007-09-30 13:02:49 -0300 | [diff] [blame] | 686 | .audioroute = 1, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 687 | }}, |
| 688 | .radio = { |
| 689 | .type = CX88_RADIO, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 690 | .gpio0 = 0x00009d00, |
Ricardo Cerqueira | 7b27d45 | 2007-09-30 13:02:49 -0300 | [diff] [blame] | 691 | .audioroute = 1, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 692 | }, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 693 | .mpeg = CX88_MPEG_BLACKBIRD, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 694 | }, |
| 695 | [CX88_BOARD_IODATA_GVBCTV7E] = { |
| 696 | .name = "IODATA GV/BCTV7E", |
| 697 | .tuner_type = TUNER_PHILIPS_FQ1286, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 698 | .radio_type = UNSET, |
| 699 | .tuner_addr = ADDR_UNSET, |
| 700 | .radio_addr = ADDR_UNSET, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 701 | .tda9887_conf = TDA9887_PRESENT, |
| 702 | .input = {{ |
| 703 | .type = CX88_VMUX_TELEVISION, |
| 704 | .vmux = 1, |
| 705 | .gpio1 = 0x0000e03f, |
| 706 | },{ |
| 707 | .type = CX88_VMUX_COMPOSITE1, |
| 708 | .vmux = 2, |
| 709 | .gpio1 = 0x0000e07f, |
| 710 | },{ |
| 711 | .type = CX88_VMUX_SVIDEO, |
| 712 | .vmux = 3, |
| 713 | .gpio1 = 0x0000e07f, |
| 714 | }} |
| 715 | }, |
Manuel Capinha | 239df2e | 2005-06-23 22:04:53 -0700 | [diff] [blame] | 716 | [CX88_BOARD_PIXELVIEW_PLAYTV_ULTRA_PRO] = { |
| 717 | .name = "PixelView PlayTV Ultra Pro (Stereo)", |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 718 | /* May be also TUNER_YMEC_TVF_5533MF for NTSC/M or PAL/M */ |
| 719 | .tuner_type = TUNER_PHILIPS_FM1216ME_MK3, |
Mauro Carvalho Chehab | c5287ba | 2005-07-15 03:56:28 -0700 | [diff] [blame] | 720 | .radio_type = UNSET, |
| 721 | .tuner_addr = ADDR_UNSET, |
| 722 | .radio_addr = ADDR_UNSET, |
Manuel Capinha | 239df2e | 2005-06-23 22:04:53 -0700 | [diff] [blame] | 723 | .input = {{ |
| 724 | .type = CX88_VMUX_TELEVISION, |
| 725 | .vmux = 0, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 726 | .gpio0 = 0xbf61, /* internal decoder */ |
Manuel Capinha | 239df2e | 2005-06-23 22:04:53 -0700 | [diff] [blame] | 727 | },{ |
| 728 | .type = CX88_VMUX_COMPOSITE1, |
| 729 | .vmux = 1, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 730 | .gpio0 = 0xbf63, |
Manuel Capinha | 239df2e | 2005-06-23 22:04:53 -0700 | [diff] [blame] | 731 | },{ |
| 732 | .type = CX88_VMUX_SVIDEO, |
| 733 | .vmux = 2, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 734 | .gpio0 = 0xbf63, |
Manuel Capinha | 239df2e | 2005-06-23 22:04:53 -0700 | [diff] [blame] | 735 | }}, |
| 736 | .radio = { |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 737 | .type = CX88_RADIO, |
| 738 | .gpio0 = 0xbf60, |
| 739 | }, |
Manuel Capinha | 239df2e | 2005-06-23 22:04:53 -0700 | [diff] [blame] | 740 | }, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 741 | [CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_T] = { |
Mauro Carvalho Chehab | a82decf | 2005-07-07 17:58:36 -0700 | [diff] [blame] | 742 | .name = "DViCO FusionHDTV 3 Gold-T", |
Michael Krufky | 83ac8722 | 2006-01-09 15:25:29 -0200 | [diff] [blame] | 743 | .tuner_type = TUNER_THOMSON_DTT761X, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 744 | .radio_type = UNSET, |
| 745 | .tuner_addr = ADDR_UNSET, |
| 746 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | e4f5c82 | 2005-12-04 12:41:54 -0200 | [diff] [blame] | 747 | .tda9887_conf = TDA9887_PRESENT, |
Mauro Carvalho Chehab | a82decf | 2005-07-07 17:58:36 -0700 | [diff] [blame] | 748 | .input = {{ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 749 | .type = CX88_VMUX_TELEVISION, |
| 750 | .vmux = 0, |
| 751 | .gpio0 = 0x97ed, |
| 752 | },{ |
| 753 | .type = CX88_VMUX_COMPOSITE1, |
| 754 | .vmux = 1, |
| 755 | .gpio0 = 0x97e9, |
| 756 | },{ |
| 757 | .type = CX88_VMUX_SVIDEO, |
| 758 | .vmux = 2, |
| 759 | .gpio0 = 0x97e9, |
| 760 | }}, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 761 | .mpeg = CX88_MPEG_DVB, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 762 | }, |
| 763 | [CX88_BOARD_ADSTECH_DVB_T_PCI] = { |
| 764 | .name = "ADS Tech Instant TV DVB-T PCI", |
Mauro Carvalho Chehab | a82decf | 2005-07-07 17:58:36 -0700 | [diff] [blame] | 765 | .tuner_type = TUNER_ABSENT, |
| 766 | .radio_type = UNSET, |
| 767 | .tuner_addr = ADDR_UNSET, |
| 768 | .radio_addr = ADDR_UNSET, |
| 769 | .input = {{ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 770 | .type = CX88_VMUX_COMPOSITE1, |
| 771 | .vmux = 1, |
Mauro Carvalho Chehab | a82decf | 2005-07-07 17:58:36 -0700 | [diff] [blame] | 772 | .gpio0 = 0x0700, |
| 773 | .gpio2 = 0x0101, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 774 | },{ |
| 775 | .type = CX88_VMUX_SVIDEO, |
| 776 | .vmux = 2, |
Mauro Carvalho Chehab | a82decf | 2005-07-07 17:58:36 -0700 | [diff] [blame] | 777 | .gpio0 = 0x0700, |
| 778 | .gpio2 = 0x0101, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 779 | }}, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 780 | .mpeg = CX88_MPEG_DVB, |
Mauro Carvalho Chehab | a82decf | 2005-07-07 17:58:36 -0700 | [diff] [blame] | 781 | }, |
Michael Krufky | e057ee1 | 2005-07-07 17:58:40 -0700 | [diff] [blame] | 782 | [CX88_BOARD_TERRATEC_CINERGY_1400_DVB_T1] = { |
| 783 | .name = "TerraTec Cinergy 1400 DVB-T", |
| 784 | .tuner_type = TUNER_ABSENT, |
| 785 | .input = {{ |
| 786 | .type = CX88_VMUX_DVB, |
| 787 | .vmux = 0, |
Heiko Baums | 05eda24 | 2007-01-21 05:58:19 -0300 | [diff] [blame] | 788 | },{ |
| 789 | .type = CX88_VMUX_COMPOSITE1, |
| 790 | .vmux = 2, |
| 791 | },{ |
| 792 | .type = CX88_VMUX_SVIDEO, |
| 793 | .vmux = 2, |
Michael Krufky | e057ee1 | 2005-07-07 17:58:40 -0700 | [diff] [blame] | 794 | }}, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 795 | .mpeg = CX88_MPEG_DVB, |
Michael Krufky | e057ee1 | 2005-07-07 17:58:40 -0700 | [diff] [blame] | 796 | }, |
Michael Krufky | 9fef07c | 2005-07-31 22:34:46 -0700 | [diff] [blame] | 797 | [CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD] = { |
| 798 | .name = "DViCO FusionHDTV 5 Gold", |
Michael Krufky | 9c26c8b | 2006-04-27 01:29:17 -0300 | [diff] [blame] | 799 | .tuner_type = TUNER_LG_TDVS_H06XF, /* TDVS-H062F */ |
Michael Krufky | 9fef07c | 2005-07-31 22:34:46 -0700 | [diff] [blame] | 800 | .radio_type = UNSET, |
| 801 | .tuner_addr = ADDR_UNSET, |
| 802 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | e52e98a | 2005-09-09 13:03:41 -0700 | [diff] [blame] | 803 | .tda9887_conf = TDA9887_PRESENT, |
Michael Krufky | 9fef07c | 2005-07-31 22:34:46 -0700 | [diff] [blame] | 804 | .input = {{ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 805 | .type = CX88_VMUX_TELEVISION, |
| 806 | .vmux = 0, |
| 807 | .gpio0 = 0x87fd, |
| 808 | },{ |
| 809 | .type = CX88_VMUX_COMPOSITE1, |
| 810 | .vmux = 1, |
| 811 | .gpio0 = 0x87f9, |
| 812 | },{ |
| 813 | .type = CX88_VMUX_SVIDEO, |
| 814 | .vmux = 2, |
| 815 | .gpio0 = 0x87f9, |
| 816 | }}, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 817 | .mpeg = CX88_MPEG_DVB, |
Michael Krufky | 9fef07c | 2005-07-31 22:34:46 -0700 | [diff] [blame] | 818 | }, |
Nickolay V. Shmyrev | d45170e | 2005-11-08 21:36:15 -0800 | [diff] [blame] | 819 | [CX88_BOARD_AVERMEDIA_ULTRATV_MC_550] = { |
| 820 | .name = "AverMedia UltraTV Media Center PCI 550", |
| 821 | .tuner_type = TUNER_PHILIPS_FM1236_MK3, |
| 822 | .radio_type = UNSET, |
| 823 | .tuner_addr = ADDR_UNSET, |
| 824 | .radio_addr = ADDR_UNSET, |
| 825 | .tda9887_conf = TDA9887_PRESENT, |
Nickolay V. Shmyrev | d45170e | 2005-11-08 21:36:15 -0800 | [diff] [blame] | 826 | .input = {{ |
| 827 | .type = CX88_VMUX_COMPOSITE1, |
| 828 | .vmux = 0, |
| 829 | .gpio0 = 0x0000cd73, |
Ricardo Cerqueira | 7b27d45 | 2007-09-30 13:02:49 -0300 | [diff] [blame] | 830 | .audioroute = 1, |
Nickolay V. Shmyrev | d45170e | 2005-11-08 21:36:15 -0800 | [diff] [blame] | 831 | },{ |
| 832 | .type = CX88_VMUX_SVIDEO, |
| 833 | .vmux = 1, |
| 834 | .gpio0 = 0x0000cd73, |
Ricardo Cerqueira | 7b27d45 | 2007-09-30 13:02:49 -0300 | [diff] [blame] | 835 | .audioroute = 1, |
Nickolay V. Shmyrev | d45170e | 2005-11-08 21:36:15 -0800 | [diff] [blame] | 836 | },{ |
| 837 | .type = CX88_VMUX_TELEVISION, |
| 838 | .vmux = 3, |
| 839 | .gpio0 = 0x0000cdb3, |
Ricardo Cerqueira | 7b27d45 | 2007-09-30 13:02:49 -0300 | [diff] [blame] | 840 | .audioroute = 1, |
Nickolay V. Shmyrev | d45170e | 2005-11-08 21:36:15 -0800 | [diff] [blame] | 841 | }}, |
| 842 | .radio = { |
| 843 | .type = CX88_RADIO, |
| 844 | .vmux = 2, |
| 845 | .gpio0 = 0x0000cdf3, |
Ricardo Cerqueira | 7b27d45 | 2007-09-30 13:02:49 -0300 | [diff] [blame] | 846 | .audioroute = 1, |
Nickolay V. Shmyrev | d45170e | 2005-11-08 21:36:15 -0800 | [diff] [blame] | 847 | }, |
Michael Krufky | 5b26c82 | 2006-10-16 16:07:51 -0300 | [diff] [blame] | 848 | .mpeg = CX88_MPEG_BLACKBIRD, |
Nickolay V. Shmyrev | d45170e | 2005-11-08 21:36:15 -0800 | [diff] [blame] | 849 | }, |
Alexander Wold | 0bcc37c | 2005-11-08 21:36:58 -0800 | [diff] [blame] | 850 | [CX88_BOARD_KWORLD_VSTREAM_EXPERT_DVD] = { |
| 851 | /* Alexander Wold <awold@bigfoot.com> */ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 852 | .name = "Kworld V-Stream Xpert DVD", |
| 853 | .tuner_type = UNSET, |
| 854 | .input = {{ |
| 855 | .type = CX88_VMUX_COMPOSITE1, |
| 856 | .vmux = 1, |
| 857 | .gpio0 = 0x03000000, |
Alexander Wold | 0bcc37c | 2005-11-08 21:36:58 -0800 | [diff] [blame] | 858 | .gpio1 = 0x01000000, |
| 859 | .gpio2 = 0x02000000, |
| 860 | .gpio3 = 0x00100000, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 861 | },{ |
| 862 | .type = CX88_VMUX_SVIDEO, |
| 863 | .vmux = 2, |
| 864 | .gpio0 = 0x03000000, |
| 865 | .gpio1 = 0x01000000, |
| 866 | .gpio2 = 0x02000000, |
| 867 | .gpio3 = 0x00100000, |
| 868 | }}, |
Alexander Wold | 0bcc37c | 2005-11-08 21:36:58 -0800 | [diff] [blame] | 869 | }, |
Kirk Lapray | e976f937 | 2005-11-08 21:37:04 -0800 | [diff] [blame] | 870 | [CX88_BOARD_ATI_HDTVWONDER] = { |
| 871 | .name = "ATI HDTV Wonder", |
| 872 | .tuner_type = TUNER_PHILIPS_TUV1236D, |
| 873 | .radio_type = UNSET, |
| 874 | .tuner_addr = ADDR_UNSET, |
| 875 | .radio_addr = ADDR_UNSET, |
| 876 | .input = {{ |
| 877 | .type = CX88_VMUX_TELEVISION, |
| 878 | .vmux = 0, |
| 879 | .gpio0 = 0x00000ff7, |
| 880 | .gpio1 = 0x000000ff, |
| 881 | .gpio2 = 0x00000001, |
| 882 | .gpio3 = 0x00000000, |
| 883 | },{ |
| 884 | .type = CX88_VMUX_COMPOSITE1, |
| 885 | .vmux = 1, |
| 886 | .gpio0 = 0x00000ffe, |
| 887 | .gpio1 = 0x000000ff, |
| 888 | .gpio2 = 0x00000001, |
| 889 | .gpio3 = 0x00000000, |
| 890 | },{ |
| 891 | .type = CX88_VMUX_SVIDEO, |
| 892 | .vmux = 2, |
| 893 | .gpio0 = 0x00000ffe, |
| 894 | .gpio1 = 0x000000ff, |
| 895 | .gpio2 = 0x00000001, |
| 896 | .gpio3 = 0x00000000, |
| 897 | }}, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 898 | .mpeg = CX88_MPEG_DVB, |
Kirk Lapray | e976f937 | 2005-11-08 21:37:04 -0800 | [diff] [blame] | 899 | }, |
David Shirley | 2b5200a | 2005-11-08 21:37:22 -0800 | [diff] [blame] | 900 | [CX88_BOARD_WINFAST_DTV1000] = { |
| 901 | .name = "WinFast DTV1000-T", |
| 902 | .tuner_type = TUNER_ABSENT, |
| 903 | .radio_type = UNSET, |
| 904 | .tuner_addr = ADDR_UNSET, |
| 905 | .radio_addr = ADDR_UNSET, |
| 906 | .input = {{ |
| 907 | .type = CX88_VMUX_DVB, |
| 908 | .vmux = 0, |
Jean Delvare | e8f4e75 | 2007-03-31 10:34:59 -0300 | [diff] [blame] | 909 | },{ |
| 910 | .type = CX88_VMUX_COMPOSITE1, |
| 911 | .vmux = 1, |
| 912 | },{ |
| 913 | .type = CX88_VMUX_SVIDEO, |
| 914 | .vmux = 2, |
David Shirley | 2b5200a | 2005-11-08 21:37:22 -0800 | [diff] [blame] | 915 | }}, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 916 | .mpeg = CX88_MPEG_DVB, |
David Shirley | 2b5200a | 2005-11-08 21:37:22 -0800 | [diff] [blame] | 917 | }, |
Lubomir Bulej | 7418f34 | 2005-11-08 21:38:34 -0800 | [diff] [blame] | 918 | [CX88_BOARD_AVERTV_303] = { |
| 919 | .name = "AVerTV 303 (M126)", |
| 920 | .tuner_type = TUNER_PHILIPS_FM1216ME_MK3, |
| 921 | .radio_type = UNSET, |
| 922 | .tuner_addr = ADDR_UNSET, |
| 923 | .radio_addr = ADDR_UNSET, |
| 924 | .tda9887_conf = TDA9887_PRESENT, |
| 925 | .input = {{ |
| 926 | .type = CX88_VMUX_TELEVISION, |
| 927 | .vmux = 0, |
| 928 | .gpio0 = 0x00ff, |
| 929 | .gpio1 = 0xe09f, |
| 930 | .gpio2 = 0x0010, |
| 931 | .gpio3 = 0x0000, |
| 932 | },{ |
| 933 | .type = CX88_VMUX_COMPOSITE1, |
| 934 | .vmux = 1, |
| 935 | .gpio0 = 0x00ff, |
| 936 | .gpio1 = 0xe05f, |
| 937 | .gpio2 = 0x0010, |
| 938 | .gpio3 = 0x0000, |
| 939 | },{ |
| 940 | .type = CX88_VMUX_SVIDEO, |
| 941 | .vmux = 2, |
| 942 | .gpio0 = 0x00ff, |
| 943 | .gpio1 = 0xe05f, |
| 944 | .gpio2 = 0x0010, |
| 945 | .gpio3 = 0x0000, |
| 946 | }}, |
| 947 | }, |
Steven Toth | 0fa14aa | 2006-01-09 15:25:02 -0200 | [diff] [blame] | 948 | [CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1] = { |
| 949 | .name = "Hauppauge Nova-S-Plus DVB-S", |
| 950 | .tuner_type = TUNER_ABSENT, |
| 951 | .radio_type = UNSET, |
| 952 | .tuner_addr = ADDR_UNSET, |
| 953 | .radio_addr = ADDR_UNSET, |
Steven Toth | 0fa14aa | 2006-01-09 15:25:02 -0200 | [diff] [blame] | 954 | .input = {{ |
| 955 | .type = CX88_VMUX_DVB, |
| 956 | .vmux = 0, |
| 957 | },{ |
| 958 | .type = CX88_VMUX_COMPOSITE1, |
| 959 | .vmux = 1, |
| 960 | },{ |
| 961 | .type = CX88_VMUX_SVIDEO, |
| 962 | .vmux = 2, |
| 963 | }}, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 964 | .mpeg = CX88_MPEG_DVB, |
Steven Toth | 0fa14aa | 2006-01-09 15:25:02 -0200 | [diff] [blame] | 965 | }, |
| 966 | [CX88_BOARD_HAUPPAUGE_NOVASE2_S1] = { |
| 967 | .name = "Hauppauge Nova-SE2 DVB-S", |
| 968 | .tuner_type = TUNER_ABSENT, |
| 969 | .radio_type = UNSET, |
| 970 | .tuner_addr = ADDR_UNSET, |
| 971 | .radio_addr = ADDR_UNSET, |
| 972 | .input = {{ |
| 973 | .type = CX88_VMUX_DVB, |
| 974 | .vmux = 0, |
| 975 | }}, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 976 | .mpeg = CX88_MPEG_DVB, |
Steven Toth | 0fa14aa | 2006-01-09 15:25:02 -0200 | [diff] [blame] | 977 | }, |
Vadim Catana | 0e0351e | 2006-01-09 15:25:02 -0200 | [diff] [blame] | 978 | [CX88_BOARD_KWORLD_DVBS_100] = { |
| 979 | .name = "KWorld DVB-S 100", |
| 980 | .tuner_type = TUNER_ABSENT, |
| 981 | .radio_type = UNSET, |
| 982 | .tuner_addr = ADDR_UNSET, |
| 983 | .radio_addr = ADDR_UNSET, |
| 984 | .input = {{ |
| 985 | .type = CX88_VMUX_DVB, |
| 986 | .vmux = 0, |
| 987 | },{ |
| 988 | .type = CX88_VMUX_COMPOSITE1, |
| 989 | .vmux = 1, |
| 990 | },{ |
| 991 | .type = CX88_VMUX_SVIDEO, |
| 992 | .vmux = 2, |
| 993 | }}, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 994 | .mpeg = CX88_MPEG_DVB, |
Vadim Catana | 0e0351e | 2006-01-09 15:25:02 -0200 | [diff] [blame] | 995 | }, |
Steven Toth | 611900c | 2006-01-09 15:25:12 -0200 | [diff] [blame] | 996 | [CX88_BOARD_HAUPPAUGE_HVR1100] = { |
| 997 | .name = "Hauppauge WinTV-HVR1100 DVB-T/Hybrid", |
| 998 | .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3, |
| 999 | .radio_type = UNSET, |
| 1000 | .tuner_addr = ADDR_UNSET, |
| 1001 | .radio_addr = ADDR_UNSET, |
| 1002 | .tda9887_conf = TDA9887_PRESENT, |
| 1003 | .input = {{ |
| 1004 | .type = CX88_VMUX_TELEVISION, |
| 1005 | .vmux = 0, |
| 1006 | },{ |
| 1007 | .type = CX88_VMUX_COMPOSITE1, |
| 1008 | .vmux = 1, |
| 1009 | },{ |
| 1010 | .type = CX88_VMUX_SVIDEO, |
| 1011 | .vmux = 2, |
| 1012 | }}, |
| 1013 | /* fixme: Add radio support */ |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 1014 | .mpeg = CX88_MPEG_DVB, |
Steven Toth | 611900c | 2006-01-09 15:25:12 -0200 | [diff] [blame] | 1015 | }, |
| 1016 | [CX88_BOARD_HAUPPAUGE_HVR1100LP] = { |
| 1017 | .name = "Hauppauge WinTV-HVR1100 DVB-T/Hybrid (Low Profile)", |
| 1018 | .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3, |
| 1019 | .radio_type = UNSET, |
| 1020 | .tuner_addr = ADDR_UNSET, |
| 1021 | .radio_addr = ADDR_UNSET, |
| 1022 | .tda9887_conf = TDA9887_PRESENT, |
| 1023 | .input = {{ |
| 1024 | .type = CX88_VMUX_TELEVISION, |
| 1025 | .vmux = 0, |
| 1026 | },{ |
| 1027 | .type = CX88_VMUX_COMPOSITE1, |
| 1028 | .vmux = 1, |
| 1029 | }}, |
| 1030 | /* fixme: Add radio support */ |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 1031 | .mpeg = CX88_MPEG_DVB, |
Steven Toth | 611900c | 2006-01-09 15:25:12 -0200 | [diff] [blame] | 1032 | }, |
Chris Pascoe | fc40b26 | 2006-01-09 15:25:35 -0200 | [diff] [blame] | 1033 | [CX88_BOARD_DNTV_LIVE_DVB_T_PRO] = { |
| 1034 | .name = "digitalnow DNTV Live! DVB-T Pro", |
| 1035 | .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3, |
| 1036 | .radio_type = UNSET, |
| 1037 | .tuner_addr = ADDR_UNSET, |
| 1038 | .radio_addr = ADDR_UNSET, |
| 1039 | .tda9887_conf = TDA9887_PRESENT | TDA9887_PORT1_ACTIVE | |
| 1040 | TDA9887_PORT2_ACTIVE, |
| 1041 | .input = {{ |
| 1042 | .type = CX88_VMUX_TELEVISION, |
| 1043 | .vmux = 0, |
| 1044 | .gpio0 = 0xf80808, |
| 1045 | },{ |
| 1046 | .type = CX88_VMUX_COMPOSITE1, |
| 1047 | .vmux = 1, |
| 1048 | .gpio0 = 0xf80808, |
| 1049 | },{ |
| 1050 | .type = CX88_VMUX_SVIDEO, |
| 1051 | .vmux = 2, |
| 1052 | .gpio0 = 0xf80808, |
| 1053 | }}, |
| 1054 | .radio = { |
| 1055 | .type = CX88_RADIO, |
| 1056 | .gpio0 = 0xf80808, |
| 1057 | }, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 1058 | .mpeg = CX88_MPEG_DVB, |
Chris Pascoe | fc40b26 | 2006-01-09 15:25:35 -0200 | [diff] [blame] | 1059 | }, |
Manenti Marco | f39624f | 2006-01-09 15:32:45 -0200 | [diff] [blame] | 1060 | [CX88_BOARD_KWORLD_DVB_T_CX22702] = { |
| 1061 | /* Kworld V-stream Xpert DVB-T with Thomson tuner */ |
| 1062 | /* DTT 7579 Conexant CX22702-19 Conexant CX2388x */ |
| 1063 | /* Manenti Marco <marco_manenti@colman.it> */ |
| 1064 | .name = "KWorld/VStream XPert DVB-T with cx22702", |
| 1065 | .tuner_type = TUNER_ABSENT, |
| 1066 | .radio_type = UNSET, |
| 1067 | .tuner_addr = ADDR_UNSET, |
| 1068 | .radio_addr = ADDR_UNSET, |
| 1069 | .input = {{ |
| 1070 | .type = CX88_VMUX_COMPOSITE1, |
| 1071 | .vmux = 1, |
| 1072 | .gpio0 = 0x0700, |
| 1073 | .gpio2 = 0x0101, |
| 1074 | },{ |
| 1075 | .type = CX88_VMUX_SVIDEO, |
| 1076 | .vmux = 2, |
| 1077 | .gpio0 = 0x0700, |
| 1078 | .gpio2 = 0x0101, |
| 1079 | }}, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 1080 | .mpeg = CX88_MPEG_DVB, |
Manenti Marco | f39624f | 2006-01-09 15:32:45 -0200 | [diff] [blame] | 1081 | }, |
Chris Pascoe | 43eabb4 | 2006-01-09 18:21:28 -0200 | [diff] [blame] | 1082 | [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL] = { |
| 1083 | .name = "DViCO FusionHDTV DVB-T Dual Digital", |
| 1084 | .tuner_type = TUNER_ABSENT, /* No analog tuner */ |
| 1085 | .radio_type = UNSET, |
| 1086 | .tuner_addr = ADDR_UNSET, |
| 1087 | .radio_addr = ADDR_UNSET, |
| 1088 | .input = {{ |
| 1089 | .type = CX88_VMUX_COMPOSITE1, |
| 1090 | .vmux = 1, |
Chris Pascoe | d536e9c | 2006-08-10 03:22:21 -0300 | [diff] [blame] | 1091 | .gpio0 = 0x000067df, |
Chris Pascoe | 43eabb4 | 2006-01-09 18:21:28 -0200 | [diff] [blame] | 1092 | },{ |
| 1093 | .type = CX88_VMUX_SVIDEO, |
| 1094 | .vmux = 2, |
Chris Pascoe | d536e9c | 2006-08-10 03:22:21 -0300 | [diff] [blame] | 1095 | .gpio0 = 0x000067df, |
Chris Pascoe | 43eabb4 | 2006-01-09 18:21:28 -0200 | [diff] [blame] | 1096 | }}, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 1097 | .mpeg = CX88_MPEG_DVB, |
Chris Pascoe | 43eabb4 | 2006-01-09 18:21:28 -0200 | [diff] [blame] | 1098 | }, |
Michael Krufky | 44256de | 2006-02-07 06:49:14 -0200 | [diff] [blame] | 1099 | [CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT] = { |
Michael Krufky | 44256de | 2006-02-07 06:49:14 -0200 | [diff] [blame] | 1100 | .name = "KWorld HardwareMpegTV XPert", |
| 1101 | .tuner_type = TUNER_PHILIPS_TDA8290, |
| 1102 | .radio_type = UNSET, |
| 1103 | .tuner_addr = ADDR_UNSET, |
| 1104 | .radio_addr = ADDR_UNSET, |
| 1105 | .input = {{ |
| 1106 | .type = CX88_VMUX_TELEVISION, |
| 1107 | .vmux = 0, |
Michael Krufky | e279821 | 2006-02-27 00:07:58 -0300 | [diff] [blame] | 1108 | .gpio0 = 0x3de2, |
Michael Krufky | 24da4e4 | 2006-02-27 00:08:01 -0300 | [diff] [blame] | 1109 | .gpio2 = 0x00ff, |
Michael Krufky | bc53f78 | 2006-05-28 01:43:35 -0300 | [diff] [blame] | 1110 | },{ |
| 1111 | .type = CX88_VMUX_COMPOSITE1, |
| 1112 | .vmux = 1, |
| 1113 | .gpio0 = 0x3de6, |
Ricardo Cerqueira | 7b27d45 | 2007-09-30 13:02:49 -0300 | [diff] [blame] | 1114 | .audioroute = 1, |
Michael Krufky | bc53f78 | 2006-05-28 01:43:35 -0300 | [diff] [blame] | 1115 | },{ |
| 1116 | .type = CX88_VMUX_SVIDEO, |
| 1117 | .vmux = 2, |
| 1118 | .gpio0 = 0x3de6, |
Ricardo Cerqueira | 7b27d45 | 2007-09-30 13:02:49 -0300 | [diff] [blame] | 1119 | .audioroute = 1, |
Michael Krufky | 44256de | 2006-02-07 06:49:14 -0200 | [diff] [blame] | 1120 | }}, |
Michael Krufky | e279821 | 2006-02-27 00:07:58 -0300 | [diff] [blame] | 1121 | .radio = { |
| 1122 | .type = CX88_RADIO, |
| 1123 | .gpio0 = 0x3de6, |
Michael Krufky | 24da4e4 | 2006-02-27 00:08:01 -0300 | [diff] [blame] | 1124 | .gpio2 = 0x00ff, |
Michael Krufky | e279821 | 2006-02-27 00:07:58 -0300 | [diff] [blame] | 1125 | }, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 1126 | .mpeg = CX88_MPEG_BLACKBIRD, |
Michael Krufky | 44256de | 2006-02-07 06:49:14 -0200 | [diff] [blame] | 1127 | }, |
Chris Pascoe | 780dfef | 2006-02-28 08:34:59 -0300 | [diff] [blame] | 1128 | [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID] = { |
| 1129 | .name = "DViCO FusionHDTV DVB-T Hybrid", |
Michael Krufky | 91ae329 | 2006-03-01 00:04:42 -0300 | [diff] [blame] | 1130 | .tuner_type = TUNER_THOMSON_FE6600, |
Chris Pascoe | 780dfef | 2006-02-28 08:34:59 -0300 | [diff] [blame] | 1131 | .radio_type = UNSET, |
| 1132 | .tuner_addr = ADDR_UNSET, |
| 1133 | .radio_addr = ADDR_UNSET, |
| 1134 | .input = {{ |
| 1135 | .type = CX88_VMUX_TELEVISION, |
| 1136 | .vmux = 0, |
| 1137 | .gpio0 = 0x0000a75f, |
| 1138 | },{ |
| 1139 | .type = CX88_VMUX_COMPOSITE1, |
| 1140 | .vmux = 1, |
| 1141 | .gpio0 = 0x0000a75b, |
| 1142 | },{ |
| 1143 | .type = CX88_VMUX_SVIDEO, |
| 1144 | .vmux = 2, |
| 1145 | .gpio0 = 0x0000a75b, |
| 1146 | }}, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 1147 | .mpeg = CX88_MPEG_DVB, |
Chris Pascoe | 780dfef | 2006-02-28 08:34:59 -0300 | [diff] [blame] | 1148 | }, |
Michael Krufky | e142e7c | 2006-04-07 03:24:54 -0300 | [diff] [blame] | 1149 | [CX88_BOARD_PCHDTV_HD5500] = { |
| 1150 | .name = "pcHDTV HD5500 HDTV", |
Michael Krufky | 9c26c8b | 2006-04-27 01:29:17 -0300 | [diff] [blame] | 1151 | .tuner_type = TUNER_LG_TDVS_H06XF, /* TDVS-H064F */ |
Michael Krufky | e142e7c | 2006-04-07 03:24:54 -0300 | [diff] [blame] | 1152 | .radio_type = UNSET, |
| 1153 | .tuner_addr = ADDR_UNSET, |
| 1154 | .radio_addr = ADDR_UNSET, |
| 1155 | .tda9887_conf = TDA9887_PRESENT, |
| 1156 | .input = {{ |
| 1157 | .type = CX88_VMUX_TELEVISION, |
| 1158 | .vmux = 0, |
| 1159 | .gpio0 = 0x87fd, |
| 1160 | },{ |
| 1161 | .type = CX88_VMUX_COMPOSITE1, |
| 1162 | .vmux = 1, |
| 1163 | .gpio0 = 0x87f9, |
| 1164 | },{ |
| 1165 | .type = CX88_VMUX_SVIDEO, |
| 1166 | .vmux = 2, |
| 1167 | .gpio0 = 0x87f9, |
| 1168 | }}, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 1169 | .mpeg = CX88_MPEG_DVB, |
Michael Krufky | e142e7c | 2006-04-07 03:24:54 -0300 | [diff] [blame] | 1170 | }, |
Valentin Zagura | b303830 | 2006-04-13 12:41:43 -0300 | [diff] [blame] | 1171 | [CX88_BOARD_KWORLD_MCE200_DELUXE] = { |
| 1172 | /* FIXME: tested TV input only, disabled composite, |
| 1173 | svideo and radio until they can be tested also. */ |
| 1174 | .name = "Kworld MCE 200 Deluxe", |
| 1175 | .tuner_type = TUNER_TENA_9533_DI, |
| 1176 | .radio_type = UNSET, |
| 1177 | .tda9887_conf = TDA9887_PRESENT, |
| 1178 | .tuner_addr = ADDR_UNSET, |
| 1179 | .radio_addr = ADDR_UNSET, |
| 1180 | .input = {{ |
| 1181 | .type = CX88_VMUX_TELEVISION, |
| 1182 | .vmux = 0, |
| 1183 | .gpio0 = 0x0000BDE6 |
| 1184 | }}, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 1185 | .mpeg = CX88_MPEG_BLACKBIRD, |
Valentin Zagura | b303830 | 2006-04-13 12:41:43 -0300 | [diff] [blame] | 1186 | }, |
Angelo Marconi | a312462 | 2006-05-09 18:27:48 -0300 | [diff] [blame] | 1187 | [CX88_BOARD_PIXELVIEW_PLAYTV_P7000] = { |
| 1188 | /* FIXME: SVideo, Composite and FM inputs are untested */ |
| 1189 | .name = "PixelView PlayTV P7000", |
| 1190 | .tuner_type = TUNER_PHILIPS_FM1216ME_MK3, |
| 1191 | .radio_type = UNSET, |
| 1192 | .tuner_addr = ADDR_UNSET, |
| 1193 | .radio_addr = ADDR_UNSET, |
| 1194 | .tda9887_conf = TDA9887_PRESENT | TDA9887_PORT1_ACTIVE | |
| 1195 | TDA9887_PORT2_ACTIVE, |
| 1196 | .input = {{ |
| 1197 | .type = CX88_VMUX_TELEVISION, |
| 1198 | .vmux = 0, |
| 1199 | .gpio0 = 0x5da6, |
| 1200 | }}, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 1201 | .mpeg = CX88_MPEG_BLACKBIRD, |
Angelo Marconi | a312462 | 2006-05-09 18:27:48 -0300 | [diff] [blame] | 1202 | }, |
Ricardo Cerqueira | be4f451 | 2006-06-08 17:36:17 -0300 | [diff] [blame] | 1203 | [CX88_BOARD_NPGTECH_REALTV_TOP10FM] = { |
| 1204 | .name = "NPG Tech Real TV FM Top 10", |
| 1205 | .tuner_type = TUNER_TNF_5335MF, /* Actually a TNF9535 */ |
Ricardo Cerqueira | 680543c | 2006-05-22 07:44:02 -0300 | [diff] [blame] | 1206 | .radio_type = UNSET, |
| 1207 | .tuner_addr = ADDR_UNSET, |
| 1208 | .radio_addr = ADDR_UNSET, |
| 1209 | .input = {{ |
| 1210 | .type = CX88_VMUX_TELEVISION, |
| 1211 | .vmux = 0, |
| 1212 | .gpio0 = 0x0788, |
| 1213 | },{ |
| 1214 | .type = CX88_VMUX_COMPOSITE1, |
| 1215 | .vmux = 1, |
| 1216 | .gpio0 = 0x078b, |
| 1217 | },{ |
| 1218 | .type = CX88_VMUX_SVIDEO, |
| 1219 | .vmux = 2, |
Ricardo Cerqueira | be4f451 | 2006-06-08 17:36:17 -0300 | [diff] [blame] | 1220 | .gpio0 = 0x078b, |
Ricardo Cerqueira | 680543c | 2006-05-22 07:44:02 -0300 | [diff] [blame] | 1221 | }}, |
| 1222 | .radio = { |
| 1223 | .type = CX88_RADIO, |
| 1224 | .gpio0 = 0x074a, |
| 1225 | }, |
| 1226 | }, |
Malcolm Valentine | 4bd6e9d | 2006-05-29 13:51:59 -0300 | [diff] [blame] | 1227 | [CX88_BOARD_WINFAST_DTV2000H] = { |
| 1228 | /* video inputs and radio still in testing */ |
| 1229 | .name = "WinFast DTV2000 H", |
| 1230 | .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3, |
| 1231 | .radio_type = UNSET, |
| 1232 | .tuner_addr = ADDR_UNSET, |
| 1233 | .radio_addr = ADDR_UNSET, |
| 1234 | .tda9887_conf = TDA9887_PRESENT, |
| 1235 | .input = {{ |
| 1236 | .type = CX88_VMUX_TELEVISION, |
| 1237 | .vmux = 0, |
| 1238 | .gpio0 = 0x00017304, |
| 1239 | .gpio1 = 0x00008203, |
| 1240 | .gpio2 = 0x00017304, |
| 1241 | .gpio3 = 0x02000000, |
| 1242 | }}, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 1243 | .mpeg = CX88_MPEG_DVB, |
Malcolm Valentine | 4bd6e9d | 2006-05-29 13:51:59 -0300 | [diff] [blame] | 1244 | }, |
Saqeb Akhter | c02a34f | 2006-06-29 20:29:33 -0300 | [diff] [blame] | 1245 | [CX88_BOARD_GENIATECH_DVBS] = { |
| 1246 | .name = "Geniatech DVB-S", |
| 1247 | .tuner_type = TUNER_ABSENT, |
| 1248 | .radio_type = UNSET, |
| 1249 | .tuner_addr = ADDR_UNSET, |
| 1250 | .radio_addr = ADDR_UNSET, |
| 1251 | .input = {{ |
| 1252 | .type = CX88_VMUX_DVB, |
| 1253 | .vmux = 0, |
| 1254 | },{ |
| 1255 | .type = CX88_VMUX_COMPOSITE1, |
| 1256 | .vmux = 1, |
| 1257 | }}, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 1258 | .mpeg = CX88_MPEG_DVB, |
Saqeb Akhter | c02a34f | 2006-06-29 20:29:33 -0300 | [diff] [blame] | 1259 | }, |
Eric Thomas | ad10c93 | 2006-08-08 09:10:04 -0300 | [diff] [blame] | 1260 | [CX88_BOARD_HAUPPAUGE_HVR3000] = { |
| 1261 | /* FIXME: Add dvb & radio support */ |
| 1262 | .name = "Hauppauge WinTV-HVR3000 TriMode Analog/DVB-S/DVB-T", |
| 1263 | .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3, |
| 1264 | .radio_type = UNSET, |
| 1265 | .tuner_addr = ADDR_UNSET, |
| 1266 | .radio_addr = ADDR_UNSET, |
| 1267 | .tda9887_conf = TDA9887_PRESENT, |
| 1268 | .input = {{ |
| 1269 | .type = CX88_VMUX_TELEVISION, |
| 1270 | .vmux = 0, |
| 1271 | .gpio0 = 0x84bf, |
| 1272 | },{ |
| 1273 | .type = CX88_VMUX_COMPOSITE1, |
| 1274 | .vmux = 1, |
| 1275 | .gpio0 = 0x84bf, |
| 1276 | },{ |
| 1277 | .type = CX88_VMUX_SVIDEO, |
| 1278 | .vmux = 2, |
| 1279 | .gpio0 = 0x84bf, |
| 1280 | }}, |
Steven Toth | 76dc82a | 2006-09-30 00:43:58 -0300 | [diff] [blame] | 1281 | .mpeg = CX88_MPEG_DVB, |
Eric Thomas | ad10c93 | 2006-08-08 09:10:04 -0300 | [diff] [blame] | 1282 | }, |
Peter Naulls | d1009bd | 2006-08-08 09:10:05 -0300 | [diff] [blame] | 1283 | [CX88_BOARD_NORWOOD_MICRO] = { |
| 1284 | .name = "Norwood Micro TV Tuner", |
| 1285 | .tuner_type = TUNER_TNF_5335MF, |
| 1286 | .radio_type = UNSET, |
| 1287 | .tuner_addr = ADDR_UNSET, |
| 1288 | .radio_addr = ADDR_UNSET, |
| 1289 | .input = {{ |
| 1290 | .type = CX88_VMUX_TELEVISION, |
| 1291 | .vmux = 0, |
| 1292 | .gpio0 = 0x0709, |
| 1293 | },{ |
| 1294 | .type = CX88_VMUX_COMPOSITE1, |
| 1295 | .vmux = 1, |
| 1296 | .gpio0 = 0x070b, |
| 1297 | },{ |
| 1298 | .type = CX88_VMUX_SVIDEO, |
| 1299 | .vmux = 2, |
| 1300 | .gpio0 = 0x070b, |
| 1301 | }}, |
| 1302 | }, |
Michael Krufky | 5b26c82 | 2006-10-16 16:07:51 -0300 | [diff] [blame] | 1303 | [CX88_BOARD_TE_DTV_250_OEM_SWANN] = { |
| 1304 | .name = "Shenzhen Tungsten Ages Tech TE-DTV-250 / Swann OEM", |
| 1305 | .tuner_type = TUNER_LG_PAL_NEW_TAPC, |
| 1306 | .radio_type = UNSET, |
| 1307 | .tuner_addr = ADDR_UNSET, |
| 1308 | .radio_addr = ADDR_UNSET, |
| 1309 | .input = {{ |
| 1310 | .type = CX88_VMUX_TELEVISION, |
| 1311 | .vmux = 0, |
| 1312 | .gpio0 = 0x003fffff, |
| 1313 | .gpio1 = 0x00e00000, |
| 1314 | .gpio2 = 0x003fffff, |
| 1315 | .gpio3 = 0x02000000, |
David Bussenschutt | 2acadef | 2006-08-08 09:10:05 -0300 | [diff] [blame] | 1316 | },{ |
Michael Krufky | 5b26c82 | 2006-10-16 16:07:51 -0300 | [diff] [blame] | 1317 | .type = CX88_VMUX_COMPOSITE1, |
| 1318 | .vmux = 1, |
| 1319 | .gpio0 = 0x003fffff, |
| 1320 | .gpio1 = 0x00e00000, |
| 1321 | .gpio2 = 0x003fffff, |
| 1322 | .gpio3 = 0x02000000, |
| 1323 | },{ |
| 1324 | .type = CX88_VMUX_SVIDEO, |
| 1325 | .vmux = 2, |
| 1326 | .gpio0 = 0x003fffff, |
| 1327 | .gpio1 = 0x00e00000, |
| 1328 | .gpio2 = 0x003fffff, |
| 1329 | .gpio3 = 0x02000000, |
| 1330 | }}, |
| 1331 | }, |
Steven Toth | aa481a6 | 2006-09-14 15:41:13 -0300 | [diff] [blame] | 1332 | [CX88_BOARD_HAUPPAUGE_HVR1300] = { |
| 1333 | .name = "Hauppauge WinTV-HVR1300 DVB-T/Hybrid MPEG Encoder", |
| 1334 | .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3, |
| 1335 | .radio_type = UNSET, |
| 1336 | .tuner_addr = ADDR_UNSET, |
| 1337 | .radio_addr = ADDR_UNSET, |
| 1338 | .tda9887_conf = TDA9887_PRESENT, |
Steven Toth | 3057906 | 2006-09-25 12:43:42 -0300 | [diff] [blame] | 1339 | .audio_chip = AUDIO_CHIP_WM8775, |
Steven Toth | aa481a6 | 2006-09-14 15:41:13 -0300 | [diff] [blame] | 1340 | .input = {{ |
| 1341 | .type = CX88_VMUX_TELEVISION, |
| 1342 | .vmux = 0, |
| 1343 | .gpio0 = 0xe780, |
Ricardo Cerqueira | 7b27d45 | 2007-09-30 13:02:49 -0300 | [diff] [blame] | 1344 | .audioroute = 1, |
Steven Toth | aa481a6 | 2006-09-14 15:41:13 -0300 | [diff] [blame] | 1345 | },{ |
| 1346 | .type = CX88_VMUX_COMPOSITE1, |
| 1347 | .vmux = 1, |
| 1348 | .gpio0 = 0xe780, |
Ricardo Cerqueira | 7b27d45 | 2007-09-30 13:02:49 -0300 | [diff] [blame] | 1349 | .audioroute = 2, |
Steven Toth | aa481a6 | 2006-09-14 15:41:13 -0300 | [diff] [blame] | 1350 | },{ |
| 1351 | .type = CX88_VMUX_SVIDEO, |
| 1352 | .vmux = 2, |
| 1353 | .gpio0 = 0xe780, |
Ricardo Cerqueira | 7b27d45 | 2007-09-30 13:02:49 -0300 | [diff] [blame] | 1354 | .audioroute = 2, |
Steven Toth | aa481a6 | 2006-09-14 15:41:13 -0300 | [diff] [blame] | 1355 | }}, |
| 1356 | /* fixme: Add radio support */ |
Steven Toth | 6c5be74 | 2006-12-02 21:15:51 -0200 | [diff] [blame] | 1357 | .mpeg = CX88_MPEG_DVB | CX88_MPEG_BLACKBIRD, |
Steven Toth | aa481a6 | 2006-09-14 15:41:13 -0300 | [diff] [blame] | 1358 | }, |
Daniel Gimpelevich | 7cb47a14 | 2007-05-17 18:10:17 -0300 | [diff] [blame] | 1359 | [CX88_BOARD_ADSTECH_PTV_390] = { |
| 1360 | .name = "ADS Tech Instant Video PCI", |
| 1361 | .tuner_type = TUNER_ABSENT, |
| 1362 | .radio_type = UNSET, |
| 1363 | .tuner_addr = ADDR_UNSET, |
| 1364 | .radio_addr = ADDR_UNSET, |
| 1365 | .input = {{ |
| 1366 | .type = CX88_VMUX_DEBUG, |
| 1367 | .vmux = 3, |
| 1368 | .gpio0 = 0x04ff, |
| 1369 | },{ |
| 1370 | .type = CX88_VMUX_COMPOSITE1, |
| 1371 | .vmux = 1, |
| 1372 | .gpio0 = 0x07fa, |
| 1373 | },{ |
| 1374 | .type = CX88_VMUX_SVIDEO, |
| 1375 | .vmux = 2, |
| 1376 | .gpio0 = 0x07fa, |
| 1377 | }}, |
| 1378 | }, |
Steven Toth | 60464da | 2008-01-05 16:53:01 -0300 | [diff] [blame] | 1379 | [CX88_BOARD_PINNACLE_PCTV_HD_800i] = { |
| 1380 | .name = "Pinnacle PCTV HD 800i", |
| 1381 | .tuner_type = TUNER_XC5000, |
| 1382 | .radio_type = UNSET, |
| 1383 | .tuner_addr = ADDR_UNSET, |
| 1384 | .radio_addr = ADDR_UNSET, |
| 1385 | .input = {{ |
| 1386 | .type = CX88_VMUX_TELEVISION, |
| 1387 | .vmux = 0, |
| 1388 | .gpio0 = 0x04fb, |
| 1389 | .gpio1 = 0x10ff, |
| 1390 | },{ |
| 1391 | .type = CX88_VMUX_COMPOSITE1, |
| 1392 | .vmux = 1, |
| 1393 | .gpio0 = 0x04fb, |
| 1394 | .gpio1 = 0x10ef, |
| 1395 | .audioroute = 1, |
| 1396 | },{ |
| 1397 | .type = CX88_VMUX_SVIDEO, |
| 1398 | .vmux = 2, |
| 1399 | .gpio0 = 0x04fb, |
| 1400 | .gpio1 = 0x10ef, |
| 1401 | .audioroute = 1, |
| 1402 | }}, |
| 1403 | .mpeg = CX88_MPEG_DVB, |
| 1404 | }, |
Steven Toth | 5c00fac | 2008-04-22 14:45:14 -0300 | [diff] [blame] | 1405 | [CX88_BOARD_DVICO_FUSIONHDTV_5_PCI_NANO] = { |
Michael Krufky | 8efd2e2 | 2008-04-22 14:45:14 -0300 | [diff] [blame] | 1406 | .name = "DViCO FusionHDTV 5 PCI nano", |
| 1407 | /* xc3008 tuner, digital only for now */ |
Steven Toth | 5c00fac | 2008-04-22 14:45:14 -0300 | [diff] [blame] | 1408 | .tuner_type = TUNER_ABSENT, |
| 1409 | .radio_type = UNSET, |
| 1410 | .tuner_addr = ADDR_UNSET, |
| 1411 | .radio_addr = ADDR_UNSET, |
| 1412 | .input = {{ |
| 1413 | .type = CX88_VMUX_TELEVISION, |
| 1414 | .vmux = 0, |
| 1415 | .gpio0 = 0x000027df, /* Unconfirmed */ |
| 1416 | }, { |
| 1417 | .type = CX88_VMUX_COMPOSITE1, |
| 1418 | .vmux = 1, |
| 1419 | .gpio0 = 0x000027df, /* Unconfirmed */ |
| 1420 | .audioroute = 1, |
| 1421 | }, { |
| 1422 | .type = CX88_VMUX_SVIDEO, |
| 1423 | .vmux = 2, |
| 1424 | .gpio0 = 0x000027df, /* Unconfirmed */ |
| 1425 | .audioroute = 1, |
| 1426 | } }, |
| 1427 | .mpeg = CX88_MPEG_DVB, |
| 1428 | }, |
Mauro Carvalho Chehab | 9507901 | 2008-04-22 14:45:15 -0300 | [diff] [blame] | 1429 | [CX88_BOARD_PINNACLE_HYBRID_PCTV] = { |
| 1430 | .name = "Pinnacle Hybrid PCTV", |
| 1431 | .tuner_type = TUNER_XC2028, |
| 1432 | .tuner_addr = 0x61, |
| 1433 | .input = { { |
| 1434 | .type = CX88_VMUX_TELEVISION, |
| 1435 | .vmux = 0, |
| 1436 | }, { |
| 1437 | .type = CX88_VMUX_COMPOSITE1, |
| 1438 | .vmux = 1, |
| 1439 | }, { |
| 1440 | .type = CX88_VMUX_SVIDEO, |
| 1441 | .vmux = 2, |
| 1442 | } }, |
| 1443 | .radio = { |
| 1444 | .type = CX88_RADIO, |
| 1445 | .gpio0 = 0x004ff, |
| 1446 | .gpio1 = 0x010ff, |
| 1447 | .gpio2 = 0x0ff, |
| 1448 | }, |
| 1449 | }, |
| 1450 | [CX88_BOARD_WINFAST_TV2000_XP_GLOBAL] = { |
| 1451 | .name = "Winfast TV2000 XP Global", |
| 1452 | .tuner_type = TUNER_XC2028, |
| 1453 | .tuner_addr = 0x61, |
| 1454 | .input = { { |
| 1455 | .type = CX88_VMUX_TELEVISION, |
| 1456 | .vmux = 0, |
| 1457 | .gpio0 = 0x0400, /* pin 2:mute = 0 (off?) */ |
| 1458 | .gpio1 = 0x0000, |
| 1459 | .gpio2 = 0x0800, /* pin 19:audio = 0 (tv) */ |
| 1460 | |
| 1461 | }, { |
| 1462 | .type = CX88_VMUX_COMPOSITE1, |
| 1463 | .vmux = 1, |
| 1464 | .gpio0 = 0x0400, /* probably? or 0x0404 to turn mute on */ |
| 1465 | .gpio1 = 0x0000, |
| 1466 | .gpio2 = 0x0808, /* pin 19:audio = 1 (line) */ |
| 1467 | |
| 1468 | }, { |
| 1469 | .type = CX88_VMUX_SVIDEO, |
| 1470 | .vmux = 2, |
| 1471 | } }, |
| 1472 | .radio = { |
| 1473 | .type = CX88_RADIO, |
| 1474 | .gpio0 = 0x004ff, |
| 1475 | .gpio1 = 0x010ff, |
| 1476 | .gpio2 = 0x0ff, |
| 1477 | }, |
| 1478 | }, |
| 1479 | [CX88_BOARD_POWERCOLOR_REAL_ANGEL] = { |
| 1480 | .name = "PowerColor Real Angel 330", |
| 1481 | .tuner_type = TUNER_XC2028, |
| 1482 | .tuner_addr = 0x61, |
| 1483 | .input = { { |
| 1484 | .type = CX88_VMUX_TELEVISION, |
| 1485 | .vmux = 0, |
| 1486 | .gpio0 = 0x0400, /* pin 2:mute = 0 (off?) */ |
| 1487 | .gpio1 = 0x0000, |
| 1488 | .gpio2 = 0x0800, /* pin 19:audio = 0 (tv) */ |
| 1489 | }, { |
| 1490 | .type = CX88_VMUX_COMPOSITE1, |
| 1491 | .vmux = 1, |
| 1492 | .gpio0 = 0x0400, /* probably? or 0x0404 to turn mute on */ |
| 1493 | .gpio1 = 0x0000, |
| 1494 | .gpio2 = 0x0808, /* pin 19:audio = 1 (line) */ |
| 1495 | }, { |
| 1496 | .type = CX88_VMUX_SVIDEO, |
| 1497 | .vmux = 2, |
| 1498 | .gpio0 = 0x000ff, |
| 1499 | .gpio1 = 0x0f37d, |
| 1500 | .gpio2 = 0x00019, |
| 1501 | .gpio3 = 0x00000, |
| 1502 | } }, |
| 1503 | .radio = { |
| 1504 | .type = CX88_RADIO, |
| 1505 | .gpio0 = 0x000ff, |
| 1506 | .gpio1 = 0x0f35d, |
| 1507 | .gpio2 = 0x00019, |
| 1508 | .gpio3 = 0x00000, |
| 1509 | }, |
| 1510 | }, |
| 1511 | [CX88_BOARD_GENIATECH_X8000_MT] = { |
| 1512 | /* Also PowerColor Real Angel 330 and Geniatech X800 OEM */ |
| 1513 | .name = "Geniatech X8000-MT DVBT", |
| 1514 | .tuner_type = TUNER_XC2028, |
| 1515 | .tuner_addr = 0x61, |
| 1516 | .input = { { |
| 1517 | .type = CX88_VMUX_TELEVISION, |
| 1518 | .vmux = 0, |
| 1519 | .gpio0 = 0x00000000, |
| 1520 | .gpio1 = 0x00e3e341, |
| 1521 | .gpio2 = 0x00000000, |
| 1522 | .gpio3 = 0x00000000, |
| 1523 | }, { |
| 1524 | .type = CX88_VMUX_COMPOSITE1, |
| 1525 | .vmux = 1, |
| 1526 | .gpio0 = 0x00000000, |
| 1527 | .gpio1 = 0x00e3e361, |
| 1528 | .gpio2 = 0x00000000, |
| 1529 | .gpio3 = 0x00000000, |
| 1530 | }, { |
| 1531 | .type = CX88_VMUX_SVIDEO, |
| 1532 | .vmux = 2, |
| 1533 | .gpio0 = 0x00000000, |
| 1534 | .gpio1 = 0x00e3e361, |
| 1535 | .gpio2 = 0x00000000, |
| 1536 | .gpio3 = 0x00000000, |
| 1537 | } }, |
| 1538 | .radio = { |
| 1539 | .type = CX88_RADIO, |
| 1540 | .gpio0 = 0x00000000, |
| 1541 | .gpio1 = 0x00e3e341, |
| 1542 | .gpio2 = 0x00000000, |
| 1543 | .gpio3 = 0x00000000, |
| 1544 | }, |
| 1545 | .mpeg = CX88_MPEG_DVB, |
Chris Pascoe | b3fb91d | 2008-04-22 14:45:15 -0300 | [diff] [blame^] | 1546 | }, |
| 1547 | [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PRO] = { |
| 1548 | .name = "DViCO FusionHDTV DVB-T PRO", |
| 1549 | .tuner_type = TUNER_ABSENT, /* XXX: Has XC3028 */ |
| 1550 | .radio_type = UNSET, |
| 1551 | .tuner_addr = ADDR_UNSET, |
| 1552 | .radio_addr = ADDR_UNSET, |
| 1553 | .input = { { |
| 1554 | .type = CX88_VMUX_COMPOSITE1, |
| 1555 | .vmux = 1, |
| 1556 | .gpio0 = 0x000067df, |
| 1557 | }, { |
| 1558 | .type = CX88_VMUX_SVIDEO, |
| 1559 | .vmux = 2, |
| 1560 | .gpio0 = 0x000067df, |
| 1561 | } }, |
| 1562 | .mpeg = CX88_MPEG_DVB, |
| 1563 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1564 | }; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1565 | |
| 1566 | /* ------------------------------------------------------------------ */ |
| 1567 | /* PCI subsystem IDs */ |
| 1568 | |
Trent Piepho | bbc8359 | 2007-08-15 14:41:58 -0300 | [diff] [blame] | 1569 | static const struct cx88_subid cx88_subids[] = { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1570 | { |
| 1571 | .subvendor = 0x0070, |
| 1572 | .subdevice = 0x3400, |
| 1573 | .card = CX88_BOARD_HAUPPAUGE, |
| 1574 | },{ |
| 1575 | .subvendor = 0x0070, |
| 1576 | .subdevice = 0x3401, |
| 1577 | .card = CX88_BOARD_HAUPPAUGE, |
| 1578 | },{ |
| 1579 | .subvendor = 0x14c7, |
| 1580 | .subdevice = 0x0106, |
| 1581 | .card = CX88_BOARD_GDI, |
| 1582 | },{ |
| 1583 | .subvendor = 0x14c7, |
| 1584 | .subdevice = 0x0107, /* with mpeg encoder */ |
| 1585 | .card = CX88_BOARD_GDI, |
| 1586 | },{ |
| 1587 | .subvendor = PCI_VENDOR_ID_ATI, |
| 1588 | .subdevice = 0x00f8, |
| 1589 | .card = CX88_BOARD_ATI_WONDER_PRO, |
| 1590 | },{ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1591 | .subvendor = 0x107d, |
| 1592 | .subdevice = 0x6611, |
| 1593 | .card = CX88_BOARD_WINFAST2000XP_EXPERT, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1594 | },{ |
| 1595 | .subvendor = 0x107d, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1596 | .subdevice = 0x6613, /* NTSC */ |
| 1597 | .card = CX88_BOARD_WINFAST2000XP_EXPERT, |
| 1598 | },{ |
| 1599 | .subvendor = 0x107d, |
| 1600 | .subdevice = 0x6620, |
| 1601 | .card = CX88_BOARD_WINFAST_DV2000, |
| 1602 | },{ |
| 1603 | .subvendor = 0x107d, |
| 1604 | .subdevice = 0x663b, |
| 1605 | .card = CX88_BOARD_LEADTEK_PVR2000, |
| 1606 | },{ |
| 1607 | .subvendor = 0x107d, |
Michael Krufky | 8dd86ee | 2006-09-16 19:09:38 -0300 | [diff] [blame] | 1608 | .subdevice = 0x663c, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1609 | .card = CX88_BOARD_LEADTEK_PVR2000, |
| 1610 | },{ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1611 | .subvendor = 0x1461, |
| 1612 | .subdevice = 0x000b, |
Lubomir Bulej | 7418f34 | 2005-11-08 21:38:34 -0800 | [diff] [blame] | 1613 | .card = CX88_BOARD_AVERTV_STUDIO_303, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1614 | },{ |
| 1615 | .subvendor = 0x1462, |
| 1616 | .subdevice = 0x8606, |
| 1617 | .card = CX88_BOARD_MSI_TVANYWHERE_MASTER, |
| 1618 | },{ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1619 | .subvendor = 0x10fc, |
| 1620 | .subdevice = 0xd003, |
| 1621 | .card = CX88_BOARD_IODATA_GVVCP3PCI, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1622 | },{ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1623 | .subvendor = 0x1043, |
| 1624 | .subdevice = 0x4823, /* with mpeg encoder */ |
| 1625 | .card = CX88_BOARD_ASUS_PVR_416, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1626 | },{ |
| 1627 | .subvendor = 0x17de, |
| 1628 | .subdevice = 0x08a6, |
| 1629 | .card = CX88_BOARD_KWORLD_DVB_T, |
| 1630 | },{ |
| 1631 | .subvendor = 0x18ac, |
| 1632 | .subdevice = 0xd810, |
Mauro Carvalho Chehab | a82decf | 2005-07-07 17:58:36 -0700 | [diff] [blame] | 1633 | .card = CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1634 | },{ |
Michael Krufky | 097b750 | 2005-06-23 22:04:43 -0700 | [diff] [blame] | 1635 | .subvendor = 0x18ac, |
| 1636 | .subdevice = 0xd820, |
Michael Krufky | 80d3436 | 2005-06-23 22:04:55 -0700 | [diff] [blame] | 1637 | .card = CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_T, |
Michael Krufky | 097b750 | 2005-06-23 22:04:43 -0700 | [diff] [blame] | 1638 | },{ |
Michael Krufky | 7df64e8 | 2005-11-08 21:36:16 -0800 | [diff] [blame] | 1639 | .subvendor = 0x18ac, |
| 1640 | .subdevice = 0xdb00, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1641 | .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1642 | },{ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1643 | .subvendor = 0x0070, |
| 1644 | .subdevice = 0x9002, |
| 1645 | .card = CX88_BOARD_HAUPPAUGE_DVB_T1, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1646 | },{ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1647 | .subvendor = 0x14f1, |
| 1648 | .subdevice = 0x0187, |
| 1649 | .card = CX88_BOARD_CONEXANT_DVB_T1, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1650 | },{ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1651 | .subvendor = 0x1540, |
| 1652 | .subdevice = 0x2580, |
| 1653 | .card = CX88_BOARD_PROVIDEO_PV259, |
| 1654 | },{ |
Michael Krufky | 7df64e8 | 2005-11-08 21:36:16 -0800 | [diff] [blame] | 1655 | .subvendor = 0x18ac, |
| 1656 | .subdevice = 0xdb10, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1657 | .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS, |
| 1658 | },{ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1659 | .subvendor = 0x1554, |
| 1660 | .subdevice = 0x4811, |
| 1661 | .card = CX88_BOARD_PIXELVIEW, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1662 | },{ |
| 1663 | .subvendor = 0x7063, |
| 1664 | .subdevice = 0x3000, /* HD-3000 card */ |
| 1665 | .card = CX88_BOARD_PCHDTV_HD3000, |
| 1666 | },{ |
Michael Krufky | 7df64e8 | 2005-11-08 21:36:16 -0800 | [diff] [blame] | 1667 | .subvendor = 0x17de, |
| 1668 | .subdevice = 0xa8a6, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1669 | .card = CX88_BOARD_DNTV_LIVE_DVB_T, |
| 1670 | },{ |
| 1671 | .subvendor = 0x0070, |
| 1672 | .subdevice = 0x2801, |
| 1673 | .card = CX88_BOARD_HAUPPAUGE_ROSLYN, |
| 1674 | },{ |
Michael Krufky | 7df64e8 | 2005-11-08 21:36:16 -0800 | [diff] [blame] | 1675 | .subvendor = 0x14f1, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1676 | .subdevice = 0x0342, |
| 1677 | .card = CX88_BOARD_DIGITALLOGIC_MEC, |
| 1678 | },{ |
| 1679 | .subvendor = 0x10fc, |
| 1680 | .subdevice = 0xd035, |
| 1681 | .card = CX88_BOARD_IODATA_GVBCTV7E, |
Mauro Carvalho Chehab | a82decf | 2005-07-07 17:58:36 -0700 | [diff] [blame] | 1682 | },{ |
| 1683 | .subvendor = 0x1421, |
| 1684 | .subdevice = 0x0334, |
| 1685 | .card = CX88_BOARD_ADSTECH_DVB_T_PCI, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1686 | },{ |
Michael Krufky | e057ee1 | 2005-07-07 17:58:40 -0700 | [diff] [blame] | 1687 | .subvendor = 0x153b, |
| 1688 | .subdevice = 0x1166, |
| 1689 | .card = CX88_BOARD_TERRATEC_CINERGY_1400_DVB_T1, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1690 | },{ |
Michael Krufky | 9fef07c | 2005-07-31 22:34:46 -0700 | [diff] [blame] | 1691 | .subvendor = 0x18ac, |
| 1692 | .subdevice = 0xd500, |
| 1693 | .card = CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1694 | },{ |
Nickolay V. Shmyrev | d45170e | 2005-11-08 21:36:15 -0800 | [diff] [blame] | 1695 | .subvendor = 0x1461, |
| 1696 | .subdevice = 0x8011, |
| 1697 | .card = CX88_BOARD_AVERMEDIA_ULTRATV_MC_550, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1698 | },{ |
Kirk Lapray | e976f937 | 2005-11-08 21:37:04 -0800 | [diff] [blame] | 1699 | .subvendor = PCI_VENDOR_ID_ATI, |
| 1700 | .subdevice = 0xa101, |
| 1701 | .card = CX88_BOARD_ATI_HDTVWONDER, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1702 | },{ |
David Shirley | 2b5200a | 2005-11-08 21:37:22 -0800 | [diff] [blame] | 1703 | .subvendor = 0x107d, |
| 1704 | .subdevice = 0x665f, |
| 1705 | .card = CX88_BOARD_WINFAST_DTV1000, |
Lubomir Bulej | 7418f34 | 2005-11-08 21:38:34 -0800 | [diff] [blame] | 1706 | },{ |
| 1707 | .subvendor = 0x1461, |
| 1708 | .subdevice = 0x000a, |
| 1709 | .card = CX88_BOARD_AVERTV_303, |
Steven Toth | 0fa14aa | 2006-01-09 15:25:02 -0200 | [diff] [blame] | 1710 | },{ |
| 1711 | .subvendor = 0x0070, |
| 1712 | .subdevice = 0x9200, |
Steven Toth | fb56cb6 | 2006-01-09 15:25:02 -0200 | [diff] [blame] | 1713 | .card = CX88_BOARD_HAUPPAUGE_NOVASE2_S1, |
| 1714 | },{ |
| 1715 | .subvendor = 0x0070, |
| 1716 | .subdevice = 0x9201, |
Steven Toth | 0fa14aa | 2006-01-09 15:25:02 -0200 | [diff] [blame] | 1717 | .card = CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1, |
| 1718 | },{ |
| 1719 | .subvendor = 0x0070, |
| 1720 | .subdevice = 0x9202, |
Steven Toth | fb56cb6 | 2006-01-09 15:25:02 -0200 | [diff] [blame] | 1721 | .card = CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1, |
Vadim Catana | 0e0351e | 2006-01-09 15:25:02 -0200 | [diff] [blame] | 1722 | },{ |
| 1723 | .subvendor = 0x17de, |
| 1724 | .subdevice = 0x08b2, |
| 1725 | .card = CX88_BOARD_KWORLD_DVBS_100, |
Steven Toth | 611900c | 2006-01-09 15:25:12 -0200 | [diff] [blame] | 1726 | },{ |
| 1727 | .subvendor = 0x0070, |
| 1728 | .subdevice = 0x9400, |
| 1729 | .card = CX88_BOARD_HAUPPAUGE_HVR1100, |
| 1730 | },{ |
| 1731 | .subvendor = 0x0070, |
| 1732 | .subdevice = 0x9402, |
| 1733 | .card = CX88_BOARD_HAUPPAUGE_HVR1100, |
| 1734 | },{ |
| 1735 | .subvendor = 0x0070, |
| 1736 | .subdevice = 0x9800, |
| 1737 | .card = CX88_BOARD_HAUPPAUGE_HVR1100LP, |
| 1738 | },{ |
| 1739 | .subvendor = 0x0070, |
| 1740 | .subdevice = 0x9802, |
| 1741 | .card = CX88_BOARD_HAUPPAUGE_HVR1100LP, |
Steven Toth | c432a07 | 2006-01-09 15:25:13 -0200 | [diff] [blame] | 1742 | },{ |
| 1743 | .subvendor = 0x0070, |
| 1744 | .subdevice = 0x9001, |
| 1745 | .card = CX88_BOARD_HAUPPAUGE_DVB_T1, |
Chris Pascoe | fc40b26 | 2006-01-09 15:25:35 -0200 | [diff] [blame] | 1746 | },{ |
| 1747 | .subvendor = 0x1822, |
| 1748 | .subdevice = 0x0025, |
| 1749 | .card = CX88_BOARD_DNTV_LIVE_DVB_T_PRO, |
Manenti Marco | f39624f | 2006-01-09 15:32:45 -0200 | [diff] [blame] | 1750 | },{ |
Chris Pascoe | b9f4ad5 | 2006-01-09 18:21:39 -0200 | [diff] [blame] | 1751 | .subvendor = 0x17de, |
| 1752 | .subdevice = 0x08a1, |
| 1753 | .card = CX88_BOARD_KWORLD_DVB_T_CX22702, |
Chris Pascoe | 43eabb4 | 2006-01-09 18:21:28 -0200 | [diff] [blame] | 1754 | },{ |
| 1755 | .subvendor = 0x18ac, |
| 1756 | .subdevice = 0xdb50, |
| 1757 | .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL, |
Michael Krufky | 6bfb2e1 | 2006-01-11 22:52:28 -0200 | [diff] [blame] | 1758 | },{ |
| 1759 | .subvendor = 0x18ac, |
Michael Krufky | f74a6b3 | 2006-01-17 03:50:23 -0200 | [diff] [blame] | 1760 | .subdevice = 0xdb54, |
| 1761 | .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL, |
| 1762 | /* Re-branded DViCO: DigitalNow DVB-T Dual */ |
| 1763 | },{ |
| 1764 | .subvendor = 0x18ac, |
Michael Krufky | 6bfb2e1 | 2006-01-11 22:52:28 -0200 | [diff] [blame] | 1765 | .subdevice = 0xdb11, |
| 1766 | .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS, |
| 1767 | /* Re-branded DViCO: UltraView DVB-T Plus */ |
Chris Pascoe | b3fb91d | 2008-04-22 14:45:15 -0300 | [diff] [blame^] | 1768 | }, { |
| 1769 | .subvendor = 0x18ac, |
| 1770 | .subdevice = 0xdb30, |
| 1771 | .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PRO, |
| 1772 | }, { |
Michael Krufky | 44256de | 2006-02-07 06:49:14 -0200 | [diff] [blame] | 1773 | .subvendor = 0x17de, |
| 1774 | .subdevice = 0x0840, |
Michael Krufky | 923da8a | 2007-03-11 12:52:48 -0300 | [diff] [blame] | 1775 | .card = CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT, |
| 1776 | },{ |
| 1777 | .subvendor = 0x1421, |
| 1778 | .subdevice = 0x0305, |
Michael Krufky | 44256de | 2006-02-07 06:49:14 -0200 | [diff] [blame] | 1779 | .card = CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT, |
Chris Pascoe | 780dfef | 2006-02-28 08:34:59 -0300 | [diff] [blame] | 1780 | },{ |
| 1781 | .subvendor = 0x18ac, |
| 1782 | .subdevice = 0xdb40, |
| 1783 | .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID, |
| 1784 | },{ |
| 1785 | .subvendor = 0x18ac, |
| 1786 | .subdevice = 0xdb44, |
| 1787 | .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID, |
Rusty Scott | da215d2 | 2006-04-07 02:21:31 -0300 | [diff] [blame] | 1788 | },{ |
| 1789 | .subvendor = 0x7063, |
| 1790 | .subdevice = 0x5500, |
| 1791 | .card = CX88_BOARD_PCHDTV_HD5500, |
Valentin Zagura | b303830 | 2006-04-13 12:41:43 -0300 | [diff] [blame] | 1792 | },{ |
| 1793 | .subvendor = 0x17de, |
| 1794 | .subdevice = 0x0841, |
| 1795 | .card = CX88_BOARD_KWORLD_MCE200_DELUXE, |
Michael Krufky | fc06647 | 2006-05-22 10:32:05 -0300 | [diff] [blame] | 1796 | },{ |
| 1797 | .subvendor = 0x1822, |
| 1798 | .subdevice = 0x0019, |
| 1799 | .card = CX88_BOARD_DNTV_LIVE_DVB_T_PRO, |
Angelo Marconi | a312462 | 2006-05-09 18:27:48 -0300 | [diff] [blame] | 1800 | },{ |
| 1801 | .subvendor = 0x1554, |
| 1802 | .subdevice = 0x4813, |
| 1803 | .card = CX88_BOARD_PIXELVIEW_PLAYTV_P7000, |
Ricardo Cerqueira | 680543c | 2006-05-22 07:44:02 -0300 | [diff] [blame] | 1804 | },{ |
| 1805 | .subvendor = 0x14f1, |
| 1806 | .subdevice = 0x0842, |
Ricardo Cerqueira | be4f451 | 2006-06-08 17:36:17 -0300 | [diff] [blame] | 1807 | .card = CX88_BOARD_NPGTECH_REALTV_TOP10FM, |
Malcolm Valentine | 4bd6e9d | 2006-05-29 13:51:59 -0300 | [diff] [blame] | 1808 | },{ |
| 1809 | .subvendor = 0x107d, |
| 1810 | .subdevice = 0x665e, |
| 1811 | .card = CX88_BOARD_WINFAST_DTV2000H, |
Michael Krufky | 65271bf | 2006-06-21 16:04:33 -0300 | [diff] [blame] | 1812 | },{ |
| 1813 | .subvendor = 0x18ac, |
| 1814 | .subdevice = 0xd800, /* FusionHDTV 3 Gold (original revision) */ |
| 1815 | .card = CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q, |
Saqeb Akhter | c02a34f | 2006-06-29 20:29:33 -0300 | [diff] [blame] | 1816 | },{ |
| 1817 | .subvendor = 0x14f1, |
| 1818 | .subdevice = 0x0084, |
| 1819 | .card = CX88_BOARD_GENIATECH_DVBS, |
Eric Thomas | ad10c93 | 2006-08-08 09:10:04 -0300 | [diff] [blame] | 1820 | },{ |
| 1821 | .subvendor = 0x0070, |
| 1822 | .subdevice = 0x1404, |
| 1823 | .card = CX88_BOARD_HAUPPAUGE_HVR3000, |
Michael Krufky | 5dbaa2c | 2006-08-08 09:10:04 -0300 | [diff] [blame] | 1824 | },{ |
| 1825 | .subvendor = 0x1461, |
| 1826 | .subdevice = 0xc111, /* AverMedia M150-D */ |
| 1827 | /* This board is known to work with the ASUS PVR416 config */ |
| 1828 | .card = CX88_BOARD_ASUS_PVR_416, |
David Bussenschutt | 2acadef | 2006-08-08 09:10:05 -0300 | [diff] [blame] | 1829 | },{ |
| 1830 | .subvendor = 0xc180, |
| 1831 | .subdevice = 0xc980, |
| 1832 | .card = CX88_BOARD_TE_DTV_250_OEM_SWANN, |
Steven Toth | aa481a6 | 2006-09-14 15:41:13 -0300 | [diff] [blame] | 1833 | },{ |
| 1834 | .subvendor = 0x0070, |
| 1835 | .subdevice = 0x9600, |
| 1836 | .card = CX88_BOARD_HAUPPAUGE_HVR1300, |
| 1837 | },{ |
| 1838 | .subvendor = 0x0070, |
| 1839 | .subdevice = 0x9601, |
| 1840 | .card = CX88_BOARD_HAUPPAUGE_HVR1300, |
| 1841 | },{ |
| 1842 | .subvendor = 0x0070, |
| 1843 | .subdevice = 0x9602, |
| 1844 | .card = CX88_BOARD_HAUPPAUGE_HVR1300, |
Michael Krufky | dab489d | 2006-09-15 15:41:23 -0300 | [diff] [blame] | 1845 | },{ |
| 1846 | .subvendor = 0x107d, |
| 1847 | .subdevice = 0x6632, |
| 1848 | .card = CX88_BOARD_LEADTEK_PVR2000, |
Michael Krufky | 4508f59 | 2006-09-25 14:14:24 -0300 | [diff] [blame] | 1849 | },{ |
| 1850 | .subvendor = 0x12ab, |
| 1851 | .subdevice = 0x2300, /* Club3D Zap TV2100 */ |
| 1852 | .card = CX88_BOARD_KWORLD_DVB_T_CX22702, |
Steven Toth | 3979ecc | 2006-09-29 22:37:07 -0300 | [diff] [blame] | 1853 | },{ |
| 1854 | .subvendor = 0x0070, |
| 1855 | .subdevice = 0x9000, |
| 1856 | .card = CX88_BOARD_HAUPPAUGE_DVB_T1, |
Steven Toth | 76dc82a | 2006-09-30 00:43:58 -0300 | [diff] [blame] | 1857 | },{ |
| 1858 | .subvendor = 0x0070, |
| 1859 | .subdevice = 0x1400, |
| 1860 | .card = CX88_BOARD_HAUPPAUGE_HVR3000, |
| 1861 | },{ |
| 1862 | .subvendor = 0x0070, |
| 1863 | .subdevice = 0x1401, |
| 1864 | .card = CX88_BOARD_HAUPPAUGE_HVR3000, |
| 1865 | },{ |
| 1866 | .subvendor = 0x0070, |
| 1867 | .subdevice = 0x1402, |
| 1868 | .card = CX88_BOARD_HAUPPAUGE_HVR3000, |
Michael Krufky | 733aeaf | 2007-03-11 12:48:04 -0300 | [diff] [blame] | 1869 | },{ |
| 1870 | .subvendor = 0x1421, |
| 1871 | .subdevice = 0x0341, /* ADS Tech InstantTV DVB-S */ |
| 1872 | .card = CX88_BOARD_KWORLD_DVBS_100, |
Daniel Gimpelevich | 7cb47a14 | 2007-05-17 18:10:17 -0300 | [diff] [blame] | 1873 | },{ |
| 1874 | .subvendor = 0x1421, |
| 1875 | .subdevice = 0x0390, |
| 1876 | .card = CX88_BOARD_ADSTECH_PTV_390, |
Steven Toth | 60464da | 2008-01-05 16:53:01 -0300 | [diff] [blame] | 1877 | },{ |
| 1878 | .subvendor = 0x11bd, |
| 1879 | .subdevice = 0x0051, |
| 1880 | .card = CX88_BOARD_PINNACLE_PCTV_HD_800i, |
Steven Toth | 5c00fac | 2008-04-22 14:45:14 -0300 | [diff] [blame] | 1881 | }, { |
| 1882 | .subvendor = 0x18ac, |
| 1883 | .subdevice = 0xd530, |
| 1884 | .card = CX88_BOARD_DVICO_FUSIONHDTV_5_PCI_NANO, |
Mauro Carvalho Chehab | 9507901 | 2008-04-22 14:45:15 -0300 | [diff] [blame] | 1885 | }, { |
| 1886 | .subvendor = 0x12ab, |
| 1887 | .subdevice = 0x1788, |
| 1888 | .card = CX88_BOARD_PINNACLE_HYBRID_PCTV, |
| 1889 | }, { |
| 1890 | .subvendor = 0x14f1, |
| 1891 | .subdevice = 0xea3d, |
| 1892 | .card = CX88_BOARD_POWERCOLOR_REAL_ANGEL, |
| 1893 | }, { |
| 1894 | .subvendor = 0x107d, |
| 1895 | .subdevice = 0x6f18, |
| 1896 | .card = CX88_BOARD_WINFAST_TV2000_XP_GLOBAL, |
| 1897 | }, { |
| 1898 | .subvendor = 0x14f1, |
| 1899 | .subdevice = 0x8852, |
| 1900 | .card = CX88_BOARD_GENIATECH_X8000_MT, |
| 1901 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1902 | }; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1903 | |
| 1904 | /* ----------------------------------------------------------------------- */ |
| 1905 | /* some leadtek specific stuff */ |
| 1906 | |
Jean Delvare | 69f7e75a9 | 2006-12-23 14:11:03 -0300 | [diff] [blame] | 1907 | static void leadtek_eeprom(struct cx88_core *core, u8 *eeprom_data) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1908 | { |
| 1909 | /* This is just for the "Winfast 2000XP Expert" board ATM; I don't have data on |
| 1910 | * any others. |
| 1911 | * |
| 1912 | * Byte 0 is 1 on the NTSC board. |
| 1913 | */ |
| 1914 | |
| 1915 | if (eeprom_data[4] != 0x7d || |
| 1916 | eeprom_data[5] != 0x10 || |
| 1917 | eeprom_data[7] != 0x66) { |
| 1918 | printk(KERN_WARNING "%s: Leadtek eeprom invalid.\n", |
| 1919 | core->name); |
| 1920 | return; |
| 1921 | } |
| 1922 | |
Trent Piepho | 6a59d64 | 2007-08-15 14:41:57 -0300 | [diff] [blame] | 1923 | core->board.tuner_type = (eeprom_data[6] == 0x13) ? |
| 1924 | TUNER_PHILIPS_FM1236_MK3 : TUNER_PHILIPS_FM1216ME_MK3; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1925 | |
| 1926 | printk(KERN_INFO "%s: Leadtek Winfast 2000XP Expert config: " |
| 1927 | "tuner=%d, eeprom[0]=0x%02x\n", |
Trent Piepho | 6a59d64 | 2007-08-15 14:41:57 -0300 | [diff] [blame] | 1928 | core->name, core->board.tuner_type, eeprom_data[0]); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1929 | } |
| 1930 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1931 | static void hauppauge_eeprom(struct cx88_core *core, u8 *eeprom_data) |
| 1932 | { |
| 1933 | struct tveeprom tv; |
| 1934 | |
Mauro Carvalho Chehab | 0f97a93 | 2005-09-09 13:04:05 -0700 | [diff] [blame] | 1935 | tveeprom_hauppauge_analog(&core->i2c_client, &tv, eeprom_data); |
Trent Piepho | 6a59d64 | 2007-08-15 14:41:57 -0300 | [diff] [blame] | 1936 | core->board.tuner_type = tv.tuner_type; |
Steven Toth | 0345c38 | 2006-01-09 15:25:17 -0200 | [diff] [blame] | 1937 | core->tuner_formats = tv.tuner_formats; |
Trent Piepho | 6a59d64 | 2007-08-15 14:41:57 -0300 | [diff] [blame] | 1938 | core->board.radio.type = tv.has_radio ? CX88_RADIO : 0; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1939 | |
| 1940 | /* Make sure we support the board model */ |
Steven Toth | 3ca0ea9 | 2005-12-01 00:51:27 -0800 | [diff] [blame] | 1941 | switch (tv.model) |
| 1942 | { |
Steven Toth | 76dc82a | 2006-09-30 00:43:58 -0300 | [diff] [blame] | 1943 | case 14009: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in) */ |
| 1944 | case 14019: /* WinTV-HVR3000 (Retail, IR Blaster, b/panel video, 3.5mm audio in) */ |
| 1945 | case 14029: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in - 880 bridge) */ |
| 1946 | case 14109: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in - low profile) */ |
| 1947 | case 14129: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in - 880 bridge - LP) */ |
| 1948 | case 14559: /* WinTV-HVR3000 (OEM, no IR, b/panel video, 3.5mm audio in) */ |
Eric Thomas | ad10c93 | 2006-08-08 09:10:04 -0300 | [diff] [blame] | 1949 | case 14569: /* WinTV-HVR3000 (OEM, no IR, no back panel video) */ |
Steven Toth | 76dc82a | 2006-09-30 00:43:58 -0300 | [diff] [blame] | 1950 | case 14659: /* WinTV-HVR3000 (OEM, no IR, b/panel video, RCA audio in - Low profile) */ |
| 1951 | case 14669: /* WinTV-HVR3000 (OEM, no IR, no b/panel video - Low profile) */ |
Steven Toth | 0345c38 | 2006-01-09 15:25:17 -0200 | [diff] [blame] | 1952 | case 28552: /* WinTV-PVR 'Roslyn' (No IR) */ |
Ian Pickworth | 42d2b6e | 2006-01-23 17:11:07 -0200 | [diff] [blame] | 1953 | case 34519: /* WinTV-PCI-FM */ |
Steven Toth | 759324c | 2005-12-01 00:51:26 -0800 | [diff] [blame] | 1954 | case 90002: /* Nova-T-PCI (9002) */ |
Steven Toth | 0fe2286 | 2005-12-01 00:51:41 -0800 | [diff] [blame] | 1955 | case 92001: /* Nova-S-Plus (Video and IR) */ |
| 1956 | case 92002: /* Nova-S-Plus (Video and IR) */ |
| 1957 | case 90003: /* Nova-T-PCI (9002 No RF out) */ |
Steven Toth | 759324c | 2005-12-01 00:51:26 -0800 | [diff] [blame] | 1958 | case 90500: /* Nova-T-PCI (oem) */ |
| 1959 | case 90501: /* Nova-T-PCI (oem/IR) */ |
Steven Toth | 3ca0ea9 | 2005-12-01 00:51:27 -0800 | [diff] [blame] | 1960 | case 92000: /* Nova-SE2 (OEM, No Video or IR) */ |
Steven Toth | 611900c | 2006-01-09 15:25:12 -0200 | [diff] [blame] | 1961 | case 94009: /* WinTV-HVR1100 (Video and IR Retail) */ |
| 1962 | case 94501: /* WinTV-HVR1100 (Video and IR OEM) */ |
Steven Toth | aa481a6 | 2006-09-14 15:41:13 -0300 | [diff] [blame] | 1963 | case 96009: /* WinTV-HVR1300 (PAL Video, MPEG Video and IR RX) */ |
| 1964 | case 96019: /* WinTV-HVR1300 (PAL Video, MPEG Video and IR RX/TX) */ |
| 1965 | case 96559: /* WinTV-HVR1300 (PAL Video, MPEG Video no IR) */ |
| 1966 | case 96569: /* WinTV-HVR1300 () */ |
| 1967 | case 96659: /* WinTV-HVR1300 () */ |
Steven Toth | 611900c | 2006-01-09 15:25:12 -0200 | [diff] [blame] | 1968 | case 98559: /* WinTV-HVR1100LP (Video no IR, Retail - Low Profile) */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1969 | /* known */ |
| 1970 | break; |
| 1971 | default: |
| 1972 | printk("%s: warning: unknown hauppauge model #%d\n", |
Steven Toth | 3ca0ea9 | 2005-12-01 00:51:27 -0800 | [diff] [blame] | 1973 | core->name, tv.model); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1974 | break; |
| 1975 | } |
| 1976 | |
Steven Toth | 3ca0ea9 | 2005-12-01 00:51:27 -0800 | [diff] [blame] | 1977 | printk(KERN_INFO "%s: hauppauge eeprom: model=%d\n", |
| 1978 | core->name, tv.model); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1979 | } |
| 1980 | |
| 1981 | /* ----------------------------------------------------------------------- */ |
| 1982 | /* some GDI (was: Modular Technology) specific stuff */ |
| 1983 | |
| 1984 | static struct { |
| 1985 | int id; |
| 1986 | int fm; |
| 1987 | char *name; |
| 1988 | } gdi_tuner[] = { |
| 1989 | [ 0x01 ] = { .id = TUNER_ABSENT, |
| 1990 | .name = "NTSC_M" }, |
| 1991 | [ 0x02 ] = { .id = TUNER_ABSENT, |
| 1992 | .name = "PAL_B" }, |
| 1993 | [ 0x03 ] = { .id = TUNER_ABSENT, |
| 1994 | .name = "PAL_I" }, |
| 1995 | [ 0x04 ] = { .id = TUNER_ABSENT, |
| 1996 | .name = "PAL_D" }, |
| 1997 | [ 0x05 ] = { .id = TUNER_ABSENT, |
| 1998 | .name = "SECAM" }, |
| 1999 | |
| 2000 | [ 0x10 ] = { .id = TUNER_ABSENT, |
| 2001 | .fm = 1, |
| 2002 | .name = "TEMIC_4049" }, |
| 2003 | [ 0x11 ] = { .id = TUNER_TEMIC_4136FY5, |
| 2004 | .name = "TEMIC_4136" }, |
| 2005 | [ 0x12 ] = { .id = TUNER_ABSENT, |
| 2006 | .name = "TEMIC_4146" }, |
| 2007 | |
| 2008 | [ 0x20 ] = { .id = TUNER_PHILIPS_FQ1216ME, |
| 2009 | .fm = 1, |
| 2010 | .name = "PHILIPS_FQ1216_MK3" }, |
| 2011 | [ 0x21 ] = { .id = TUNER_ABSENT, .fm = 1, |
| 2012 | .name = "PHILIPS_FQ1236_MK3" }, |
| 2013 | [ 0x22 ] = { .id = TUNER_ABSENT, |
| 2014 | .name = "PHILIPS_FI1236_MK3" }, |
| 2015 | [ 0x23 ] = { .id = TUNER_ABSENT, |
| 2016 | .name = "PHILIPS_FI1216_MK3" }, |
| 2017 | }; |
| 2018 | |
| 2019 | static void gdi_eeprom(struct cx88_core *core, u8 *eeprom_data) |
| 2020 | { |
| 2021 | char *name = (eeprom_data[0x0d] < ARRAY_SIZE(gdi_tuner)) |
| 2022 | ? gdi_tuner[eeprom_data[0x0d]].name : NULL; |
| 2023 | |
| 2024 | printk(KERN_INFO "%s: GDI: tuner=%s\n", core->name, |
| 2025 | name ? name : "unknown"); |
| 2026 | if (NULL == name) |
| 2027 | return; |
Trent Piepho | 6a59d64 | 2007-08-15 14:41:57 -0300 | [diff] [blame] | 2028 | core->board.tuner_type = gdi_tuner[eeprom_data[0x0d]].id; |
| 2029 | core->board.radio.type = gdi_tuner[eeprom_data[0x0d]].fm ? |
| 2030 | CX88_RADIO : 0; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2031 | } |
| 2032 | |
Chris Pascoe | b3fb91d | 2008-04-22 14:45:15 -0300 | [diff] [blame^] | 2033 | /* ------------------------------------------------------------------- */ |
| 2034 | /* some Divco specific stuff */ |
| 2035 | static int cx88_dvico_xc2028_callback(void *ptr, int command, int arg) |
| 2036 | { |
| 2037 | struct cx88_core *core = ptr; |
| 2038 | |
| 2039 | switch (command) { |
| 2040 | case XC2028_TUNER_RESET: |
| 2041 | cx_set(MO_GP0_IO, 0x0200); |
| 2042 | cx_clear(MO_GP0_IO, 0x02); |
| 2043 | mdelay(100); |
| 2044 | cx_set(MO_GP0_IO, 0x02); |
| 2045 | mdelay(100); |
| 2046 | break; |
| 2047 | default: |
| 2048 | return -EINVAL; |
| 2049 | } |
| 2050 | |
| 2051 | return 0; |
| 2052 | } |
| 2053 | |
| 2054 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2055 | /* ----------------------------------------------------------------------- */ |
Mauro Carvalho Chehab | 9507901 | 2008-04-22 14:45:15 -0300 | [diff] [blame] | 2056 | /* some Geniatech specific stuff */ |
| 2057 | |
| 2058 | static int cx88_xc3028_geniatech_tuner_callback(void *priv, int command, int mode) |
| 2059 | { |
| 2060 | struct i2c_algo_bit_data *i2c_algo = priv; |
| 2061 | struct cx88_core *core = i2c_algo->data; |
| 2062 | |
| 2063 | switch (command) { |
| 2064 | case XC2028_TUNER_RESET: |
| 2065 | switch (INPUT(core->input).type) { |
| 2066 | case CX88_RADIO: |
| 2067 | cx_write(MO_GP1_IO, 0x101010); |
| 2068 | mdelay(50); |
| 2069 | cx_write(MO_GP1_IO, 0x101000); |
| 2070 | mdelay(50); |
| 2071 | cx_write(MO_GP1_IO, 0x101010); |
| 2072 | mdelay(50); |
| 2073 | return 0; |
| 2074 | case CX88_VMUX_DVB: |
| 2075 | cx_write(MO_GP1_IO, 0x030302); |
| 2076 | mdelay(50); |
| 2077 | cx_write(MO_GP1_IO, 0x101010); |
| 2078 | mdelay(50); |
| 2079 | cx_write(MO_GP1_IO, 0x101000); |
| 2080 | mdelay(50); |
| 2081 | cx_write(MO_GP1_IO, 0x101010); |
| 2082 | mdelay(50); |
| 2083 | return 0; |
| 2084 | default: |
| 2085 | cx_write(MO_GP1_IO, 0x030301); |
| 2086 | mdelay(50); |
| 2087 | cx_write(MO_GP1_IO, 0x101010); |
| 2088 | mdelay(50); |
| 2089 | cx_write(MO_GP1_IO, 0x101000); |
| 2090 | mdelay(50); |
| 2091 | cx_write(MO_GP1_IO, 0x101010); |
| 2092 | mdelay(50); |
| 2093 | return 0; |
| 2094 | } |
| 2095 | } |
| 2096 | return -EINVAL; |
| 2097 | } |
| 2098 | |
| 2099 | /* ----------------------------------------------------------------------- */ |
Chris Pascoe | 780dfef | 2006-02-28 08:34:59 -0300 | [diff] [blame] | 2100 | /* some DViCO specific stuff */ |
| 2101 | |
| 2102 | static void dvico_fusionhdtv_hybrid_init(struct cx88_core *core) |
| 2103 | { |
| 2104 | struct i2c_msg msg = { .addr = 0x45, .flags = 0 }; |
| 2105 | int i, err; |
Chris Pascoe | 69b27e3 | 2006-02-28 20:23:11 -0300 | [diff] [blame] | 2106 | static u8 init_bufs[13][5] = { |
Chris Pascoe | 780dfef | 2006-02-28 08:34:59 -0300 | [diff] [blame] | 2107 | { 0x10, 0x00, 0x20, 0x01, 0x03 }, |
| 2108 | { 0x10, 0x10, 0x01, 0x00, 0x21 }, |
| 2109 | { 0x10, 0x10, 0x10, 0x00, 0xCA }, |
| 2110 | { 0x10, 0x10, 0x12, 0x00, 0x08 }, |
| 2111 | { 0x10, 0x10, 0x13, 0x00, 0x0A }, |
| 2112 | { 0x10, 0x10, 0x16, 0x01, 0xC0 }, |
| 2113 | { 0x10, 0x10, 0x22, 0x01, 0x3D }, |
| 2114 | { 0x10, 0x10, 0x73, 0x01, 0x2E }, |
| 2115 | { 0x10, 0x10, 0x72, 0x00, 0xC5 }, |
| 2116 | { 0x10, 0x10, 0x71, 0x01, 0x97 }, |
| 2117 | { 0x10, 0x10, 0x70, 0x00, 0x0F }, |
| 2118 | { 0x10, 0x10, 0xB0, 0x00, 0x01 }, |
| 2119 | { 0x03, 0x0C }, |
| 2120 | }; |
| 2121 | |
Mauro Carvalho Chehab | 5b9c4e6 | 2007-03-28 22:37:26 -0300 | [diff] [blame] | 2122 | for (i = 0; i < ARRAY_SIZE(init_bufs); i++) { |
Chris Pascoe | 780dfef | 2006-02-28 08:34:59 -0300 | [diff] [blame] | 2123 | msg.buf = init_bufs[i]; |
| 2124 | msg.len = (i != 12 ? 5 : 2); |
| 2125 | err = i2c_transfer(&core->i2c_adap, &msg, 1); |
| 2126 | if (err != 1) { |
| 2127 | printk("dvico_fusionhdtv_hybrid_init buf %d failed (err = %d)!\n", i, err); |
| 2128 | return; |
| 2129 | } |
| 2130 | } |
| 2131 | } |
| 2132 | |
Mauro Carvalho Chehab | c2cb8fc | 2008-04-22 14:45:14 -0300 | [diff] [blame] | 2133 | static int cx88_xc2028_tuner_callback(void *priv, int command, int arg) |
| 2134 | { |
| 2135 | struct i2c_algo_bit_data *i2c_algo = priv; |
| 2136 | struct cx88_core *core = i2c_algo->data; |
| 2137 | |
Mauro Carvalho Chehab | 9507901 | 2008-04-22 14:45:15 -0300 | [diff] [blame] | 2138 | /* Board-specific callbacks */ |
| 2139 | switch (core->boardnr) { |
| 2140 | case CX88_BOARD_WINFAST_TV2000_XP_GLOBAL: |
| 2141 | case CX88_BOARD_POWERCOLOR_REAL_ANGEL: |
| 2142 | case CX88_BOARD_GENIATECH_X8000_MT: |
| 2143 | return cx88_xc3028_geniatech_tuner_callback(priv, command, arg); |
Chris Pascoe | b3fb91d | 2008-04-22 14:45:15 -0300 | [diff] [blame^] | 2144 | case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PRO: |
| 2145 | return cx88_dvico_xc2028_callback(priv, command, arg); |
Mauro Carvalho Chehab | 9507901 | 2008-04-22 14:45:15 -0300 | [diff] [blame] | 2146 | } |
| 2147 | |
Mauro Carvalho Chehab | c2cb8fc | 2008-04-22 14:45:14 -0300 | [diff] [blame] | 2148 | switch (command) { |
| 2149 | case XC2028_TUNER_RESET: |
| 2150 | { |
| 2151 | switch (INPUT(core->input).type) { |
| 2152 | case CX88_RADIO: |
| 2153 | printk(KERN_INFO "setting GPIO to radio!\n"); |
| 2154 | cx_write(MO_GP0_IO, 0x4ff); |
| 2155 | mdelay(250); |
| 2156 | cx_write(MO_GP2_IO, 0xff); |
| 2157 | mdelay(250); |
| 2158 | cx_write(MO_GP1_IO, 0x101010); |
| 2159 | mdelay(250); |
| 2160 | cx_write(MO_GP1_IO, 0x101000); |
| 2161 | mdelay(250); |
| 2162 | cx_write(MO_GP1_IO, 0x101010); |
| 2163 | mdelay(250); |
| 2164 | return 0; |
| 2165 | case CX88_VMUX_DVB: /* Digital TV*/ |
| 2166 | default: /* Analog TV */ |
| 2167 | printk(KERN_INFO "setting GPIO to TV!\n"); |
| 2168 | cx_write(MO_GP1_IO, 0x101010); |
| 2169 | mdelay(250); |
| 2170 | cx_write(MO_GP1_IO, 0x101000); |
| 2171 | mdelay(250); |
| 2172 | cx_write(MO_GP1_IO, 0x101010); |
| 2173 | mdelay(250); |
| 2174 | return 0; |
| 2175 | } |
| 2176 | } |
| 2177 | } |
| 2178 | return -EINVAL; |
| 2179 | } |
| 2180 | |
Chris Pascoe | 780dfef | 2006-02-28 08:34:59 -0300 | [diff] [blame] | 2181 | /* ----------------------------------------------------------------------- */ |
Steven Toth | 60464da | 2008-01-05 16:53:01 -0300 | [diff] [blame] | 2182 | /* Tuner callback function. Currently only needed for the Pinnacle * |
| 2183 | * PCTV HD 800i with an xc5000 sillicon tuner. This is used for both * |
| 2184 | * analog tuner attach (tuner-core.c) and dvb tuner attach (cx88-dvb.c) */ |
| 2185 | |
Mauro Carvalho Chehab | c2cb8fc | 2008-04-22 14:45:14 -0300 | [diff] [blame] | 2186 | static int cx88_xc5000_tuner_callback(void *priv, int command, int arg) |
Steven Toth | 60464da | 2008-01-05 16:53:01 -0300 | [diff] [blame] | 2187 | { |
Steven Toth | 73c993a | 2008-01-05 17:08:05 -0300 | [diff] [blame] | 2188 | struct i2c_algo_bit_data *i2c_algo = priv; |
| 2189 | struct cx88_core *core = i2c_algo->data; |
Steven Toth | 60464da | 2008-01-05 16:53:01 -0300 | [diff] [blame] | 2190 | |
Mauro Carvalho Chehab | c2cb8fc | 2008-04-22 14:45:14 -0300 | [diff] [blame] | 2191 | switch (core->boardnr) { |
Steven Toth | 60464da | 2008-01-05 16:53:01 -0300 | [diff] [blame] | 2192 | case CX88_BOARD_PINNACLE_PCTV_HD_800i: |
Mauro Carvalho Chehab | c2cb8fc | 2008-04-22 14:45:14 -0300 | [diff] [blame] | 2193 | if (command == 0) { /* This is the reset command from xc5000 */ |
Steven Toth | 72e04f7 | 2008-01-22 01:03:10 -0300 | [diff] [blame] | 2194 | /* Reset XC5000 tuner via SYS_RSTO_pin */ |
| 2195 | cx_write(MO_SRST_IO, 0); |
| 2196 | msleep(10); |
| 2197 | cx_write(MO_SRST_IO, 1); |
Steven Toth | 60464da | 2008-01-05 16:53:01 -0300 | [diff] [blame] | 2198 | return 0; |
Mauro Carvalho Chehab | c2cb8fc | 2008-04-22 14:45:14 -0300 | [diff] [blame] | 2199 | } else { |
Steven Toth | 60464da | 2008-01-05 16:53:01 -0300 | [diff] [blame] | 2200 | printk(KERN_ERR |
| 2201 | "xc5000: unknown tuner callback command.\n"); |
| 2202 | return -EINVAL; |
| 2203 | } |
| 2204 | break; |
| 2205 | } |
| 2206 | return 0; /* Should never be here */ |
| 2207 | } |
Mauro Carvalho Chehab | c2cb8fc | 2008-04-22 14:45:14 -0300 | [diff] [blame] | 2208 | |
| 2209 | int cx88_tuner_callback(void *priv, int command, int arg) |
| 2210 | { |
| 2211 | struct i2c_algo_bit_data *i2c_algo = priv; |
| 2212 | struct cx88_core *core = i2c_algo->data; |
| 2213 | |
| 2214 | switch (core->board.tuner_type) { |
| 2215 | case TUNER_XC2028: |
| 2216 | return cx88_xc2028_tuner_callback(priv, command, arg); |
| 2217 | case TUNER_XC5000: |
| 2218 | return cx88_xc5000_tuner_callback(priv, command, arg); |
| 2219 | } |
| 2220 | return -EINVAL; |
| 2221 | } |
Steven Toth | 60464da | 2008-01-05 16:53:01 -0300 | [diff] [blame] | 2222 | EXPORT_SYMBOL(cx88_tuner_callback); |
| 2223 | |
| 2224 | /* ----------------------------------------------------------------------- */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2225 | |
Trent Piepho | bbc8359 | 2007-08-15 14:41:58 -0300 | [diff] [blame] | 2226 | static void cx88_card_list(struct cx88_core *core, struct pci_dev *pci) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2227 | { |
| 2228 | int i; |
| 2229 | |
| 2230 | if (0 == pci->subsystem_vendor && |
| 2231 | 0 == pci->subsystem_device) { |
| 2232 | printk("%s: Your board has no valid PCI Subsystem ID and thus can't\n" |
| 2233 | "%s: be autodetected. Please pass card=<n> insmod option to\n" |
| 2234 | "%s: workaround that. Redirect complaints to the vendor of\n" |
| 2235 | "%s: the TV card. Best regards,\n" |
| 2236 | "%s: -- tux\n", |
| 2237 | core->name,core->name,core->name,core->name,core->name); |
| 2238 | } else { |
| 2239 | printk("%s: Your board isn't known (yet) to the driver. You can\n" |
| 2240 | "%s: try to pick one of the existing card configs via\n" |
| 2241 | "%s: card=<n> insmod option. Updating to the latest\n" |
| 2242 | "%s: version might help as well.\n", |
| 2243 | core->name,core->name,core->name,core->name); |
| 2244 | } |
| 2245 | printk("%s: Here is a list of valid choices for the card=<n> insmod option:\n", |
| 2246 | core->name); |
Trent Piepho | bbc8359 | 2007-08-15 14:41:58 -0300 | [diff] [blame] | 2247 | for (i = 0; i < ARRAY_SIZE(cx88_boards); i++) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2248 | printk("%s: card=%d -> %s\n", |
| 2249 | core->name, i, cx88_boards[i].name); |
| 2250 | } |
| 2251 | |
Trent Piepho | bbc8359 | 2007-08-15 14:41:58 -0300 | [diff] [blame] | 2252 | static void cx88_card_setup_pre_i2c(struct cx88_core *core) |
Steven Toth | aa481a6 | 2006-09-14 15:41:13 -0300 | [diff] [blame] | 2253 | { |
Trent Piepho | 6a59d64 | 2007-08-15 14:41:57 -0300 | [diff] [blame] | 2254 | switch (core->boardnr) { |
Steven Toth | aa481a6 | 2006-09-14 15:41:13 -0300 | [diff] [blame] | 2255 | case CX88_BOARD_HAUPPAUGE_HVR1300: |
| 2256 | /* Bring the 702 demod up before i2c scanning/attach or devices are hidden */ |
| 2257 | /* We leave here with the 702 on the bus */ |
| 2258 | cx_write(MO_GP0_IO, 0x0000e780); |
| 2259 | udelay(1000); |
| 2260 | cx_clear(MO_GP0_IO, 0x00000080); |
| 2261 | udelay(50); |
| 2262 | cx_set(MO_GP0_IO, 0x00000080); /* 702 out of reset */ |
| 2263 | udelay(1000); |
| 2264 | break; |
| 2265 | } |
| 2266 | } |
| 2267 | |
Trent Piepho | bbc8359 | 2007-08-15 14:41:58 -0300 | [diff] [blame] | 2268 | static void cx88_card_setup(struct cx88_core *core) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2269 | { |
Steven Toth | 3ca0ea9 | 2005-12-01 00:51:27 -0800 | [diff] [blame] | 2270 | static u8 eeprom[256]; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2271 | |
| 2272 | if (0 == core->i2c_rc) { |
| 2273 | core->i2c_client.addr = 0xa0 >> 1; |
| 2274 | tveeprom_read(&core->i2c_client,eeprom,sizeof(eeprom)); |
| 2275 | } |
| 2276 | |
Trent Piepho | 6a59d64 | 2007-08-15 14:41:57 -0300 | [diff] [blame] | 2277 | switch (core->boardnr) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2278 | case CX88_BOARD_HAUPPAUGE: |
| 2279 | case CX88_BOARD_HAUPPAUGE_ROSLYN: |
| 2280 | if (0 == core->i2c_rc) |
| 2281 | hauppauge_eeprom(core,eeprom+8); |
| 2282 | break; |
| 2283 | case CX88_BOARD_GDI: |
| 2284 | if (0 == core->i2c_rc) |
| 2285 | gdi_eeprom(core,eeprom); |
| 2286 | break; |
| 2287 | case CX88_BOARD_WINFAST2000XP_EXPERT: |
| 2288 | if (0 == core->i2c_rc) |
| 2289 | leadtek_eeprom(core,eeprom); |
| 2290 | break; |
Steven Toth | 0fa14aa | 2006-01-09 15:25:02 -0200 | [diff] [blame] | 2291 | case CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1: |
| 2292 | case CX88_BOARD_HAUPPAUGE_NOVASE2_S1: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2293 | case CX88_BOARD_HAUPPAUGE_DVB_T1: |
Steven Toth | 611900c | 2006-01-09 15:25:12 -0200 | [diff] [blame] | 2294 | case CX88_BOARD_HAUPPAUGE_HVR1100: |
| 2295 | case CX88_BOARD_HAUPPAUGE_HVR1100LP: |
Eric Thomas | ad10c93 | 2006-08-08 09:10:04 -0300 | [diff] [blame] | 2296 | case CX88_BOARD_HAUPPAUGE_HVR3000: |
Steven Toth | aa481a6 | 2006-09-14 15:41:13 -0300 | [diff] [blame] | 2297 | case CX88_BOARD_HAUPPAUGE_HVR1300: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2298 | if (0 == core->i2c_rc) |
Steven Toth | 3ca0ea9 | 2005-12-01 00:51:27 -0800 | [diff] [blame] | 2299 | hauppauge_eeprom(core,eeprom); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2300 | break; |
Vadim Catana | 0e0351e | 2006-01-09 15:25:02 -0200 | [diff] [blame] | 2301 | case CX88_BOARD_KWORLD_DVBS_100: |
| 2302 | cx_write(MO_GP0_IO, 0x000007f8); |
| 2303 | cx_write(MO_GP1_IO, 0x00000001); |
| 2304 | break; |
Chris Pascoe | d536e9c | 2006-08-10 03:22:21 -0300 | [diff] [blame] | 2305 | case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL: |
| 2306 | /* GPIO0:6 is hooked to FX2 reset pin */ |
| 2307 | cx_set(MO_GP0_IO, 0x00004040); |
| 2308 | cx_clear(MO_GP0_IO, 0x00000040); |
| 2309 | msleep(1000); |
| 2310 | cx_set(MO_GP0_IO, 0x00004040); |
| 2311 | /* FALLTHROUGH */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2312 | case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1: |
| 2313 | case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS: |
Chris Pascoe | 780dfef | 2006-02-28 08:34:59 -0300 | [diff] [blame] | 2314 | case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID: |
Chris Pascoe | b3fb91d | 2008-04-22 14:45:15 -0300 | [diff] [blame^] | 2315 | case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PRO: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2316 | /* GPIO0:0 is hooked to mt352 reset pin */ |
| 2317 | cx_set(MO_GP0_IO, 0x00000101); |
| 2318 | cx_clear(MO_GP0_IO, 0x00000001); |
| 2319 | msleep(1); |
| 2320 | cx_set(MO_GP0_IO, 0x00000101); |
Chris Pascoe | 780dfef | 2006-02-28 08:34:59 -0300 | [diff] [blame] | 2321 | if (0 == core->i2c_rc && |
Trent Piepho | 6a59d64 | 2007-08-15 14:41:57 -0300 | [diff] [blame] | 2322 | core->boardnr == CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID) |
Chris Pascoe | 780dfef | 2006-02-28 08:34:59 -0300 | [diff] [blame] | 2323 | dvico_fusionhdtv_hybrid_init(core); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2324 | break; |
| 2325 | case CX88_BOARD_KWORLD_DVB_T: |
| 2326 | case CX88_BOARD_DNTV_LIVE_DVB_T: |
| 2327 | cx_set(MO_GP0_IO, 0x00000707); |
| 2328 | cx_set(MO_GP2_IO, 0x00000101); |
| 2329 | cx_clear(MO_GP2_IO, 0x00000001); |
| 2330 | msleep(1); |
| 2331 | cx_clear(MO_GP0_IO, 0x00000007); |
| 2332 | cx_set(MO_GP2_IO, 0x00000101); |
| 2333 | break; |
Chris Pascoe | fc40b26 | 2006-01-09 15:25:35 -0200 | [diff] [blame] | 2334 | case CX88_BOARD_DNTV_LIVE_DVB_T_PRO: |
| 2335 | cx_write(MO_GP0_IO, 0x00080808); |
| 2336 | break; |
Kirk Lapray | e976f937 | 2005-11-08 21:37:04 -0800 | [diff] [blame] | 2337 | case CX88_BOARD_ATI_HDTVWONDER: |
| 2338 | if (0 == core->i2c_rc) { |
| 2339 | /* enable tuner */ |
| 2340 | int i; |
Mauro Carvalho Chehab | 5b9c4e6 | 2007-03-28 22:37:26 -0300 | [diff] [blame] | 2341 | static const u8 buffer [][2] = { |
| 2342 | {0x10,0x12}, |
| 2343 | {0x13,0x04}, |
| 2344 | {0x16,0x00}, |
| 2345 | {0x14,0x04}, |
| 2346 | {0x17,0x00} |
| 2347 | }; |
Kirk Lapray | e976f937 | 2005-11-08 21:37:04 -0800 | [diff] [blame] | 2348 | core->i2c_client.addr = 0x0a; |
Kirk Lapray | e976f937 | 2005-11-08 21:37:04 -0800 | [diff] [blame] | 2349 | |
Mauro Carvalho Chehab | 5b9c4e6 | 2007-03-28 22:37:26 -0300 | [diff] [blame] | 2350 | for (i = 0; i < ARRAY_SIZE(buffer); i++) |
| 2351 | if (2 != i2c_master_send(&core->i2c_client, |
| 2352 | buffer[i],2)) |
| 2353 | printk(KERN_WARNING |
| 2354 | "%s: Unable to enable " |
| 2355 | "tuner(%i).\n", |
Kirk Lapray | e976f937 | 2005-11-08 21:37:04 -0800 | [diff] [blame] | 2356 | core->name, i); |
| 2357 | } |
| 2358 | break; |
Mauro Carvalho Chehab | 55c8861 | 2007-10-19 06:59:33 -0300 | [diff] [blame] | 2359 | case CX88_BOARD_MSI_TVANYWHERE_MASTER: |
| 2360 | { |
| 2361 | struct v4l2_priv_tun_config tea5767_cfg; |
| 2362 | struct tea5767_ctrl ctl; |
| 2363 | |
| 2364 | memset(&ctl, 0, sizeof(ctl)); |
| 2365 | |
| 2366 | ctl.high_cut = 1; |
| 2367 | ctl.st_noise = 1; |
| 2368 | ctl.deemph_75 = 1; |
| 2369 | ctl.xtal_freq = TEA5767_HIGH_LO_13MHz; |
| 2370 | |
| 2371 | tea5767_cfg.tuner = TUNER_TEA5767; |
| 2372 | tea5767_cfg.priv = &ctl; |
| 2373 | |
| 2374 | cx88_call_i2c_clients(core, TUNER_SET_CONFIG, &tea5767_cfg); |
| 2375 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2376 | } |
Mauro Carvalho Chehab | c2cb8fc | 2008-04-22 14:45:14 -0300 | [diff] [blame] | 2377 | |
| 2378 | if (core->board.tuner_type == TUNER_XC2028) { |
| 2379 | struct v4l2_priv_tun_config xc2028_cfg; |
| 2380 | struct xc2028_ctrl ctl; |
| 2381 | |
| 2382 | memset(&xc2028_cfg, 0, sizeof(ctl)); |
| 2383 | memset(&ctl, 0, sizeof(ctl)); |
| 2384 | |
| 2385 | ctl.fname = XC2028_DEFAULT_FIRMWARE; |
| 2386 | ctl.max_len = 64; |
Chris Pascoe | b3fb91d | 2008-04-22 14:45:15 -0300 | [diff] [blame^] | 2387 | |
| 2388 | switch (core->boardnr) { |
| 2389 | case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PRO: |
| 2390 | ctl.scode_table = XC3028_FE_ZARLINK456; |
| 2391 | break; |
| 2392 | case CX88_BOARD_DVICO_FUSIONHDTV_5_PCI_NANO: |
| 2393 | ctl.demod = XC3028_FE_OREN538; |
| 2394 | break; |
| 2395 | default: |
| 2396 | ctl.demod = XC3028_FE_OREN538; |
| 2397 | ctl.mts = 1; |
| 2398 | } |
Mauro Carvalho Chehab | c2cb8fc | 2008-04-22 14:45:14 -0300 | [diff] [blame] | 2399 | |
| 2400 | xc2028_cfg.tuner = TUNER_XC2028; |
| 2401 | xc2028_cfg.priv = &ctl; |
| 2402 | |
| 2403 | cx88_call_i2c_clients(core, TUNER_SET_CONFIG, &xc2028_cfg); |
| 2404 | } |
| 2405 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2406 | } |
| 2407 | |
| 2408 | /* ------------------------------------------------------------------ */ |
| 2409 | |
Trent Piepho | bbc8359 | 2007-08-15 14:41:58 -0300 | [diff] [blame] | 2410 | static int cx88_pci_quirks(const char *name, struct pci_dev *pci) |
| 2411 | { |
| 2412 | unsigned int lat = UNSET; |
| 2413 | u8 ctrl = 0; |
| 2414 | u8 value; |
| 2415 | |
| 2416 | /* check pci quirks */ |
| 2417 | if (pci_pci_problems & PCIPCI_TRITON) { |
| 2418 | printk(KERN_INFO "%s: quirk: PCIPCI_TRITON -- set TBFX\n", |
| 2419 | name); |
| 2420 | ctrl |= CX88X_EN_TBFX; |
| 2421 | } |
| 2422 | if (pci_pci_problems & PCIPCI_NATOMA) { |
| 2423 | printk(KERN_INFO "%s: quirk: PCIPCI_NATOMA -- set TBFX\n", |
| 2424 | name); |
| 2425 | ctrl |= CX88X_EN_TBFX; |
| 2426 | } |
| 2427 | if (pci_pci_problems & PCIPCI_VIAETBF) { |
| 2428 | printk(KERN_INFO "%s: quirk: PCIPCI_VIAETBF -- set TBFX\n", |
| 2429 | name); |
| 2430 | ctrl |= CX88X_EN_TBFX; |
| 2431 | } |
| 2432 | if (pci_pci_problems & PCIPCI_VSFX) { |
| 2433 | printk(KERN_INFO "%s: quirk: PCIPCI_VSFX -- set VSFX\n", |
| 2434 | name); |
| 2435 | ctrl |= CX88X_EN_VSFX; |
| 2436 | } |
| 2437 | #ifdef PCIPCI_ALIMAGIK |
| 2438 | if (pci_pci_problems & PCIPCI_ALIMAGIK) { |
| 2439 | printk(KERN_INFO "%s: quirk: PCIPCI_ALIMAGIK -- latency fixup\n", |
| 2440 | name); |
| 2441 | lat = 0x0A; |
| 2442 | } |
| 2443 | #endif |
| 2444 | |
| 2445 | /* check insmod options */ |
| 2446 | if (UNSET != latency) |
| 2447 | lat = latency; |
| 2448 | |
| 2449 | /* apply stuff */ |
| 2450 | if (ctrl) { |
| 2451 | pci_read_config_byte(pci, CX88X_DEVCTRL, &value); |
| 2452 | value |= ctrl; |
| 2453 | pci_write_config_byte(pci, CX88X_DEVCTRL, value); |
| 2454 | } |
| 2455 | if (UNSET != lat) { |
| 2456 | printk(KERN_INFO "%s: setting pci latency timer to %d\n", |
| 2457 | name, latency); |
| 2458 | pci_write_config_byte(pci, PCI_LATENCY_TIMER, latency); |
| 2459 | } |
| 2460 | return 0; |
| 2461 | } |
| 2462 | |
| 2463 | int cx88_get_resources(const struct cx88_core *core, struct pci_dev *pci) |
| 2464 | { |
| 2465 | if (request_mem_region(pci_resource_start(pci,0), |
| 2466 | pci_resource_len(pci,0), |
| 2467 | core->name)) |
| 2468 | return 0; |
| 2469 | printk(KERN_ERR |
| 2470 | "%s/%d: Can't get MMIO memory @ 0x%llx, subsystem: %04x:%04x\n", |
| 2471 | core->name, PCI_FUNC(pci->devfn), |
| 2472 | (unsigned long long)pci_resource_start(pci, 0), |
| 2473 | pci->subsystem_vendor, pci->subsystem_device); |
| 2474 | return -EBUSY; |
| 2475 | } |
| 2476 | |
| 2477 | /* Allocate and initialize the cx88 core struct. One should hold the |
| 2478 | * devlist mutex before calling this. */ |
| 2479 | struct cx88_core *cx88_core_create(struct pci_dev *pci, int nr) |
| 2480 | { |
| 2481 | struct cx88_core *core; |
| 2482 | int i; |
| 2483 | |
| 2484 | core = kzalloc(sizeof(*core), GFP_KERNEL); |
| 2485 | |
| 2486 | atomic_inc(&core->refcount); |
| 2487 | core->pci_bus = pci->bus->number; |
| 2488 | core->pci_slot = PCI_SLOT(pci->devfn); |
Trent Piepho | 8ddac9e | 2007-08-18 06:57:55 -0300 | [diff] [blame] | 2489 | core->pci_irqmask = PCI_INT_RISC_RD_BERRINT | PCI_INT_RISC_WR_BERRINT | |
| 2490 | PCI_INT_BRDG_BERRINT | PCI_INT_SRC_DMA_BERRINT | |
| 2491 | PCI_INT_DST_DMA_BERRINT | PCI_INT_IPB_DMA_BERRINT; |
Trent Piepho | bbc8359 | 2007-08-15 14:41:58 -0300 | [diff] [blame] | 2492 | mutex_init(&core->lock); |
| 2493 | |
| 2494 | core->nr = nr; |
| 2495 | sprintf(core->name, "cx88[%d]", core->nr); |
| 2496 | if (0 != cx88_get_resources(core, pci)) { |
| 2497 | kfree(core); |
| 2498 | return NULL; |
| 2499 | } |
| 2500 | |
| 2501 | /* PCI stuff */ |
| 2502 | cx88_pci_quirks(core->name, pci); |
| 2503 | core->lmmio = ioremap(pci_resource_start(pci, 0), |
| 2504 | pci_resource_len(pci, 0)); |
| 2505 | core->bmmio = (u8 __iomem *)core->lmmio; |
| 2506 | |
| 2507 | /* board config */ |
| 2508 | core->boardnr = UNSET; |
| 2509 | if (card[core->nr] < ARRAY_SIZE(cx88_boards)) |
| 2510 | core->boardnr = card[core->nr]; |
| 2511 | for (i = 0; UNSET == core->boardnr && i < ARRAY_SIZE(cx88_subids); i++) |
| 2512 | if (pci->subsystem_vendor == cx88_subids[i].subvendor && |
| 2513 | pci->subsystem_device == cx88_subids[i].subdevice) |
| 2514 | core->boardnr = cx88_subids[i].card; |
| 2515 | if (UNSET == core->boardnr) { |
| 2516 | core->boardnr = CX88_BOARD_UNKNOWN; |
| 2517 | cx88_card_list(core, pci); |
| 2518 | } |
| 2519 | |
| 2520 | memcpy(&core->board, &cx88_boards[core->boardnr], sizeof(core->board)); |
| 2521 | |
Trent Piepho | 5772f81 | 2007-08-15 14:41:59 -0300 | [diff] [blame] | 2522 | printk(KERN_INFO "%s: subsystem: %04x:%04x, board: %s [card=%d,%s]\n", |
Trent Piepho | bbc8359 | 2007-08-15 14:41:58 -0300 | [diff] [blame] | 2523 | core->name,pci->subsystem_vendor, |
| 2524 | pci->subsystem_device, core->board.name, |
| 2525 | core->boardnr, card[core->nr] == core->boardnr ? |
| 2526 | "insmod option" : "autodetected"); |
| 2527 | |
| 2528 | if (tuner[core->nr] != UNSET) |
| 2529 | core->board.tuner_type = tuner[core->nr]; |
| 2530 | if (radio[core->nr] != UNSET) |
| 2531 | core->board.radio_type = radio[core->nr]; |
| 2532 | |
Trent Piepho | 5772f81 | 2007-08-15 14:41:59 -0300 | [diff] [blame] | 2533 | printk(KERN_INFO "%s: TV tuner type %d, Radio tuner type %d\n", |
| 2534 | core->name, core->board.tuner_type, core->board.radio_type); |
Trent Piepho | bbc8359 | 2007-08-15 14:41:58 -0300 | [diff] [blame] | 2535 | |
| 2536 | /* init hardware */ |
| 2537 | cx88_reset(core); |
| 2538 | cx88_card_setup_pre_i2c(core); |
| 2539 | cx88_i2c_init(core, pci); |
Mauro Carvalho Chehab | 189bf5f | 2008-02-19 16:22:25 -0300 | [diff] [blame] | 2540 | |
| 2541 | /* load tuner module, if needed */ |
| 2542 | if (TUNER_ABSENT != core->board.tuner_type) |
| 2543 | request_module("tuner"); |
| 2544 | |
Trent Piepho | bbc8359 | 2007-08-15 14:41:58 -0300 | [diff] [blame] | 2545 | cx88_call_i2c_clients (core, TUNER_SET_STANDBY, NULL); |
| 2546 | cx88_card_setup(core); |
| 2547 | cx88_ir_init(core, pci); |
| 2548 | |
| 2549 | return core; |
| 2550 | } |