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, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 570 | .input = {{ |
| 571 | .type = CX88_VMUX_TELEVISION, |
| 572 | .vmux = 0, |
| 573 | .gpio0 = 0x00008484, |
| 574 | .gpio1 = 0x00000000, |
| 575 | .gpio2 = 0x00000000, |
| 576 | .gpio3 = 0x00000000, |
| 577 | },{ |
| 578 | .type = CX88_VMUX_COMPOSITE1, |
| 579 | .vmux = 1, |
| 580 | .gpio0 = 0x00008400, |
| 581 | .gpio1 = 0x00000000, |
| 582 | .gpio2 = 0x00000000, |
| 583 | .gpio3 = 0x00000000, |
| 584 | },{ |
| 585 | .type = CX88_VMUX_SVIDEO, |
| 586 | .vmux = 2, |
| 587 | .gpio0 = 0x00008400, |
| 588 | .gpio1 = 0x00000000, |
| 589 | .gpio2 = 0x00000000, |
| 590 | .gpio3 = 0x00000000, |
| 591 | }}, |
| 592 | .radio = { |
| 593 | .type = CX88_RADIO, |
| 594 | .vmux = 2, |
| 595 | .gpio0 = 0x00008400, |
| 596 | .gpio1 = 0x00000000, |
| 597 | .gpio2 = 0x00000000, |
| 598 | .gpio3 = 0x00000000, |
| 599 | }, |
| 600 | .dvb = 1, |
| 601 | }, |
| 602 | [CX88_BOARD_HAUPPAUGE_ROSLYN] = { |
| 603 | // entry added by Kaustubh D. Bhalerao <bhalerao.1@osu.edu> |
| 604 | // GPIO values obtained from regspy, courtesy Sean Covel |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 605 | .name = "Hauppauge WinTV 28xxx (Roslyn) models", |
| 606 | .tuner_type = UNSET, |
| 607 | .radio_type = UNSET, |
| 608 | .tuner_addr = ADDR_UNSET, |
| 609 | .radio_addr = ADDR_UNSET, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 610 | .input = {{ |
| 611 | .type = CX88_VMUX_TELEVISION, |
| 612 | .vmux = 0, |
Mauro Carvalho Chehab | e52e98a | 2005-09-09 13:03:41 -0700 | [diff] [blame] | 613 | .gpio0 = 0xed12, /* internal decoder */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 614 | .gpio2 = 0x00ff, |
| 615 | },{ |
| 616 | .type = CX88_VMUX_DEBUG, |
| 617 | .vmux = 0, |
Mauro Carvalho Chehab | e52e98a | 2005-09-09 13:03:41 -0700 | [diff] [blame] | 618 | .gpio0 = 0xff01, /* mono from tuner chip */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 619 | },{ |
| 620 | .type = CX88_VMUX_COMPOSITE1, |
| 621 | .vmux = 1, |
| 622 | .gpio0 = 0xff02, |
| 623 | },{ |
| 624 | .type = CX88_VMUX_SVIDEO, |
| 625 | .vmux = 2, |
| 626 | .gpio0 = 0xed92, |
| 627 | .gpio2 = 0x00ff, |
| 628 | }}, |
| 629 | .radio = { |
| 630 | .type = CX88_RADIO, |
| 631 | .gpio0 = 0xed96, |
| 632 | .gpio2 = 0x00ff, |
| 633 | }, |
| 634 | .blackbird = 1, |
| 635 | }, |
| 636 | [CX88_BOARD_DIGITALLOGIC_MEC] = { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 637 | .name = "Digital-Logic MICROSPACE Entertainment Center (MEC)", |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 638 | .tuner_type = TUNER_PHILIPS_FM1216ME_MK3, |
| 639 | .radio_type = UNSET, |
| 640 | .tuner_addr = ADDR_UNSET, |
| 641 | .radio_addr = ADDR_UNSET, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 642 | .tda9887_conf = TDA9887_PRESENT, |
| 643 | .input = {{ |
| 644 | .type = CX88_VMUX_TELEVISION, |
| 645 | .vmux = 0, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 646 | .gpio0 = 0x00009d80, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 647 | },{ |
| 648 | .type = CX88_VMUX_COMPOSITE1, |
| 649 | .vmux = 1, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 650 | .gpio0 = 0x00009d76, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 651 | },{ |
| 652 | .type = CX88_VMUX_SVIDEO, |
| 653 | .vmux = 2, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 654 | .gpio0 = 0x00009d76, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 655 | }}, |
| 656 | .radio = { |
| 657 | .type = CX88_RADIO, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 658 | .gpio0 = 0x00009d00, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 659 | }, |
| 660 | .blackbird = 1, |
| 661 | }, |
| 662 | [CX88_BOARD_IODATA_GVBCTV7E] = { |
| 663 | .name = "IODATA GV/BCTV7E", |
| 664 | .tuner_type = TUNER_PHILIPS_FQ1286, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 665 | .radio_type = UNSET, |
| 666 | .tuner_addr = ADDR_UNSET, |
| 667 | .radio_addr = ADDR_UNSET, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 668 | .tda9887_conf = TDA9887_PRESENT, |
| 669 | .input = {{ |
| 670 | .type = CX88_VMUX_TELEVISION, |
| 671 | .vmux = 1, |
| 672 | .gpio1 = 0x0000e03f, |
| 673 | },{ |
| 674 | .type = CX88_VMUX_COMPOSITE1, |
| 675 | .vmux = 2, |
| 676 | .gpio1 = 0x0000e07f, |
| 677 | },{ |
| 678 | .type = CX88_VMUX_SVIDEO, |
| 679 | .vmux = 3, |
| 680 | .gpio1 = 0x0000e07f, |
| 681 | }} |
| 682 | }, |
Manuel Capinha | 239df2e | 2005-06-23 22:04:53 -0700 | [diff] [blame] | 683 | [CX88_BOARD_PIXELVIEW_PLAYTV_ULTRA_PRO] = { |
| 684 | .name = "PixelView PlayTV Ultra Pro (Stereo)", |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 685 | /* May be also TUNER_YMEC_TVF_5533MF for NTSC/M or PAL/M */ |
| 686 | .tuner_type = TUNER_PHILIPS_FM1216ME_MK3, |
Mauro Carvalho Chehab | c5287ba | 2005-07-15 03:56:28 -0700 | [diff] [blame] | 687 | .radio_type = UNSET, |
| 688 | .tuner_addr = ADDR_UNSET, |
| 689 | .radio_addr = ADDR_UNSET, |
Manuel Capinha | 239df2e | 2005-06-23 22:04:53 -0700 | [diff] [blame] | 690 | .input = {{ |
| 691 | .type = CX88_VMUX_TELEVISION, |
| 692 | .vmux = 0, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 693 | .gpio0 = 0xbf61, /* internal decoder */ |
Manuel Capinha | 239df2e | 2005-06-23 22:04:53 -0700 | [diff] [blame] | 694 | },{ |
| 695 | .type = CX88_VMUX_COMPOSITE1, |
| 696 | .vmux = 1, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 697 | .gpio0 = 0xbf63, |
Manuel Capinha | 239df2e | 2005-06-23 22:04:53 -0700 | [diff] [blame] | 698 | },{ |
| 699 | .type = CX88_VMUX_SVIDEO, |
| 700 | .vmux = 2, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 701 | .gpio0 = 0xbf63, |
Manuel Capinha | 239df2e | 2005-06-23 22:04:53 -0700 | [diff] [blame] | 702 | }}, |
| 703 | .radio = { |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 704 | .type = CX88_RADIO, |
| 705 | .gpio0 = 0xbf60, |
| 706 | }, |
Manuel Capinha | 239df2e | 2005-06-23 22:04:53 -0700 | [diff] [blame] | 707 | }, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 708 | [CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_T] = { |
Mauro Carvalho Chehab | a82decf | 2005-07-07 17:58:36 -0700 | [diff] [blame] | 709 | .name = "DViCO FusionHDTV 3 Gold-T", |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 710 | .tuner_type = TUNER_THOMSON_DTT7611, |
| 711 | .radio_type = UNSET, |
| 712 | .tuner_addr = ADDR_UNSET, |
| 713 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | a82decf | 2005-07-07 17:58:36 -0700 | [diff] [blame] | 714 | .input = {{ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 715 | .type = CX88_VMUX_TELEVISION, |
| 716 | .vmux = 0, |
| 717 | .gpio0 = 0x97ed, |
| 718 | },{ |
| 719 | .type = CX88_VMUX_COMPOSITE1, |
| 720 | .vmux = 1, |
| 721 | .gpio0 = 0x97e9, |
| 722 | },{ |
| 723 | .type = CX88_VMUX_SVIDEO, |
| 724 | .vmux = 2, |
| 725 | .gpio0 = 0x97e9, |
| 726 | }}, |
Michael Krufky | 0d723c0 | 2005-07-07 17:58:42 -0700 | [diff] [blame] | 727 | .dvb = 1, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 728 | }, |
| 729 | [CX88_BOARD_ADSTECH_DVB_T_PCI] = { |
| 730 | .name = "ADS Tech Instant TV DVB-T PCI", |
Mauro Carvalho Chehab | a82decf | 2005-07-07 17:58:36 -0700 | [diff] [blame] | 731 | .tuner_type = TUNER_ABSENT, |
| 732 | .radio_type = UNSET, |
| 733 | .tuner_addr = ADDR_UNSET, |
| 734 | .radio_addr = ADDR_UNSET, |
| 735 | .input = {{ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 736 | .type = CX88_VMUX_COMPOSITE1, |
| 737 | .vmux = 1, |
Mauro Carvalho Chehab | a82decf | 2005-07-07 17:58:36 -0700 | [diff] [blame] | 738 | .gpio0 = 0x0700, |
| 739 | .gpio2 = 0x0101, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 740 | },{ |
| 741 | .type = CX88_VMUX_SVIDEO, |
| 742 | .vmux = 2, |
Mauro Carvalho Chehab | a82decf | 2005-07-07 17:58:36 -0700 | [diff] [blame] | 743 | .gpio0 = 0x0700, |
| 744 | .gpio2 = 0x0101, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 745 | }}, |
Mauro Carvalho Chehab | a82decf | 2005-07-07 17:58:36 -0700 | [diff] [blame] | 746 | .dvb = 1, |
| 747 | }, |
Michael Krufky | e057ee1 | 2005-07-07 17:58:40 -0700 | [diff] [blame] | 748 | [CX88_BOARD_TERRATEC_CINERGY_1400_DVB_T1] = { |
| 749 | .name = "TerraTec Cinergy 1400 DVB-T", |
| 750 | .tuner_type = TUNER_ABSENT, |
| 751 | .input = {{ |
| 752 | .type = CX88_VMUX_DVB, |
| 753 | .vmux = 0, |
| 754 | }}, |
| 755 | .dvb = 1, |
| 756 | }, |
Michael Krufky | 9fef07c | 2005-07-31 22:34:46 -0700 | [diff] [blame] | 757 | [CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD] = { |
| 758 | .name = "DViCO FusionHDTV 5 Gold", |
| 759 | .tuner_type = TUNER_LG_TDVS_H062F, |
| 760 | .radio_type = UNSET, |
| 761 | .tuner_addr = ADDR_UNSET, |
| 762 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | e52e98a | 2005-09-09 13:03:41 -0700 | [diff] [blame] | 763 | .tda9887_conf = TDA9887_PRESENT, |
Michael Krufky | 9fef07c | 2005-07-31 22:34:46 -0700 | [diff] [blame] | 764 | .input = {{ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 765 | .type = CX88_VMUX_TELEVISION, |
| 766 | .vmux = 0, |
| 767 | .gpio0 = 0x87fd, |
| 768 | },{ |
| 769 | .type = CX88_VMUX_COMPOSITE1, |
| 770 | .vmux = 1, |
| 771 | .gpio0 = 0x87f9, |
| 772 | },{ |
| 773 | .type = CX88_VMUX_SVIDEO, |
| 774 | .vmux = 2, |
| 775 | .gpio0 = 0x87f9, |
| 776 | }}, |
Mauro Carvalho Chehab | e52e98a | 2005-09-09 13:03:41 -0700 | [diff] [blame] | 777 | .dvb = 1, |
Michael Krufky | 9fef07c | 2005-07-31 22:34:46 -0700 | [diff] [blame] | 778 | }, |
Nickolay V. Shmyrev | d45170e | 2005-11-08 21:36:15 -0800 | [diff] [blame] | 779 | [CX88_BOARD_AVERMEDIA_ULTRATV_MC_550] = { |
| 780 | .name = "AverMedia UltraTV Media Center PCI 550", |
| 781 | .tuner_type = TUNER_PHILIPS_FM1236_MK3, |
| 782 | .radio_type = UNSET, |
| 783 | .tuner_addr = ADDR_UNSET, |
| 784 | .radio_addr = ADDR_UNSET, |
| 785 | .tda9887_conf = TDA9887_PRESENT, |
| 786 | .blackbird = 1, |
| 787 | .input = {{ |
| 788 | .type = CX88_VMUX_COMPOSITE1, |
| 789 | .vmux = 0, |
| 790 | .gpio0 = 0x0000cd73, |
| 791 | },{ |
| 792 | .type = CX88_VMUX_SVIDEO, |
| 793 | .vmux = 1, |
| 794 | .gpio0 = 0x0000cd73, |
| 795 | },{ |
| 796 | .type = CX88_VMUX_TELEVISION, |
| 797 | .vmux = 3, |
| 798 | .gpio0 = 0x0000cdb3, |
| 799 | }}, |
| 800 | .radio = { |
| 801 | .type = CX88_RADIO, |
| 802 | .vmux = 2, |
| 803 | .gpio0 = 0x0000cdf3, |
| 804 | }, |
| 805 | }, |
Alexander Wold | 0bcc37c | 2005-11-08 21:36:58 -0800 | [diff] [blame] | 806 | [CX88_BOARD_KWORLD_VSTREAM_EXPERT_DVD] = { |
| 807 | /* Alexander Wold <awold@bigfoot.com> */ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 808 | .name = "Kworld V-Stream Xpert DVD", |
| 809 | .tuner_type = UNSET, |
| 810 | .input = {{ |
| 811 | .type = CX88_VMUX_COMPOSITE1, |
| 812 | .vmux = 1, |
| 813 | .gpio0 = 0x03000000, |
Alexander Wold | 0bcc37c | 2005-11-08 21:36:58 -0800 | [diff] [blame] | 814 | .gpio1 = 0x01000000, |
| 815 | .gpio2 = 0x02000000, |
| 816 | .gpio3 = 0x00100000, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 817 | },{ |
| 818 | .type = CX88_VMUX_SVIDEO, |
| 819 | .vmux = 2, |
| 820 | .gpio0 = 0x03000000, |
| 821 | .gpio1 = 0x01000000, |
| 822 | .gpio2 = 0x02000000, |
| 823 | .gpio3 = 0x00100000, |
| 824 | }}, |
Alexander Wold | 0bcc37c | 2005-11-08 21:36:58 -0800 | [diff] [blame] | 825 | }, |
Kirk Lapray | e976f937 | 2005-11-08 21:37:04 -0800 | [diff] [blame] | 826 | [CX88_BOARD_ATI_HDTVWONDER] = { |
| 827 | .name = "ATI HDTV Wonder", |
| 828 | .tuner_type = TUNER_PHILIPS_TUV1236D, |
| 829 | .radio_type = UNSET, |
| 830 | .tuner_addr = ADDR_UNSET, |
| 831 | .radio_addr = ADDR_UNSET, |
| 832 | .input = {{ |
| 833 | .type = CX88_VMUX_TELEVISION, |
| 834 | .vmux = 0, |
| 835 | .gpio0 = 0x00000ff7, |
| 836 | .gpio1 = 0x000000ff, |
| 837 | .gpio2 = 0x00000001, |
| 838 | .gpio3 = 0x00000000, |
| 839 | },{ |
| 840 | .type = CX88_VMUX_COMPOSITE1, |
| 841 | .vmux = 1, |
| 842 | .gpio0 = 0x00000ffe, |
| 843 | .gpio1 = 0x000000ff, |
| 844 | .gpio2 = 0x00000001, |
| 845 | .gpio3 = 0x00000000, |
| 846 | },{ |
| 847 | .type = CX88_VMUX_SVIDEO, |
| 848 | .vmux = 2, |
| 849 | .gpio0 = 0x00000ffe, |
| 850 | .gpio1 = 0x000000ff, |
| 851 | .gpio2 = 0x00000001, |
| 852 | .gpio3 = 0x00000000, |
| 853 | }}, |
Kirk Lapray | fde6d31 | 2005-11-08 21:38:18 -0800 | [diff] [blame] | 854 | .dvb = 1, |
Kirk Lapray | e976f937 | 2005-11-08 21:37:04 -0800 | [diff] [blame] | 855 | }, |
David Shirley | 2b5200a | 2005-11-08 21:37:22 -0800 | [diff] [blame] | 856 | [CX88_BOARD_WINFAST_DTV1000] = { |
| 857 | .name = "WinFast DTV1000-T", |
| 858 | .tuner_type = TUNER_ABSENT, |
| 859 | .radio_type = UNSET, |
| 860 | .tuner_addr = ADDR_UNSET, |
| 861 | .radio_addr = ADDR_UNSET, |
| 862 | .input = {{ |
| 863 | .type = CX88_VMUX_DVB, |
| 864 | .vmux = 0, |
| 865 | }}, |
| 866 | .dvb = 1, |
| 867 | }, |
Lubomir Bulej | 7418f34 | 2005-11-08 21:38:34 -0800 | [diff] [blame] | 868 | [CX88_BOARD_AVERTV_303] = { |
| 869 | .name = "AVerTV 303 (M126)", |
| 870 | .tuner_type = TUNER_PHILIPS_FM1216ME_MK3, |
| 871 | .radio_type = UNSET, |
| 872 | .tuner_addr = ADDR_UNSET, |
| 873 | .radio_addr = ADDR_UNSET, |
| 874 | .tda9887_conf = TDA9887_PRESENT, |
| 875 | .input = {{ |
| 876 | .type = CX88_VMUX_TELEVISION, |
| 877 | .vmux = 0, |
| 878 | .gpio0 = 0x00ff, |
| 879 | .gpio1 = 0xe09f, |
| 880 | .gpio2 = 0x0010, |
| 881 | .gpio3 = 0x0000, |
| 882 | },{ |
| 883 | .type = CX88_VMUX_COMPOSITE1, |
| 884 | .vmux = 1, |
| 885 | .gpio0 = 0x00ff, |
| 886 | .gpio1 = 0xe05f, |
| 887 | .gpio2 = 0x0010, |
| 888 | .gpio3 = 0x0000, |
| 889 | },{ |
| 890 | .type = CX88_VMUX_SVIDEO, |
| 891 | .vmux = 2, |
| 892 | .gpio0 = 0x00ff, |
| 893 | .gpio1 = 0xe05f, |
| 894 | .gpio2 = 0x0010, |
| 895 | .gpio3 = 0x0000, |
| 896 | }}, |
| 897 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 898 | }; |
| 899 | const unsigned int cx88_bcount = ARRAY_SIZE(cx88_boards); |
| 900 | |
| 901 | /* ------------------------------------------------------------------ */ |
| 902 | /* PCI subsystem IDs */ |
| 903 | |
| 904 | struct cx88_subid cx88_subids[] = { |
| 905 | { |
| 906 | .subvendor = 0x0070, |
| 907 | .subdevice = 0x3400, |
| 908 | .card = CX88_BOARD_HAUPPAUGE, |
| 909 | },{ |
| 910 | .subvendor = 0x0070, |
| 911 | .subdevice = 0x3401, |
| 912 | .card = CX88_BOARD_HAUPPAUGE, |
| 913 | },{ |
| 914 | .subvendor = 0x14c7, |
| 915 | .subdevice = 0x0106, |
| 916 | .card = CX88_BOARD_GDI, |
| 917 | },{ |
| 918 | .subvendor = 0x14c7, |
| 919 | .subdevice = 0x0107, /* with mpeg encoder */ |
| 920 | .card = CX88_BOARD_GDI, |
| 921 | },{ |
| 922 | .subvendor = PCI_VENDOR_ID_ATI, |
| 923 | .subdevice = 0x00f8, |
| 924 | .card = CX88_BOARD_ATI_WONDER_PRO, |
| 925 | },{ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 926 | .subvendor = 0x107d, |
| 927 | .subdevice = 0x6611, |
| 928 | .card = CX88_BOARD_WINFAST2000XP_EXPERT, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 929 | },{ |
| 930 | .subvendor = 0x107d, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 931 | .subdevice = 0x6613, /* NTSC */ |
| 932 | .card = CX88_BOARD_WINFAST2000XP_EXPERT, |
| 933 | },{ |
| 934 | .subvendor = 0x107d, |
| 935 | .subdevice = 0x6620, |
| 936 | .card = CX88_BOARD_WINFAST_DV2000, |
| 937 | },{ |
| 938 | .subvendor = 0x107d, |
| 939 | .subdevice = 0x663b, |
| 940 | .card = CX88_BOARD_LEADTEK_PVR2000, |
| 941 | },{ |
| 942 | .subvendor = 0x107d, |
| 943 | .subdevice = 0x663C, |
| 944 | .card = CX88_BOARD_LEADTEK_PVR2000, |
| 945 | },{ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 946 | .subvendor = 0x1461, |
| 947 | .subdevice = 0x000b, |
Lubomir Bulej | 7418f34 | 2005-11-08 21:38:34 -0800 | [diff] [blame] | 948 | .card = CX88_BOARD_AVERTV_STUDIO_303, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 949 | },{ |
| 950 | .subvendor = 0x1462, |
| 951 | .subdevice = 0x8606, |
| 952 | .card = CX88_BOARD_MSI_TVANYWHERE_MASTER, |
| 953 | },{ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 954 | .subvendor = 0x10fc, |
| 955 | .subdevice = 0xd003, |
| 956 | .card = CX88_BOARD_IODATA_GVVCP3PCI, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 957 | },{ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 958 | .subvendor = 0x1043, |
| 959 | .subdevice = 0x4823, /* with mpeg encoder */ |
| 960 | .card = CX88_BOARD_ASUS_PVR_416, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 961 | },{ |
| 962 | .subvendor = 0x17de, |
| 963 | .subdevice = 0x08a6, |
| 964 | .card = CX88_BOARD_KWORLD_DVB_T, |
| 965 | },{ |
| 966 | .subvendor = 0x18ac, |
| 967 | .subdevice = 0xd810, |
Mauro Carvalho Chehab | a82decf | 2005-07-07 17:58:36 -0700 | [diff] [blame] | 968 | .card = CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 969 | },{ |
Michael Krufky | 097b750 | 2005-06-23 22:04:43 -0700 | [diff] [blame] | 970 | .subvendor = 0x18ac, |
| 971 | .subdevice = 0xd820, |
Michael Krufky | 80d3436 | 2005-06-23 22:04:55 -0700 | [diff] [blame] | 972 | .card = CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_T, |
Michael Krufky | 097b750 | 2005-06-23 22:04:43 -0700 | [diff] [blame] | 973 | },{ |
Michael Krufky | 7df64e8 | 2005-11-08 21:36:16 -0800 | [diff] [blame] | 974 | .subvendor = 0x18ac, |
| 975 | .subdevice = 0xdb00, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 976 | .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 977 | },{ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 978 | .subvendor = 0x0070, |
| 979 | .subdevice = 0x9002, |
| 980 | .card = CX88_BOARD_HAUPPAUGE_DVB_T1, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 981 | },{ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 982 | .subvendor = 0x14f1, |
| 983 | .subdevice = 0x0187, |
| 984 | .card = CX88_BOARD_CONEXANT_DVB_T1, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 985 | },{ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 986 | .subvendor = 0x1540, |
| 987 | .subdevice = 0x2580, |
| 988 | .card = CX88_BOARD_PROVIDEO_PV259, |
| 989 | },{ |
Michael Krufky | 7df64e8 | 2005-11-08 21:36:16 -0800 | [diff] [blame] | 990 | .subvendor = 0x18ac, |
| 991 | .subdevice = 0xdb10, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 992 | .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS, |
| 993 | },{ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 994 | .subvendor = 0x1554, |
| 995 | .subdevice = 0x4811, |
| 996 | .card = CX88_BOARD_PIXELVIEW, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 997 | },{ |
| 998 | .subvendor = 0x7063, |
| 999 | .subdevice = 0x3000, /* HD-3000 card */ |
| 1000 | .card = CX88_BOARD_PCHDTV_HD3000, |
| 1001 | },{ |
Michael Krufky | 7df64e8 | 2005-11-08 21:36:16 -0800 | [diff] [blame] | 1002 | .subvendor = 0x17de, |
| 1003 | .subdevice = 0xa8a6, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1004 | .card = CX88_BOARD_DNTV_LIVE_DVB_T, |
| 1005 | },{ |
| 1006 | .subvendor = 0x0070, |
| 1007 | .subdevice = 0x2801, |
| 1008 | .card = CX88_BOARD_HAUPPAUGE_ROSLYN, |
| 1009 | },{ |
Michael Krufky | 7df64e8 | 2005-11-08 21:36:16 -0800 | [diff] [blame] | 1010 | .subvendor = 0x14f1, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1011 | .subdevice = 0x0342, |
| 1012 | .card = CX88_BOARD_DIGITALLOGIC_MEC, |
| 1013 | },{ |
| 1014 | .subvendor = 0x10fc, |
| 1015 | .subdevice = 0xd035, |
| 1016 | .card = CX88_BOARD_IODATA_GVBCTV7E, |
Mauro Carvalho Chehab | a82decf | 2005-07-07 17:58:36 -0700 | [diff] [blame] | 1017 | },{ |
| 1018 | .subvendor = 0x1421, |
| 1019 | .subdevice = 0x0334, |
| 1020 | .card = CX88_BOARD_ADSTECH_DVB_T_PCI, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1021 | },{ |
Michael Krufky | e057ee1 | 2005-07-07 17:58:40 -0700 | [diff] [blame] | 1022 | .subvendor = 0x153b, |
| 1023 | .subdevice = 0x1166, |
| 1024 | .card = CX88_BOARD_TERRATEC_CINERGY_1400_DVB_T1, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1025 | },{ |
Michael Krufky | 9fef07c | 2005-07-31 22:34:46 -0700 | [diff] [blame] | 1026 | .subvendor = 0x18ac, |
| 1027 | .subdevice = 0xd500, |
| 1028 | .card = CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1029 | },{ |
Nickolay V. Shmyrev | d45170e | 2005-11-08 21:36:15 -0800 | [diff] [blame] | 1030 | .subvendor = 0x1461, |
| 1031 | .subdevice = 0x8011, |
| 1032 | .card = CX88_BOARD_AVERMEDIA_ULTRATV_MC_550, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1033 | },{ |
Kirk Lapray | e976f937 | 2005-11-08 21:37:04 -0800 | [diff] [blame] | 1034 | .subvendor = PCI_VENDOR_ID_ATI, |
| 1035 | .subdevice = 0xa101, |
| 1036 | .card = CX88_BOARD_ATI_HDTVWONDER, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1037 | },{ |
David Shirley | 2b5200a | 2005-11-08 21:37:22 -0800 | [diff] [blame] | 1038 | .subvendor = 0x107d, |
| 1039 | .subdevice = 0x665f, |
| 1040 | .card = CX88_BOARD_WINFAST_DTV1000, |
Lubomir Bulej | 7418f34 | 2005-11-08 21:38:34 -0800 | [diff] [blame] | 1041 | },{ |
| 1042 | .subvendor = 0x1461, |
| 1043 | .subdevice = 0x000a, |
| 1044 | .card = CX88_BOARD_AVERTV_303, |
Mauro Carvalho Chehab | a82decf | 2005-07-07 17:58:36 -0700 | [diff] [blame] | 1045 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1046 | }; |
| 1047 | const unsigned int cx88_idcount = ARRAY_SIZE(cx88_subids); |
| 1048 | |
| 1049 | /* ----------------------------------------------------------------------- */ |
| 1050 | /* some leadtek specific stuff */ |
| 1051 | |
| 1052 | static void __devinit leadtek_eeprom(struct cx88_core *core, u8 *eeprom_data) |
| 1053 | { |
| 1054 | /* This is just for the "Winfast 2000XP Expert" board ATM; I don't have data on |
| 1055 | * any others. |
| 1056 | * |
| 1057 | * Byte 0 is 1 on the NTSC board. |
| 1058 | */ |
| 1059 | |
| 1060 | if (eeprom_data[4] != 0x7d || |
| 1061 | eeprom_data[5] != 0x10 || |
| 1062 | eeprom_data[7] != 0x66) { |
| 1063 | printk(KERN_WARNING "%s: Leadtek eeprom invalid.\n", |
| 1064 | core->name); |
| 1065 | return; |
| 1066 | } |
| 1067 | |
| 1068 | core->has_radio = 1; |
| 1069 | core->tuner_type = (eeprom_data[6] == 0x13) ? 43 : 38; |
| 1070 | |
| 1071 | printk(KERN_INFO "%s: Leadtek Winfast 2000XP Expert config: " |
| 1072 | "tuner=%d, eeprom[0]=0x%02x\n", |
| 1073 | core->name, core->tuner_type, eeprom_data[0]); |
| 1074 | } |
| 1075 | |
| 1076 | |
| 1077 | /* ----------------------------------------------------------------------- */ |
| 1078 | |
| 1079 | static void hauppauge_eeprom(struct cx88_core *core, u8 *eeprom_data) |
| 1080 | { |
| 1081 | struct tveeprom tv; |
| 1082 | |
Mauro Carvalho Chehab | 0f97a93 | 2005-09-09 13:04:05 -0700 | [diff] [blame] | 1083 | tveeprom_hauppauge_analog(&core->i2c_client, &tv, eeprom_data); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1084 | core->tuner_type = tv.tuner_type; |
| 1085 | core->has_radio = tv.has_radio; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1086 | |
| 1087 | /* Make sure we support the board model */ |
Steven Toth | 3ca0ea9 | 2005-12-01 00:51:27 -0800 | [diff] [blame] | 1088 | switch (tv.model) |
| 1089 | { |
Steven Toth | 759324c | 2005-12-01 00:51:26 -0800 | [diff] [blame] | 1090 | case 90002: /* Nova-T-PCI (9002) */ |
Steven Toth | 0fe2286 | 2005-12-01 00:51:41 -0800 | [diff] [blame^] | 1091 | case 92001: /* Nova-S-Plus (Video and IR) */ |
| 1092 | case 92002: /* Nova-S-Plus (Video and IR) */ |
| 1093 | case 90003: /* Nova-T-PCI (9002 No RF out) */ |
Steven Toth | 759324c | 2005-12-01 00:51:26 -0800 | [diff] [blame] | 1094 | case 90500: /* Nova-T-PCI (oem) */ |
| 1095 | case 90501: /* Nova-T-PCI (oem/IR) */ |
Steven Toth | 3ca0ea9 | 2005-12-01 00:51:27 -0800 | [diff] [blame] | 1096 | case 92000: /* Nova-SE2 (OEM, No Video or IR) */ |
Steven Toth | 0fe2286 | 2005-12-01 00:51:41 -0800 | [diff] [blame^] | 1097 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1098 | /* known */ |
| 1099 | break; |
| 1100 | default: |
| 1101 | printk("%s: warning: unknown hauppauge model #%d\n", |
Steven Toth | 3ca0ea9 | 2005-12-01 00:51:27 -0800 | [diff] [blame] | 1102 | core->name, tv.model); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1103 | break; |
| 1104 | } |
| 1105 | |
Steven Toth | 3ca0ea9 | 2005-12-01 00:51:27 -0800 | [diff] [blame] | 1106 | printk(KERN_INFO "%s: hauppauge eeprom: model=%d\n", |
| 1107 | core->name, tv.model); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1108 | } |
| 1109 | |
| 1110 | /* ----------------------------------------------------------------------- */ |
| 1111 | /* some GDI (was: Modular Technology) specific stuff */ |
| 1112 | |
| 1113 | static struct { |
| 1114 | int id; |
| 1115 | int fm; |
| 1116 | char *name; |
| 1117 | } gdi_tuner[] = { |
| 1118 | [ 0x01 ] = { .id = TUNER_ABSENT, |
| 1119 | .name = "NTSC_M" }, |
| 1120 | [ 0x02 ] = { .id = TUNER_ABSENT, |
| 1121 | .name = "PAL_B" }, |
| 1122 | [ 0x03 ] = { .id = TUNER_ABSENT, |
| 1123 | .name = "PAL_I" }, |
| 1124 | [ 0x04 ] = { .id = TUNER_ABSENT, |
| 1125 | .name = "PAL_D" }, |
| 1126 | [ 0x05 ] = { .id = TUNER_ABSENT, |
| 1127 | .name = "SECAM" }, |
| 1128 | |
| 1129 | [ 0x10 ] = { .id = TUNER_ABSENT, |
| 1130 | .fm = 1, |
| 1131 | .name = "TEMIC_4049" }, |
| 1132 | [ 0x11 ] = { .id = TUNER_TEMIC_4136FY5, |
| 1133 | .name = "TEMIC_4136" }, |
| 1134 | [ 0x12 ] = { .id = TUNER_ABSENT, |
| 1135 | .name = "TEMIC_4146" }, |
| 1136 | |
| 1137 | [ 0x20 ] = { .id = TUNER_PHILIPS_FQ1216ME, |
| 1138 | .fm = 1, |
| 1139 | .name = "PHILIPS_FQ1216_MK3" }, |
| 1140 | [ 0x21 ] = { .id = TUNER_ABSENT, .fm = 1, |
| 1141 | .name = "PHILIPS_FQ1236_MK3" }, |
| 1142 | [ 0x22 ] = { .id = TUNER_ABSENT, |
| 1143 | .name = "PHILIPS_FI1236_MK3" }, |
| 1144 | [ 0x23 ] = { .id = TUNER_ABSENT, |
| 1145 | .name = "PHILIPS_FI1216_MK3" }, |
| 1146 | }; |
| 1147 | |
| 1148 | static void gdi_eeprom(struct cx88_core *core, u8 *eeprom_data) |
| 1149 | { |
| 1150 | char *name = (eeprom_data[0x0d] < ARRAY_SIZE(gdi_tuner)) |
| 1151 | ? gdi_tuner[eeprom_data[0x0d]].name : NULL; |
| 1152 | |
| 1153 | printk(KERN_INFO "%s: GDI: tuner=%s\n", core->name, |
| 1154 | name ? name : "unknown"); |
| 1155 | if (NULL == name) |
| 1156 | return; |
| 1157 | core->tuner_type = gdi_tuner[eeprom_data[0x0d]].id; |
| 1158 | core->has_radio = gdi_tuner[eeprom_data[0x0d]].fm; |
| 1159 | } |
| 1160 | |
| 1161 | /* ----------------------------------------------------------------------- */ |
| 1162 | |
| 1163 | void cx88_card_list(struct cx88_core *core, struct pci_dev *pci) |
| 1164 | { |
| 1165 | int i; |
| 1166 | |
| 1167 | if (0 == pci->subsystem_vendor && |
| 1168 | 0 == pci->subsystem_device) { |
| 1169 | printk("%s: Your board has no valid PCI Subsystem ID and thus can't\n" |
| 1170 | "%s: be autodetected. Please pass card=<n> insmod option to\n" |
| 1171 | "%s: workaround that. Redirect complaints to the vendor of\n" |
| 1172 | "%s: the TV card. Best regards,\n" |
| 1173 | "%s: -- tux\n", |
| 1174 | core->name,core->name,core->name,core->name,core->name); |
| 1175 | } else { |
| 1176 | printk("%s: Your board isn't known (yet) to the driver. You can\n" |
| 1177 | "%s: try to pick one of the existing card configs via\n" |
| 1178 | "%s: card=<n> insmod option. Updating to the latest\n" |
| 1179 | "%s: version might help as well.\n", |
| 1180 | core->name,core->name,core->name,core->name); |
| 1181 | } |
| 1182 | printk("%s: Here is a list of valid choices for the card=<n> insmod option:\n", |
| 1183 | core->name); |
| 1184 | for (i = 0; i < cx88_bcount; i++) |
| 1185 | printk("%s: card=%d -> %s\n", |
| 1186 | core->name, i, cx88_boards[i].name); |
| 1187 | } |
| 1188 | |
| 1189 | void cx88_card_setup(struct cx88_core *core) |
| 1190 | { |
Steven Toth | 3ca0ea9 | 2005-12-01 00:51:27 -0800 | [diff] [blame] | 1191 | static u8 eeprom[256]; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1192 | |
| 1193 | if (0 == core->i2c_rc) { |
| 1194 | core->i2c_client.addr = 0xa0 >> 1; |
| 1195 | tveeprom_read(&core->i2c_client,eeprom,sizeof(eeprom)); |
| 1196 | } |
| 1197 | |
| 1198 | switch (core->board) { |
| 1199 | case CX88_BOARD_HAUPPAUGE: |
| 1200 | case CX88_BOARD_HAUPPAUGE_ROSLYN: |
| 1201 | if (0 == core->i2c_rc) |
| 1202 | hauppauge_eeprom(core,eeprom+8); |
| 1203 | break; |
| 1204 | case CX88_BOARD_GDI: |
| 1205 | if (0 == core->i2c_rc) |
| 1206 | gdi_eeprom(core,eeprom); |
| 1207 | break; |
| 1208 | case CX88_BOARD_WINFAST2000XP_EXPERT: |
| 1209 | if (0 == core->i2c_rc) |
| 1210 | leadtek_eeprom(core,eeprom); |
| 1211 | break; |
| 1212 | case CX88_BOARD_HAUPPAUGE_DVB_T1: |
| 1213 | if (0 == core->i2c_rc) |
Steven Toth | 3ca0ea9 | 2005-12-01 00:51:27 -0800 | [diff] [blame] | 1214 | hauppauge_eeprom(core,eeprom); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1215 | break; |
| 1216 | case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1: |
| 1217 | case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS: |
| 1218 | /* GPIO0:0 is hooked to mt352 reset pin */ |
| 1219 | cx_set(MO_GP0_IO, 0x00000101); |
| 1220 | cx_clear(MO_GP0_IO, 0x00000001); |
| 1221 | msleep(1); |
| 1222 | cx_set(MO_GP0_IO, 0x00000101); |
| 1223 | break; |
| 1224 | case CX88_BOARD_KWORLD_DVB_T: |
| 1225 | case CX88_BOARD_DNTV_LIVE_DVB_T: |
| 1226 | cx_set(MO_GP0_IO, 0x00000707); |
| 1227 | cx_set(MO_GP2_IO, 0x00000101); |
| 1228 | cx_clear(MO_GP2_IO, 0x00000001); |
| 1229 | msleep(1); |
| 1230 | cx_clear(MO_GP0_IO, 0x00000007); |
| 1231 | cx_set(MO_GP2_IO, 0x00000101); |
| 1232 | break; |
Kirk Lapray | e976f937 | 2005-11-08 21:37:04 -0800 | [diff] [blame] | 1233 | case CX88_BOARD_ATI_HDTVWONDER: |
| 1234 | if (0 == core->i2c_rc) { |
| 1235 | /* enable tuner */ |
| 1236 | int i; |
Kirk Lapray | fde6d31 | 2005-11-08 21:38:18 -0800 | [diff] [blame] | 1237 | u8 buffer [] = { 0x10,0x12,0x13,0x04,0x16,0x00,0x14,0x04,0x017,0x00 }; |
Kirk Lapray | e976f937 | 2005-11-08 21:37:04 -0800 | [diff] [blame] | 1238 | core->i2c_client.addr = 0x0a; |
Kirk Lapray | e976f937 | 2005-11-08 21:37:04 -0800 | [diff] [blame] | 1239 | |
Kirk Lapray | fde6d31 | 2005-11-08 21:38:18 -0800 | [diff] [blame] | 1240 | for (i = 0; i < 5; i++) |
Kirk Lapray | e976f937 | 2005-11-08 21:37:04 -0800 | [diff] [blame] | 1241 | if (2 != i2c_master_send(&core->i2c_client,&buffer[i*2],2)) |
| 1242 | printk(KERN_WARNING "%s: Unable to enable tuner(%i).\n", |
| 1243 | core->name, i); |
| 1244 | } |
| 1245 | break; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1246 | } |
| 1247 | if (cx88_boards[core->board].radio.type == CX88_RADIO) |
| 1248 | core->has_radio = 1; |
| 1249 | } |
| 1250 | |
| 1251 | /* ------------------------------------------------------------------ */ |
| 1252 | |
| 1253 | EXPORT_SYMBOL(cx88_boards); |
| 1254 | EXPORT_SYMBOL(cx88_bcount); |
| 1255 | EXPORT_SYMBOL(cx88_subids); |
| 1256 | EXPORT_SYMBOL(cx88_idcount); |
| 1257 | EXPORT_SYMBOL(cx88_card_list); |
| 1258 | EXPORT_SYMBOL(cx88_card_setup); |
| 1259 | |
| 1260 | /* |
| 1261 | * Local variables: |
| 1262 | * c-basic-offset: 8 |
| 1263 | * End: |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 1264 | * 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] | 1265 | */ |