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