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