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