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, |
Michael Krufky | 47ee2f3 | 2006-06-06 15:51:38 -0300 | [diff] [blame] | 117 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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, |
Michael Krufky | 47ee2f3 | 2006-06-06 15:51:38 -0300 | [diff] [blame] | 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, |
Michael Krufky | f24546a | 2006-10-16 16:51:11 -0300 | [diff] [blame] | 284 | .extadc = 1, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 285 | },{ |
| 286 | .type = CX88_VMUX_COMPOSITE1, |
| 287 | .vmux = 1, |
| 288 | .gpio0 = 0x0000bde6, |
Michael Krufky | f24546a | 2006-10-16 16:51:11 -0300 | [diff] [blame] | 289 | .extadc = 1, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 290 | },{ |
| 291 | .type = CX88_VMUX_SVIDEO, |
| 292 | .vmux = 2, |
| 293 | .gpio0 = 0x0000bde6, |
Michael Krufky | f24546a | 2006-10-16 16:51:11 -0300 | [diff] [blame] | 294 | .extadc = 1, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 295 | }}, |
| 296 | .radio = { |
| 297 | .type = CX88_RADIO, |
| 298 | .gpio0 = 0x0000bd62, |
Michael Krufky | f24546a | 2006-10-16 16:51:11 -0300 | [diff] [blame] | 299 | .extadc = 1, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 300 | }, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 301 | .mpeg = CX88_MPEG_BLACKBIRD, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 302 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 303 | [CX88_BOARD_IODATA_GVVCP3PCI] = { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 304 | .name = "IODATA GV-VCP3/PCI", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 305 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 306 | .radio_type = UNSET, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 307 | .tuner_addr = ADDR_UNSET, |
| 308 | .radio_addr = ADDR_UNSET, |
| 309 | .input = {{ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 310 | .type = CX88_VMUX_COMPOSITE1, |
| 311 | .vmux = 0, |
| 312 | },{ |
| 313 | .type = CX88_VMUX_COMPOSITE2, |
| 314 | .vmux = 1, |
| 315 | },{ |
| 316 | .type = CX88_VMUX_SVIDEO, |
| 317 | .vmux = 2, |
| 318 | }}, |
| 319 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 320 | [CX88_BOARD_PROLINK_PLAYTVPVR] = { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 321 | .name = "Prolink PlayTV PVR", |
| 322 | .tuner_type = TUNER_PHILIPS_FM1236_MK3, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 323 | .radio_type = UNSET, |
| 324 | .tuner_addr = ADDR_UNSET, |
| 325 | .radio_addr = ADDR_UNSET, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 326 | .tda9887_conf = TDA9887_PRESENT, |
| 327 | .input = {{ |
| 328 | .type = CX88_VMUX_TELEVISION, |
| 329 | .vmux = 0, |
Michael Krufky | fc34f16 | 2006-03-13 03:41:44 -0300 | [diff] [blame] | 330 | .gpio0 = 0xbff0, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 331 | },{ |
| 332 | .type = CX88_VMUX_COMPOSITE1, |
| 333 | .vmux = 1, |
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 | .type = CX88_VMUX_SVIDEO, |
| 337 | .vmux = 2, |
Michael Krufky | fc34f16 | 2006-03-13 03:41:44 -0300 | [diff] [blame] | 338 | .gpio0 = 0xbff3, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 339 | }}, |
| 340 | .radio = { |
| 341 | .type = CX88_RADIO, |
Michael Krufky | fc34f16 | 2006-03-13 03:41:44 -0300 | [diff] [blame] | 342 | .gpio0 = 0xbff0, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 343 | }, |
| 344 | }, |
| 345 | [CX88_BOARD_ASUS_PVR_416] = { |
| 346 | .name = "ASUS PVR-416", |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 347 | .tuner_type = TUNER_PHILIPS_FM1236_MK3, |
| 348 | .radio_type = UNSET, |
| 349 | .tuner_addr = ADDR_UNSET, |
| 350 | .radio_addr = ADDR_UNSET, |
| 351 | .tda9887_conf = TDA9887_PRESENT, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 352 | .input = {{ |
| 353 | .type = CX88_VMUX_TELEVISION, |
| 354 | .vmux = 0, |
| 355 | .gpio0 = 0x0000fde6, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 356 | },{ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 357 | .type = CX88_VMUX_SVIDEO, |
| 358 | .vmux = 2, |
| 359 | .gpio0 = 0x0000fde6, // 0x0000fda6 L,R RCA audio in? |
Michael Krufky | fe16af2 | 2006-10-16 20:47:14 -0300 | [diff] [blame] | 360 | .extadc = 1, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 361 | }}, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 362 | .radio = { |
| 363 | .type = CX88_RADIO, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 364 | .gpio0 = 0x0000fde2, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 365 | }, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 366 | .mpeg = CX88_MPEG_BLACKBIRD, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 367 | }, |
| 368 | [CX88_BOARD_MSI_TVANYWHERE] = { |
| 369 | .name = "MSI TV-@nywhere", |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 370 | .tuner_type = TUNER_MT2032, |
| 371 | .radio_type = UNSET, |
| 372 | .tuner_addr = ADDR_UNSET, |
| 373 | .radio_addr = ADDR_UNSET, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 374 | .tda9887_conf = TDA9887_PRESENT, |
| 375 | .input = {{ |
| 376 | .type = CX88_VMUX_TELEVISION, |
| 377 | .vmux = 0, |
| 378 | .gpio0 = 0x00000fbf, |
| 379 | .gpio2 = 0x0000fc08, |
| 380 | },{ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 381 | .type = CX88_VMUX_COMPOSITE1, |
| 382 | .vmux = 1, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 383 | .gpio0 = 0x00000fbf, |
| 384 | .gpio2 = 0x0000fc68, |
| 385 | },{ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 386 | .type = CX88_VMUX_SVIDEO, |
| 387 | .vmux = 2, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 388 | .gpio0 = 0x00000fbf, |
| 389 | .gpio2 = 0x0000fc68, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 390 | }}, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 391 | }, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 392 | [CX88_BOARD_KWORLD_DVB_T] = { |
| 393 | .name = "KWorld/VStream XPert DVB-T", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 394 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 395 | .radio_type = UNSET, |
| 396 | .tuner_addr = ADDR_UNSET, |
| 397 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 398 | .input = {{ |
| 399 | .type = CX88_VMUX_COMPOSITE1, |
| 400 | .vmux = 1, |
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 | },{ |
| 404 | .type = CX88_VMUX_SVIDEO, |
| 405 | .vmux = 2, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 406 | .gpio0 = 0x0700, |
| 407 | .gpio2 = 0x0101, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 408 | }}, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 409 | .mpeg = CX88_MPEG_DVB, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 410 | }, |
| 411 | [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1] = { |
Mauro Carvalho Chehab | a82decf | 2005-07-07 17:58:36 -0700 | [diff] [blame] | 412 | .name = "DViCO FusionHDTV DVB-T1", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 413 | .tuner_type = TUNER_ABSENT, /* No analog tuner */ |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 414 | .radio_type = UNSET, |
| 415 | .tuner_addr = ADDR_UNSET, |
| 416 | .radio_addr = ADDR_UNSET, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 417 | .input = {{ |
| 418 | .type = CX88_VMUX_COMPOSITE1, |
| 419 | .vmux = 1, |
| 420 | .gpio0 = 0x000027df, |
Michael Krufky | 47ee2f3 | 2006-06-06 15:51:38 -0300 | [diff] [blame] | 421 | },{ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 422 | .type = CX88_VMUX_SVIDEO, |
| 423 | .vmux = 2, |
| 424 | .gpio0 = 0x000027df, |
| 425 | }}, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 426 | .mpeg = CX88_MPEG_DVB, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 427 | }, |
| 428 | [CX88_BOARD_KWORLD_LTV883] = { |
| 429 | .name = "KWorld LTV883RF", |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 430 | .tuner_type = TUNER_TNF_8831BGFF, |
| 431 | .radio_type = UNSET, |
| 432 | .tuner_addr = ADDR_UNSET, |
| 433 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 434 | .input = {{ |
| 435 | .type = CX88_VMUX_TELEVISION, |
| 436 | .vmux = 0, |
| 437 | .gpio0 = 0x07f8, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 438 | },{ |
| 439 | .type = CX88_VMUX_DEBUG, |
| 440 | .vmux = 0, |
| 441 | .gpio0 = 0x07f9, // mono from tuner chip |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 442 | },{ |
| 443 | .type = CX88_VMUX_COMPOSITE1, |
| 444 | .vmux = 1, |
| 445 | .gpio0 = 0x000007fa, |
| 446 | },{ |
| 447 | .type = CX88_VMUX_SVIDEO, |
| 448 | .vmux = 2, |
| 449 | .gpio0 = 0x000007fa, |
| 450 | }}, |
| 451 | .radio = { |
| 452 | .type = CX88_RADIO, |
| 453 | .gpio0 = 0x000007f8, |
| 454 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 455 | }, |
Mauro Carvalho Chehab | a82decf | 2005-07-07 17:58:36 -0700 | [diff] [blame] | 456 | [CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q] = { |
| 457 | .name = "DViCO FusionHDTV 3 Gold-Q", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 458 | .tuner_type = TUNER_MICROTUNE_4042FI5, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 459 | .radio_type = UNSET, |
| 460 | .tuner_addr = ADDR_UNSET, |
| 461 | .radio_addr = ADDR_UNSET, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 462 | /* |
| 463 | GPIO[0] resets DT3302 DTV receiver |
| 464 | 0 - reset asserted |
| 465 | 1 - normal operation |
| 466 | GPIO[1] mutes analog audio output connector |
| 467 | 0 - enable selected source |
| 468 | 1 - mute |
| 469 | GPIO[2] selects source for analog audio output connector |
| 470 | 0 - analog audio input connector on tab |
| 471 | 1 - analog DAC output from CX23881 chip |
| 472 | GPIO[3] selects RF input connector on tuner module |
| 473 | 0 - RF connector labeled CABLE |
| 474 | 1 - RF connector labeled ANT |
Mauro Carvalho Chehab | a82decf | 2005-07-07 17:58:36 -0700 | [diff] [blame] | 475 | GPIO[4] selects high RF for QAM256 mode |
| 476 | 0 - normal RF |
| 477 | 1 - high RF |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 478 | */ |
| 479 | .input = {{ |
| 480 | .type = CX88_VMUX_TELEVISION, |
| 481 | .vmux = 0, |
| 482 | .gpio0 = 0x0f0d, |
| 483 | },{ |
| 484 | .type = CX88_VMUX_CABLE, |
| 485 | .vmux = 0, |
| 486 | .gpio0 = 0x0f05, |
| 487 | },{ |
| 488 | .type = CX88_VMUX_COMPOSITE1, |
| 489 | .vmux = 1, |
| 490 | .gpio0 = 0x0f00, |
| 491 | },{ |
| 492 | .type = CX88_VMUX_SVIDEO, |
| 493 | .vmux = 2, |
| 494 | .gpio0 = 0x0f00, |
| 495 | }}, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 496 | .mpeg = CX88_MPEG_DVB, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 497 | }, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 498 | [CX88_BOARD_HAUPPAUGE_DVB_T1] = { |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 499 | .name = "Hauppauge Nova-T DVB-T", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 500 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 501 | .radio_type = UNSET, |
| 502 | .tuner_addr = ADDR_UNSET, |
| 503 | .radio_addr = ADDR_UNSET, |
| 504 | .input = {{ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 505 | .type = CX88_VMUX_DVB, |
| 506 | .vmux = 0, |
| 507 | }}, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 508 | .mpeg = CX88_MPEG_DVB, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 509 | }, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 510 | [CX88_BOARD_CONEXANT_DVB_T1] = { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 511 | .name = "Conexant DVB-T reference design", |
| 512 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 513 | .radio_type = UNSET, |
| 514 | .tuner_addr = ADDR_UNSET, |
| 515 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 516 | .input = {{ |
| 517 | .type = CX88_VMUX_DVB, |
| 518 | .vmux = 0, |
| 519 | }}, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 520 | .mpeg = CX88_MPEG_DVB, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 521 | }, |
| 522 | [CX88_BOARD_PROVIDEO_PV259] = { |
| 523 | .name = "Provideo PV259", |
| 524 | .tuner_type = TUNER_PHILIPS_FQ1216ME, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 525 | .radio_type = UNSET, |
| 526 | .tuner_addr = ADDR_UNSET, |
| 527 | .radio_addr = ADDR_UNSET, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 528 | .input = {{ |
| 529 | .type = CX88_VMUX_TELEVISION, |
| 530 | .vmux = 0, |
Michael Krufky | f24546a | 2006-10-16 16:51:11 -0300 | [diff] [blame] | 531 | .extadc = 1, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 532 | }}, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 533 | .mpeg = CX88_MPEG_BLACKBIRD, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 534 | }, |
| 535 | [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS] = { |
Mauro Carvalho Chehab | a82decf | 2005-07-07 17:58:36 -0700 | [diff] [blame] | 536 | .name = "DViCO FusionHDTV DVB-T Plus", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 537 | .tuner_type = TUNER_ABSENT, /* No analog tuner */ |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 538 | .radio_type = UNSET, |
| 539 | .tuner_addr = ADDR_UNSET, |
| 540 | .radio_addr = ADDR_UNSET, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 541 | .input = {{ |
| 542 | .type = CX88_VMUX_COMPOSITE1, |
| 543 | .vmux = 1, |
| 544 | .gpio0 = 0x000027df, |
Michael Krufky | 47ee2f3 | 2006-06-06 15:51:38 -0300 | [diff] [blame] | 545 | },{ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 546 | .type = CX88_VMUX_SVIDEO, |
| 547 | .vmux = 2, |
| 548 | .gpio0 = 0x000027df, |
| 549 | }}, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 550 | .mpeg = CX88_MPEG_DVB, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 551 | }, |
| 552 | [CX88_BOARD_DNTV_LIVE_DVB_T] = { |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 553 | .name = "digitalnow DNTV Live! DVB-T", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 554 | .tuner_type = TUNER_ABSENT, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 555 | .radio_type = UNSET, |
| 556 | .tuner_addr = ADDR_UNSET, |
| 557 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 558 | .input = {{ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 559 | .type = CX88_VMUX_COMPOSITE1, |
| 560 | .vmux = 1, |
| 561 | .gpio0 = 0x00000700, |
| 562 | .gpio2 = 0x00000101, |
| 563 | },{ |
| 564 | .type = CX88_VMUX_SVIDEO, |
| 565 | .vmux = 2, |
| 566 | .gpio0 = 0x00000700, |
| 567 | .gpio2 = 0x00000101, |
| 568 | }}, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 569 | .mpeg = CX88_MPEG_DVB, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 570 | }, |
| 571 | [CX88_BOARD_PCHDTV_HD3000] = { |
| 572 | .name = "pcHDTV HD3000 HDTV", |
Trent Piepho | 9175b85 | 2006-04-10 09:40:37 -0300 | [diff] [blame] | 573 | .tuner_type = TUNER_THOMSON_DTT761X, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 574 | .radio_type = UNSET, |
| 575 | .tuner_addr = ADDR_UNSET, |
| 576 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | e4f5c82 | 2005-12-04 12:41:54 -0200 | [diff] [blame] | 577 | .tda9887_conf = TDA9887_PRESENT, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 578 | .input = {{ |
| 579 | .type = CX88_VMUX_TELEVISION, |
| 580 | .vmux = 0, |
| 581 | .gpio0 = 0x00008484, |
| 582 | .gpio1 = 0x00000000, |
| 583 | .gpio2 = 0x00000000, |
| 584 | .gpio3 = 0x00000000, |
| 585 | },{ |
| 586 | .type = CX88_VMUX_COMPOSITE1, |
| 587 | .vmux = 1, |
| 588 | .gpio0 = 0x00008400, |
| 589 | .gpio1 = 0x00000000, |
| 590 | .gpio2 = 0x00000000, |
| 591 | .gpio3 = 0x00000000, |
| 592 | },{ |
| 593 | .type = CX88_VMUX_SVIDEO, |
| 594 | .vmux = 2, |
| 595 | .gpio0 = 0x00008400, |
| 596 | .gpio1 = 0x00000000, |
| 597 | .gpio2 = 0x00000000, |
| 598 | .gpio3 = 0x00000000, |
| 599 | }}, |
| 600 | .radio = { |
| 601 | .type = CX88_RADIO, |
| 602 | .vmux = 2, |
| 603 | .gpio0 = 0x00008400, |
| 604 | .gpio1 = 0x00000000, |
| 605 | .gpio2 = 0x00000000, |
| 606 | .gpio3 = 0x00000000, |
| 607 | }, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 608 | .mpeg = CX88_MPEG_DVB, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 609 | }, |
| 610 | [CX88_BOARD_HAUPPAUGE_ROSLYN] = { |
| 611 | // entry added by Kaustubh D. Bhalerao <bhalerao.1@osu.edu> |
| 612 | // GPIO values obtained from regspy, courtesy Sean Covel |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 613 | .name = "Hauppauge WinTV 28xxx (Roslyn) models", |
| 614 | .tuner_type = UNSET, |
| 615 | .radio_type = UNSET, |
| 616 | .tuner_addr = ADDR_UNSET, |
| 617 | .radio_addr = ADDR_UNSET, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 618 | .input = {{ |
| 619 | .type = CX88_VMUX_TELEVISION, |
| 620 | .vmux = 0, |
Steven Toth | 0345c38 | 2006-01-09 15:25:17 -0200 | [diff] [blame] | 621 | .gpio0 = 0xed1a, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 622 | .gpio2 = 0x00ff, |
| 623 | },{ |
| 624 | .type = CX88_VMUX_DEBUG, |
| 625 | .vmux = 0, |
Steven Toth | 0345c38 | 2006-01-09 15:25:17 -0200 | [diff] [blame] | 626 | .gpio0 = 0xff01, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 627 | },{ |
| 628 | .type = CX88_VMUX_COMPOSITE1, |
| 629 | .vmux = 1, |
| 630 | .gpio0 = 0xff02, |
| 631 | },{ |
| 632 | .type = CX88_VMUX_SVIDEO, |
| 633 | .vmux = 2, |
| 634 | .gpio0 = 0xed92, |
| 635 | .gpio2 = 0x00ff, |
| 636 | }}, |
| 637 | .radio = { |
| 638 | .type = CX88_RADIO, |
| 639 | .gpio0 = 0xed96, |
| 640 | .gpio2 = 0x00ff, |
| 641 | }, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 642 | .mpeg = CX88_MPEG_BLACKBIRD, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 643 | }, |
| 644 | [CX88_BOARD_DIGITALLOGIC_MEC] = { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 645 | .name = "Digital-Logic MICROSPACE Entertainment Center (MEC)", |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 646 | .tuner_type = TUNER_PHILIPS_FM1216ME_MK3, |
| 647 | .radio_type = UNSET, |
| 648 | .tuner_addr = ADDR_UNSET, |
| 649 | .radio_addr = ADDR_UNSET, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 650 | .tda9887_conf = TDA9887_PRESENT, |
| 651 | .input = {{ |
| 652 | .type = CX88_VMUX_TELEVISION, |
| 653 | .vmux = 0, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 654 | .gpio0 = 0x00009d80, |
Michael Krufky | f24546a | 2006-10-16 16:51:11 -0300 | [diff] [blame] | 655 | .extadc = 1, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 656 | },{ |
| 657 | .type = CX88_VMUX_COMPOSITE1, |
| 658 | .vmux = 1, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 659 | .gpio0 = 0x00009d76, |
Michael Krufky | f24546a | 2006-10-16 16:51:11 -0300 | [diff] [blame] | 660 | .extadc = 1, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 661 | },{ |
| 662 | .type = CX88_VMUX_SVIDEO, |
| 663 | .vmux = 2, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 664 | .gpio0 = 0x00009d76, |
Michael Krufky | f24546a | 2006-10-16 16:51:11 -0300 | [diff] [blame] | 665 | .extadc = 1, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 666 | }}, |
| 667 | .radio = { |
| 668 | .type = CX88_RADIO, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 669 | .gpio0 = 0x00009d00, |
Michael Krufky | f24546a | 2006-10-16 16:51:11 -0300 | [diff] [blame] | 670 | .extadc = 1, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 671 | }, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 672 | .mpeg = CX88_MPEG_BLACKBIRD, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 673 | }, |
| 674 | [CX88_BOARD_IODATA_GVBCTV7E] = { |
| 675 | .name = "IODATA GV/BCTV7E", |
| 676 | .tuner_type = TUNER_PHILIPS_FQ1286, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 677 | .radio_type = UNSET, |
| 678 | .tuner_addr = ADDR_UNSET, |
| 679 | .radio_addr = ADDR_UNSET, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 680 | .tda9887_conf = TDA9887_PRESENT, |
| 681 | .input = {{ |
| 682 | .type = CX88_VMUX_TELEVISION, |
| 683 | .vmux = 1, |
| 684 | .gpio1 = 0x0000e03f, |
| 685 | },{ |
| 686 | .type = CX88_VMUX_COMPOSITE1, |
| 687 | .vmux = 2, |
| 688 | .gpio1 = 0x0000e07f, |
| 689 | },{ |
| 690 | .type = CX88_VMUX_SVIDEO, |
| 691 | .vmux = 3, |
| 692 | .gpio1 = 0x0000e07f, |
| 693 | }} |
| 694 | }, |
Manuel Capinha | 239df2e | 2005-06-23 22:04:53 -0700 | [diff] [blame] | 695 | [CX88_BOARD_PIXELVIEW_PLAYTV_ULTRA_PRO] = { |
| 696 | .name = "PixelView PlayTV Ultra Pro (Stereo)", |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 697 | /* May be also TUNER_YMEC_TVF_5533MF for NTSC/M or PAL/M */ |
| 698 | .tuner_type = TUNER_PHILIPS_FM1216ME_MK3, |
Mauro Carvalho Chehab | c5287ba | 2005-07-15 03:56:28 -0700 | [diff] [blame] | 699 | .radio_type = UNSET, |
| 700 | .tuner_addr = ADDR_UNSET, |
| 701 | .radio_addr = ADDR_UNSET, |
Manuel Capinha | 239df2e | 2005-06-23 22:04:53 -0700 | [diff] [blame] | 702 | .input = {{ |
| 703 | .type = CX88_VMUX_TELEVISION, |
| 704 | .vmux = 0, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 705 | .gpio0 = 0xbf61, /* internal decoder */ |
Manuel Capinha | 239df2e | 2005-06-23 22:04:53 -0700 | [diff] [blame] | 706 | },{ |
| 707 | .type = CX88_VMUX_COMPOSITE1, |
| 708 | .vmux = 1, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 709 | .gpio0 = 0xbf63, |
Manuel Capinha | 239df2e | 2005-06-23 22:04:53 -0700 | [diff] [blame] | 710 | },{ |
| 711 | .type = CX88_VMUX_SVIDEO, |
| 712 | .vmux = 2, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 713 | .gpio0 = 0xbf63, |
Manuel Capinha | 239df2e | 2005-06-23 22:04:53 -0700 | [diff] [blame] | 714 | }}, |
| 715 | .radio = { |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 716 | .type = CX88_RADIO, |
| 717 | .gpio0 = 0xbf60, |
| 718 | }, |
Manuel Capinha | 239df2e | 2005-06-23 22:04:53 -0700 | [diff] [blame] | 719 | }, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 720 | [CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_T] = { |
Mauro Carvalho Chehab | a82decf | 2005-07-07 17:58:36 -0700 | [diff] [blame] | 721 | .name = "DViCO FusionHDTV 3 Gold-T", |
Michael Krufky | 83ac8722 | 2006-01-09 15:25:29 -0200 | [diff] [blame] | 722 | .tuner_type = TUNER_THOMSON_DTT761X, |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 723 | .radio_type = UNSET, |
| 724 | .tuner_addr = ADDR_UNSET, |
| 725 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | e4f5c82 | 2005-12-04 12:41:54 -0200 | [diff] [blame] | 726 | .tda9887_conf = TDA9887_PRESENT, |
Mauro Carvalho Chehab | a82decf | 2005-07-07 17:58:36 -0700 | [diff] [blame] | 727 | .input = {{ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 728 | .type = CX88_VMUX_TELEVISION, |
| 729 | .vmux = 0, |
| 730 | .gpio0 = 0x97ed, |
| 731 | },{ |
| 732 | .type = CX88_VMUX_COMPOSITE1, |
| 733 | .vmux = 1, |
| 734 | .gpio0 = 0x97e9, |
| 735 | },{ |
| 736 | .type = CX88_VMUX_SVIDEO, |
| 737 | .vmux = 2, |
| 738 | .gpio0 = 0x97e9, |
| 739 | }}, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 740 | .mpeg = CX88_MPEG_DVB, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 741 | }, |
| 742 | [CX88_BOARD_ADSTECH_DVB_T_PCI] = { |
| 743 | .name = "ADS Tech Instant TV DVB-T PCI", |
Mauro Carvalho Chehab | a82decf | 2005-07-07 17:58:36 -0700 | [diff] [blame] | 744 | .tuner_type = TUNER_ABSENT, |
| 745 | .radio_type = UNSET, |
| 746 | .tuner_addr = ADDR_UNSET, |
| 747 | .radio_addr = ADDR_UNSET, |
| 748 | .input = {{ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 749 | .type = CX88_VMUX_COMPOSITE1, |
| 750 | .vmux = 1, |
Mauro Carvalho Chehab | a82decf | 2005-07-07 17:58:36 -0700 | [diff] [blame] | 751 | .gpio0 = 0x0700, |
| 752 | .gpio2 = 0x0101, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 753 | },{ |
| 754 | .type = CX88_VMUX_SVIDEO, |
| 755 | .vmux = 2, |
Mauro Carvalho Chehab | a82decf | 2005-07-07 17:58:36 -0700 | [diff] [blame] | 756 | .gpio0 = 0x0700, |
| 757 | .gpio2 = 0x0101, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 758 | }}, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 759 | .mpeg = CX88_MPEG_DVB, |
Mauro Carvalho Chehab | a82decf | 2005-07-07 17:58:36 -0700 | [diff] [blame] | 760 | }, |
Michael Krufky | e057ee1 | 2005-07-07 17:58:40 -0700 | [diff] [blame] | 761 | [CX88_BOARD_TERRATEC_CINERGY_1400_DVB_T1] = { |
| 762 | .name = "TerraTec Cinergy 1400 DVB-T", |
| 763 | .tuner_type = TUNER_ABSENT, |
| 764 | .input = {{ |
| 765 | .type = CX88_VMUX_DVB, |
| 766 | .vmux = 0, |
Heiko Baums | 05eda24 | 2007-01-21 05:58:19 -0300 | [diff] [blame] | 767 | },{ |
| 768 | .type = CX88_VMUX_COMPOSITE1, |
| 769 | .vmux = 2, |
| 770 | },{ |
| 771 | .type = CX88_VMUX_SVIDEO, |
| 772 | .vmux = 2, |
Michael Krufky | e057ee1 | 2005-07-07 17:58:40 -0700 | [diff] [blame] | 773 | }}, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 774 | .mpeg = CX88_MPEG_DVB, |
Michael Krufky | e057ee1 | 2005-07-07 17:58:40 -0700 | [diff] [blame] | 775 | }, |
Michael Krufky | 9fef07c | 2005-07-31 22:34:46 -0700 | [diff] [blame] | 776 | [CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD] = { |
| 777 | .name = "DViCO FusionHDTV 5 Gold", |
Michael Krufky | 9c26c8b | 2006-04-27 01:29:17 -0300 | [diff] [blame] | 778 | .tuner_type = TUNER_LG_TDVS_H06XF, /* TDVS-H062F */ |
Michael Krufky | 9fef07c | 2005-07-31 22:34:46 -0700 | [diff] [blame] | 779 | .radio_type = UNSET, |
| 780 | .tuner_addr = ADDR_UNSET, |
| 781 | .radio_addr = ADDR_UNSET, |
Mauro Carvalho Chehab | e52e98a | 2005-09-09 13:03:41 -0700 | [diff] [blame] | 782 | .tda9887_conf = TDA9887_PRESENT, |
Michael Krufky | 9fef07c | 2005-07-31 22:34:46 -0700 | [diff] [blame] | 783 | .input = {{ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 784 | .type = CX88_VMUX_TELEVISION, |
| 785 | .vmux = 0, |
| 786 | .gpio0 = 0x87fd, |
| 787 | },{ |
| 788 | .type = CX88_VMUX_COMPOSITE1, |
| 789 | .vmux = 1, |
| 790 | .gpio0 = 0x87f9, |
| 791 | },{ |
| 792 | .type = CX88_VMUX_SVIDEO, |
| 793 | .vmux = 2, |
| 794 | .gpio0 = 0x87f9, |
| 795 | }}, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 796 | .mpeg = CX88_MPEG_DVB, |
Michael Krufky | 9fef07c | 2005-07-31 22:34:46 -0700 | [diff] [blame] | 797 | }, |
Nickolay V. Shmyrev | d45170e | 2005-11-08 21:36:15 -0800 | [diff] [blame] | 798 | [CX88_BOARD_AVERMEDIA_ULTRATV_MC_550] = { |
| 799 | .name = "AverMedia UltraTV Media Center PCI 550", |
| 800 | .tuner_type = TUNER_PHILIPS_FM1236_MK3, |
| 801 | .radio_type = UNSET, |
| 802 | .tuner_addr = ADDR_UNSET, |
| 803 | .radio_addr = ADDR_UNSET, |
| 804 | .tda9887_conf = TDA9887_PRESENT, |
Nickolay V. Shmyrev | d45170e | 2005-11-08 21:36:15 -0800 | [diff] [blame] | 805 | .input = {{ |
| 806 | .type = CX88_VMUX_COMPOSITE1, |
| 807 | .vmux = 0, |
| 808 | .gpio0 = 0x0000cd73, |
Michael Krufky | f24546a | 2006-10-16 16:51:11 -0300 | [diff] [blame] | 809 | .extadc = 1, |
Nickolay V. Shmyrev | d45170e | 2005-11-08 21:36:15 -0800 | [diff] [blame] | 810 | },{ |
| 811 | .type = CX88_VMUX_SVIDEO, |
| 812 | .vmux = 1, |
| 813 | .gpio0 = 0x0000cd73, |
Michael Krufky | f24546a | 2006-10-16 16:51:11 -0300 | [diff] [blame] | 814 | .extadc = 1, |
Nickolay V. Shmyrev | d45170e | 2005-11-08 21:36:15 -0800 | [diff] [blame] | 815 | },{ |
| 816 | .type = CX88_VMUX_TELEVISION, |
| 817 | .vmux = 3, |
| 818 | .gpio0 = 0x0000cdb3, |
Michael Krufky | f24546a | 2006-10-16 16:51:11 -0300 | [diff] [blame] | 819 | .extadc = 1, |
Nickolay V. Shmyrev | d45170e | 2005-11-08 21:36:15 -0800 | [diff] [blame] | 820 | }}, |
| 821 | .radio = { |
| 822 | .type = CX88_RADIO, |
| 823 | .vmux = 2, |
| 824 | .gpio0 = 0x0000cdf3, |
Michael Krufky | f24546a | 2006-10-16 16:51:11 -0300 | [diff] [blame] | 825 | .extadc = 1, |
Nickolay V. Shmyrev | d45170e | 2005-11-08 21:36:15 -0800 | [diff] [blame] | 826 | }, |
Michael Krufky | 5b26c82 | 2006-10-16 16:07:51 -0300 | [diff] [blame] | 827 | .mpeg = CX88_MPEG_BLACKBIRD, |
Nickolay V. Shmyrev | d45170e | 2005-11-08 21:36:15 -0800 | [diff] [blame] | 828 | }, |
Alexander Wold | 0bcc37c | 2005-11-08 21:36:58 -0800 | [diff] [blame] | 829 | [CX88_BOARD_KWORLD_VSTREAM_EXPERT_DVD] = { |
| 830 | /* Alexander Wold <awold@bigfoot.com> */ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 831 | .name = "Kworld V-Stream Xpert DVD", |
| 832 | .tuner_type = UNSET, |
| 833 | .input = {{ |
| 834 | .type = CX88_VMUX_COMPOSITE1, |
| 835 | .vmux = 1, |
| 836 | .gpio0 = 0x03000000, |
Alexander Wold | 0bcc37c | 2005-11-08 21:36:58 -0800 | [diff] [blame] | 837 | .gpio1 = 0x01000000, |
| 838 | .gpio2 = 0x02000000, |
| 839 | .gpio3 = 0x00100000, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 840 | },{ |
| 841 | .type = CX88_VMUX_SVIDEO, |
| 842 | .vmux = 2, |
| 843 | .gpio0 = 0x03000000, |
| 844 | .gpio1 = 0x01000000, |
| 845 | .gpio2 = 0x02000000, |
| 846 | .gpio3 = 0x00100000, |
| 847 | }}, |
Alexander Wold | 0bcc37c | 2005-11-08 21:36:58 -0800 | [diff] [blame] | 848 | }, |
Kirk Lapray | e976f937 | 2005-11-08 21:37:04 -0800 | [diff] [blame] | 849 | [CX88_BOARD_ATI_HDTVWONDER] = { |
| 850 | .name = "ATI HDTV Wonder", |
| 851 | .tuner_type = TUNER_PHILIPS_TUV1236D, |
| 852 | .radio_type = UNSET, |
| 853 | .tuner_addr = ADDR_UNSET, |
| 854 | .radio_addr = ADDR_UNSET, |
| 855 | .input = {{ |
| 856 | .type = CX88_VMUX_TELEVISION, |
| 857 | .vmux = 0, |
| 858 | .gpio0 = 0x00000ff7, |
| 859 | .gpio1 = 0x000000ff, |
| 860 | .gpio2 = 0x00000001, |
| 861 | .gpio3 = 0x00000000, |
| 862 | },{ |
| 863 | .type = CX88_VMUX_COMPOSITE1, |
| 864 | .vmux = 1, |
| 865 | .gpio0 = 0x00000ffe, |
| 866 | .gpio1 = 0x000000ff, |
| 867 | .gpio2 = 0x00000001, |
| 868 | .gpio3 = 0x00000000, |
| 869 | },{ |
| 870 | .type = CX88_VMUX_SVIDEO, |
| 871 | .vmux = 2, |
| 872 | .gpio0 = 0x00000ffe, |
| 873 | .gpio1 = 0x000000ff, |
| 874 | .gpio2 = 0x00000001, |
| 875 | .gpio3 = 0x00000000, |
| 876 | }}, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 877 | .mpeg = CX88_MPEG_DVB, |
Kirk Lapray | e976f937 | 2005-11-08 21:37:04 -0800 | [diff] [blame] | 878 | }, |
David Shirley | 2b5200a | 2005-11-08 21:37:22 -0800 | [diff] [blame] | 879 | [CX88_BOARD_WINFAST_DTV1000] = { |
| 880 | .name = "WinFast DTV1000-T", |
| 881 | .tuner_type = TUNER_ABSENT, |
| 882 | .radio_type = UNSET, |
| 883 | .tuner_addr = ADDR_UNSET, |
| 884 | .radio_addr = ADDR_UNSET, |
| 885 | .input = {{ |
| 886 | .type = CX88_VMUX_DVB, |
| 887 | .vmux = 0, |
Jean Delvare | e8f4e75 | 2007-03-31 10:34:59 -0300 | [diff] [blame] | 888 | },{ |
| 889 | .type = CX88_VMUX_COMPOSITE1, |
| 890 | .vmux = 1, |
| 891 | },{ |
| 892 | .type = CX88_VMUX_SVIDEO, |
| 893 | .vmux = 2, |
David Shirley | 2b5200a | 2005-11-08 21:37:22 -0800 | [diff] [blame] | 894 | }}, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 895 | .mpeg = CX88_MPEG_DVB, |
David Shirley | 2b5200a | 2005-11-08 21:37:22 -0800 | [diff] [blame] | 896 | }, |
Lubomir Bulej | 7418f34 | 2005-11-08 21:38:34 -0800 | [diff] [blame] | 897 | [CX88_BOARD_AVERTV_303] = { |
| 898 | .name = "AVerTV 303 (M126)", |
| 899 | .tuner_type = TUNER_PHILIPS_FM1216ME_MK3, |
| 900 | .radio_type = UNSET, |
| 901 | .tuner_addr = ADDR_UNSET, |
| 902 | .radio_addr = ADDR_UNSET, |
| 903 | .tda9887_conf = TDA9887_PRESENT, |
| 904 | .input = {{ |
| 905 | .type = CX88_VMUX_TELEVISION, |
| 906 | .vmux = 0, |
| 907 | .gpio0 = 0x00ff, |
| 908 | .gpio1 = 0xe09f, |
| 909 | .gpio2 = 0x0010, |
| 910 | .gpio3 = 0x0000, |
| 911 | },{ |
| 912 | .type = CX88_VMUX_COMPOSITE1, |
| 913 | .vmux = 1, |
| 914 | .gpio0 = 0x00ff, |
| 915 | .gpio1 = 0xe05f, |
| 916 | .gpio2 = 0x0010, |
| 917 | .gpio3 = 0x0000, |
| 918 | },{ |
| 919 | .type = CX88_VMUX_SVIDEO, |
| 920 | .vmux = 2, |
| 921 | .gpio0 = 0x00ff, |
| 922 | .gpio1 = 0xe05f, |
| 923 | .gpio2 = 0x0010, |
| 924 | .gpio3 = 0x0000, |
| 925 | }}, |
| 926 | }, |
Steven Toth | 0fa14aa | 2006-01-09 15:25:02 -0200 | [diff] [blame] | 927 | [CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1] = { |
| 928 | .name = "Hauppauge Nova-S-Plus DVB-S", |
| 929 | .tuner_type = TUNER_ABSENT, |
| 930 | .radio_type = UNSET, |
| 931 | .tuner_addr = ADDR_UNSET, |
| 932 | .radio_addr = ADDR_UNSET, |
Steven Toth | 0fa14aa | 2006-01-09 15:25:02 -0200 | [diff] [blame] | 933 | .input = {{ |
| 934 | .type = CX88_VMUX_DVB, |
| 935 | .vmux = 0, |
| 936 | },{ |
| 937 | .type = CX88_VMUX_COMPOSITE1, |
| 938 | .vmux = 1, |
| 939 | },{ |
| 940 | .type = CX88_VMUX_SVIDEO, |
| 941 | .vmux = 2, |
| 942 | }}, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 943 | .mpeg = CX88_MPEG_DVB, |
Steven Toth | 0fa14aa | 2006-01-09 15:25:02 -0200 | [diff] [blame] | 944 | }, |
| 945 | [CX88_BOARD_HAUPPAUGE_NOVASE2_S1] = { |
| 946 | .name = "Hauppauge Nova-SE2 DVB-S", |
| 947 | .tuner_type = TUNER_ABSENT, |
| 948 | .radio_type = UNSET, |
| 949 | .tuner_addr = ADDR_UNSET, |
| 950 | .radio_addr = ADDR_UNSET, |
| 951 | .input = {{ |
| 952 | .type = CX88_VMUX_DVB, |
| 953 | .vmux = 0, |
| 954 | }}, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 955 | .mpeg = CX88_MPEG_DVB, |
Steven Toth | 0fa14aa | 2006-01-09 15:25:02 -0200 | [diff] [blame] | 956 | }, |
Vadim Catana | 0e0351e | 2006-01-09 15:25:02 -0200 | [diff] [blame] | 957 | [CX88_BOARD_KWORLD_DVBS_100] = { |
| 958 | .name = "KWorld DVB-S 100", |
| 959 | .tuner_type = TUNER_ABSENT, |
| 960 | .radio_type = UNSET, |
| 961 | .tuner_addr = ADDR_UNSET, |
| 962 | .radio_addr = ADDR_UNSET, |
| 963 | .input = {{ |
| 964 | .type = CX88_VMUX_DVB, |
| 965 | .vmux = 0, |
| 966 | },{ |
| 967 | .type = CX88_VMUX_COMPOSITE1, |
| 968 | .vmux = 1, |
| 969 | },{ |
| 970 | .type = CX88_VMUX_SVIDEO, |
| 971 | .vmux = 2, |
| 972 | }}, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 973 | .mpeg = CX88_MPEG_DVB, |
Vadim Catana | 0e0351e | 2006-01-09 15:25:02 -0200 | [diff] [blame] | 974 | }, |
Steven Toth | 611900c | 2006-01-09 15:25:12 -0200 | [diff] [blame] | 975 | [CX88_BOARD_HAUPPAUGE_HVR1100] = { |
| 976 | .name = "Hauppauge WinTV-HVR1100 DVB-T/Hybrid", |
| 977 | .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3, |
| 978 | .radio_type = UNSET, |
| 979 | .tuner_addr = ADDR_UNSET, |
| 980 | .radio_addr = ADDR_UNSET, |
| 981 | .tda9887_conf = TDA9887_PRESENT, |
| 982 | .input = {{ |
| 983 | .type = CX88_VMUX_TELEVISION, |
| 984 | .vmux = 0, |
| 985 | },{ |
| 986 | .type = CX88_VMUX_COMPOSITE1, |
| 987 | .vmux = 1, |
| 988 | },{ |
| 989 | .type = CX88_VMUX_SVIDEO, |
| 990 | .vmux = 2, |
| 991 | }}, |
| 992 | /* fixme: Add radio support */ |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 993 | .mpeg = CX88_MPEG_DVB, |
Steven Toth | 611900c | 2006-01-09 15:25:12 -0200 | [diff] [blame] | 994 | }, |
| 995 | [CX88_BOARD_HAUPPAUGE_HVR1100LP] = { |
| 996 | .name = "Hauppauge WinTV-HVR1100 DVB-T/Hybrid (Low Profile)", |
| 997 | .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3, |
| 998 | .radio_type = UNSET, |
| 999 | .tuner_addr = ADDR_UNSET, |
| 1000 | .radio_addr = ADDR_UNSET, |
| 1001 | .tda9887_conf = TDA9887_PRESENT, |
| 1002 | .input = {{ |
| 1003 | .type = CX88_VMUX_TELEVISION, |
| 1004 | .vmux = 0, |
| 1005 | },{ |
| 1006 | .type = CX88_VMUX_COMPOSITE1, |
| 1007 | .vmux = 1, |
| 1008 | }}, |
| 1009 | /* fixme: Add radio support */ |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 1010 | .mpeg = CX88_MPEG_DVB, |
Steven Toth | 611900c | 2006-01-09 15:25:12 -0200 | [diff] [blame] | 1011 | }, |
Chris Pascoe | fc40b26 | 2006-01-09 15:25:35 -0200 | [diff] [blame] | 1012 | [CX88_BOARD_DNTV_LIVE_DVB_T_PRO] = { |
| 1013 | .name = "digitalnow DNTV Live! DVB-T Pro", |
| 1014 | .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3, |
| 1015 | .radio_type = UNSET, |
| 1016 | .tuner_addr = ADDR_UNSET, |
| 1017 | .radio_addr = ADDR_UNSET, |
| 1018 | .tda9887_conf = TDA9887_PRESENT | TDA9887_PORT1_ACTIVE | |
| 1019 | TDA9887_PORT2_ACTIVE, |
| 1020 | .input = {{ |
| 1021 | .type = CX88_VMUX_TELEVISION, |
| 1022 | .vmux = 0, |
| 1023 | .gpio0 = 0xf80808, |
| 1024 | },{ |
| 1025 | .type = CX88_VMUX_COMPOSITE1, |
| 1026 | .vmux = 1, |
| 1027 | .gpio0 = 0xf80808, |
| 1028 | },{ |
| 1029 | .type = CX88_VMUX_SVIDEO, |
| 1030 | .vmux = 2, |
| 1031 | .gpio0 = 0xf80808, |
| 1032 | }}, |
| 1033 | .radio = { |
| 1034 | .type = CX88_RADIO, |
| 1035 | .gpio0 = 0xf80808, |
| 1036 | }, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 1037 | .mpeg = CX88_MPEG_DVB, |
Chris Pascoe | fc40b26 | 2006-01-09 15:25:35 -0200 | [diff] [blame] | 1038 | }, |
Manenti Marco | f39624f | 2006-01-09 15:32:45 -0200 | [diff] [blame] | 1039 | [CX88_BOARD_KWORLD_DVB_T_CX22702] = { |
| 1040 | /* Kworld V-stream Xpert DVB-T with Thomson tuner */ |
| 1041 | /* DTT 7579 Conexant CX22702-19 Conexant CX2388x */ |
| 1042 | /* Manenti Marco <marco_manenti@colman.it> */ |
| 1043 | .name = "KWorld/VStream XPert DVB-T with cx22702", |
| 1044 | .tuner_type = TUNER_ABSENT, |
| 1045 | .radio_type = UNSET, |
| 1046 | .tuner_addr = ADDR_UNSET, |
| 1047 | .radio_addr = ADDR_UNSET, |
| 1048 | .input = {{ |
| 1049 | .type = CX88_VMUX_COMPOSITE1, |
| 1050 | .vmux = 1, |
| 1051 | .gpio0 = 0x0700, |
| 1052 | .gpio2 = 0x0101, |
| 1053 | },{ |
| 1054 | .type = CX88_VMUX_SVIDEO, |
| 1055 | .vmux = 2, |
| 1056 | .gpio0 = 0x0700, |
| 1057 | .gpio2 = 0x0101, |
| 1058 | }}, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 1059 | .mpeg = CX88_MPEG_DVB, |
Manenti Marco | f39624f | 2006-01-09 15:32:45 -0200 | [diff] [blame] | 1060 | }, |
Chris Pascoe | 43eabb4 | 2006-01-09 18:21:28 -0200 | [diff] [blame] | 1061 | [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL] = { |
| 1062 | .name = "DViCO FusionHDTV DVB-T Dual Digital", |
| 1063 | .tuner_type = TUNER_ABSENT, /* No analog tuner */ |
| 1064 | .radio_type = UNSET, |
| 1065 | .tuner_addr = ADDR_UNSET, |
| 1066 | .radio_addr = ADDR_UNSET, |
| 1067 | .input = {{ |
| 1068 | .type = CX88_VMUX_COMPOSITE1, |
| 1069 | .vmux = 1, |
Chris Pascoe | d536e9c | 2006-08-10 03:22:21 -0300 | [diff] [blame] | 1070 | .gpio0 = 0x000067df, |
Chris Pascoe | 43eabb4 | 2006-01-09 18:21:28 -0200 | [diff] [blame] | 1071 | },{ |
| 1072 | .type = CX88_VMUX_SVIDEO, |
| 1073 | .vmux = 2, |
Chris Pascoe | d536e9c | 2006-08-10 03:22:21 -0300 | [diff] [blame] | 1074 | .gpio0 = 0x000067df, |
Chris Pascoe | 43eabb4 | 2006-01-09 18:21:28 -0200 | [diff] [blame] | 1075 | }}, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 1076 | .mpeg = CX88_MPEG_DVB, |
Chris Pascoe | 43eabb4 | 2006-01-09 18:21:28 -0200 | [diff] [blame] | 1077 | }, |
Michael Krufky | 44256de | 2006-02-07 06:49:14 -0200 | [diff] [blame] | 1078 | [CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT] = { |
Michael Krufky | 44256de | 2006-02-07 06:49:14 -0200 | [diff] [blame] | 1079 | .name = "KWorld HardwareMpegTV XPert", |
| 1080 | .tuner_type = TUNER_PHILIPS_TDA8290, |
| 1081 | .radio_type = UNSET, |
| 1082 | .tuner_addr = ADDR_UNSET, |
| 1083 | .radio_addr = ADDR_UNSET, |
| 1084 | .input = {{ |
| 1085 | .type = CX88_VMUX_TELEVISION, |
| 1086 | .vmux = 0, |
Michael Krufky | e279821 | 2006-02-27 00:07:58 -0300 | [diff] [blame] | 1087 | .gpio0 = 0x3de2, |
Michael Krufky | 24da4e4 | 2006-02-27 00:08:01 -0300 | [diff] [blame] | 1088 | .gpio2 = 0x00ff, |
Michael Krufky | bc53f78 | 2006-05-28 01:43:35 -0300 | [diff] [blame] | 1089 | },{ |
| 1090 | .type = CX88_VMUX_COMPOSITE1, |
| 1091 | .vmux = 1, |
| 1092 | .gpio0 = 0x3de6, |
Michael Krufky | cc0f3f5 | 2006-10-16 16:53:01 -0300 | [diff] [blame] | 1093 | .extadc = 1, |
Michael Krufky | bc53f78 | 2006-05-28 01:43:35 -0300 | [diff] [blame] | 1094 | },{ |
| 1095 | .type = CX88_VMUX_SVIDEO, |
| 1096 | .vmux = 2, |
| 1097 | .gpio0 = 0x3de6, |
Michael Krufky | cc0f3f5 | 2006-10-16 16:53:01 -0300 | [diff] [blame] | 1098 | .extadc = 1, |
Michael Krufky | 44256de | 2006-02-07 06:49:14 -0200 | [diff] [blame] | 1099 | }}, |
Michael Krufky | e279821 | 2006-02-27 00:07:58 -0300 | [diff] [blame] | 1100 | .radio = { |
| 1101 | .type = CX88_RADIO, |
| 1102 | .gpio0 = 0x3de6, |
Michael Krufky | 24da4e4 | 2006-02-27 00:08:01 -0300 | [diff] [blame] | 1103 | .gpio2 = 0x00ff, |
Michael Krufky | e279821 | 2006-02-27 00:07:58 -0300 | [diff] [blame] | 1104 | }, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 1105 | .mpeg = CX88_MPEG_BLACKBIRD, |
Michael Krufky | 44256de | 2006-02-07 06:49:14 -0200 | [diff] [blame] | 1106 | }, |
Chris Pascoe | 780dfef | 2006-02-28 08:34:59 -0300 | [diff] [blame] | 1107 | [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID] = { |
| 1108 | .name = "DViCO FusionHDTV DVB-T Hybrid", |
Michael Krufky | 91ae329 | 2006-03-01 00:04:42 -0300 | [diff] [blame] | 1109 | .tuner_type = TUNER_THOMSON_FE6600, |
Chris Pascoe | 780dfef | 2006-02-28 08:34:59 -0300 | [diff] [blame] | 1110 | .radio_type = UNSET, |
| 1111 | .tuner_addr = ADDR_UNSET, |
| 1112 | .radio_addr = ADDR_UNSET, |
| 1113 | .input = {{ |
| 1114 | .type = CX88_VMUX_TELEVISION, |
| 1115 | .vmux = 0, |
| 1116 | .gpio0 = 0x0000a75f, |
| 1117 | },{ |
| 1118 | .type = CX88_VMUX_COMPOSITE1, |
| 1119 | .vmux = 1, |
| 1120 | .gpio0 = 0x0000a75b, |
| 1121 | },{ |
| 1122 | .type = CX88_VMUX_SVIDEO, |
| 1123 | .vmux = 2, |
| 1124 | .gpio0 = 0x0000a75b, |
| 1125 | }}, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 1126 | .mpeg = CX88_MPEG_DVB, |
Chris Pascoe | 780dfef | 2006-02-28 08:34:59 -0300 | [diff] [blame] | 1127 | }, |
Michael Krufky | e142e7c | 2006-04-07 03:24:54 -0300 | [diff] [blame] | 1128 | [CX88_BOARD_PCHDTV_HD5500] = { |
| 1129 | .name = "pcHDTV HD5500 HDTV", |
Michael Krufky | 9c26c8b | 2006-04-27 01:29:17 -0300 | [diff] [blame] | 1130 | .tuner_type = TUNER_LG_TDVS_H06XF, /* TDVS-H064F */ |
Michael Krufky | e142e7c | 2006-04-07 03:24:54 -0300 | [diff] [blame] | 1131 | .radio_type = UNSET, |
| 1132 | .tuner_addr = ADDR_UNSET, |
| 1133 | .radio_addr = ADDR_UNSET, |
| 1134 | .tda9887_conf = TDA9887_PRESENT, |
| 1135 | .input = {{ |
| 1136 | .type = CX88_VMUX_TELEVISION, |
| 1137 | .vmux = 0, |
| 1138 | .gpio0 = 0x87fd, |
| 1139 | },{ |
| 1140 | .type = CX88_VMUX_COMPOSITE1, |
| 1141 | .vmux = 1, |
| 1142 | .gpio0 = 0x87f9, |
| 1143 | },{ |
| 1144 | .type = CX88_VMUX_SVIDEO, |
| 1145 | .vmux = 2, |
| 1146 | .gpio0 = 0x87f9, |
| 1147 | }}, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 1148 | .mpeg = CX88_MPEG_DVB, |
Michael Krufky | e142e7c | 2006-04-07 03:24:54 -0300 | [diff] [blame] | 1149 | }, |
Valentin Zagura | b303830 | 2006-04-13 12:41:43 -0300 | [diff] [blame] | 1150 | [CX88_BOARD_KWORLD_MCE200_DELUXE] = { |
| 1151 | /* FIXME: tested TV input only, disabled composite, |
| 1152 | svideo and radio until they can be tested also. */ |
| 1153 | .name = "Kworld MCE 200 Deluxe", |
| 1154 | .tuner_type = TUNER_TENA_9533_DI, |
| 1155 | .radio_type = UNSET, |
| 1156 | .tda9887_conf = TDA9887_PRESENT, |
| 1157 | .tuner_addr = ADDR_UNSET, |
| 1158 | .radio_addr = ADDR_UNSET, |
| 1159 | .input = {{ |
| 1160 | .type = CX88_VMUX_TELEVISION, |
| 1161 | .vmux = 0, |
| 1162 | .gpio0 = 0x0000BDE6 |
| 1163 | }}, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 1164 | .mpeg = CX88_MPEG_BLACKBIRD, |
Valentin Zagura | b303830 | 2006-04-13 12:41:43 -0300 | [diff] [blame] | 1165 | }, |
Angelo Marconi | a312462 | 2006-05-09 18:27:48 -0300 | [diff] [blame] | 1166 | [CX88_BOARD_PIXELVIEW_PLAYTV_P7000] = { |
| 1167 | /* FIXME: SVideo, Composite and FM inputs are untested */ |
| 1168 | .name = "PixelView PlayTV P7000", |
| 1169 | .tuner_type = TUNER_PHILIPS_FM1216ME_MK3, |
| 1170 | .radio_type = UNSET, |
| 1171 | .tuner_addr = ADDR_UNSET, |
| 1172 | .radio_addr = ADDR_UNSET, |
| 1173 | .tda9887_conf = TDA9887_PRESENT | TDA9887_PORT1_ACTIVE | |
| 1174 | TDA9887_PORT2_ACTIVE, |
| 1175 | .input = {{ |
| 1176 | .type = CX88_VMUX_TELEVISION, |
| 1177 | .vmux = 0, |
| 1178 | .gpio0 = 0x5da6, |
| 1179 | }}, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 1180 | .mpeg = CX88_MPEG_BLACKBIRD, |
Angelo Marconi | a312462 | 2006-05-09 18:27:48 -0300 | [diff] [blame] | 1181 | }, |
Ricardo Cerqueira | be4f451 | 2006-06-08 17:36:17 -0300 | [diff] [blame] | 1182 | [CX88_BOARD_NPGTECH_REALTV_TOP10FM] = { |
| 1183 | .name = "NPG Tech Real TV FM Top 10", |
| 1184 | .tuner_type = TUNER_TNF_5335MF, /* Actually a TNF9535 */ |
Ricardo Cerqueira | 680543c | 2006-05-22 07:44:02 -0300 | [diff] [blame] | 1185 | .radio_type = UNSET, |
| 1186 | .tuner_addr = ADDR_UNSET, |
| 1187 | .radio_addr = ADDR_UNSET, |
| 1188 | .input = {{ |
| 1189 | .type = CX88_VMUX_TELEVISION, |
| 1190 | .vmux = 0, |
| 1191 | .gpio0 = 0x0788, |
| 1192 | },{ |
| 1193 | .type = CX88_VMUX_COMPOSITE1, |
| 1194 | .vmux = 1, |
| 1195 | .gpio0 = 0x078b, |
| 1196 | },{ |
| 1197 | .type = CX88_VMUX_SVIDEO, |
| 1198 | .vmux = 2, |
Ricardo Cerqueira | be4f451 | 2006-06-08 17:36:17 -0300 | [diff] [blame] | 1199 | .gpio0 = 0x078b, |
Ricardo Cerqueira | 680543c | 2006-05-22 07:44:02 -0300 | [diff] [blame] | 1200 | }}, |
| 1201 | .radio = { |
| 1202 | .type = CX88_RADIO, |
| 1203 | .gpio0 = 0x074a, |
| 1204 | }, |
| 1205 | }, |
Malcolm Valentine | 4bd6e9d | 2006-05-29 13:51:59 -0300 | [diff] [blame] | 1206 | [CX88_BOARD_WINFAST_DTV2000H] = { |
| 1207 | /* video inputs and radio still in testing */ |
| 1208 | .name = "WinFast DTV2000 H", |
| 1209 | .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3, |
| 1210 | .radio_type = UNSET, |
| 1211 | .tuner_addr = ADDR_UNSET, |
| 1212 | .radio_addr = ADDR_UNSET, |
| 1213 | .tda9887_conf = TDA9887_PRESENT, |
| 1214 | .input = {{ |
| 1215 | .type = CX88_VMUX_TELEVISION, |
| 1216 | .vmux = 0, |
| 1217 | .gpio0 = 0x00017304, |
| 1218 | .gpio1 = 0x00008203, |
| 1219 | .gpio2 = 0x00017304, |
| 1220 | .gpio3 = 0x02000000, |
| 1221 | }}, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 1222 | .mpeg = CX88_MPEG_DVB, |
Malcolm Valentine | 4bd6e9d | 2006-05-29 13:51:59 -0300 | [diff] [blame] | 1223 | }, |
Saqeb Akhter | c02a34f | 2006-06-29 20:29:33 -0300 | [diff] [blame] | 1224 | [CX88_BOARD_GENIATECH_DVBS] = { |
| 1225 | .name = "Geniatech DVB-S", |
| 1226 | .tuner_type = TUNER_ABSENT, |
| 1227 | .radio_type = UNSET, |
| 1228 | .tuner_addr = ADDR_UNSET, |
| 1229 | .radio_addr = ADDR_UNSET, |
| 1230 | .input = {{ |
| 1231 | .type = CX88_VMUX_DVB, |
| 1232 | .vmux = 0, |
| 1233 | },{ |
| 1234 | .type = CX88_VMUX_COMPOSITE1, |
| 1235 | .vmux = 1, |
| 1236 | }}, |
Michael Krufky | 48d5e80 | 2006-09-25 14:09:10 -0300 | [diff] [blame] | 1237 | .mpeg = CX88_MPEG_DVB, |
Saqeb Akhter | c02a34f | 2006-06-29 20:29:33 -0300 | [diff] [blame] | 1238 | }, |
Eric Thomas | ad10c93 | 2006-08-08 09:10:04 -0300 | [diff] [blame] | 1239 | [CX88_BOARD_HAUPPAUGE_HVR3000] = { |
| 1240 | /* FIXME: Add dvb & radio support */ |
| 1241 | .name = "Hauppauge WinTV-HVR3000 TriMode Analog/DVB-S/DVB-T", |
| 1242 | .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3, |
| 1243 | .radio_type = UNSET, |
| 1244 | .tuner_addr = ADDR_UNSET, |
| 1245 | .radio_addr = ADDR_UNSET, |
| 1246 | .tda9887_conf = TDA9887_PRESENT, |
| 1247 | .input = {{ |
| 1248 | .type = CX88_VMUX_TELEVISION, |
| 1249 | .vmux = 0, |
| 1250 | .gpio0 = 0x84bf, |
| 1251 | },{ |
| 1252 | .type = CX88_VMUX_COMPOSITE1, |
| 1253 | .vmux = 1, |
| 1254 | .gpio0 = 0x84bf, |
| 1255 | },{ |
| 1256 | .type = CX88_VMUX_SVIDEO, |
| 1257 | .vmux = 2, |
| 1258 | .gpio0 = 0x84bf, |
| 1259 | }}, |
Steven Toth | 76dc82a | 2006-09-30 00:43:58 -0300 | [diff] [blame] | 1260 | .mpeg = CX88_MPEG_DVB, |
Eric Thomas | ad10c93 | 2006-08-08 09:10:04 -0300 | [diff] [blame] | 1261 | }, |
Peter Naulls | d1009bd | 2006-08-08 09:10:05 -0300 | [diff] [blame] | 1262 | [CX88_BOARD_NORWOOD_MICRO] = { |
| 1263 | .name = "Norwood Micro TV Tuner", |
| 1264 | .tuner_type = TUNER_TNF_5335MF, |
| 1265 | .radio_type = UNSET, |
| 1266 | .tuner_addr = ADDR_UNSET, |
| 1267 | .radio_addr = ADDR_UNSET, |
| 1268 | .input = {{ |
| 1269 | .type = CX88_VMUX_TELEVISION, |
| 1270 | .vmux = 0, |
| 1271 | .gpio0 = 0x0709, |
| 1272 | },{ |
| 1273 | .type = CX88_VMUX_COMPOSITE1, |
| 1274 | .vmux = 1, |
| 1275 | .gpio0 = 0x070b, |
| 1276 | },{ |
| 1277 | .type = CX88_VMUX_SVIDEO, |
| 1278 | .vmux = 2, |
| 1279 | .gpio0 = 0x070b, |
| 1280 | }}, |
| 1281 | }, |
Michael Krufky | 5b26c82 | 2006-10-16 16:07:51 -0300 | [diff] [blame] | 1282 | [CX88_BOARD_TE_DTV_250_OEM_SWANN] = { |
| 1283 | .name = "Shenzhen Tungsten Ages Tech TE-DTV-250 / Swann OEM", |
| 1284 | .tuner_type = TUNER_LG_PAL_NEW_TAPC, |
| 1285 | .radio_type = UNSET, |
| 1286 | .tuner_addr = ADDR_UNSET, |
| 1287 | .radio_addr = ADDR_UNSET, |
| 1288 | .input = {{ |
| 1289 | .type = CX88_VMUX_TELEVISION, |
| 1290 | .vmux = 0, |
| 1291 | .gpio0 = 0x003fffff, |
| 1292 | .gpio1 = 0x00e00000, |
| 1293 | .gpio2 = 0x003fffff, |
| 1294 | .gpio3 = 0x02000000, |
David Bussenschutt | 2acadef | 2006-08-08 09:10:05 -0300 | [diff] [blame] | 1295 | },{ |
Michael Krufky | 5b26c82 | 2006-10-16 16:07:51 -0300 | [diff] [blame] | 1296 | .type = CX88_VMUX_COMPOSITE1, |
| 1297 | .vmux = 1, |
| 1298 | .gpio0 = 0x003fffff, |
| 1299 | .gpio1 = 0x00e00000, |
| 1300 | .gpio2 = 0x003fffff, |
| 1301 | .gpio3 = 0x02000000, |
| 1302 | },{ |
| 1303 | .type = CX88_VMUX_SVIDEO, |
| 1304 | .vmux = 2, |
| 1305 | .gpio0 = 0x003fffff, |
| 1306 | .gpio1 = 0x00e00000, |
| 1307 | .gpio2 = 0x003fffff, |
| 1308 | .gpio3 = 0x02000000, |
| 1309 | }}, |
| 1310 | }, |
Steven Toth | aa481a6 | 2006-09-14 15:41:13 -0300 | [diff] [blame] | 1311 | [CX88_BOARD_HAUPPAUGE_HVR1300] = { |
| 1312 | .name = "Hauppauge WinTV-HVR1300 DVB-T/Hybrid MPEG Encoder", |
| 1313 | .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3, |
| 1314 | .radio_type = UNSET, |
| 1315 | .tuner_addr = ADDR_UNSET, |
| 1316 | .radio_addr = ADDR_UNSET, |
| 1317 | .tda9887_conf = TDA9887_PRESENT, |
Steven Toth | 3057906 | 2006-09-25 12:43:42 -0300 | [diff] [blame] | 1318 | .audio_chip = AUDIO_CHIP_WM8775, |
Steven Toth | aa481a6 | 2006-09-14 15:41:13 -0300 | [diff] [blame] | 1319 | .input = {{ |
| 1320 | .type = CX88_VMUX_TELEVISION, |
| 1321 | .vmux = 0, |
| 1322 | .gpio0 = 0xe780, |
Michael Krufky | f24546a | 2006-10-16 16:51:11 -0300 | [diff] [blame] | 1323 | .extadc = 1, |
Steven Toth | aa481a6 | 2006-09-14 15:41:13 -0300 | [diff] [blame] | 1324 | },{ |
| 1325 | .type = CX88_VMUX_COMPOSITE1, |
| 1326 | .vmux = 1, |
| 1327 | .gpio0 = 0xe780, |
Michael Krufky | f24546a | 2006-10-16 16:51:11 -0300 | [diff] [blame] | 1328 | .extadc = 1, |
Steven Toth | aa481a6 | 2006-09-14 15:41:13 -0300 | [diff] [blame] | 1329 | },{ |
| 1330 | .type = CX88_VMUX_SVIDEO, |
| 1331 | .vmux = 2, |
| 1332 | .gpio0 = 0xe780, |
Michael Krufky | f24546a | 2006-10-16 16:51:11 -0300 | [diff] [blame] | 1333 | .extadc = 1, |
Steven Toth | aa481a6 | 2006-09-14 15:41:13 -0300 | [diff] [blame] | 1334 | }}, |
| 1335 | /* fixme: Add radio support */ |
Steven Toth | 6c5be74 | 2006-12-02 21:15:51 -0200 | [diff] [blame] | 1336 | .mpeg = CX88_MPEG_DVB | CX88_MPEG_BLACKBIRD, |
Steven Toth | aa481a6 | 2006-09-14 15:41:13 -0300 | [diff] [blame] | 1337 | }, |
Daniel Gimpelevich | 7cb47a1 | 2007-05-17 18:10:17 -0300 | [diff] [blame] | 1338 | [CX88_BOARD_ADSTECH_PTV_390] = { |
| 1339 | .name = "ADS Tech Instant Video PCI", |
| 1340 | .tuner_type = TUNER_ABSENT, |
| 1341 | .radio_type = UNSET, |
| 1342 | .tuner_addr = ADDR_UNSET, |
| 1343 | .radio_addr = ADDR_UNSET, |
| 1344 | .input = {{ |
| 1345 | .type = CX88_VMUX_DEBUG, |
| 1346 | .vmux = 3, |
| 1347 | .gpio0 = 0x04ff, |
| 1348 | },{ |
| 1349 | .type = CX88_VMUX_COMPOSITE1, |
| 1350 | .vmux = 1, |
| 1351 | .gpio0 = 0x07fa, |
| 1352 | },{ |
| 1353 | .type = CX88_VMUX_SVIDEO, |
| 1354 | .vmux = 2, |
| 1355 | .gpio0 = 0x07fa, |
| 1356 | }}, |
| 1357 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1358 | }; |
| 1359 | const unsigned int cx88_bcount = ARRAY_SIZE(cx88_boards); |
| 1360 | |
| 1361 | /* ------------------------------------------------------------------ */ |
| 1362 | /* PCI subsystem IDs */ |
| 1363 | |
| 1364 | struct cx88_subid cx88_subids[] = { |
| 1365 | { |
| 1366 | .subvendor = 0x0070, |
| 1367 | .subdevice = 0x3400, |
| 1368 | .card = CX88_BOARD_HAUPPAUGE, |
| 1369 | },{ |
| 1370 | .subvendor = 0x0070, |
| 1371 | .subdevice = 0x3401, |
| 1372 | .card = CX88_BOARD_HAUPPAUGE, |
| 1373 | },{ |
| 1374 | .subvendor = 0x14c7, |
| 1375 | .subdevice = 0x0106, |
| 1376 | .card = CX88_BOARD_GDI, |
| 1377 | },{ |
| 1378 | .subvendor = 0x14c7, |
| 1379 | .subdevice = 0x0107, /* with mpeg encoder */ |
| 1380 | .card = CX88_BOARD_GDI, |
| 1381 | },{ |
| 1382 | .subvendor = PCI_VENDOR_ID_ATI, |
| 1383 | .subdevice = 0x00f8, |
| 1384 | .card = CX88_BOARD_ATI_WONDER_PRO, |
| 1385 | },{ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1386 | .subvendor = 0x107d, |
| 1387 | .subdevice = 0x6611, |
| 1388 | .card = CX88_BOARD_WINFAST2000XP_EXPERT, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1389 | },{ |
| 1390 | .subvendor = 0x107d, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1391 | .subdevice = 0x6613, /* NTSC */ |
| 1392 | .card = CX88_BOARD_WINFAST2000XP_EXPERT, |
| 1393 | },{ |
| 1394 | .subvendor = 0x107d, |
| 1395 | .subdevice = 0x6620, |
| 1396 | .card = CX88_BOARD_WINFAST_DV2000, |
| 1397 | },{ |
| 1398 | .subvendor = 0x107d, |
| 1399 | .subdevice = 0x663b, |
| 1400 | .card = CX88_BOARD_LEADTEK_PVR2000, |
| 1401 | },{ |
| 1402 | .subvendor = 0x107d, |
Michael Krufky | 8dd86ee | 2006-09-16 19:09:38 -0300 | [diff] [blame] | 1403 | .subdevice = 0x663c, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1404 | .card = CX88_BOARD_LEADTEK_PVR2000, |
| 1405 | },{ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1406 | .subvendor = 0x1461, |
| 1407 | .subdevice = 0x000b, |
Lubomir Bulej | 7418f34 | 2005-11-08 21:38:34 -0800 | [diff] [blame] | 1408 | .card = CX88_BOARD_AVERTV_STUDIO_303, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1409 | },{ |
| 1410 | .subvendor = 0x1462, |
| 1411 | .subdevice = 0x8606, |
| 1412 | .card = CX88_BOARD_MSI_TVANYWHERE_MASTER, |
| 1413 | },{ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1414 | .subvendor = 0x10fc, |
| 1415 | .subdevice = 0xd003, |
| 1416 | .card = CX88_BOARD_IODATA_GVVCP3PCI, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1417 | },{ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1418 | .subvendor = 0x1043, |
| 1419 | .subdevice = 0x4823, /* with mpeg encoder */ |
| 1420 | .card = CX88_BOARD_ASUS_PVR_416, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1421 | },{ |
| 1422 | .subvendor = 0x17de, |
| 1423 | .subdevice = 0x08a6, |
| 1424 | .card = CX88_BOARD_KWORLD_DVB_T, |
| 1425 | },{ |
| 1426 | .subvendor = 0x18ac, |
| 1427 | .subdevice = 0xd810, |
Mauro Carvalho Chehab | a82decf | 2005-07-07 17:58:36 -0700 | [diff] [blame] | 1428 | .card = CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1429 | },{ |
Michael Krufky | 097b750 | 2005-06-23 22:04:43 -0700 | [diff] [blame] | 1430 | .subvendor = 0x18ac, |
| 1431 | .subdevice = 0xd820, |
Michael Krufky | 80d3436 | 2005-06-23 22:04:55 -0700 | [diff] [blame] | 1432 | .card = CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_T, |
Michael Krufky | 097b750 | 2005-06-23 22:04:43 -0700 | [diff] [blame] | 1433 | },{ |
Michael Krufky | 7df64e8 | 2005-11-08 21:36:16 -0800 | [diff] [blame] | 1434 | .subvendor = 0x18ac, |
| 1435 | .subdevice = 0xdb00, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1436 | .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1437 | },{ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1438 | .subvendor = 0x0070, |
| 1439 | .subdevice = 0x9002, |
| 1440 | .card = CX88_BOARD_HAUPPAUGE_DVB_T1, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1441 | },{ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1442 | .subvendor = 0x14f1, |
| 1443 | .subdevice = 0x0187, |
| 1444 | .card = CX88_BOARD_CONEXANT_DVB_T1, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1445 | },{ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1446 | .subvendor = 0x1540, |
| 1447 | .subdevice = 0x2580, |
| 1448 | .card = CX88_BOARD_PROVIDEO_PV259, |
| 1449 | },{ |
Michael Krufky | 7df64e8 | 2005-11-08 21:36:16 -0800 | [diff] [blame] | 1450 | .subvendor = 0x18ac, |
| 1451 | .subdevice = 0xdb10, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1452 | .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS, |
| 1453 | },{ |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1454 | .subvendor = 0x1554, |
| 1455 | .subdevice = 0x4811, |
| 1456 | .card = CX88_BOARD_PIXELVIEW, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1457 | },{ |
| 1458 | .subvendor = 0x7063, |
| 1459 | .subdevice = 0x3000, /* HD-3000 card */ |
| 1460 | .card = CX88_BOARD_PCHDTV_HD3000, |
| 1461 | },{ |
Michael Krufky | 7df64e8 | 2005-11-08 21:36:16 -0800 | [diff] [blame] | 1462 | .subvendor = 0x17de, |
| 1463 | .subdevice = 0xa8a6, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1464 | .card = CX88_BOARD_DNTV_LIVE_DVB_T, |
| 1465 | },{ |
| 1466 | .subvendor = 0x0070, |
| 1467 | .subdevice = 0x2801, |
| 1468 | .card = CX88_BOARD_HAUPPAUGE_ROSLYN, |
| 1469 | },{ |
Michael Krufky | 7df64e8 | 2005-11-08 21:36:16 -0800 | [diff] [blame] | 1470 | .subvendor = 0x14f1, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1471 | .subdevice = 0x0342, |
| 1472 | .card = CX88_BOARD_DIGITALLOGIC_MEC, |
| 1473 | },{ |
| 1474 | .subvendor = 0x10fc, |
| 1475 | .subdevice = 0xd035, |
| 1476 | .card = CX88_BOARD_IODATA_GVBCTV7E, |
Mauro Carvalho Chehab | a82decf | 2005-07-07 17:58:36 -0700 | [diff] [blame] | 1477 | },{ |
| 1478 | .subvendor = 0x1421, |
| 1479 | .subdevice = 0x0334, |
| 1480 | .card = CX88_BOARD_ADSTECH_DVB_T_PCI, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1481 | },{ |
Michael Krufky | e057ee1 | 2005-07-07 17:58:40 -0700 | [diff] [blame] | 1482 | .subvendor = 0x153b, |
| 1483 | .subdevice = 0x1166, |
| 1484 | .card = CX88_BOARD_TERRATEC_CINERGY_1400_DVB_T1, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1485 | },{ |
Michael Krufky | 9fef07c | 2005-07-31 22:34:46 -0700 | [diff] [blame] | 1486 | .subvendor = 0x18ac, |
| 1487 | .subdevice = 0xd500, |
| 1488 | .card = CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1489 | },{ |
Nickolay V. Shmyrev | d45170e | 2005-11-08 21:36:15 -0800 | [diff] [blame] | 1490 | .subvendor = 0x1461, |
| 1491 | .subdevice = 0x8011, |
| 1492 | .card = CX88_BOARD_AVERMEDIA_ULTRATV_MC_550, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1493 | },{ |
Kirk Lapray | e976f937 | 2005-11-08 21:37:04 -0800 | [diff] [blame] | 1494 | .subvendor = PCI_VENDOR_ID_ATI, |
| 1495 | .subdevice = 0xa101, |
| 1496 | .card = CX88_BOARD_ATI_HDTVWONDER, |
Mauro Carvalho Chehab | 4ac9791 | 2005-11-08 21:37:43 -0800 | [diff] [blame] | 1497 | },{ |
David Shirley | 2b5200a | 2005-11-08 21:37:22 -0800 | [diff] [blame] | 1498 | .subvendor = 0x107d, |
| 1499 | .subdevice = 0x665f, |
| 1500 | .card = CX88_BOARD_WINFAST_DTV1000, |
Lubomir Bulej | 7418f34 | 2005-11-08 21:38:34 -0800 | [diff] [blame] | 1501 | },{ |
| 1502 | .subvendor = 0x1461, |
| 1503 | .subdevice = 0x000a, |
| 1504 | .card = CX88_BOARD_AVERTV_303, |
Steven Toth | 0fa14aa | 2006-01-09 15:25:02 -0200 | [diff] [blame] | 1505 | },{ |
| 1506 | .subvendor = 0x0070, |
| 1507 | .subdevice = 0x9200, |
Steven Toth | fb56cb6 | 2006-01-09 15:25:02 -0200 | [diff] [blame] | 1508 | .card = CX88_BOARD_HAUPPAUGE_NOVASE2_S1, |
| 1509 | },{ |
| 1510 | .subvendor = 0x0070, |
| 1511 | .subdevice = 0x9201, |
Steven Toth | 0fa14aa | 2006-01-09 15:25:02 -0200 | [diff] [blame] | 1512 | .card = CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1, |
| 1513 | },{ |
| 1514 | .subvendor = 0x0070, |
| 1515 | .subdevice = 0x9202, |
Steven Toth | fb56cb6 | 2006-01-09 15:25:02 -0200 | [diff] [blame] | 1516 | .card = CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1, |
Vadim Catana | 0e0351e | 2006-01-09 15:25:02 -0200 | [diff] [blame] | 1517 | },{ |
| 1518 | .subvendor = 0x17de, |
| 1519 | .subdevice = 0x08b2, |
| 1520 | .card = CX88_BOARD_KWORLD_DVBS_100, |
Steven Toth | 611900c | 2006-01-09 15:25:12 -0200 | [diff] [blame] | 1521 | },{ |
| 1522 | .subvendor = 0x0070, |
| 1523 | .subdevice = 0x9400, |
| 1524 | .card = CX88_BOARD_HAUPPAUGE_HVR1100, |
| 1525 | },{ |
| 1526 | .subvendor = 0x0070, |
| 1527 | .subdevice = 0x9402, |
| 1528 | .card = CX88_BOARD_HAUPPAUGE_HVR1100, |
| 1529 | },{ |
| 1530 | .subvendor = 0x0070, |
| 1531 | .subdevice = 0x9800, |
| 1532 | .card = CX88_BOARD_HAUPPAUGE_HVR1100LP, |
| 1533 | },{ |
| 1534 | .subvendor = 0x0070, |
| 1535 | .subdevice = 0x9802, |
| 1536 | .card = CX88_BOARD_HAUPPAUGE_HVR1100LP, |
Steven Toth | c432a07 | 2006-01-09 15:25:13 -0200 | [diff] [blame] | 1537 | },{ |
| 1538 | .subvendor = 0x0070, |
| 1539 | .subdevice = 0x9001, |
| 1540 | .card = CX88_BOARD_HAUPPAUGE_DVB_T1, |
Chris Pascoe | fc40b26 | 2006-01-09 15:25:35 -0200 | [diff] [blame] | 1541 | },{ |
| 1542 | .subvendor = 0x1822, |
| 1543 | .subdevice = 0x0025, |
| 1544 | .card = CX88_BOARD_DNTV_LIVE_DVB_T_PRO, |
Manenti Marco | f39624f | 2006-01-09 15:32:45 -0200 | [diff] [blame] | 1545 | },{ |
Chris Pascoe | b9f4ad5 | 2006-01-09 18:21:39 -0200 | [diff] [blame] | 1546 | .subvendor = 0x17de, |
| 1547 | .subdevice = 0x08a1, |
| 1548 | .card = CX88_BOARD_KWORLD_DVB_T_CX22702, |
Chris Pascoe | 43eabb4 | 2006-01-09 18:21:28 -0200 | [diff] [blame] | 1549 | },{ |
| 1550 | .subvendor = 0x18ac, |
| 1551 | .subdevice = 0xdb50, |
| 1552 | .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL, |
Michael Krufky | 6bfb2e1 | 2006-01-11 22:52:28 -0200 | [diff] [blame] | 1553 | },{ |
| 1554 | .subvendor = 0x18ac, |
Michael Krufky | f74a6b3 | 2006-01-17 03:50:23 -0200 | [diff] [blame] | 1555 | .subdevice = 0xdb54, |
| 1556 | .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL, |
| 1557 | /* Re-branded DViCO: DigitalNow DVB-T Dual */ |
| 1558 | },{ |
| 1559 | .subvendor = 0x18ac, |
Michael Krufky | 6bfb2e1 | 2006-01-11 22:52:28 -0200 | [diff] [blame] | 1560 | .subdevice = 0xdb11, |
| 1561 | .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS, |
| 1562 | /* Re-branded DViCO: UltraView DVB-T Plus */ |
Michael Krufky | 44256de | 2006-02-07 06:49:14 -0200 | [diff] [blame] | 1563 | },{ |
| 1564 | .subvendor = 0x17de, |
| 1565 | .subdevice = 0x0840, |
Michael Krufky | 923da8a | 2007-03-11 12:52:48 -0300 | [diff] [blame] | 1566 | .card = CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT, |
| 1567 | },{ |
| 1568 | .subvendor = 0x1421, |
| 1569 | .subdevice = 0x0305, |
Michael Krufky | 44256de | 2006-02-07 06:49:14 -0200 | [diff] [blame] | 1570 | .card = CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT, |
Chris Pascoe | 780dfef | 2006-02-28 08:34:59 -0300 | [diff] [blame] | 1571 | },{ |
| 1572 | .subvendor = 0x18ac, |
| 1573 | .subdevice = 0xdb40, |
| 1574 | .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID, |
| 1575 | },{ |
| 1576 | .subvendor = 0x18ac, |
| 1577 | .subdevice = 0xdb44, |
| 1578 | .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID, |
Rusty Scott | da215d2 | 2006-04-07 02:21:31 -0300 | [diff] [blame] | 1579 | },{ |
| 1580 | .subvendor = 0x7063, |
| 1581 | .subdevice = 0x5500, |
| 1582 | .card = CX88_BOARD_PCHDTV_HD5500, |
Valentin Zagura | b303830 | 2006-04-13 12:41:43 -0300 | [diff] [blame] | 1583 | },{ |
| 1584 | .subvendor = 0x17de, |
| 1585 | .subdevice = 0x0841, |
| 1586 | .card = CX88_BOARD_KWORLD_MCE200_DELUXE, |
Michael Krufky | fc06647 | 2006-05-22 10:32:05 -0300 | [diff] [blame] | 1587 | },{ |
| 1588 | .subvendor = 0x1822, |
| 1589 | .subdevice = 0x0019, |
| 1590 | .card = CX88_BOARD_DNTV_LIVE_DVB_T_PRO, |
Angelo Marconi | a312462 | 2006-05-09 18:27:48 -0300 | [diff] [blame] | 1591 | },{ |
| 1592 | .subvendor = 0x1554, |
| 1593 | .subdevice = 0x4813, |
| 1594 | .card = CX88_BOARD_PIXELVIEW_PLAYTV_P7000, |
Ricardo Cerqueira | 680543c | 2006-05-22 07:44:02 -0300 | [diff] [blame] | 1595 | },{ |
| 1596 | .subvendor = 0x14f1, |
| 1597 | .subdevice = 0x0842, |
Ricardo Cerqueira | be4f451 | 2006-06-08 17:36:17 -0300 | [diff] [blame] | 1598 | .card = CX88_BOARD_NPGTECH_REALTV_TOP10FM, |
Malcolm Valentine | 4bd6e9d | 2006-05-29 13:51:59 -0300 | [diff] [blame] | 1599 | },{ |
| 1600 | .subvendor = 0x107d, |
| 1601 | .subdevice = 0x665e, |
| 1602 | .card = CX88_BOARD_WINFAST_DTV2000H, |
Michael Krufky | 65271bf | 2006-06-21 16:04:33 -0300 | [diff] [blame] | 1603 | },{ |
| 1604 | .subvendor = 0x18ac, |
| 1605 | .subdevice = 0xd800, /* FusionHDTV 3 Gold (original revision) */ |
| 1606 | .card = CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q, |
Saqeb Akhter | c02a34f | 2006-06-29 20:29:33 -0300 | [diff] [blame] | 1607 | },{ |
| 1608 | .subvendor = 0x14f1, |
| 1609 | .subdevice = 0x0084, |
| 1610 | .card = CX88_BOARD_GENIATECH_DVBS, |
Eric Thomas | ad10c93 | 2006-08-08 09:10:04 -0300 | [diff] [blame] | 1611 | },{ |
| 1612 | .subvendor = 0x0070, |
| 1613 | .subdevice = 0x1404, |
| 1614 | .card = CX88_BOARD_HAUPPAUGE_HVR3000, |
Michael Krufky | 5dbaa2c | 2006-08-08 09:10:04 -0300 | [diff] [blame] | 1615 | },{ |
| 1616 | .subvendor = 0x1461, |
| 1617 | .subdevice = 0xc111, /* AverMedia M150-D */ |
| 1618 | /* This board is known to work with the ASUS PVR416 config */ |
| 1619 | .card = CX88_BOARD_ASUS_PVR_416, |
David Bussenschutt | 2acadef | 2006-08-08 09:10:05 -0300 | [diff] [blame] | 1620 | },{ |
| 1621 | .subvendor = 0xc180, |
| 1622 | .subdevice = 0xc980, |
| 1623 | .card = CX88_BOARD_TE_DTV_250_OEM_SWANN, |
Steven Toth | aa481a6 | 2006-09-14 15:41:13 -0300 | [diff] [blame] | 1624 | },{ |
| 1625 | .subvendor = 0x0070, |
| 1626 | .subdevice = 0x9600, |
| 1627 | .card = CX88_BOARD_HAUPPAUGE_HVR1300, |
| 1628 | },{ |
| 1629 | .subvendor = 0x0070, |
| 1630 | .subdevice = 0x9601, |
| 1631 | .card = CX88_BOARD_HAUPPAUGE_HVR1300, |
| 1632 | },{ |
| 1633 | .subvendor = 0x0070, |
| 1634 | .subdevice = 0x9602, |
| 1635 | .card = CX88_BOARD_HAUPPAUGE_HVR1300, |
Michael Krufky | dab489d | 2006-09-15 15:41:23 -0300 | [diff] [blame] | 1636 | },{ |
| 1637 | .subvendor = 0x107d, |
| 1638 | .subdevice = 0x6632, |
| 1639 | .card = CX88_BOARD_LEADTEK_PVR2000, |
Michael Krufky | 4508f59 | 2006-09-25 14:14:24 -0300 | [diff] [blame] | 1640 | },{ |
| 1641 | .subvendor = 0x12ab, |
| 1642 | .subdevice = 0x2300, /* Club3D Zap TV2100 */ |
| 1643 | .card = CX88_BOARD_KWORLD_DVB_T_CX22702, |
Steven Toth | 3979ecc | 2006-09-29 22:37:07 -0300 | [diff] [blame] | 1644 | },{ |
| 1645 | .subvendor = 0x0070, |
| 1646 | .subdevice = 0x9000, |
| 1647 | .card = CX88_BOARD_HAUPPAUGE_DVB_T1, |
Steven Toth | 76dc82a | 2006-09-30 00:43:58 -0300 | [diff] [blame] | 1648 | },{ |
| 1649 | .subvendor = 0x0070, |
| 1650 | .subdevice = 0x1400, |
| 1651 | .card = CX88_BOARD_HAUPPAUGE_HVR3000, |
| 1652 | },{ |
| 1653 | .subvendor = 0x0070, |
| 1654 | .subdevice = 0x1401, |
| 1655 | .card = CX88_BOARD_HAUPPAUGE_HVR3000, |
| 1656 | },{ |
| 1657 | .subvendor = 0x0070, |
| 1658 | .subdevice = 0x1402, |
| 1659 | .card = CX88_BOARD_HAUPPAUGE_HVR3000, |
Michael Krufky | 733aeaf | 2007-03-11 12:48:04 -0300 | [diff] [blame] | 1660 | },{ |
| 1661 | .subvendor = 0x1421, |
| 1662 | .subdevice = 0x0341, /* ADS Tech InstantTV DVB-S */ |
| 1663 | .card = CX88_BOARD_KWORLD_DVBS_100, |
Daniel Gimpelevich | 7cb47a1 | 2007-05-17 18:10:17 -0300 | [diff] [blame] | 1664 | },{ |
| 1665 | .subvendor = 0x1421, |
| 1666 | .subdevice = 0x0390, |
| 1667 | .card = CX88_BOARD_ADSTECH_PTV_390, |
Chris Pascoe | b9f4ad5 | 2006-01-09 18:21:39 -0200 | [diff] [blame] | 1668 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1669 | }; |
| 1670 | const unsigned int cx88_idcount = ARRAY_SIZE(cx88_subids); |
| 1671 | |
| 1672 | /* ----------------------------------------------------------------------- */ |
| 1673 | /* some leadtek specific stuff */ |
| 1674 | |
Jean Delvare | 69f7e75 | 2006-12-23 14:11:03 -0300 | [diff] [blame] | 1675 | static void leadtek_eeprom(struct cx88_core *core, u8 *eeprom_data) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1676 | { |
| 1677 | /* This is just for the "Winfast 2000XP Expert" board ATM; I don't have data on |
| 1678 | * any others. |
| 1679 | * |
| 1680 | * Byte 0 is 1 on the NTSC board. |
| 1681 | */ |
| 1682 | |
| 1683 | if (eeprom_data[4] != 0x7d || |
| 1684 | eeprom_data[5] != 0x10 || |
| 1685 | eeprom_data[7] != 0x66) { |
| 1686 | printk(KERN_WARNING "%s: Leadtek eeprom invalid.\n", |
| 1687 | core->name); |
| 1688 | return; |
| 1689 | } |
| 1690 | |
| 1691 | core->has_radio = 1; |
| 1692 | core->tuner_type = (eeprom_data[6] == 0x13) ? 43 : 38; |
| 1693 | |
| 1694 | printk(KERN_INFO "%s: Leadtek Winfast 2000XP Expert config: " |
| 1695 | "tuner=%d, eeprom[0]=0x%02x\n", |
| 1696 | core->name, core->tuner_type, eeprom_data[0]); |
| 1697 | } |
| 1698 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1699 | static void hauppauge_eeprom(struct cx88_core *core, u8 *eeprom_data) |
| 1700 | { |
| 1701 | struct tveeprom tv; |
| 1702 | |
Mauro Carvalho Chehab | 0f97a93 | 2005-09-09 13:04:05 -0700 | [diff] [blame] | 1703 | tveeprom_hauppauge_analog(&core->i2c_client, &tv, eeprom_data); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1704 | core->tuner_type = tv.tuner_type; |
Steven Toth | 0345c38 | 2006-01-09 15:25:17 -0200 | [diff] [blame] | 1705 | core->tuner_formats = tv.tuner_formats; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1706 | core->has_radio = tv.has_radio; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1707 | |
| 1708 | /* Make sure we support the board model */ |
Steven Toth | 3ca0ea9 | 2005-12-01 00:51:27 -0800 | [diff] [blame] | 1709 | switch (tv.model) |
| 1710 | { |
Steven Toth | 76dc82a | 2006-09-30 00:43:58 -0300 | [diff] [blame] | 1711 | case 14009: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in) */ |
| 1712 | case 14019: /* WinTV-HVR3000 (Retail, IR Blaster, b/panel video, 3.5mm audio in) */ |
| 1713 | case 14029: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in - 880 bridge) */ |
| 1714 | case 14109: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in - low profile) */ |
| 1715 | case 14129: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in - 880 bridge - LP) */ |
| 1716 | case 14559: /* WinTV-HVR3000 (OEM, no IR, b/panel video, 3.5mm audio in) */ |
Eric Thomas | ad10c93 | 2006-08-08 09:10:04 -0300 | [diff] [blame] | 1717 | case 14569: /* WinTV-HVR3000 (OEM, no IR, no back panel video) */ |
Steven Toth | 76dc82a | 2006-09-30 00:43:58 -0300 | [diff] [blame] | 1718 | case 14659: /* WinTV-HVR3000 (OEM, no IR, b/panel video, RCA audio in - Low profile) */ |
| 1719 | case 14669: /* WinTV-HVR3000 (OEM, no IR, no b/panel video - Low profile) */ |
Steven Toth | 0345c38 | 2006-01-09 15:25:17 -0200 | [diff] [blame] | 1720 | case 28552: /* WinTV-PVR 'Roslyn' (No IR) */ |
Ian Pickworth | 42d2b6e | 2006-01-23 17:11:07 -0200 | [diff] [blame] | 1721 | case 34519: /* WinTV-PCI-FM */ |
Steven Toth | 759324c | 2005-12-01 00:51:26 -0800 | [diff] [blame] | 1722 | case 90002: /* Nova-T-PCI (9002) */ |
Steven Toth | 0fe2286 | 2005-12-01 00:51:41 -0800 | [diff] [blame] | 1723 | case 92001: /* Nova-S-Plus (Video and IR) */ |
| 1724 | case 92002: /* Nova-S-Plus (Video and IR) */ |
| 1725 | case 90003: /* Nova-T-PCI (9002 No RF out) */ |
Steven Toth | 759324c | 2005-12-01 00:51:26 -0800 | [diff] [blame] | 1726 | case 90500: /* Nova-T-PCI (oem) */ |
| 1727 | case 90501: /* Nova-T-PCI (oem/IR) */ |
Steven Toth | 3ca0ea9 | 2005-12-01 00:51:27 -0800 | [diff] [blame] | 1728 | case 92000: /* Nova-SE2 (OEM, No Video or IR) */ |
Steven Toth | 611900c | 2006-01-09 15:25:12 -0200 | [diff] [blame] | 1729 | case 94009: /* WinTV-HVR1100 (Video and IR Retail) */ |
| 1730 | case 94501: /* WinTV-HVR1100 (Video and IR OEM) */ |
Steven Toth | aa481a6 | 2006-09-14 15:41:13 -0300 | [diff] [blame] | 1731 | case 96009: /* WinTV-HVR1300 (PAL Video, MPEG Video and IR RX) */ |
| 1732 | case 96019: /* WinTV-HVR1300 (PAL Video, MPEG Video and IR RX/TX) */ |
| 1733 | case 96559: /* WinTV-HVR1300 (PAL Video, MPEG Video no IR) */ |
| 1734 | case 96569: /* WinTV-HVR1300 () */ |
| 1735 | case 96659: /* WinTV-HVR1300 () */ |
Steven Toth | 611900c | 2006-01-09 15:25:12 -0200 | [diff] [blame] | 1736 | case 98559: /* WinTV-HVR1100LP (Video no IR, Retail - Low Profile) */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1737 | /* known */ |
| 1738 | break; |
| 1739 | default: |
| 1740 | printk("%s: warning: unknown hauppauge model #%d\n", |
Steven Toth | 3ca0ea9 | 2005-12-01 00:51:27 -0800 | [diff] [blame] | 1741 | core->name, tv.model); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1742 | break; |
| 1743 | } |
| 1744 | |
Steven Toth | 3ca0ea9 | 2005-12-01 00:51:27 -0800 | [diff] [blame] | 1745 | printk(KERN_INFO "%s: hauppauge eeprom: model=%d\n", |
| 1746 | core->name, tv.model); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1747 | } |
| 1748 | |
| 1749 | /* ----------------------------------------------------------------------- */ |
| 1750 | /* some GDI (was: Modular Technology) specific stuff */ |
| 1751 | |
| 1752 | static struct { |
| 1753 | int id; |
| 1754 | int fm; |
| 1755 | char *name; |
| 1756 | } gdi_tuner[] = { |
| 1757 | [ 0x01 ] = { .id = TUNER_ABSENT, |
| 1758 | .name = "NTSC_M" }, |
| 1759 | [ 0x02 ] = { .id = TUNER_ABSENT, |
| 1760 | .name = "PAL_B" }, |
| 1761 | [ 0x03 ] = { .id = TUNER_ABSENT, |
| 1762 | .name = "PAL_I" }, |
| 1763 | [ 0x04 ] = { .id = TUNER_ABSENT, |
| 1764 | .name = "PAL_D" }, |
| 1765 | [ 0x05 ] = { .id = TUNER_ABSENT, |
| 1766 | .name = "SECAM" }, |
| 1767 | |
| 1768 | [ 0x10 ] = { .id = TUNER_ABSENT, |
| 1769 | .fm = 1, |
| 1770 | .name = "TEMIC_4049" }, |
| 1771 | [ 0x11 ] = { .id = TUNER_TEMIC_4136FY5, |
| 1772 | .name = "TEMIC_4136" }, |
| 1773 | [ 0x12 ] = { .id = TUNER_ABSENT, |
| 1774 | .name = "TEMIC_4146" }, |
| 1775 | |
| 1776 | [ 0x20 ] = { .id = TUNER_PHILIPS_FQ1216ME, |
| 1777 | .fm = 1, |
| 1778 | .name = "PHILIPS_FQ1216_MK3" }, |
| 1779 | [ 0x21 ] = { .id = TUNER_ABSENT, .fm = 1, |
| 1780 | .name = "PHILIPS_FQ1236_MK3" }, |
| 1781 | [ 0x22 ] = { .id = TUNER_ABSENT, |
| 1782 | .name = "PHILIPS_FI1236_MK3" }, |
| 1783 | [ 0x23 ] = { .id = TUNER_ABSENT, |
| 1784 | .name = "PHILIPS_FI1216_MK3" }, |
| 1785 | }; |
| 1786 | |
| 1787 | static void gdi_eeprom(struct cx88_core *core, u8 *eeprom_data) |
| 1788 | { |
| 1789 | char *name = (eeprom_data[0x0d] < ARRAY_SIZE(gdi_tuner)) |
| 1790 | ? gdi_tuner[eeprom_data[0x0d]].name : NULL; |
| 1791 | |
| 1792 | printk(KERN_INFO "%s: GDI: tuner=%s\n", core->name, |
| 1793 | name ? name : "unknown"); |
| 1794 | if (NULL == name) |
| 1795 | return; |
| 1796 | core->tuner_type = gdi_tuner[eeprom_data[0x0d]].id; |
| 1797 | core->has_radio = gdi_tuner[eeprom_data[0x0d]].fm; |
| 1798 | } |
| 1799 | |
| 1800 | /* ----------------------------------------------------------------------- */ |
Chris Pascoe | 780dfef | 2006-02-28 08:34:59 -0300 | [diff] [blame] | 1801 | /* some DViCO specific stuff */ |
| 1802 | |
| 1803 | static void dvico_fusionhdtv_hybrid_init(struct cx88_core *core) |
| 1804 | { |
| 1805 | struct i2c_msg msg = { .addr = 0x45, .flags = 0 }; |
| 1806 | int i, err; |
Chris Pascoe | 69b27e3 | 2006-02-28 20:23:11 -0300 | [diff] [blame] | 1807 | static u8 init_bufs[13][5] = { |
Chris Pascoe | 780dfef | 2006-02-28 08:34:59 -0300 | [diff] [blame] | 1808 | { 0x10, 0x00, 0x20, 0x01, 0x03 }, |
| 1809 | { 0x10, 0x10, 0x01, 0x00, 0x21 }, |
| 1810 | { 0x10, 0x10, 0x10, 0x00, 0xCA }, |
| 1811 | { 0x10, 0x10, 0x12, 0x00, 0x08 }, |
| 1812 | { 0x10, 0x10, 0x13, 0x00, 0x0A }, |
| 1813 | { 0x10, 0x10, 0x16, 0x01, 0xC0 }, |
| 1814 | { 0x10, 0x10, 0x22, 0x01, 0x3D }, |
| 1815 | { 0x10, 0x10, 0x73, 0x01, 0x2E }, |
| 1816 | { 0x10, 0x10, 0x72, 0x00, 0xC5 }, |
| 1817 | { 0x10, 0x10, 0x71, 0x01, 0x97 }, |
| 1818 | { 0x10, 0x10, 0x70, 0x00, 0x0F }, |
| 1819 | { 0x10, 0x10, 0xB0, 0x00, 0x01 }, |
| 1820 | { 0x03, 0x0C }, |
| 1821 | }; |
| 1822 | |
Mauro Carvalho Chehab | 5b9c4e6 | 2007-03-28 22:37:26 -0300 | [diff] [blame] | 1823 | for (i = 0; i < ARRAY_SIZE(init_bufs); i++) { |
Chris Pascoe | 780dfef | 2006-02-28 08:34:59 -0300 | [diff] [blame] | 1824 | msg.buf = init_bufs[i]; |
| 1825 | msg.len = (i != 12 ? 5 : 2); |
| 1826 | err = i2c_transfer(&core->i2c_adap, &msg, 1); |
| 1827 | if (err != 1) { |
| 1828 | printk("dvico_fusionhdtv_hybrid_init buf %d failed (err = %d)!\n", i, err); |
| 1829 | return; |
| 1830 | } |
| 1831 | } |
| 1832 | } |
| 1833 | |
| 1834 | /* ----------------------------------------------------------------------- */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1835 | |
| 1836 | void cx88_card_list(struct cx88_core *core, struct pci_dev *pci) |
| 1837 | { |
| 1838 | int i; |
| 1839 | |
| 1840 | if (0 == pci->subsystem_vendor && |
| 1841 | 0 == pci->subsystem_device) { |
| 1842 | printk("%s: Your board has no valid PCI Subsystem ID and thus can't\n" |
| 1843 | "%s: be autodetected. Please pass card=<n> insmod option to\n" |
| 1844 | "%s: workaround that. Redirect complaints to the vendor of\n" |
| 1845 | "%s: the TV card. Best regards,\n" |
| 1846 | "%s: -- tux\n", |
| 1847 | core->name,core->name,core->name,core->name,core->name); |
| 1848 | } else { |
| 1849 | printk("%s: Your board isn't known (yet) to the driver. You can\n" |
| 1850 | "%s: try to pick one of the existing card configs via\n" |
| 1851 | "%s: card=<n> insmod option. Updating to the latest\n" |
| 1852 | "%s: version might help as well.\n", |
| 1853 | core->name,core->name,core->name,core->name); |
| 1854 | } |
| 1855 | printk("%s: Here is a list of valid choices for the card=<n> insmod option:\n", |
| 1856 | core->name); |
| 1857 | for (i = 0; i < cx88_bcount; i++) |
| 1858 | printk("%s: card=%d -> %s\n", |
| 1859 | core->name, i, cx88_boards[i].name); |
| 1860 | } |
| 1861 | |
Steven Toth | aa481a6 | 2006-09-14 15:41:13 -0300 | [diff] [blame] | 1862 | void cx88_card_setup_pre_i2c(struct cx88_core *core) |
| 1863 | { |
| 1864 | switch (core->board) { |
| 1865 | case CX88_BOARD_HAUPPAUGE_HVR1300: |
| 1866 | /* Bring the 702 demod up before i2c scanning/attach or devices are hidden */ |
| 1867 | /* We leave here with the 702 on the bus */ |
| 1868 | cx_write(MO_GP0_IO, 0x0000e780); |
| 1869 | udelay(1000); |
| 1870 | cx_clear(MO_GP0_IO, 0x00000080); |
| 1871 | udelay(50); |
| 1872 | cx_set(MO_GP0_IO, 0x00000080); /* 702 out of reset */ |
| 1873 | udelay(1000); |
| 1874 | break; |
| 1875 | } |
| 1876 | } |
| 1877 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1878 | void cx88_card_setup(struct cx88_core *core) |
| 1879 | { |
Steven Toth | 3ca0ea9 | 2005-12-01 00:51:27 -0800 | [diff] [blame] | 1880 | static u8 eeprom[256]; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1881 | |
| 1882 | if (0 == core->i2c_rc) { |
| 1883 | core->i2c_client.addr = 0xa0 >> 1; |
| 1884 | tveeprom_read(&core->i2c_client,eeprom,sizeof(eeprom)); |
| 1885 | } |
| 1886 | |
| 1887 | switch (core->board) { |
| 1888 | case CX88_BOARD_HAUPPAUGE: |
| 1889 | case CX88_BOARD_HAUPPAUGE_ROSLYN: |
| 1890 | if (0 == core->i2c_rc) |
| 1891 | hauppauge_eeprom(core,eeprom+8); |
| 1892 | break; |
| 1893 | case CX88_BOARD_GDI: |
| 1894 | if (0 == core->i2c_rc) |
| 1895 | gdi_eeprom(core,eeprom); |
| 1896 | break; |
| 1897 | case CX88_BOARD_WINFAST2000XP_EXPERT: |
| 1898 | if (0 == core->i2c_rc) |
| 1899 | leadtek_eeprom(core,eeprom); |
| 1900 | break; |
Steven Toth | 0fa14aa | 2006-01-09 15:25:02 -0200 | [diff] [blame] | 1901 | case CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1: |
| 1902 | case CX88_BOARD_HAUPPAUGE_NOVASE2_S1: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1903 | case CX88_BOARD_HAUPPAUGE_DVB_T1: |
Steven Toth | 611900c | 2006-01-09 15:25:12 -0200 | [diff] [blame] | 1904 | case CX88_BOARD_HAUPPAUGE_HVR1100: |
| 1905 | case CX88_BOARD_HAUPPAUGE_HVR1100LP: |
Eric Thomas | ad10c93 | 2006-08-08 09:10:04 -0300 | [diff] [blame] | 1906 | case CX88_BOARD_HAUPPAUGE_HVR3000: |
Steven Toth | aa481a6 | 2006-09-14 15:41:13 -0300 | [diff] [blame] | 1907 | case CX88_BOARD_HAUPPAUGE_HVR1300: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1908 | if (0 == core->i2c_rc) |
Steven Toth | 3ca0ea9 | 2005-12-01 00:51:27 -0800 | [diff] [blame] | 1909 | hauppauge_eeprom(core,eeprom); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1910 | break; |
Vadim Catana | 0e0351e | 2006-01-09 15:25:02 -0200 | [diff] [blame] | 1911 | case CX88_BOARD_KWORLD_DVBS_100: |
| 1912 | cx_write(MO_GP0_IO, 0x000007f8); |
| 1913 | cx_write(MO_GP1_IO, 0x00000001); |
| 1914 | break; |
Chris Pascoe | d536e9c | 2006-08-10 03:22:21 -0300 | [diff] [blame] | 1915 | case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL: |
| 1916 | /* GPIO0:6 is hooked to FX2 reset pin */ |
| 1917 | cx_set(MO_GP0_IO, 0x00004040); |
| 1918 | cx_clear(MO_GP0_IO, 0x00000040); |
| 1919 | msleep(1000); |
| 1920 | cx_set(MO_GP0_IO, 0x00004040); |
| 1921 | /* FALLTHROUGH */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1922 | case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1: |
| 1923 | case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS: |
Chris Pascoe | 780dfef | 2006-02-28 08:34:59 -0300 | [diff] [blame] | 1924 | case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1925 | /* GPIO0:0 is hooked to mt352 reset pin */ |
| 1926 | cx_set(MO_GP0_IO, 0x00000101); |
| 1927 | cx_clear(MO_GP0_IO, 0x00000001); |
| 1928 | msleep(1); |
| 1929 | cx_set(MO_GP0_IO, 0x00000101); |
Chris Pascoe | 780dfef | 2006-02-28 08:34:59 -0300 | [diff] [blame] | 1930 | if (0 == core->i2c_rc && |
| 1931 | core->board == CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID) |
| 1932 | dvico_fusionhdtv_hybrid_init(core); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1933 | break; |
| 1934 | case CX88_BOARD_KWORLD_DVB_T: |
| 1935 | case CX88_BOARD_DNTV_LIVE_DVB_T: |
| 1936 | cx_set(MO_GP0_IO, 0x00000707); |
| 1937 | cx_set(MO_GP2_IO, 0x00000101); |
| 1938 | cx_clear(MO_GP2_IO, 0x00000001); |
| 1939 | msleep(1); |
| 1940 | cx_clear(MO_GP0_IO, 0x00000007); |
| 1941 | cx_set(MO_GP2_IO, 0x00000101); |
| 1942 | break; |
Chris Pascoe | fc40b26 | 2006-01-09 15:25:35 -0200 | [diff] [blame] | 1943 | case CX88_BOARD_DNTV_LIVE_DVB_T_PRO: |
| 1944 | cx_write(MO_GP0_IO, 0x00080808); |
| 1945 | break; |
Kirk Lapray | e976f937 | 2005-11-08 21:37:04 -0800 | [diff] [blame] | 1946 | case CX88_BOARD_ATI_HDTVWONDER: |
| 1947 | if (0 == core->i2c_rc) { |
| 1948 | /* enable tuner */ |
| 1949 | int i; |
Mauro Carvalho Chehab | 5b9c4e6 | 2007-03-28 22:37:26 -0300 | [diff] [blame] | 1950 | static const u8 buffer [][2] = { |
| 1951 | {0x10,0x12}, |
| 1952 | {0x13,0x04}, |
| 1953 | {0x16,0x00}, |
| 1954 | {0x14,0x04}, |
| 1955 | {0x17,0x00} |
| 1956 | }; |
Kirk Lapray | e976f937 | 2005-11-08 21:37:04 -0800 | [diff] [blame] | 1957 | core->i2c_client.addr = 0x0a; |
Kirk Lapray | e976f937 | 2005-11-08 21:37:04 -0800 | [diff] [blame] | 1958 | |
Mauro Carvalho Chehab | 5b9c4e6 | 2007-03-28 22:37:26 -0300 | [diff] [blame] | 1959 | for (i = 0; i < ARRAY_SIZE(buffer); i++) |
| 1960 | if (2 != i2c_master_send(&core->i2c_client, |
| 1961 | buffer[i],2)) |
| 1962 | printk(KERN_WARNING |
| 1963 | "%s: Unable to enable " |
| 1964 | "tuner(%i).\n", |
Kirk Lapray | e976f937 | 2005-11-08 21:37:04 -0800 | [diff] [blame] | 1965 | core->name, i); |
| 1966 | } |
| 1967 | break; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1968 | } |
| 1969 | if (cx88_boards[core->board].radio.type == CX88_RADIO) |
| 1970 | core->has_radio = 1; |
| 1971 | } |
| 1972 | |
| 1973 | /* ------------------------------------------------------------------ */ |
| 1974 | |
| 1975 | EXPORT_SYMBOL(cx88_boards); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1976 | |
| 1977 | /* |
| 1978 | * Local variables: |
| 1979 | * c-basic-offset: 8 |
| 1980 | * End: |
Mauro Carvalho Chehab | b45009b | 2005-06-23 22:05:03 -0700 | [diff] [blame] | 1981 | * 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] | 1982 | */ |