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" |
| 29 | |
| 30 | /* ------------------------------------------------------------------ */ |
| 31 | /* board config info */ |
| 32 | |
| 33 | struct cx88_board cx88_boards[] = { |
| 34 | [CX88_BOARD_UNKNOWN] = { |
| 35 | .name = "UNKNOWN/GENERIC", |
| 36 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 37 | .radio_type = UNSET, |
| 38 | .tuner_addr = ADDR_UNSET, |
| 39 | .radio_addr = ADDR_UNSET, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 40 | .input = {{ |
| 41 | .type = CX88_VMUX_COMPOSITE1, |
| 42 | .vmux = 0, |
| 43 | },{ |
| 44 | .type = CX88_VMUX_COMPOSITE2, |
| 45 | .vmux = 1, |
| 46 | },{ |
| 47 | .type = CX88_VMUX_COMPOSITE3, |
| 48 | .vmux = 2, |
| 49 | },{ |
| 50 | .type = CX88_VMUX_COMPOSITE4, |
| 51 | .vmux = 3, |
| 52 | }}, |
| 53 | }, |
| 54 | [CX88_BOARD_HAUPPAUGE] = { |
| 55 | .name = "Hauppauge WinTV 34xxx models", |
| 56 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 57 | .radio_type = UNSET, |
| 58 | .tuner_addr = ADDR_UNSET, |
| 59 | .radio_addr = ADDR_UNSET, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 60 | .tda9887_conf = TDA9887_PRESENT, |
| 61 | .input = {{ |
| 62 | .type = CX88_VMUX_TELEVISION, |
| 63 | .vmux = 0, |
| 64 | .gpio0 = 0xff00, // internal decoder |
| 65 | },{ |
| 66 | .type = CX88_VMUX_DEBUG, |
| 67 | .vmux = 0, |
| 68 | .gpio0 = 0xff01, // mono from tuner chip |
| 69 | },{ |
| 70 | .type = CX88_VMUX_COMPOSITE1, |
| 71 | .vmux = 1, |
| 72 | .gpio0 = 0xff02, |
| 73 | },{ |
| 74 | .type = CX88_VMUX_SVIDEO, |
| 75 | .vmux = 2, |
| 76 | .gpio0 = 0xff02, |
| 77 | }}, |
| 78 | .radio = { |
| 79 | .type = CX88_RADIO, |
| 80 | .gpio0 = 0xff01, |
| 81 | }, |
| 82 | }, |
| 83 | [CX88_BOARD_GDI] = { |
| 84 | .name = "GDI Black Gold", |
| 85 | .tuner_type = UNSET, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 86 | .radio_type = UNSET, |
| 87 | .tuner_addr = ADDR_UNSET, |
| 88 | .radio_addr = ADDR_UNSET, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 89 | .input = {{ |
| 90 | .type = CX88_VMUX_TELEVISION, |
| 91 | .vmux = 0, |
Mauro Carvalho Chehab | fd3113e | 2005-07-31 22:34:43 -0700 | [diff] [blame] | 92 | },{ |
| 93 | .type = CX88_VMUX_SVIDEO, |
| 94 | .vmux = 2, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 95 | }}, |
| 96 | }, |
| 97 | [CX88_BOARD_PIXELVIEW] = { |
| 98 | .name = "PixelView", |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 99 | .tuner_type = TUNER_PHILIPS_PAL, |
| 100 | .radio_type = UNSET, |
| 101 | .tuner_addr = ADDR_UNSET, |
| 102 | .radio_addr = ADDR_UNSET, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 103 | .input = {{ |
| 104 | .type = CX88_VMUX_TELEVISION, |
| 105 | .vmux = 0, |
| 106 | .gpio0 = 0xff00, // internal decoder |
| 107 | },{ |
| 108 | .type = CX88_VMUX_COMPOSITE1, |
| 109 | .vmux = 1, |
| 110 | },{ |
| 111 | .type = CX88_VMUX_SVIDEO, |
| 112 | .vmux = 2, |
| 113 | }}, |
| 114 | .radio = { |
| 115 | .type = CX88_RADIO, |
| 116 | .gpio0 = 0xff10, |
| 117 | }, |
| 118 | }, |
| 119 | [CX88_BOARD_ATI_WONDER_PRO] = { |
| 120 | .name = "ATI TV Wonder Pro", |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 121 | .tuner_type = TUNER_PHILIPS_4IN1, |
| 122 | .radio_type = UNSET, |
| 123 | .tuner_addr = ADDR_UNSET, |
| 124 | .radio_addr = ADDR_UNSET, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 125 | .tda9887_conf = TDA9887_PRESENT | TDA9887_INTERCARRIER, |
| 126 | .input = {{ |
| 127 | .type = CX88_VMUX_TELEVISION, |
| 128 | .vmux = 0, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 129 | .gpio0 = 0x03ff, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 130 | },{ |
| 131 | .type = CX88_VMUX_COMPOSITE1, |
| 132 | .vmux = 1, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 133 | .gpio0 = 0x03fe, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 134 | },{ |
| 135 | .type = CX88_VMUX_SVIDEO, |
| 136 | .vmux = 2, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 137 | .gpio0 = 0x03fe, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 138 | }}, |
| 139 | }, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 140 | [CX88_BOARD_WINFAST2000XP_EXPERT] = { |
| 141 | .name = "Leadtek Winfast 2000XP Expert", |
| 142 | .tuner_type = TUNER_PHILIPS_4IN1, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 143 | .radio_type = UNSET, |
| 144 | .tuner_addr = ADDR_UNSET, |
| 145 | .radio_addr = ADDR_UNSET, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 146 | .tda9887_conf = TDA9887_PRESENT, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 147 | .input = {{ |
| 148 | .type = CX88_VMUX_TELEVISION, |
| 149 | .vmux = 0, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 150 | .gpio0 = 0x00F5e700, |
| 151 | .gpio1 = 0x00003004, |
| 152 | .gpio2 = 0x00F5e700, |
| 153 | .gpio3 = 0x02000000, |
| 154 | },{ |
| 155 | .type = CX88_VMUX_COMPOSITE1, |
| 156 | .vmux = 1, |
| 157 | .gpio0 = 0x00F5c700, |
| 158 | .gpio1 = 0x00003004, |
| 159 | .gpio2 = 0x00F5c700, |
| 160 | .gpio3 = 0x02000000, |
| 161 | },{ |
| 162 | .type = CX88_VMUX_SVIDEO, |
| 163 | .vmux = 2, |
| 164 | .gpio0 = 0x00F5c700, |
| 165 | .gpio1 = 0x00003004, |
| 166 | .gpio2 = 0x00F5c700, |
| 167 | .gpio3 = 0x02000000, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 168 | }}, |
| 169 | .radio = { |
| 170 | .type = CX88_RADIO, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 171 | .gpio0 = 0x00F5d700, |
| 172 | .gpio1 = 0x00003004, |
| 173 | .gpio2 = 0x00F5d700, |
| 174 | .gpio3 = 0x02000000, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 175 | }, |
| 176 | }, |
Lubomir Bulej | 7418f34 | 2005-11-08 21:38:34 -0800 | [diff] [blame] | 177 | [CX88_BOARD_AVERTV_STUDIO_303] = { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 178 | .name = "AverTV Studio 303 (M126)", |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 179 | .tuner_type = TUNER_PHILIPS_FM1216ME_MK3, |
| 180 | .radio_type = UNSET, |
| 181 | .tuner_addr = ADDR_UNSET, |
| 182 | .radio_addr = ADDR_UNSET, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 183 | .tda9887_conf = TDA9887_PRESENT, |
| 184 | .input = {{ |
| 185 | .type = CX88_VMUX_TELEVISION, |
| 186 | .vmux = 0, |
| 187 | .gpio1 = 0x309f, |
| 188 | },{ |
| 189 | .type = CX88_VMUX_COMPOSITE1, |
| 190 | .vmux = 1, |
| 191 | .gpio1 = 0x305f, |
| 192 | },{ |
| 193 | .type = CX88_VMUX_SVIDEO, |
| 194 | .vmux = 2, |
| 195 | .gpio1 = 0x305f, |
| 196 | }}, |
| 197 | .radio = { |
| 198 | .type = CX88_RADIO, |
| 199 | }, |
| 200 | }, |
| 201 | [CX88_BOARD_MSI_TVANYWHERE_MASTER] = { |
| 202 | // added gpio values thanks to Michal |
| 203 | // values for PAL from DScaler |
| 204 | .name = "MSI TV-@nywhere Master", |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 205 | .tuner_type = TUNER_MT2032, |
| 206 | .radio_type = UNSET, |
| 207 | .tuner_addr = ADDR_UNSET, |
| 208 | .radio_addr = ADDR_UNSET, |
Nickolay V. Shmyrev | 3ae1adc | 2005-11-08 21:37:39 -0800 | [diff] [blame] | 209 | .tda9887_conf = TDA9887_PRESENT | TDA9887_INTERCARRIER_NTSC, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 210 | .input = {{ |
| 211 | .type = CX88_VMUX_TELEVISION, |
| 212 | .vmux = 0, |
| 213 | .gpio0 = 0x000040bf, |
| 214 | .gpio1 = 0x000080c0, |
| 215 | .gpio2 = 0x0000ff40, |
| 216 | },{ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 217 | .type = CX88_VMUX_COMPOSITE1, |
| 218 | .vmux = 1, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 219 | .gpio0 = 0x000040bf, |
| 220 | .gpio1 = 0x000080c0, |
| 221 | .gpio2 = 0x0000ff40, |
| 222 | },{ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 223 | .type = CX88_VMUX_SVIDEO, |
| 224 | .vmux = 2, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 225 | .gpio0 = 0x000040bf, |
| 226 | .gpio1 = 0x000080c0, |
| 227 | .gpio2 = 0x0000ff40, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 228 | }}, |
| 229 | .radio = { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 230 | .type = CX88_RADIO, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 231 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 232 | }, |
| 233 | [CX88_BOARD_WINFAST_DV2000] = { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 234 | .name = "Leadtek Winfast DV2000", |
| 235 | .tuner_type = TUNER_PHILIPS_FM1216ME_MK3, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 236 | .radio_type = UNSET, |
| 237 | .tuner_addr = ADDR_UNSET, |
| 238 | .radio_addr = ADDR_UNSET, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 239 | .tda9887_conf = TDA9887_PRESENT, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 240 | .input = {{ |
| 241 | .type = CX88_VMUX_TELEVISION, |
| 242 | .vmux = 0, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 243 | .gpio0 = 0x0035e700, |
| 244 | .gpio1 = 0x00003004, |
| 245 | .gpio2 = 0x0035e700, |
| 246 | .gpio3 = 0x02000000, |
| 247 | },{ |
| 248 | |
| 249 | .type = CX88_VMUX_COMPOSITE1, |
| 250 | .vmux = 1, |
| 251 | .gpio0 = 0x0035c700, |
| 252 | .gpio1 = 0x00003004, |
| 253 | .gpio2 = 0x0035c700, |
| 254 | .gpio3 = 0x02000000, |
| 255 | },{ |
| 256 | .type = CX88_VMUX_SVIDEO, |
| 257 | .vmux = 2, |
| 258 | .gpio0 = 0x0035c700, |
| 259 | .gpio1 = 0x0035c700, |
| 260 | .gpio2 = 0x02000000, |
| 261 | .gpio3 = 0x02000000, |
| 262 | }}, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 263 | .radio = { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 264 | .type = CX88_RADIO, |
| 265 | .gpio0 = 0x0035d700, |
| 266 | .gpio1 = 0x00007004, |
| 267 | .gpio2 = 0x0035d700, |
| 268 | .gpio3 = 0x02000000, |
| 269 | }, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 270 | }, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 271 | [CX88_BOARD_LEADTEK_PVR2000] = { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 272 | // gpio values for PAL version from regspy by DScaler |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 273 | .name = "Leadtek PVR 2000", |
| 274 | .tuner_type = TUNER_PHILIPS_FM1216ME_MK3, |
| 275 | .radio_type = UNSET, |
| 276 | .tuner_addr = ADDR_UNSET, |
| 277 | .radio_addr = ADDR_UNSET, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 278 | .tda9887_conf = TDA9887_PRESENT, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 279 | .input = {{ |
| 280 | .type = CX88_VMUX_TELEVISION, |
| 281 | .vmux = 0, |
| 282 | .gpio0 = 0x0000bde2, |
| 283 | },{ |
| 284 | .type = CX88_VMUX_COMPOSITE1, |
| 285 | .vmux = 1, |
| 286 | .gpio0 = 0x0000bde6, |
| 287 | },{ |
| 288 | .type = CX88_VMUX_SVIDEO, |
| 289 | .vmux = 2, |
| 290 | .gpio0 = 0x0000bde6, |
| 291 | }}, |
| 292 | .radio = { |
| 293 | .type = CX88_RADIO, |
| 294 | .gpio0 = 0x0000bd62, |
| 295 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 296 | .blackbird = 1, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 297 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 298 | [CX88_BOARD_IODATA_GVVCP3PCI] = { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 299 | .name = "IODATA GV-VCP3/PCI", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 300 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 301 | .radio_type = UNSET, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 302 | .tuner_addr = ADDR_UNSET, |
| 303 | .radio_addr = ADDR_UNSET, |
| 304 | .input = {{ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 305 | .type = CX88_VMUX_COMPOSITE1, |
| 306 | .vmux = 0, |
| 307 | },{ |
| 308 | .type = CX88_VMUX_COMPOSITE2, |
| 309 | .vmux = 1, |
| 310 | },{ |
| 311 | .type = CX88_VMUX_SVIDEO, |
| 312 | .vmux = 2, |
| 313 | }}, |
| 314 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 315 | [CX88_BOARD_PROLINK_PLAYTVPVR] = { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 316 | .name = "Prolink PlayTV PVR", |
| 317 | .tuner_type = TUNER_PHILIPS_FM1236_MK3, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 318 | .radio_type = UNSET, |
| 319 | .tuner_addr = ADDR_UNSET, |
| 320 | .radio_addr = ADDR_UNSET, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 321 | .tda9887_conf = TDA9887_PRESENT, |
| 322 | .input = {{ |
| 323 | .type = CX88_VMUX_TELEVISION, |
| 324 | .vmux = 0, |
| 325 | .gpio0 = 0xff00, |
| 326 | },{ |
| 327 | .type = CX88_VMUX_COMPOSITE1, |
| 328 | .vmux = 1, |
| 329 | .gpio0 = 0xff03, |
| 330 | },{ |
| 331 | .type = CX88_VMUX_SVIDEO, |
| 332 | .vmux = 2, |
| 333 | .gpio0 = 0xff03, |
| 334 | }}, |
| 335 | .radio = { |
| 336 | .type = CX88_RADIO, |
| 337 | .gpio0 = 0xff00, |
| 338 | }, |
| 339 | }, |
| 340 | [CX88_BOARD_ASUS_PVR_416] = { |
| 341 | .name = "ASUS PVR-416", |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 342 | .tuner_type = TUNER_PHILIPS_FM1236_MK3, |
| 343 | .radio_type = UNSET, |
| 344 | .tuner_addr = ADDR_UNSET, |
| 345 | .radio_addr = ADDR_UNSET, |
| 346 | .tda9887_conf = TDA9887_PRESENT, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 347 | .input = {{ |
| 348 | .type = CX88_VMUX_TELEVISION, |
| 349 | .vmux = 0, |
| 350 | .gpio0 = 0x0000fde6, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 351 | },{ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 352 | .type = CX88_VMUX_SVIDEO, |
| 353 | .vmux = 2, |
| 354 | .gpio0 = 0x0000fde6, // 0x0000fda6 L,R RCA audio in? |
| 355 | }}, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 356 | .radio = { |
| 357 | .type = CX88_RADIO, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 358 | .gpio0 = 0x0000fde2, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 359 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 360 | .blackbird = 1, |
| 361 | }, |
| 362 | [CX88_BOARD_MSI_TVANYWHERE] = { |
| 363 | .name = "MSI TV-@nywhere", |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 364 | .tuner_type = TUNER_MT2032, |
| 365 | .radio_type = UNSET, |
| 366 | .tuner_addr = ADDR_UNSET, |
| 367 | .radio_addr = ADDR_UNSET, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 368 | .tda9887_conf = TDA9887_PRESENT, |
| 369 | .input = {{ |
| 370 | .type = CX88_VMUX_TELEVISION, |
| 371 | .vmux = 0, |
| 372 | .gpio0 = 0x00000fbf, |
| 373 | .gpio2 = 0x0000fc08, |
| 374 | },{ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 375 | .type = CX88_VMUX_COMPOSITE1, |
| 376 | .vmux = 1, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 377 | .gpio0 = 0x00000fbf, |
| 378 | .gpio2 = 0x0000fc68, |
| 379 | },{ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 380 | .type = CX88_VMUX_SVIDEO, |
| 381 | .vmux = 2, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 382 | .gpio0 = 0x00000fbf, |
| 383 | .gpio2 = 0x0000fc68, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 384 | }}, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 385 | }, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 386 | [CX88_BOARD_KWORLD_DVB_T] = { |
| 387 | .name = "KWorld/VStream XPert DVB-T", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 388 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 389 | .radio_type = UNSET, |
| 390 | .tuner_addr = ADDR_UNSET, |
| 391 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 392 | .input = {{ |
| 393 | .type = CX88_VMUX_COMPOSITE1, |
| 394 | .vmux = 1, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 395 | .gpio0 = 0x0700, |
| 396 | .gpio2 = 0x0101, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 397 | },{ |
| 398 | .type = CX88_VMUX_SVIDEO, |
| 399 | .vmux = 2, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 400 | .gpio0 = 0x0700, |
| 401 | .gpio2 = 0x0101, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 402 | }}, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 403 | .dvb = 1, |
| 404 | }, |
| 405 | [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1] = { |
Mauro Carvalho Chehab | a82decf | 2005-07-07 17:58:36 -0700 | [diff] [blame] | 406 | .name = "DViCO FusionHDTV DVB-T1", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 407 | .tuner_type = TUNER_ABSENT, /* No analog tuner */ |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 408 | .radio_type = UNSET, |
| 409 | .tuner_addr = ADDR_UNSET, |
| 410 | .radio_addr = ADDR_UNSET, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 411 | .input = {{ |
| 412 | .type = CX88_VMUX_COMPOSITE1, |
| 413 | .vmux = 1, |
| 414 | .gpio0 = 0x000027df, |
| 415 | },{ |
| 416 | .type = CX88_VMUX_SVIDEO, |
| 417 | .vmux = 2, |
| 418 | .gpio0 = 0x000027df, |
| 419 | }}, |
| 420 | .dvb = 1, |
| 421 | }, |
| 422 | [CX88_BOARD_KWORLD_LTV883] = { |
| 423 | .name = "KWorld LTV883RF", |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 424 | .tuner_type = TUNER_TNF_8831BGFF, |
| 425 | .radio_type = UNSET, |
| 426 | .tuner_addr = ADDR_UNSET, |
| 427 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 428 | .input = {{ |
| 429 | .type = CX88_VMUX_TELEVISION, |
| 430 | .vmux = 0, |
| 431 | .gpio0 = 0x07f8, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 432 | },{ |
| 433 | .type = CX88_VMUX_DEBUG, |
| 434 | .vmux = 0, |
| 435 | .gpio0 = 0x07f9, // mono from tuner chip |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 436 | },{ |
| 437 | .type = CX88_VMUX_COMPOSITE1, |
| 438 | .vmux = 1, |
| 439 | .gpio0 = 0x000007fa, |
| 440 | },{ |
| 441 | .type = CX88_VMUX_SVIDEO, |
| 442 | .vmux = 2, |
| 443 | .gpio0 = 0x000007fa, |
| 444 | }}, |
| 445 | .radio = { |
| 446 | .type = CX88_RADIO, |
| 447 | .gpio0 = 0x000007f8, |
| 448 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 449 | }, |
Mauro Carvalho Chehab | a82decf | 2005-07-07 17:58:36 -0700 | [diff] [blame] | 450 | [CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q] = { |
| 451 | .name = "DViCO FusionHDTV 3 Gold-Q", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 452 | .tuner_type = TUNER_MICROTUNE_4042FI5, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 453 | .radio_type = UNSET, |
| 454 | .tuner_addr = ADDR_UNSET, |
| 455 | .radio_addr = ADDR_UNSET, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 456 | /* |
| 457 | GPIO[0] resets DT3302 DTV receiver |
| 458 | 0 - reset asserted |
| 459 | 1 - normal operation |
| 460 | GPIO[1] mutes analog audio output connector |
| 461 | 0 - enable selected source |
| 462 | 1 - mute |
| 463 | GPIO[2] selects source for analog audio output connector |
| 464 | 0 - analog audio input connector on tab |
| 465 | 1 - analog DAC output from CX23881 chip |
| 466 | GPIO[3] selects RF input connector on tuner module |
| 467 | 0 - RF connector labeled CABLE |
| 468 | 1 - RF connector labeled ANT |
Mauro Carvalho Chehab | a82decf | 2005-07-07 17:58:36 -0700 | [diff] [blame] | 469 | GPIO[4] selects high RF for QAM256 mode |
| 470 | 0 - normal RF |
| 471 | 1 - high RF |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 472 | */ |
| 473 | .input = {{ |
| 474 | .type = CX88_VMUX_TELEVISION, |
| 475 | .vmux = 0, |
| 476 | .gpio0 = 0x0f0d, |
| 477 | },{ |
| 478 | .type = CX88_VMUX_CABLE, |
| 479 | .vmux = 0, |
| 480 | .gpio0 = 0x0f05, |
| 481 | },{ |
| 482 | .type = CX88_VMUX_COMPOSITE1, |
| 483 | .vmux = 1, |
| 484 | .gpio0 = 0x0f00, |
| 485 | },{ |
| 486 | .type = CX88_VMUX_SVIDEO, |
| 487 | .vmux = 2, |
| 488 | .gpio0 = 0x0f00, |
| 489 | }}, |
Michael Krufky | f179849 | 2005-07-07 17:58:39 -0700 | [diff] [blame] | 490 | .dvb = 1, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 491 | }, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 492 | [CX88_BOARD_HAUPPAUGE_DVB_T1] = { |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 493 | .name = "Hauppauge Nova-T DVB-T", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 494 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 495 | .radio_type = UNSET, |
| 496 | .tuner_addr = ADDR_UNSET, |
| 497 | .radio_addr = ADDR_UNSET, |
| 498 | .input = {{ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 499 | .type = CX88_VMUX_DVB, |
| 500 | .vmux = 0, |
| 501 | }}, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 502 | .dvb = 1, |
| 503 | }, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 504 | [CX88_BOARD_CONEXANT_DVB_T1] = { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 505 | .name = "Conexant DVB-T reference design", |
| 506 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 507 | .radio_type = UNSET, |
| 508 | .tuner_addr = ADDR_UNSET, |
| 509 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 510 | .input = {{ |
| 511 | .type = CX88_VMUX_DVB, |
| 512 | .vmux = 0, |
| 513 | }}, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 514 | .dvb = 1, |
| 515 | }, |
| 516 | [CX88_BOARD_PROVIDEO_PV259] = { |
| 517 | .name = "Provideo PV259", |
| 518 | .tuner_type = TUNER_PHILIPS_FQ1216ME, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 519 | .radio_type = UNSET, |
| 520 | .tuner_addr = ADDR_UNSET, |
| 521 | .radio_addr = ADDR_UNSET, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 522 | .input = {{ |
| 523 | .type = CX88_VMUX_TELEVISION, |
| 524 | .vmux = 0, |
| 525 | }}, |
| 526 | .blackbird = 1, |
| 527 | }, |
| 528 | [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS] = { |
Mauro Carvalho Chehab | a82decf | 2005-07-07 17:58:36 -0700 | [diff] [blame] | 529 | .name = "DViCO FusionHDTV DVB-T Plus", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 530 | .tuner_type = TUNER_ABSENT, /* No analog tuner */ |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 531 | .radio_type = UNSET, |
| 532 | .tuner_addr = ADDR_UNSET, |
| 533 | .radio_addr = ADDR_UNSET, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 534 | .input = {{ |
| 535 | .type = CX88_VMUX_COMPOSITE1, |
| 536 | .vmux = 1, |
| 537 | .gpio0 = 0x000027df, |
| 538 | },{ |
| 539 | .type = CX88_VMUX_SVIDEO, |
| 540 | .vmux = 2, |
| 541 | .gpio0 = 0x000027df, |
| 542 | }}, |
| 543 | .dvb = 1, |
| 544 | }, |
| 545 | [CX88_BOARD_DNTV_LIVE_DVB_T] = { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 546 | .name = "digitalnow DNTV Live! DVB-T", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 547 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 548 | .radio_type = UNSET, |
| 549 | .tuner_addr = ADDR_UNSET, |
| 550 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 551 | .input = {{ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 552 | .type = CX88_VMUX_COMPOSITE1, |
| 553 | .vmux = 1, |
| 554 | .gpio0 = 0x00000700, |
| 555 | .gpio2 = 0x00000101, |
| 556 | },{ |
| 557 | .type = CX88_VMUX_SVIDEO, |
| 558 | .vmux = 2, |
| 559 | .gpio0 = 0x00000700, |
| 560 | .gpio2 = 0x00000101, |
| 561 | }}, |
| 562 | .dvb = 1, |
| 563 | }, |
| 564 | [CX88_BOARD_PCHDTV_HD3000] = { |
| 565 | .name = "pcHDTV HD3000 HDTV", |
| 566 | .tuner_type = TUNER_THOMSON_DTT7610, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 567 | .radio_type = UNSET, |
| 568 | .tuner_addr = ADDR_UNSET, |
| 569 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | e4f5c82 | 2005-12-04 12:41:54 -0200 | [diff] [blame] | 570 | .tda9887_conf = TDA9887_PRESENT, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 571 | .input = {{ |
| 572 | .type = CX88_VMUX_TELEVISION, |
| 573 | .vmux = 0, |
| 574 | .gpio0 = 0x00008484, |
| 575 | .gpio1 = 0x00000000, |
| 576 | .gpio2 = 0x00000000, |
| 577 | .gpio3 = 0x00000000, |
| 578 | },{ |
| 579 | .type = CX88_VMUX_COMPOSITE1, |
| 580 | .vmux = 1, |
| 581 | .gpio0 = 0x00008400, |
| 582 | .gpio1 = 0x00000000, |
| 583 | .gpio2 = 0x00000000, |
| 584 | .gpio3 = 0x00000000, |
| 585 | },{ |
| 586 | .type = CX88_VMUX_SVIDEO, |
| 587 | .vmux = 2, |
| 588 | .gpio0 = 0x00008400, |
| 589 | .gpio1 = 0x00000000, |
| 590 | .gpio2 = 0x00000000, |
| 591 | .gpio3 = 0x00000000, |
| 592 | }}, |
| 593 | .radio = { |
| 594 | .type = CX88_RADIO, |
| 595 | .vmux = 2, |
| 596 | .gpio0 = 0x00008400, |
| 597 | .gpio1 = 0x00000000, |
| 598 | .gpio2 = 0x00000000, |
| 599 | .gpio3 = 0x00000000, |
| 600 | }, |
| 601 | .dvb = 1, |
| 602 | }, |
| 603 | [CX88_BOARD_HAUPPAUGE_ROSLYN] = { |
| 604 | // entry added by Kaustubh D. Bhalerao <bhalerao.1@osu.edu> |
| 605 | // GPIO values obtained from regspy, courtesy Sean Covel |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 606 | .name = "Hauppauge WinTV 28xxx (Roslyn) models", |
| 607 | .tuner_type = UNSET, |
| 608 | .radio_type = UNSET, |
| 609 | .tuner_addr = ADDR_UNSET, |
| 610 | .radio_addr = ADDR_UNSET, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 611 | .input = {{ |
| 612 | .type = CX88_VMUX_TELEVISION, |
| 613 | .vmux = 0, |
Steven Toth | 0345c38 | 2006-01-09 15:25:17 -0200 | [diff] [blame] | 614 | .gpio0 = 0xed1a, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 615 | .gpio2 = 0x00ff, |
| 616 | },{ |
| 617 | .type = CX88_VMUX_DEBUG, |
| 618 | .vmux = 0, |
Steven Toth | 0345c38 | 2006-01-09 15:25:17 -0200 | [diff] [blame] | 619 | .gpio0 = 0xff01, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 620 | },{ |
| 621 | .type = CX88_VMUX_COMPOSITE1, |
| 622 | .vmux = 1, |
| 623 | .gpio0 = 0xff02, |
| 624 | },{ |
| 625 | .type = CX88_VMUX_SVIDEO, |
| 626 | .vmux = 2, |
| 627 | .gpio0 = 0xed92, |
| 628 | .gpio2 = 0x00ff, |
| 629 | }}, |
| 630 | .radio = { |
| 631 | .type = CX88_RADIO, |
| 632 | .gpio0 = 0xed96, |
| 633 | .gpio2 = 0x00ff, |
| 634 | }, |
| 635 | .blackbird = 1, |
| 636 | }, |
| 637 | [CX88_BOARD_DIGITALLOGIC_MEC] = { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 638 | .name = "Digital-Logic MICROSPACE Entertainment Center (MEC)", |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 639 | .tuner_type = TUNER_PHILIPS_FM1216ME_MK3, |
| 640 | .radio_type = UNSET, |
| 641 | .tuner_addr = ADDR_UNSET, |
| 642 | .radio_addr = ADDR_UNSET, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 643 | .tda9887_conf = TDA9887_PRESENT, |
| 644 | .input = {{ |
| 645 | .type = CX88_VMUX_TELEVISION, |
| 646 | .vmux = 0, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 647 | .gpio0 = 0x00009d80, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 648 | },{ |
| 649 | .type = CX88_VMUX_COMPOSITE1, |
| 650 | .vmux = 1, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 651 | .gpio0 = 0x00009d76, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 652 | },{ |
| 653 | .type = CX88_VMUX_SVIDEO, |
| 654 | .vmux = 2, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 655 | .gpio0 = 0x00009d76, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 656 | }}, |
| 657 | .radio = { |
| 658 | .type = CX88_RADIO, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 659 | .gpio0 = 0x00009d00, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 660 | }, |
| 661 | .blackbird = 1, |
| 662 | }, |
| 663 | [CX88_BOARD_IODATA_GVBCTV7E] = { |
| 664 | .name = "IODATA GV/BCTV7E", |
| 665 | .tuner_type = TUNER_PHILIPS_FQ1286, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 666 | .radio_type = UNSET, |
| 667 | .tuner_addr = ADDR_UNSET, |
| 668 | .radio_addr = ADDR_UNSET, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 669 | .tda9887_conf = TDA9887_PRESENT, |
| 670 | .input = {{ |
| 671 | .type = CX88_VMUX_TELEVISION, |
| 672 | .vmux = 1, |
| 673 | .gpio1 = 0x0000e03f, |
| 674 | },{ |
| 675 | .type = CX88_VMUX_COMPOSITE1, |
| 676 | .vmux = 2, |
| 677 | .gpio1 = 0x0000e07f, |
| 678 | },{ |
| 679 | .type = CX88_VMUX_SVIDEO, |
| 680 | .vmux = 3, |
| 681 | .gpio1 = 0x0000e07f, |
| 682 | }} |
| 683 | }, |
Manuel Capinha | 239df2e | 2005-06-23 22:04:53 -0700 | [diff] [blame] | 684 | [CX88_BOARD_PIXELVIEW_PLAYTV_ULTRA_PRO] = { |
| 685 | .name = "PixelView PlayTV Ultra Pro (Stereo)", |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 686 | /* May be also TUNER_YMEC_TVF_5533MF for NTSC/M or PAL/M */ |
| 687 | .tuner_type = TUNER_PHILIPS_FM1216ME_MK3, |
Mauro Carvalho Chehab | c5287ba | 2005-07-15 03:56:28 -0700 | [diff] [blame] | 688 | .radio_type = UNSET, |
| 689 | .tuner_addr = ADDR_UNSET, |
| 690 | .radio_addr = ADDR_UNSET, |
Manuel Capinha | 239df2e | 2005-06-23 22:04:53 -0700 | [diff] [blame] | 691 | .input = {{ |
| 692 | .type = CX88_VMUX_TELEVISION, |
| 693 | .vmux = 0, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 694 | .gpio0 = 0xbf61, /* internal decoder */ |
Manuel Capinha | 239df2e | 2005-06-23 22:04:53 -0700 | [diff] [blame] | 695 | },{ |
| 696 | .type = CX88_VMUX_COMPOSITE1, |
| 697 | .vmux = 1, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 698 | .gpio0 = 0xbf63, |
Manuel Capinha | 239df2e | 2005-06-23 22:04:53 -0700 | [diff] [blame] | 699 | },{ |
| 700 | .type = CX88_VMUX_SVIDEO, |
| 701 | .vmux = 2, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 702 | .gpio0 = 0xbf63, |
Manuel Capinha | 239df2e | 2005-06-23 22:04:53 -0700 | [diff] [blame] | 703 | }}, |
| 704 | .radio = { |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 705 | .type = CX88_RADIO, |
| 706 | .gpio0 = 0xbf60, |
| 707 | }, |
Manuel Capinha | 239df2e | 2005-06-23 22:04:53 -0700 | [diff] [blame] | 708 | }, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 709 | [CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_T] = { |
Mauro Carvalho Chehab | a82decf | 2005-07-07 17:58:36 -0700 | [diff] [blame] | 710 | .name = "DViCO FusionHDTV 3 Gold-T", |
Michael Krufky | 83ac8722 | 2006-01-09 15:25:29 -0200 | [diff] [blame] | 711 | .tuner_type = TUNER_THOMSON_DTT761X, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 712 | .radio_type = UNSET, |
| 713 | .tuner_addr = ADDR_UNSET, |
| 714 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | e4f5c82 | 2005-12-04 12:41:54 -0200 | [diff] [blame] | 715 | .tda9887_conf = TDA9887_PRESENT, |
Mauro Carvalho Chehab | a82decf | 2005-07-07 17:58:36 -0700 | [diff] [blame] | 716 | .input = {{ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 717 | .type = CX88_VMUX_TELEVISION, |
| 718 | .vmux = 0, |
| 719 | .gpio0 = 0x97ed, |
| 720 | },{ |
| 721 | .type = CX88_VMUX_COMPOSITE1, |
| 722 | .vmux = 1, |
| 723 | .gpio0 = 0x97e9, |
| 724 | },{ |
| 725 | .type = CX88_VMUX_SVIDEO, |
| 726 | .vmux = 2, |
| 727 | .gpio0 = 0x97e9, |
| 728 | }}, |
Michael Krufky | 0d723c0 | 2005-07-07 17:58:42 -0700 | [diff] [blame] | 729 | .dvb = 1, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 730 | }, |
| 731 | [CX88_BOARD_ADSTECH_DVB_T_PCI] = { |
| 732 | .name = "ADS Tech Instant TV DVB-T PCI", |
Mauro Carvalho Chehab | a82decf | 2005-07-07 17:58:36 -0700 | [diff] [blame] | 733 | .tuner_type = TUNER_ABSENT, |
| 734 | .radio_type = UNSET, |
| 735 | .tuner_addr = ADDR_UNSET, |
| 736 | .radio_addr = ADDR_UNSET, |
| 737 | .input = {{ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 738 | .type = CX88_VMUX_COMPOSITE1, |
| 739 | .vmux = 1, |
Mauro Carvalho Chehab | a82decf | 2005-07-07 17:58:36 -0700 | [diff] [blame] | 740 | .gpio0 = 0x0700, |
| 741 | .gpio2 = 0x0101, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 742 | },{ |
| 743 | .type = CX88_VMUX_SVIDEO, |
| 744 | .vmux = 2, |
Mauro Carvalho Chehab | a82decf | 2005-07-07 17:58:36 -0700 | [diff] [blame] | 745 | .gpio0 = 0x0700, |
| 746 | .gpio2 = 0x0101, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 747 | }}, |
Mauro Carvalho Chehab | a82decf | 2005-07-07 17:58:36 -0700 | [diff] [blame] | 748 | .dvb = 1, |
| 749 | }, |
Michael Krufky | e057ee1 | 2005-07-07 17:58:40 -0700 | [diff] [blame] | 750 | [CX88_BOARD_TERRATEC_CINERGY_1400_DVB_T1] = { |
| 751 | .name = "TerraTec Cinergy 1400 DVB-T", |
| 752 | .tuner_type = TUNER_ABSENT, |
| 753 | .input = {{ |
| 754 | .type = CX88_VMUX_DVB, |
| 755 | .vmux = 0, |
| 756 | }}, |
| 757 | .dvb = 1, |
| 758 | }, |
Michael Krufky | 9fef07c | 2005-07-31 22:34:46 -0700 | [diff] [blame] | 759 | [CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD] = { |
| 760 | .name = "DViCO FusionHDTV 5 Gold", |
| 761 | .tuner_type = TUNER_LG_TDVS_H062F, |
| 762 | .radio_type = UNSET, |
| 763 | .tuner_addr = ADDR_UNSET, |
| 764 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | e52e98a | 2005-09-09 13:03:41 -0700 | [diff] [blame] | 765 | .tda9887_conf = TDA9887_PRESENT, |
Michael Krufky | 9fef07c | 2005-07-31 22:34:46 -0700 | [diff] [blame] | 766 | .input = {{ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 767 | .type = CX88_VMUX_TELEVISION, |
| 768 | .vmux = 0, |
| 769 | .gpio0 = 0x87fd, |
| 770 | },{ |
| 771 | .type = CX88_VMUX_COMPOSITE1, |
| 772 | .vmux = 1, |
| 773 | .gpio0 = 0x87f9, |
| 774 | },{ |
| 775 | .type = CX88_VMUX_SVIDEO, |
| 776 | .vmux = 2, |
| 777 | .gpio0 = 0x87f9, |
| 778 | }}, |
Mauro Carvalho Chehab | e52e98a | 2005-09-09 13:03:41 -0700 | [diff] [blame] | 779 | .dvb = 1, |
Michael Krufky | 9fef07c | 2005-07-31 22:34:46 -0700 | [diff] [blame] | 780 | }, |
Nickolay V. Shmyrev | d45170e | 2005-11-08 21:36:15 -0800 | [diff] [blame] | 781 | [CX88_BOARD_AVERMEDIA_ULTRATV_MC_550] = { |
| 782 | .name = "AverMedia UltraTV Media Center PCI 550", |
| 783 | .tuner_type = TUNER_PHILIPS_FM1236_MK3, |
| 784 | .radio_type = UNSET, |
| 785 | .tuner_addr = ADDR_UNSET, |
| 786 | .radio_addr = ADDR_UNSET, |
| 787 | .tda9887_conf = TDA9887_PRESENT, |
| 788 | .blackbird = 1, |
| 789 | .input = {{ |
| 790 | .type = CX88_VMUX_COMPOSITE1, |
| 791 | .vmux = 0, |
| 792 | .gpio0 = 0x0000cd73, |
| 793 | },{ |
| 794 | .type = CX88_VMUX_SVIDEO, |
| 795 | .vmux = 1, |
| 796 | .gpio0 = 0x0000cd73, |
| 797 | },{ |
| 798 | .type = CX88_VMUX_TELEVISION, |
| 799 | .vmux = 3, |
| 800 | .gpio0 = 0x0000cdb3, |
| 801 | }}, |
| 802 | .radio = { |
| 803 | .type = CX88_RADIO, |
| 804 | .vmux = 2, |
| 805 | .gpio0 = 0x0000cdf3, |
| 806 | }, |
| 807 | }, |
Alexander Wold | 0bcc37c | 2005-11-08 21:36:58 -0800 | [diff] [blame] | 808 | [CX88_BOARD_KWORLD_VSTREAM_EXPERT_DVD] = { |
| 809 | /* Alexander Wold <awold@bigfoot.com> */ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 810 | .name = "Kworld V-Stream Xpert DVD", |
| 811 | .tuner_type = UNSET, |
| 812 | .input = {{ |
| 813 | .type = CX88_VMUX_COMPOSITE1, |
| 814 | .vmux = 1, |
| 815 | .gpio0 = 0x03000000, |
Alexander Wold | 0bcc37c | 2005-11-08 21:36:58 -0800 | [diff] [blame] | 816 | .gpio1 = 0x01000000, |
| 817 | .gpio2 = 0x02000000, |
| 818 | .gpio3 = 0x00100000, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 819 | },{ |
| 820 | .type = CX88_VMUX_SVIDEO, |
| 821 | .vmux = 2, |
| 822 | .gpio0 = 0x03000000, |
| 823 | .gpio1 = 0x01000000, |
| 824 | .gpio2 = 0x02000000, |
| 825 | .gpio3 = 0x00100000, |
| 826 | }}, |
Alexander Wold | 0bcc37c | 2005-11-08 21:36:58 -0800 | [diff] [blame] | 827 | }, |
Kirk Lapray | e976f937 | 2005-11-08 21:37:04 -0800 | [diff] [blame] | 828 | [CX88_BOARD_ATI_HDTVWONDER] = { |
| 829 | .name = "ATI HDTV Wonder", |
| 830 | .tuner_type = TUNER_PHILIPS_TUV1236D, |
| 831 | .radio_type = UNSET, |
| 832 | .tuner_addr = ADDR_UNSET, |
| 833 | .radio_addr = ADDR_UNSET, |
| 834 | .input = {{ |
| 835 | .type = CX88_VMUX_TELEVISION, |
| 836 | .vmux = 0, |
| 837 | .gpio0 = 0x00000ff7, |
| 838 | .gpio1 = 0x000000ff, |
| 839 | .gpio2 = 0x00000001, |
| 840 | .gpio3 = 0x00000000, |
| 841 | },{ |
| 842 | .type = CX88_VMUX_COMPOSITE1, |
| 843 | .vmux = 1, |
| 844 | .gpio0 = 0x00000ffe, |
| 845 | .gpio1 = 0x000000ff, |
| 846 | .gpio2 = 0x00000001, |
| 847 | .gpio3 = 0x00000000, |
| 848 | },{ |
| 849 | .type = CX88_VMUX_SVIDEO, |
| 850 | .vmux = 2, |
| 851 | .gpio0 = 0x00000ffe, |
| 852 | .gpio1 = 0x000000ff, |
| 853 | .gpio2 = 0x00000001, |
| 854 | .gpio3 = 0x00000000, |
| 855 | }}, |
Kirk Lapray | fde6d31 | 2005-11-08 21:38:18 -0800 | [diff] [blame] | 856 | .dvb = 1, |
Kirk Lapray | e976f937 | 2005-11-08 21:37:04 -0800 | [diff] [blame] | 857 | }, |
David Shirley | 2b5200a | 2005-11-08 21:37:22 -0800 | [diff] [blame] | 858 | [CX88_BOARD_WINFAST_DTV1000] = { |
| 859 | .name = "WinFast DTV1000-T", |
| 860 | .tuner_type = TUNER_ABSENT, |
| 861 | .radio_type = UNSET, |
| 862 | .tuner_addr = ADDR_UNSET, |
| 863 | .radio_addr = ADDR_UNSET, |
| 864 | .input = {{ |
| 865 | .type = CX88_VMUX_DVB, |
| 866 | .vmux = 0, |
| 867 | }}, |
| 868 | .dvb = 1, |
| 869 | }, |
Lubomir Bulej | 7418f34 | 2005-11-08 21:38:34 -0800 | [diff] [blame] | 870 | [CX88_BOARD_AVERTV_303] = { |
| 871 | .name = "AVerTV 303 (M126)", |
| 872 | .tuner_type = TUNER_PHILIPS_FM1216ME_MK3, |
| 873 | .radio_type = UNSET, |
| 874 | .tuner_addr = ADDR_UNSET, |
| 875 | .radio_addr = ADDR_UNSET, |
| 876 | .tda9887_conf = TDA9887_PRESENT, |
| 877 | .input = {{ |
| 878 | .type = CX88_VMUX_TELEVISION, |
| 879 | .vmux = 0, |
| 880 | .gpio0 = 0x00ff, |
| 881 | .gpio1 = 0xe09f, |
| 882 | .gpio2 = 0x0010, |
| 883 | .gpio3 = 0x0000, |
| 884 | },{ |
| 885 | .type = CX88_VMUX_COMPOSITE1, |
| 886 | .vmux = 1, |
| 887 | .gpio0 = 0x00ff, |
| 888 | .gpio1 = 0xe05f, |
| 889 | .gpio2 = 0x0010, |
| 890 | .gpio3 = 0x0000, |
| 891 | },{ |
| 892 | .type = CX88_VMUX_SVIDEO, |
| 893 | .vmux = 2, |
| 894 | .gpio0 = 0x00ff, |
| 895 | .gpio1 = 0xe05f, |
| 896 | .gpio2 = 0x0010, |
| 897 | .gpio3 = 0x0000, |
| 898 | }}, |
| 899 | }, |
Steven Toth | 0fa14aa | 2006-01-09 15:25:02 -0200 | [diff] [blame] | 900 | [CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1] = { |
| 901 | .name = "Hauppauge Nova-S-Plus DVB-S", |
| 902 | .tuner_type = TUNER_ABSENT, |
| 903 | .radio_type = UNSET, |
| 904 | .tuner_addr = ADDR_UNSET, |
| 905 | .radio_addr = ADDR_UNSET, |
Steven Toth | 0fa14aa | 2006-01-09 15:25:02 -0200 | [diff] [blame] | 906 | .input = {{ |
| 907 | .type = CX88_VMUX_DVB, |
| 908 | .vmux = 0, |
| 909 | },{ |
| 910 | .type = CX88_VMUX_COMPOSITE1, |
| 911 | .vmux = 1, |
| 912 | },{ |
| 913 | .type = CX88_VMUX_SVIDEO, |
| 914 | .vmux = 2, |
| 915 | }}, |
| 916 | .dvb = 1, |
| 917 | }, |
| 918 | [CX88_BOARD_HAUPPAUGE_NOVASE2_S1] = { |
| 919 | .name = "Hauppauge Nova-SE2 DVB-S", |
| 920 | .tuner_type = TUNER_ABSENT, |
| 921 | .radio_type = UNSET, |
| 922 | .tuner_addr = ADDR_UNSET, |
| 923 | .radio_addr = ADDR_UNSET, |
| 924 | .input = {{ |
| 925 | .type = CX88_VMUX_DVB, |
| 926 | .vmux = 0, |
| 927 | }}, |
| 928 | .dvb = 1, |
| 929 | }, |
Vadim Catana | 0e0351e | 2006-01-09 15:25:02 -0200 | [diff] [blame] | 930 | [CX88_BOARD_KWORLD_DVBS_100] = { |
| 931 | .name = "KWorld DVB-S 100", |
| 932 | .tuner_type = TUNER_ABSENT, |
| 933 | .radio_type = UNSET, |
| 934 | .tuner_addr = ADDR_UNSET, |
| 935 | .radio_addr = ADDR_UNSET, |
| 936 | .input = {{ |
| 937 | .type = CX88_VMUX_DVB, |
| 938 | .vmux = 0, |
| 939 | },{ |
| 940 | .type = CX88_VMUX_COMPOSITE1, |
| 941 | .vmux = 1, |
| 942 | },{ |
| 943 | .type = CX88_VMUX_SVIDEO, |
| 944 | .vmux = 2, |
| 945 | }}, |
| 946 | .dvb = 1, |
| 947 | }, |
Steven Toth | 611900c | 2006-01-09 15:25:12 -0200 | [diff] [blame] | 948 | [CX88_BOARD_HAUPPAUGE_HVR1100] = { |
| 949 | .name = "Hauppauge WinTV-HVR1100 DVB-T/Hybrid", |
| 950 | .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3, |
| 951 | .radio_type = UNSET, |
| 952 | .tuner_addr = ADDR_UNSET, |
| 953 | .radio_addr = ADDR_UNSET, |
| 954 | .tda9887_conf = TDA9887_PRESENT, |
| 955 | .input = {{ |
| 956 | .type = CX88_VMUX_TELEVISION, |
| 957 | .vmux = 0, |
| 958 | },{ |
| 959 | .type = CX88_VMUX_COMPOSITE1, |
| 960 | .vmux = 1, |
| 961 | },{ |
| 962 | .type = CX88_VMUX_SVIDEO, |
| 963 | .vmux = 2, |
| 964 | }}, |
| 965 | /* fixme: Add radio support */ |
| 966 | .dvb = 1, |
| 967 | }, |
| 968 | [CX88_BOARD_HAUPPAUGE_HVR1100LP] = { |
| 969 | .name = "Hauppauge WinTV-HVR1100 DVB-T/Hybrid (Low Profile)", |
| 970 | .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3, |
| 971 | .radio_type = UNSET, |
| 972 | .tuner_addr = ADDR_UNSET, |
| 973 | .radio_addr = ADDR_UNSET, |
| 974 | .tda9887_conf = TDA9887_PRESENT, |
| 975 | .input = {{ |
| 976 | .type = CX88_VMUX_TELEVISION, |
| 977 | .vmux = 0, |
| 978 | },{ |
| 979 | .type = CX88_VMUX_COMPOSITE1, |
| 980 | .vmux = 1, |
| 981 | }}, |
| 982 | /* fixme: Add radio support */ |
| 983 | .dvb = 1, |
| 984 | }, |
Chris Pascoe | fc40b26 | 2006-01-09 15:25:35 -0200 | [diff] [blame] | 985 | [CX88_BOARD_DNTV_LIVE_DVB_T_PRO] = { |
| 986 | .name = "digitalnow DNTV Live! DVB-T Pro", |
| 987 | .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3, |
| 988 | .radio_type = UNSET, |
| 989 | .tuner_addr = ADDR_UNSET, |
| 990 | .radio_addr = ADDR_UNSET, |
| 991 | .tda9887_conf = TDA9887_PRESENT | TDA9887_PORT1_ACTIVE | |
| 992 | TDA9887_PORT2_ACTIVE, |
| 993 | .input = {{ |
| 994 | .type = CX88_VMUX_TELEVISION, |
| 995 | .vmux = 0, |
| 996 | .gpio0 = 0xf80808, |
| 997 | },{ |
| 998 | .type = CX88_VMUX_COMPOSITE1, |
| 999 | .vmux = 1, |
| 1000 | .gpio0 = 0xf80808, |
| 1001 | },{ |
| 1002 | .type = CX88_VMUX_SVIDEO, |
| 1003 | .vmux = 2, |
| 1004 | .gpio0 = 0xf80808, |
| 1005 | }}, |
| 1006 | .radio = { |
| 1007 | .type = CX88_RADIO, |
| 1008 | .gpio0 = 0xf80808, |
| 1009 | }, |
| 1010 | .dvb = 1, |
| 1011 | }, |
Manenti Marco | f39624f | 2006-01-09 15:32:45 -0200 | [diff] [blame] | 1012 | [CX88_BOARD_KWORLD_DVB_T_CX22702] = { |
| 1013 | /* Kworld V-stream Xpert DVB-T with Thomson tuner */ |
| 1014 | /* DTT 7579 Conexant CX22702-19 Conexant CX2388x */ |
| 1015 | /* Manenti Marco <marco_manenti@colman.it> */ |
| 1016 | .name = "KWorld/VStream XPert DVB-T with cx22702", |
| 1017 | .tuner_type = TUNER_ABSENT, |
| 1018 | .radio_type = UNSET, |
| 1019 | .tuner_addr = ADDR_UNSET, |
| 1020 | .radio_addr = ADDR_UNSET, |
| 1021 | .input = {{ |
| 1022 | .type = CX88_VMUX_COMPOSITE1, |
| 1023 | .vmux = 1, |
| 1024 | .gpio0 = 0x0700, |
| 1025 | .gpio2 = 0x0101, |
| 1026 | },{ |
| 1027 | .type = CX88_VMUX_SVIDEO, |
| 1028 | .vmux = 2, |
| 1029 | .gpio0 = 0x0700, |
| 1030 | .gpio2 = 0x0101, |
| 1031 | }}, |
| 1032 | .dvb = 1, |
| 1033 | }, |
Chris Pascoe | 43eabb4 | 2006-01-09 18:21:28 -0200 | [diff] [blame^] | 1034 | [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL] = { |
| 1035 | .name = "DViCO FusionHDTV DVB-T Dual Digital", |
| 1036 | .tuner_type = TUNER_ABSENT, /* No analog tuner */ |
| 1037 | .radio_type = UNSET, |
| 1038 | .tuner_addr = ADDR_UNSET, |
| 1039 | .radio_addr = ADDR_UNSET, |
| 1040 | .input = {{ |
| 1041 | .type = CX88_VMUX_COMPOSITE1, |
| 1042 | .vmux = 1, |
| 1043 | .gpio0 = 0x000027df, |
| 1044 | },{ |
| 1045 | .type = CX88_VMUX_SVIDEO, |
| 1046 | .vmux = 2, |
| 1047 | .gpio0 = 0x000027df, |
| 1048 | }}, |
| 1049 | .dvb = 1, |
| 1050 | }, |
Manenti Marco | f39624f | 2006-01-09 15:32:45 -0200 | [diff] [blame] | 1051 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1052 | }; |
| 1053 | const unsigned int cx88_bcount = ARRAY_SIZE(cx88_boards); |
| 1054 | |
| 1055 | /* ------------------------------------------------------------------ */ |
| 1056 | /* PCI subsystem IDs */ |
| 1057 | |
| 1058 | struct cx88_subid cx88_subids[] = { |
| 1059 | { |
| 1060 | .subvendor = 0x0070, |
| 1061 | .subdevice = 0x3400, |
| 1062 | .card = CX88_BOARD_HAUPPAUGE, |
| 1063 | },{ |
| 1064 | .subvendor = 0x0070, |
| 1065 | .subdevice = 0x3401, |
| 1066 | .card = CX88_BOARD_HAUPPAUGE, |
| 1067 | },{ |
| 1068 | .subvendor = 0x14c7, |
| 1069 | .subdevice = 0x0106, |
| 1070 | .card = CX88_BOARD_GDI, |
| 1071 | },{ |
| 1072 | .subvendor = 0x14c7, |
| 1073 | .subdevice = 0x0107, /* with mpeg encoder */ |
| 1074 | .card = CX88_BOARD_GDI, |
| 1075 | },{ |
| 1076 | .subvendor = PCI_VENDOR_ID_ATI, |
| 1077 | .subdevice = 0x00f8, |
| 1078 | .card = CX88_BOARD_ATI_WONDER_PRO, |
| 1079 | },{ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1080 | .subvendor = 0x107d, |
| 1081 | .subdevice = 0x6611, |
| 1082 | .card = CX88_BOARD_WINFAST2000XP_EXPERT, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1083 | },{ |
| 1084 | .subvendor = 0x107d, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1085 | .subdevice = 0x6613, /* NTSC */ |
| 1086 | .card = CX88_BOARD_WINFAST2000XP_EXPERT, |
| 1087 | },{ |
| 1088 | .subvendor = 0x107d, |
| 1089 | .subdevice = 0x6620, |
| 1090 | .card = CX88_BOARD_WINFAST_DV2000, |
| 1091 | },{ |
| 1092 | .subvendor = 0x107d, |
| 1093 | .subdevice = 0x663b, |
| 1094 | .card = CX88_BOARD_LEADTEK_PVR2000, |
| 1095 | },{ |
| 1096 | .subvendor = 0x107d, |
| 1097 | .subdevice = 0x663C, |
| 1098 | .card = CX88_BOARD_LEADTEK_PVR2000, |
| 1099 | },{ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1100 | .subvendor = 0x1461, |
| 1101 | .subdevice = 0x000b, |
Lubomir Bulej | 7418f34 | 2005-11-08 21:38:34 -0800 | [diff] [blame] | 1102 | .card = CX88_BOARD_AVERTV_STUDIO_303, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1103 | },{ |
| 1104 | .subvendor = 0x1462, |
| 1105 | .subdevice = 0x8606, |
| 1106 | .card = CX88_BOARD_MSI_TVANYWHERE_MASTER, |
| 1107 | },{ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1108 | .subvendor = 0x10fc, |
| 1109 | .subdevice = 0xd003, |
| 1110 | .card = CX88_BOARD_IODATA_GVVCP3PCI, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1111 | },{ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1112 | .subvendor = 0x1043, |
| 1113 | .subdevice = 0x4823, /* with mpeg encoder */ |
| 1114 | .card = CX88_BOARD_ASUS_PVR_416, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1115 | },{ |
| 1116 | .subvendor = 0x17de, |
| 1117 | .subdevice = 0x08a6, |
| 1118 | .card = CX88_BOARD_KWORLD_DVB_T, |
| 1119 | },{ |
| 1120 | .subvendor = 0x18ac, |
| 1121 | .subdevice = 0xd810, |
Mauro Carvalho Chehab | a82decf | 2005-07-07 17:58:36 -0700 | [diff] [blame] | 1122 | .card = CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1123 | },{ |
Michael Krufky | 097b750 | 2005-06-23 22:04:43 -0700 | [diff] [blame] | 1124 | .subvendor = 0x18ac, |
| 1125 | .subdevice = 0xd820, |
Michael Krufky | 80d3436 | 2005-06-23 22:04:55 -0700 | [diff] [blame] | 1126 | .card = CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_T, |
Michael Krufky | 097b750 | 2005-06-23 22:04:43 -0700 | [diff] [blame] | 1127 | },{ |
Michael Krufky | 7df64e8 | 2005-11-08 21:36:16 -0800 | [diff] [blame] | 1128 | .subvendor = 0x18ac, |
| 1129 | .subdevice = 0xdb00, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1130 | .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1131 | },{ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1132 | .subvendor = 0x0070, |
| 1133 | .subdevice = 0x9002, |
| 1134 | .card = CX88_BOARD_HAUPPAUGE_DVB_T1, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1135 | },{ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1136 | .subvendor = 0x14f1, |
| 1137 | .subdevice = 0x0187, |
| 1138 | .card = CX88_BOARD_CONEXANT_DVB_T1, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1139 | },{ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1140 | .subvendor = 0x1540, |
| 1141 | .subdevice = 0x2580, |
| 1142 | .card = CX88_BOARD_PROVIDEO_PV259, |
| 1143 | },{ |
Michael Krufky | 7df64e8 | 2005-11-08 21:36:16 -0800 | [diff] [blame] | 1144 | .subvendor = 0x18ac, |
| 1145 | .subdevice = 0xdb10, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1146 | .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS, |
| 1147 | },{ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1148 | .subvendor = 0x1554, |
| 1149 | .subdevice = 0x4811, |
| 1150 | .card = CX88_BOARD_PIXELVIEW, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1151 | },{ |
| 1152 | .subvendor = 0x7063, |
| 1153 | .subdevice = 0x3000, /* HD-3000 card */ |
| 1154 | .card = CX88_BOARD_PCHDTV_HD3000, |
| 1155 | },{ |
Michael Krufky | 7df64e8 | 2005-11-08 21:36:16 -0800 | [diff] [blame] | 1156 | .subvendor = 0x17de, |
| 1157 | .subdevice = 0xa8a6, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1158 | .card = CX88_BOARD_DNTV_LIVE_DVB_T, |
| 1159 | },{ |
| 1160 | .subvendor = 0x0070, |
| 1161 | .subdevice = 0x2801, |
| 1162 | .card = CX88_BOARD_HAUPPAUGE_ROSLYN, |
| 1163 | },{ |
Michael Krufky | 7df64e8 | 2005-11-08 21:36:16 -0800 | [diff] [blame] | 1164 | .subvendor = 0x14f1, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1165 | .subdevice = 0x0342, |
| 1166 | .card = CX88_BOARD_DIGITALLOGIC_MEC, |
| 1167 | },{ |
| 1168 | .subvendor = 0x10fc, |
| 1169 | .subdevice = 0xd035, |
| 1170 | .card = CX88_BOARD_IODATA_GVBCTV7E, |
Mauro Carvalho Chehab | a82decf | 2005-07-07 17:58:36 -0700 | [diff] [blame] | 1171 | },{ |
| 1172 | .subvendor = 0x1421, |
| 1173 | .subdevice = 0x0334, |
| 1174 | .card = CX88_BOARD_ADSTECH_DVB_T_PCI, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1175 | },{ |
Michael Krufky | e057ee1 | 2005-07-07 17:58:40 -0700 | [diff] [blame] | 1176 | .subvendor = 0x153b, |
| 1177 | .subdevice = 0x1166, |
| 1178 | .card = CX88_BOARD_TERRATEC_CINERGY_1400_DVB_T1, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1179 | },{ |
Michael Krufky | 9fef07c | 2005-07-31 22:34:46 -0700 | [diff] [blame] | 1180 | .subvendor = 0x18ac, |
| 1181 | .subdevice = 0xd500, |
| 1182 | .card = CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1183 | },{ |
Nickolay V. Shmyrev | d45170e | 2005-11-08 21:36:15 -0800 | [diff] [blame] | 1184 | .subvendor = 0x1461, |
| 1185 | .subdevice = 0x8011, |
| 1186 | .card = CX88_BOARD_AVERMEDIA_ULTRATV_MC_550, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1187 | },{ |
Kirk Lapray | e976f937 | 2005-11-08 21:37:04 -0800 | [diff] [blame] | 1188 | .subvendor = PCI_VENDOR_ID_ATI, |
| 1189 | .subdevice = 0xa101, |
| 1190 | .card = CX88_BOARD_ATI_HDTVWONDER, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1191 | },{ |
David Shirley | 2b5200a | 2005-11-08 21:37:22 -0800 | [diff] [blame] | 1192 | .subvendor = 0x107d, |
| 1193 | .subdevice = 0x665f, |
| 1194 | .card = CX88_BOARD_WINFAST_DTV1000, |
Lubomir Bulej | 7418f34 | 2005-11-08 21:38:34 -0800 | [diff] [blame] | 1195 | },{ |
| 1196 | .subvendor = 0x1461, |
| 1197 | .subdevice = 0x000a, |
| 1198 | .card = CX88_BOARD_AVERTV_303, |
Steven Toth | 0fa14aa | 2006-01-09 15:25:02 -0200 | [diff] [blame] | 1199 | },{ |
| 1200 | .subvendor = 0x0070, |
| 1201 | .subdevice = 0x9200, |
Steven Toth | fb56cb6 | 2006-01-09 15:25:02 -0200 | [diff] [blame] | 1202 | .card = CX88_BOARD_HAUPPAUGE_NOVASE2_S1, |
| 1203 | },{ |
| 1204 | .subvendor = 0x0070, |
| 1205 | .subdevice = 0x9201, |
Steven Toth | 0fa14aa | 2006-01-09 15:25:02 -0200 | [diff] [blame] | 1206 | .card = CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1, |
| 1207 | },{ |
| 1208 | .subvendor = 0x0070, |
| 1209 | .subdevice = 0x9202, |
Steven Toth | fb56cb6 | 2006-01-09 15:25:02 -0200 | [diff] [blame] | 1210 | .card = CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1, |
Vadim Catana | 0e0351e | 2006-01-09 15:25:02 -0200 | [diff] [blame] | 1211 | },{ |
| 1212 | .subvendor = 0x17de, |
| 1213 | .subdevice = 0x08b2, |
| 1214 | .card = CX88_BOARD_KWORLD_DVBS_100, |
Steven Toth | 611900c | 2006-01-09 15:25:12 -0200 | [diff] [blame] | 1215 | },{ |
| 1216 | .subvendor = 0x0070, |
| 1217 | .subdevice = 0x9400, |
| 1218 | .card = CX88_BOARD_HAUPPAUGE_HVR1100, |
| 1219 | },{ |
| 1220 | .subvendor = 0x0070, |
| 1221 | .subdevice = 0x9402, |
| 1222 | .card = CX88_BOARD_HAUPPAUGE_HVR1100, |
| 1223 | },{ |
| 1224 | .subvendor = 0x0070, |
| 1225 | .subdevice = 0x9800, |
| 1226 | .card = CX88_BOARD_HAUPPAUGE_HVR1100LP, |
| 1227 | },{ |
| 1228 | .subvendor = 0x0070, |
| 1229 | .subdevice = 0x9802, |
| 1230 | .card = CX88_BOARD_HAUPPAUGE_HVR1100LP, |
Steven Toth | c432a07 | 2006-01-09 15:25:13 -0200 | [diff] [blame] | 1231 | },{ |
| 1232 | .subvendor = 0x0070, |
| 1233 | .subdevice = 0x9001, |
| 1234 | .card = CX88_BOARD_HAUPPAUGE_DVB_T1, |
Chris Pascoe | fc40b26 | 2006-01-09 15:25:35 -0200 | [diff] [blame] | 1235 | },{ |
| 1236 | .subvendor = 0x1822, |
| 1237 | .subdevice = 0x0025, |
| 1238 | .card = CX88_BOARD_DNTV_LIVE_DVB_T_PRO, |
Manenti Marco | f39624f | 2006-01-09 15:32:45 -0200 | [diff] [blame] | 1239 | },{ |
| 1240 | .subvendor = 0x17de, |
| 1241 | .subdevice = 0x08a1, |
| 1242 | .card = CX88_BOARD_KWORLD_DVB_T_CX22702, |
Chris Pascoe | 43eabb4 | 2006-01-09 18:21:28 -0200 | [diff] [blame^] | 1243 | },{ |
| 1244 | .subvendor = 0x18ac, |
| 1245 | .subdevice = 0xdb50, |
| 1246 | .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL, |
Manenti Marco | f39624f | 2006-01-09 15:32:45 -0200 | [diff] [blame] | 1247 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1248 | }; |
| 1249 | const unsigned int cx88_idcount = ARRAY_SIZE(cx88_subids); |
| 1250 | |
| 1251 | /* ----------------------------------------------------------------------- */ |
| 1252 | /* some leadtek specific stuff */ |
| 1253 | |
| 1254 | static void __devinit leadtek_eeprom(struct cx88_core *core, u8 *eeprom_data) |
| 1255 | { |
| 1256 | /* This is just for the "Winfast 2000XP Expert" board ATM; I don't have data on |
| 1257 | * any others. |
| 1258 | * |
| 1259 | * Byte 0 is 1 on the NTSC board. |
| 1260 | */ |
| 1261 | |
| 1262 | if (eeprom_data[4] != 0x7d || |
| 1263 | eeprom_data[5] != 0x10 || |
| 1264 | eeprom_data[7] != 0x66) { |
| 1265 | printk(KERN_WARNING "%s: Leadtek eeprom invalid.\n", |
| 1266 | core->name); |
| 1267 | return; |
| 1268 | } |
| 1269 | |
| 1270 | core->has_radio = 1; |
| 1271 | core->tuner_type = (eeprom_data[6] == 0x13) ? 43 : 38; |
| 1272 | |
| 1273 | printk(KERN_INFO "%s: Leadtek Winfast 2000XP Expert config: " |
| 1274 | "tuner=%d, eeprom[0]=0x%02x\n", |
| 1275 | core->name, core->tuner_type, eeprom_data[0]); |
| 1276 | } |
| 1277 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1278 | static void hauppauge_eeprom(struct cx88_core *core, u8 *eeprom_data) |
| 1279 | { |
| 1280 | struct tveeprom tv; |
| 1281 | |
Mauro Carvalho Chehab | 0f97a93 | 2005-09-09 13:04:05 -0700 | [diff] [blame] | 1282 | tveeprom_hauppauge_analog(&core->i2c_client, &tv, eeprom_data); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1283 | core->tuner_type = tv.tuner_type; |
Steven Toth | 0345c38 | 2006-01-09 15:25:17 -0200 | [diff] [blame] | 1284 | core->tuner_formats = tv.tuner_formats; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1285 | core->has_radio = tv.has_radio; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1286 | |
| 1287 | /* Make sure we support the board model */ |
Steven Toth | 3ca0ea9 | 2005-12-01 00:51:27 -0800 | [diff] [blame] | 1288 | switch (tv.model) |
| 1289 | { |
Steven Toth | 0345c38 | 2006-01-09 15:25:17 -0200 | [diff] [blame] | 1290 | case 28552: /* WinTV-PVR 'Roslyn' (No IR) */ |
Steven Toth | 759324c | 2005-12-01 00:51:26 -0800 | [diff] [blame] | 1291 | case 90002: /* Nova-T-PCI (9002) */ |
Steven Toth | 0fe2286 | 2005-12-01 00:51:41 -0800 | [diff] [blame] | 1292 | case 92001: /* Nova-S-Plus (Video and IR) */ |
| 1293 | case 92002: /* Nova-S-Plus (Video and IR) */ |
| 1294 | case 90003: /* Nova-T-PCI (9002 No RF out) */ |
Steven Toth | 759324c | 2005-12-01 00:51:26 -0800 | [diff] [blame] | 1295 | case 90500: /* Nova-T-PCI (oem) */ |
| 1296 | case 90501: /* Nova-T-PCI (oem/IR) */ |
Steven Toth | 3ca0ea9 | 2005-12-01 00:51:27 -0800 | [diff] [blame] | 1297 | case 92000: /* Nova-SE2 (OEM, No Video or IR) */ |
Steven Toth | 611900c | 2006-01-09 15:25:12 -0200 | [diff] [blame] | 1298 | case 94009: /* WinTV-HVR1100 (Video and IR Retail) */ |
| 1299 | case 94501: /* WinTV-HVR1100 (Video and IR OEM) */ |
| 1300 | case 98559: /* WinTV-HVR1100LP (Video no IR, Retail - Low Profile) */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1301 | /* known */ |
| 1302 | break; |
| 1303 | default: |
| 1304 | printk("%s: warning: unknown hauppauge model #%d\n", |
Steven Toth | 3ca0ea9 | 2005-12-01 00:51:27 -0800 | [diff] [blame] | 1305 | core->name, tv.model); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1306 | break; |
| 1307 | } |
| 1308 | |
Steven Toth | 3ca0ea9 | 2005-12-01 00:51:27 -0800 | [diff] [blame] | 1309 | printk(KERN_INFO "%s: hauppauge eeprom: model=%d\n", |
| 1310 | core->name, tv.model); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1311 | } |
| 1312 | |
| 1313 | /* ----------------------------------------------------------------------- */ |
| 1314 | /* some GDI (was: Modular Technology) specific stuff */ |
| 1315 | |
| 1316 | static struct { |
| 1317 | int id; |
| 1318 | int fm; |
| 1319 | char *name; |
| 1320 | } gdi_tuner[] = { |
| 1321 | [ 0x01 ] = { .id = TUNER_ABSENT, |
| 1322 | .name = "NTSC_M" }, |
| 1323 | [ 0x02 ] = { .id = TUNER_ABSENT, |
| 1324 | .name = "PAL_B" }, |
| 1325 | [ 0x03 ] = { .id = TUNER_ABSENT, |
| 1326 | .name = "PAL_I" }, |
| 1327 | [ 0x04 ] = { .id = TUNER_ABSENT, |
| 1328 | .name = "PAL_D" }, |
| 1329 | [ 0x05 ] = { .id = TUNER_ABSENT, |
| 1330 | .name = "SECAM" }, |
| 1331 | |
| 1332 | [ 0x10 ] = { .id = TUNER_ABSENT, |
| 1333 | .fm = 1, |
| 1334 | .name = "TEMIC_4049" }, |
| 1335 | [ 0x11 ] = { .id = TUNER_TEMIC_4136FY5, |
| 1336 | .name = "TEMIC_4136" }, |
| 1337 | [ 0x12 ] = { .id = TUNER_ABSENT, |
| 1338 | .name = "TEMIC_4146" }, |
| 1339 | |
| 1340 | [ 0x20 ] = { .id = TUNER_PHILIPS_FQ1216ME, |
| 1341 | .fm = 1, |
| 1342 | .name = "PHILIPS_FQ1216_MK3" }, |
| 1343 | [ 0x21 ] = { .id = TUNER_ABSENT, .fm = 1, |
| 1344 | .name = "PHILIPS_FQ1236_MK3" }, |
| 1345 | [ 0x22 ] = { .id = TUNER_ABSENT, |
| 1346 | .name = "PHILIPS_FI1236_MK3" }, |
| 1347 | [ 0x23 ] = { .id = TUNER_ABSENT, |
| 1348 | .name = "PHILIPS_FI1216_MK3" }, |
| 1349 | }; |
| 1350 | |
| 1351 | static void gdi_eeprom(struct cx88_core *core, u8 *eeprom_data) |
| 1352 | { |
| 1353 | char *name = (eeprom_data[0x0d] < ARRAY_SIZE(gdi_tuner)) |
| 1354 | ? gdi_tuner[eeprom_data[0x0d]].name : NULL; |
| 1355 | |
| 1356 | printk(KERN_INFO "%s: GDI: tuner=%s\n", core->name, |
| 1357 | name ? name : "unknown"); |
| 1358 | if (NULL == name) |
| 1359 | return; |
| 1360 | core->tuner_type = gdi_tuner[eeprom_data[0x0d]].id; |
| 1361 | core->has_radio = gdi_tuner[eeprom_data[0x0d]].fm; |
| 1362 | } |
| 1363 | |
| 1364 | /* ----------------------------------------------------------------------- */ |
| 1365 | |
| 1366 | void cx88_card_list(struct cx88_core *core, struct pci_dev *pci) |
| 1367 | { |
| 1368 | int i; |
| 1369 | |
| 1370 | if (0 == pci->subsystem_vendor && |
| 1371 | 0 == pci->subsystem_device) { |
| 1372 | printk("%s: Your board has no valid PCI Subsystem ID and thus can't\n" |
| 1373 | "%s: be autodetected. Please pass card=<n> insmod option to\n" |
| 1374 | "%s: workaround that. Redirect complaints to the vendor of\n" |
| 1375 | "%s: the TV card. Best regards,\n" |
| 1376 | "%s: -- tux\n", |
| 1377 | core->name,core->name,core->name,core->name,core->name); |
| 1378 | } else { |
| 1379 | printk("%s: Your board isn't known (yet) to the driver. You can\n" |
| 1380 | "%s: try to pick one of the existing card configs via\n" |
| 1381 | "%s: card=<n> insmod option. Updating to the latest\n" |
| 1382 | "%s: version might help as well.\n", |
| 1383 | core->name,core->name,core->name,core->name); |
| 1384 | } |
| 1385 | printk("%s: Here is a list of valid choices for the card=<n> insmod option:\n", |
| 1386 | core->name); |
| 1387 | for (i = 0; i < cx88_bcount; i++) |
| 1388 | printk("%s: card=%d -> %s\n", |
| 1389 | core->name, i, cx88_boards[i].name); |
| 1390 | } |
| 1391 | |
| 1392 | void cx88_card_setup(struct cx88_core *core) |
| 1393 | { |
Steven Toth | 3ca0ea9 | 2005-12-01 00:51:27 -0800 | [diff] [blame] | 1394 | static u8 eeprom[256]; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1395 | |
| 1396 | if (0 == core->i2c_rc) { |
| 1397 | core->i2c_client.addr = 0xa0 >> 1; |
| 1398 | tveeprom_read(&core->i2c_client,eeprom,sizeof(eeprom)); |
| 1399 | } |
| 1400 | |
| 1401 | switch (core->board) { |
| 1402 | case CX88_BOARD_HAUPPAUGE: |
| 1403 | case CX88_BOARD_HAUPPAUGE_ROSLYN: |
| 1404 | if (0 == core->i2c_rc) |
| 1405 | hauppauge_eeprom(core,eeprom+8); |
| 1406 | break; |
| 1407 | case CX88_BOARD_GDI: |
| 1408 | if (0 == core->i2c_rc) |
| 1409 | gdi_eeprom(core,eeprom); |
| 1410 | break; |
| 1411 | case CX88_BOARD_WINFAST2000XP_EXPERT: |
| 1412 | if (0 == core->i2c_rc) |
| 1413 | leadtek_eeprom(core,eeprom); |
| 1414 | break; |
Steven Toth | 0fa14aa | 2006-01-09 15:25:02 -0200 | [diff] [blame] | 1415 | case CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1: |
| 1416 | case CX88_BOARD_HAUPPAUGE_NOVASE2_S1: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1417 | case CX88_BOARD_HAUPPAUGE_DVB_T1: |
Steven Toth | 611900c | 2006-01-09 15:25:12 -0200 | [diff] [blame] | 1418 | case CX88_BOARD_HAUPPAUGE_HVR1100: |
| 1419 | case CX88_BOARD_HAUPPAUGE_HVR1100LP: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1420 | if (0 == core->i2c_rc) |
Steven Toth | 3ca0ea9 | 2005-12-01 00:51:27 -0800 | [diff] [blame] | 1421 | hauppauge_eeprom(core,eeprom); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1422 | break; |
Vadim Catana | 0e0351e | 2006-01-09 15:25:02 -0200 | [diff] [blame] | 1423 | case CX88_BOARD_KWORLD_DVBS_100: |
| 1424 | cx_write(MO_GP0_IO, 0x000007f8); |
| 1425 | cx_write(MO_GP1_IO, 0x00000001); |
| 1426 | break; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1427 | case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1: |
| 1428 | case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS: |
Chris Pascoe | 43eabb4 | 2006-01-09 18:21:28 -0200 | [diff] [blame^] | 1429 | case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1430 | /* GPIO0:0 is hooked to mt352 reset pin */ |
| 1431 | cx_set(MO_GP0_IO, 0x00000101); |
| 1432 | cx_clear(MO_GP0_IO, 0x00000001); |
| 1433 | msleep(1); |
| 1434 | cx_set(MO_GP0_IO, 0x00000101); |
| 1435 | break; |
| 1436 | case CX88_BOARD_KWORLD_DVB_T: |
| 1437 | case CX88_BOARD_DNTV_LIVE_DVB_T: |
| 1438 | cx_set(MO_GP0_IO, 0x00000707); |
| 1439 | cx_set(MO_GP2_IO, 0x00000101); |
| 1440 | cx_clear(MO_GP2_IO, 0x00000001); |
| 1441 | msleep(1); |
| 1442 | cx_clear(MO_GP0_IO, 0x00000007); |
| 1443 | cx_set(MO_GP2_IO, 0x00000101); |
| 1444 | break; |
Chris Pascoe | fc40b26 | 2006-01-09 15:25:35 -0200 | [diff] [blame] | 1445 | case CX88_BOARD_DNTV_LIVE_DVB_T_PRO: |
| 1446 | cx_write(MO_GP0_IO, 0x00080808); |
| 1447 | break; |
Kirk Lapray | e976f937 | 2005-11-08 21:37:04 -0800 | [diff] [blame] | 1448 | case CX88_BOARD_ATI_HDTVWONDER: |
| 1449 | if (0 == core->i2c_rc) { |
| 1450 | /* enable tuner */ |
| 1451 | int i; |
Kirk Lapray | fde6d31 | 2005-11-08 21:38:18 -0800 | [diff] [blame] | 1452 | u8 buffer [] = { 0x10,0x12,0x13,0x04,0x16,0x00,0x14,0x04,0x017,0x00 }; |
Kirk Lapray | e976f937 | 2005-11-08 21:37:04 -0800 | [diff] [blame] | 1453 | core->i2c_client.addr = 0x0a; |
Kirk Lapray | e976f937 | 2005-11-08 21:37:04 -0800 | [diff] [blame] | 1454 | |
Kirk Lapray | fde6d31 | 2005-11-08 21:38:18 -0800 | [diff] [blame] | 1455 | for (i = 0; i < 5; i++) |
Kirk Lapray | e976f937 | 2005-11-08 21:37:04 -0800 | [diff] [blame] | 1456 | if (2 != i2c_master_send(&core->i2c_client,&buffer[i*2],2)) |
| 1457 | printk(KERN_WARNING "%s: Unable to enable tuner(%i).\n", |
| 1458 | core->name, i); |
| 1459 | } |
| 1460 | break; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1461 | } |
| 1462 | if (cx88_boards[core->board].radio.type == CX88_RADIO) |
| 1463 | core->has_radio = 1; |
| 1464 | } |
| 1465 | |
| 1466 | /* ------------------------------------------------------------------ */ |
| 1467 | |
| 1468 | EXPORT_SYMBOL(cx88_boards); |
| 1469 | EXPORT_SYMBOL(cx88_bcount); |
| 1470 | EXPORT_SYMBOL(cx88_subids); |
| 1471 | EXPORT_SYMBOL(cx88_idcount); |
| 1472 | EXPORT_SYMBOL(cx88_card_list); |
| 1473 | EXPORT_SYMBOL(cx88_card_setup); |
| 1474 | |
| 1475 | /* |
| 1476 | * Local variables: |
| 1477 | * c-basic-offset: 8 |
| 1478 | * End: |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 1479 | * kate: eol "unix"; indent-width 3; remove-trailing-space on; replace-trailing-space-save on; tab-width 8; replace-tabs off; space-indent off; mixed-indent off |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1480 | */ |