blob: 43e5af5dfec02bc93088aa349021253603bfa5c2 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
Linus Torvalds1da177e2005-04-16 15:20:36 -07002 *
3 * device driver for Conexant 2388x based TV cards
4 * card-specific stuff.
5 *
6 * (c) 2003 Gerd Knorr <kraxel@bytesex.org> [SuSE Labs]
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 */
22
23#include <linux/init.h>
24#include <linux/module.h>
25#include <linux/pci.h>
26#include <linux/delay.h>
27
28#include "cx88.h"
29
30/* ------------------------------------------------------------------ */
31/* board config info */
32
33struct cx88_board cx88_boards[] = {
34 [CX88_BOARD_UNKNOWN] = {
35 .name = "UNKNOWN/GENERIC",
36 .tuner_type = UNSET,
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -070037 .radio_type = UNSET,
38 .tuner_addr = ADDR_UNSET,
39 .radio_addr = ADDR_UNSET,
Linus Torvalds1da177e2005-04-16 15:20:36 -070040 .input = {{
41 .type = CX88_VMUX_COMPOSITE1,
42 .vmux = 0,
43 },{
44 .type = CX88_VMUX_COMPOSITE2,
45 .vmux = 1,
46 },{
47 .type = CX88_VMUX_COMPOSITE3,
48 .vmux = 2,
49 },{
50 .type = CX88_VMUX_COMPOSITE4,
51 .vmux = 3,
52 }},
53 },
54 [CX88_BOARD_HAUPPAUGE] = {
55 .name = "Hauppauge WinTV 34xxx models",
56 .tuner_type = UNSET,
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -070057 .radio_type = UNSET,
58 .tuner_addr = ADDR_UNSET,
59 .radio_addr = ADDR_UNSET,
Linus Torvalds1da177e2005-04-16 15:20:36 -070060 .tda9887_conf = TDA9887_PRESENT,
61 .input = {{
62 .type = CX88_VMUX_TELEVISION,
63 .vmux = 0,
64 .gpio0 = 0xff00, // internal decoder
65 },{
66 .type = CX88_VMUX_DEBUG,
67 .vmux = 0,
68 .gpio0 = 0xff01, // mono from tuner chip
69 },{
70 .type = CX88_VMUX_COMPOSITE1,
71 .vmux = 1,
72 .gpio0 = 0xff02,
73 },{
74 .type = CX88_VMUX_SVIDEO,
75 .vmux = 2,
76 .gpio0 = 0xff02,
77 }},
78 .radio = {
79 .type = CX88_RADIO,
80 .gpio0 = 0xff01,
81 },
82 },
83 [CX88_BOARD_GDI] = {
84 .name = "GDI Black Gold",
85 .tuner_type = UNSET,
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -070086 .radio_type = UNSET,
87 .tuner_addr = ADDR_UNSET,
88 .radio_addr = ADDR_UNSET,
Linus Torvalds1da177e2005-04-16 15:20:36 -070089 .input = {{
90 .type = CX88_VMUX_TELEVISION,
91 .vmux = 0,
Mauro Carvalho Chehabfd3113e2005-07-31 22:34:43 -070092 },{
93 .type = CX88_VMUX_SVIDEO,
94 .vmux = 2,
Linus Torvalds1da177e2005-04-16 15:20:36 -070095 }},
96 },
97 [CX88_BOARD_PIXELVIEW] = {
98 .name = "PixelView",
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -070099 .tuner_type = TUNER_PHILIPS_PAL,
100 .radio_type = UNSET,
101 .tuner_addr = ADDR_UNSET,
102 .radio_addr = ADDR_UNSET,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700103 .input = {{
104 .type = CX88_VMUX_TELEVISION,
105 .vmux = 0,
106 .gpio0 = 0xff00, // internal decoder
107 },{
108 .type = CX88_VMUX_COMPOSITE1,
109 .vmux = 1,
110 },{
111 .type = CX88_VMUX_SVIDEO,
112 .vmux = 2,
113 }},
114 .radio = {
115 .type = CX88_RADIO,
116 .gpio0 = 0xff10,
Michael Krufky47ee2f32006-06-06 15:51:38 -0300117 },
Linus Torvalds1da177e2005-04-16 15:20:36 -0700118 },
119 [CX88_BOARD_ATI_WONDER_PRO] = {
120 .name = "ATI TV Wonder Pro",
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700121 .tuner_type = TUNER_PHILIPS_4IN1,
122 .radio_type = UNSET,
123 .tuner_addr = ADDR_UNSET,
124 .radio_addr = ADDR_UNSET,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700125 .tda9887_conf = TDA9887_PRESENT | TDA9887_INTERCARRIER,
126 .input = {{
127 .type = CX88_VMUX_TELEVISION,
128 .vmux = 0,
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800129 .gpio0 = 0x03ff,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700130 },{
131 .type = CX88_VMUX_COMPOSITE1,
132 .vmux = 1,
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800133 .gpio0 = 0x03fe,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700134 },{
135 .type = CX88_VMUX_SVIDEO,
136 .vmux = 2,
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800137 .gpio0 = 0x03fe,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700138 }},
139 },
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800140 [CX88_BOARD_WINFAST2000XP_EXPERT] = {
141 .name = "Leadtek Winfast 2000XP Expert",
142 .tuner_type = TUNER_PHILIPS_4IN1,
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700143 .radio_type = UNSET,
144 .tuner_addr = ADDR_UNSET,
145 .radio_addr = ADDR_UNSET,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700146 .tda9887_conf = TDA9887_PRESENT,
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800147 .input = {{
148 .type = CX88_VMUX_TELEVISION,
149 .vmux = 0,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700150 .gpio0 = 0x00F5e700,
151 .gpio1 = 0x00003004,
152 .gpio2 = 0x00F5e700,
153 .gpio3 = 0x02000000,
154 },{
155 .type = CX88_VMUX_COMPOSITE1,
156 .vmux = 1,
157 .gpio0 = 0x00F5c700,
158 .gpio1 = 0x00003004,
159 .gpio2 = 0x00F5c700,
160 .gpio3 = 0x02000000,
161 },{
162 .type = CX88_VMUX_SVIDEO,
163 .vmux = 2,
164 .gpio0 = 0x00F5c700,
165 .gpio1 = 0x00003004,
166 .gpio2 = 0x00F5c700,
167 .gpio3 = 0x02000000,
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800168 }},
169 .radio = {
170 .type = CX88_RADIO,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700171 .gpio0 = 0x00F5d700,
172 .gpio1 = 0x00003004,
173 .gpio2 = 0x00F5d700,
174 .gpio3 = 0x02000000,
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800175 },
176 },
Lubomir Bulej7418f342005-11-08 21:38:34 -0800177 [CX88_BOARD_AVERTV_STUDIO_303] = {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700178 .name = "AverTV Studio 303 (M126)",
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700179 .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
180 .radio_type = UNSET,
181 .tuner_addr = ADDR_UNSET,
182 .radio_addr = ADDR_UNSET,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700183 .tda9887_conf = TDA9887_PRESENT,
184 .input = {{
185 .type = CX88_VMUX_TELEVISION,
186 .vmux = 0,
Marcin Rudowski4aca4832006-03-09 16:09:51 -0300187 .gpio1 = 0xe09f,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700188 },{
189 .type = CX88_VMUX_COMPOSITE1,
190 .vmux = 1,
Marcin Rudowski4aca4832006-03-09 16:09:51 -0300191 .gpio1 = 0xe05f,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700192 },{
193 .type = CX88_VMUX_SVIDEO,
194 .vmux = 2,
Marcin Rudowski4aca4832006-03-09 16:09:51 -0300195 .gpio1 = 0xe05f,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700196 }},
197 .radio = {
Marcin Rudowski4aca4832006-03-09 16:09:51 -0300198 .gpio1 = 0xe0df,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700199 .type = CX88_RADIO,
200 },
201 },
202 [CX88_BOARD_MSI_TVANYWHERE_MASTER] = {
203 // added gpio values thanks to Michal
204 // values for PAL from DScaler
205 .name = "MSI TV-@nywhere Master",
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700206 .tuner_type = TUNER_MT2032,
207 .radio_type = UNSET,
208 .tuner_addr = ADDR_UNSET,
209 .radio_addr = ADDR_UNSET,
Nickolay V. Shmyrev3ae1adc2005-11-08 21:37:39 -0800210 .tda9887_conf = TDA9887_PRESENT | TDA9887_INTERCARRIER_NTSC,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700211 .input = {{
212 .type = CX88_VMUX_TELEVISION,
213 .vmux = 0,
214 .gpio0 = 0x000040bf,
215 .gpio1 = 0x000080c0,
216 .gpio2 = 0x0000ff40,
217 },{
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800218 .type = CX88_VMUX_COMPOSITE1,
219 .vmux = 1,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700220 .gpio0 = 0x000040bf,
221 .gpio1 = 0x000080c0,
222 .gpio2 = 0x0000ff40,
223 },{
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800224 .type = CX88_VMUX_SVIDEO,
225 .vmux = 2,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700226 .gpio0 = 0x000040bf,
227 .gpio1 = 0x000080c0,
228 .gpio2 = 0x0000ff40,
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800229 }},
230 .radio = {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700231 .type = CX88_RADIO,
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800232 },
Linus Torvalds1da177e2005-04-16 15:20:36 -0700233 },
234 [CX88_BOARD_WINFAST_DV2000] = {
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800235 .name = "Leadtek Winfast DV2000",
236 .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700237 .radio_type = UNSET,
238 .tuner_addr = ADDR_UNSET,
239 .radio_addr = ADDR_UNSET,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700240 .tda9887_conf = TDA9887_PRESENT,
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800241 .input = {{
242 .type = CX88_VMUX_TELEVISION,
243 .vmux = 0,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700244 .gpio0 = 0x0035e700,
245 .gpio1 = 0x00003004,
246 .gpio2 = 0x0035e700,
247 .gpio3 = 0x02000000,
248 },{
249
250 .type = CX88_VMUX_COMPOSITE1,
251 .vmux = 1,
252 .gpio0 = 0x0035c700,
253 .gpio1 = 0x00003004,
254 .gpio2 = 0x0035c700,
255 .gpio3 = 0x02000000,
256 },{
257 .type = CX88_VMUX_SVIDEO,
258 .vmux = 2,
259 .gpio0 = 0x0035c700,
260 .gpio1 = 0x0035c700,
261 .gpio2 = 0x02000000,
262 .gpio3 = 0x02000000,
263 }},
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800264 .radio = {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700265 .type = CX88_RADIO,
266 .gpio0 = 0x0035d700,
267 .gpio1 = 0x00007004,
268 .gpio2 = 0x0035d700,
269 .gpio3 = 0x02000000,
Michael Krufky47ee2f32006-06-06 15:51:38 -0300270 },
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800271 },
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700272 [CX88_BOARD_LEADTEK_PVR2000] = {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700273 // gpio values for PAL version from regspy by DScaler
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700274 .name = "Leadtek PVR 2000",
275 .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
276 .radio_type = UNSET,
277 .tuner_addr = ADDR_UNSET,
278 .radio_addr = ADDR_UNSET,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700279 .tda9887_conf = TDA9887_PRESENT,
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700280 .input = {{
281 .type = CX88_VMUX_TELEVISION,
282 .vmux = 0,
283 .gpio0 = 0x0000bde2,
Michael Krufkyf24546a2006-10-16 16:51:11 -0300284 .extadc = 1,
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700285 },{
286 .type = CX88_VMUX_COMPOSITE1,
287 .vmux = 1,
288 .gpio0 = 0x0000bde6,
Michael Krufkyf24546a2006-10-16 16:51:11 -0300289 .extadc = 1,
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700290 },{
291 .type = CX88_VMUX_SVIDEO,
292 .vmux = 2,
293 .gpio0 = 0x0000bde6,
Michael Krufkyf24546a2006-10-16 16:51:11 -0300294 .extadc = 1,
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700295 }},
296 .radio = {
297 .type = CX88_RADIO,
298 .gpio0 = 0x0000bd62,
Michael Krufkyf24546a2006-10-16 16:51:11 -0300299 .extadc = 1,
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700300 },
Michael Krufky48d5e802006-09-25 14:09:10 -0300301 .mpeg = CX88_MPEG_BLACKBIRD,
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700302 },
Linus Torvalds1da177e2005-04-16 15:20:36 -0700303 [CX88_BOARD_IODATA_GVVCP3PCI] = {
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800304 .name = "IODATA GV-VCP3/PCI",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700305 .tuner_type = TUNER_ABSENT,
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800306 .radio_type = UNSET,
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700307 .tuner_addr = ADDR_UNSET,
308 .radio_addr = ADDR_UNSET,
309 .input = {{
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800310 .type = CX88_VMUX_COMPOSITE1,
311 .vmux = 0,
312 },{
313 .type = CX88_VMUX_COMPOSITE2,
314 .vmux = 1,
315 },{
316 .type = CX88_VMUX_SVIDEO,
317 .vmux = 2,
318 }},
319 },
Linus Torvalds1da177e2005-04-16 15:20:36 -0700320 [CX88_BOARD_PROLINK_PLAYTVPVR] = {
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800321 .name = "Prolink PlayTV PVR",
322 .tuner_type = TUNER_PHILIPS_FM1236_MK3,
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700323 .radio_type = UNSET,
324 .tuner_addr = ADDR_UNSET,
325 .radio_addr = ADDR_UNSET,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700326 .tda9887_conf = TDA9887_PRESENT,
327 .input = {{
328 .type = CX88_VMUX_TELEVISION,
329 .vmux = 0,
Michael Krufkyfc34f162006-03-13 03:41:44 -0300330 .gpio0 = 0xbff0,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700331 },{
332 .type = CX88_VMUX_COMPOSITE1,
333 .vmux = 1,
Michael Krufkyfc34f162006-03-13 03:41:44 -0300334 .gpio0 = 0xbff3,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700335 },{
336 .type = CX88_VMUX_SVIDEO,
337 .vmux = 2,
Michael Krufkyfc34f162006-03-13 03:41:44 -0300338 .gpio0 = 0xbff3,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700339 }},
340 .radio = {
341 .type = CX88_RADIO,
Michael Krufkyfc34f162006-03-13 03:41:44 -0300342 .gpio0 = 0xbff0,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700343 },
344 },
345 [CX88_BOARD_ASUS_PVR_416] = {
346 .name = "ASUS PVR-416",
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700347 .tuner_type = TUNER_PHILIPS_FM1236_MK3,
348 .radio_type = UNSET,
349 .tuner_addr = ADDR_UNSET,
350 .radio_addr = ADDR_UNSET,
351 .tda9887_conf = TDA9887_PRESENT,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700352 .input = {{
353 .type = CX88_VMUX_TELEVISION,
354 .vmux = 0,
355 .gpio0 = 0x0000fde6,
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800356 },{
Linus Torvalds1da177e2005-04-16 15:20:36 -0700357 .type = CX88_VMUX_SVIDEO,
358 .vmux = 2,
359 .gpio0 = 0x0000fde6, // 0x0000fda6 L,R RCA audio in?
360 }},
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800361 .radio = {
362 .type = CX88_RADIO,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700363 .gpio0 = 0x0000fde2,
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800364 },
Michael Krufky48d5e802006-09-25 14:09:10 -0300365 .mpeg = CX88_MPEG_BLACKBIRD,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700366 },
367 [CX88_BOARD_MSI_TVANYWHERE] = {
368 .name = "MSI TV-@nywhere",
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700369 .tuner_type = TUNER_MT2032,
370 .radio_type = UNSET,
371 .tuner_addr = ADDR_UNSET,
372 .radio_addr = ADDR_UNSET,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700373 .tda9887_conf = TDA9887_PRESENT,
374 .input = {{
375 .type = CX88_VMUX_TELEVISION,
376 .vmux = 0,
377 .gpio0 = 0x00000fbf,
378 .gpio2 = 0x0000fc08,
379 },{
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800380 .type = CX88_VMUX_COMPOSITE1,
381 .vmux = 1,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700382 .gpio0 = 0x00000fbf,
383 .gpio2 = 0x0000fc68,
384 },{
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800385 .type = CX88_VMUX_SVIDEO,
386 .vmux = 2,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700387 .gpio0 = 0x00000fbf,
388 .gpio2 = 0x0000fc68,
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800389 }},
Linus Torvalds1da177e2005-04-16 15:20:36 -0700390 },
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800391 [CX88_BOARD_KWORLD_DVB_T] = {
392 .name = "KWorld/VStream XPert DVB-T",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700393 .tuner_type = TUNER_ABSENT,
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700394 .radio_type = UNSET,
395 .tuner_addr = ADDR_UNSET,
396 .radio_addr = ADDR_UNSET,
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800397 .input = {{
398 .type = CX88_VMUX_COMPOSITE1,
399 .vmux = 1,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700400 .gpio0 = 0x0700,
401 .gpio2 = 0x0101,
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800402 },{
403 .type = CX88_VMUX_SVIDEO,
404 .vmux = 2,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700405 .gpio0 = 0x0700,
406 .gpio2 = 0x0101,
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800407 }},
Michael Krufky48d5e802006-09-25 14:09:10 -0300408 .mpeg = CX88_MPEG_DVB,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700409 },
410 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1] = {
Mauro Carvalho Chehaba82decf2005-07-07 17:58:36 -0700411 .name = "DViCO FusionHDTV DVB-T1",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700412 .tuner_type = TUNER_ABSENT, /* No analog tuner */
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700413 .radio_type = UNSET,
414 .tuner_addr = ADDR_UNSET,
415 .radio_addr = ADDR_UNSET,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700416 .input = {{
417 .type = CX88_VMUX_COMPOSITE1,
418 .vmux = 1,
419 .gpio0 = 0x000027df,
Michael Krufky47ee2f32006-06-06 15:51:38 -0300420 },{
Linus Torvalds1da177e2005-04-16 15:20:36 -0700421 .type = CX88_VMUX_SVIDEO,
422 .vmux = 2,
423 .gpio0 = 0x000027df,
424 }},
Michael Krufky48d5e802006-09-25 14:09:10 -0300425 .mpeg = CX88_MPEG_DVB,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700426 },
427 [CX88_BOARD_KWORLD_LTV883] = {
428 .name = "KWorld LTV883RF",
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700429 .tuner_type = TUNER_TNF_8831BGFF,
430 .radio_type = UNSET,
431 .tuner_addr = ADDR_UNSET,
432 .radio_addr = ADDR_UNSET,
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800433 .input = {{
434 .type = CX88_VMUX_TELEVISION,
435 .vmux = 0,
436 .gpio0 = 0x07f8,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700437 },{
438 .type = CX88_VMUX_DEBUG,
439 .vmux = 0,
440 .gpio0 = 0x07f9, // mono from tuner chip
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800441 },{
442 .type = CX88_VMUX_COMPOSITE1,
443 .vmux = 1,
444 .gpio0 = 0x000007fa,
445 },{
446 .type = CX88_VMUX_SVIDEO,
447 .vmux = 2,
448 .gpio0 = 0x000007fa,
449 }},
450 .radio = {
451 .type = CX88_RADIO,
452 .gpio0 = 0x000007f8,
453 },
Linus Torvalds1da177e2005-04-16 15:20:36 -0700454 },
Mauro Carvalho Chehaba82decf2005-07-07 17:58:36 -0700455 [CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q] = {
456 .name = "DViCO FusionHDTV 3 Gold-Q",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700457 .tuner_type = TUNER_MICROTUNE_4042FI5,
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700458 .radio_type = UNSET,
459 .tuner_addr = ADDR_UNSET,
460 .radio_addr = ADDR_UNSET,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700461 /*
462 GPIO[0] resets DT3302 DTV receiver
463 0 - reset asserted
464 1 - normal operation
465 GPIO[1] mutes analog audio output connector
466 0 - enable selected source
467 1 - mute
468 GPIO[2] selects source for analog audio output connector
469 0 - analog audio input connector on tab
470 1 - analog DAC output from CX23881 chip
471 GPIO[3] selects RF input connector on tuner module
472 0 - RF connector labeled CABLE
473 1 - RF connector labeled ANT
Mauro Carvalho Chehaba82decf2005-07-07 17:58:36 -0700474 GPIO[4] selects high RF for QAM256 mode
475 0 - normal RF
476 1 - high RF
Linus Torvalds1da177e2005-04-16 15:20:36 -0700477 */
478 .input = {{
479 .type = CX88_VMUX_TELEVISION,
480 .vmux = 0,
481 .gpio0 = 0x0f0d,
482 },{
483 .type = CX88_VMUX_CABLE,
484 .vmux = 0,
485 .gpio0 = 0x0f05,
486 },{
487 .type = CX88_VMUX_COMPOSITE1,
488 .vmux = 1,
489 .gpio0 = 0x0f00,
490 },{
491 .type = CX88_VMUX_SVIDEO,
492 .vmux = 2,
493 .gpio0 = 0x0f00,
494 }},
Michael Krufky48d5e802006-09-25 14:09:10 -0300495 .mpeg = CX88_MPEG_DVB,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700496 },
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800497 [CX88_BOARD_HAUPPAUGE_DVB_T1] = {
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700498 .name = "Hauppauge Nova-T DVB-T",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700499 .tuner_type = TUNER_ABSENT,
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700500 .radio_type = UNSET,
501 .tuner_addr = ADDR_UNSET,
502 .radio_addr = ADDR_UNSET,
503 .input = {{
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800504 .type = CX88_VMUX_DVB,
505 .vmux = 0,
506 }},
Michael Krufky48d5e802006-09-25 14:09:10 -0300507 .mpeg = CX88_MPEG_DVB,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700508 },
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800509 [CX88_BOARD_CONEXANT_DVB_T1] = {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700510 .name = "Conexant DVB-T reference design",
511 .tuner_type = TUNER_ABSENT,
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700512 .radio_type = UNSET,
513 .tuner_addr = ADDR_UNSET,
514 .radio_addr = ADDR_UNSET,
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800515 .input = {{
516 .type = CX88_VMUX_DVB,
517 .vmux = 0,
518 }},
Michael Krufky48d5e802006-09-25 14:09:10 -0300519 .mpeg = CX88_MPEG_DVB,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700520 },
521 [CX88_BOARD_PROVIDEO_PV259] = {
522 .name = "Provideo PV259",
523 .tuner_type = TUNER_PHILIPS_FQ1216ME,
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700524 .radio_type = UNSET,
525 .tuner_addr = ADDR_UNSET,
526 .radio_addr = ADDR_UNSET,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700527 .input = {{
528 .type = CX88_VMUX_TELEVISION,
529 .vmux = 0,
Michael Krufkyf24546a2006-10-16 16:51:11 -0300530 .extadc = 1,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700531 }},
Michael Krufky48d5e802006-09-25 14:09:10 -0300532 .mpeg = CX88_MPEG_BLACKBIRD,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700533 },
534 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS] = {
Mauro Carvalho Chehaba82decf2005-07-07 17:58:36 -0700535 .name = "DViCO FusionHDTV DVB-T Plus",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700536 .tuner_type = TUNER_ABSENT, /* No analog tuner */
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700537 .radio_type = UNSET,
538 .tuner_addr = ADDR_UNSET,
539 .radio_addr = ADDR_UNSET,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700540 .input = {{
541 .type = CX88_VMUX_COMPOSITE1,
542 .vmux = 1,
543 .gpio0 = 0x000027df,
Michael Krufky47ee2f32006-06-06 15:51:38 -0300544 },{
Linus Torvalds1da177e2005-04-16 15:20:36 -0700545 .type = CX88_VMUX_SVIDEO,
546 .vmux = 2,
547 .gpio0 = 0x000027df,
548 }},
Michael Krufky48d5e802006-09-25 14:09:10 -0300549 .mpeg = CX88_MPEG_DVB,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700550 },
551 [CX88_BOARD_DNTV_LIVE_DVB_T] = {
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800552 .name = "digitalnow DNTV Live! DVB-T",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700553 .tuner_type = TUNER_ABSENT,
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700554 .radio_type = UNSET,
555 .tuner_addr = ADDR_UNSET,
556 .radio_addr = ADDR_UNSET,
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800557 .input = {{
Linus Torvalds1da177e2005-04-16 15:20:36 -0700558 .type = CX88_VMUX_COMPOSITE1,
559 .vmux = 1,
560 .gpio0 = 0x00000700,
561 .gpio2 = 0x00000101,
562 },{
563 .type = CX88_VMUX_SVIDEO,
564 .vmux = 2,
565 .gpio0 = 0x00000700,
566 .gpio2 = 0x00000101,
567 }},
Michael Krufky48d5e802006-09-25 14:09:10 -0300568 .mpeg = CX88_MPEG_DVB,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700569 },
570 [CX88_BOARD_PCHDTV_HD3000] = {
571 .name = "pcHDTV HD3000 HDTV",
Trent Piepho9175b852006-04-10 09:40:37 -0300572 .tuner_type = TUNER_THOMSON_DTT761X,
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700573 .radio_type = UNSET,
574 .tuner_addr = ADDR_UNSET,
575 .radio_addr = ADDR_UNSET,
Mauro Carvalho Chehabe4f5c822005-12-04 12:41:54 -0200576 .tda9887_conf = TDA9887_PRESENT,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700577 .input = {{
578 .type = CX88_VMUX_TELEVISION,
579 .vmux = 0,
580 .gpio0 = 0x00008484,
581 .gpio1 = 0x00000000,
582 .gpio2 = 0x00000000,
583 .gpio3 = 0x00000000,
584 },{
585 .type = CX88_VMUX_COMPOSITE1,
586 .vmux = 1,
587 .gpio0 = 0x00008400,
588 .gpio1 = 0x00000000,
589 .gpio2 = 0x00000000,
590 .gpio3 = 0x00000000,
591 },{
592 .type = CX88_VMUX_SVIDEO,
593 .vmux = 2,
594 .gpio0 = 0x00008400,
595 .gpio1 = 0x00000000,
596 .gpio2 = 0x00000000,
597 .gpio3 = 0x00000000,
598 }},
599 .radio = {
600 .type = CX88_RADIO,
601 .vmux = 2,
602 .gpio0 = 0x00008400,
603 .gpio1 = 0x00000000,
604 .gpio2 = 0x00000000,
605 .gpio3 = 0x00000000,
606 },
Michael Krufky48d5e802006-09-25 14:09:10 -0300607 .mpeg = CX88_MPEG_DVB,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700608 },
609 [CX88_BOARD_HAUPPAUGE_ROSLYN] = {
610 // entry added by Kaustubh D. Bhalerao <bhalerao.1@osu.edu>
611 // GPIO values obtained from regspy, courtesy Sean Covel
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700612 .name = "Hauppauge WinTV 28xxx (Roslyn) models",
613 .tuner_type = UNSET,
614 .radio_type = UNSET,
615 .tuner_addr = ADDR_UNSET,
616 .radio_addr = ADDR_UNSET,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700617 .input = {{
618 .type = CX88_VMUX_TELEVISION,
619 .vmux = 0,
Steven Toth0345c382006-01-09 15:25:17 -0200620 .gpio0 = 0xed1a,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700621 .gpio2 = 0x00ff,
622 },{
623 .type = CX88_VMUX_DEBUG,
624 .vmux = 0,
Steven Toth0345c382006-01-09 15:25:17 -0200625 .gpio0 = 0xff01,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700626 },{
627 .type = CX88_VMUX_COMPOSITE1,
628 .vmux = 1,
629 .gpio0 = 0xff02,
630 },{
631 .type = CX88_VMUX_SVIDEO,
632 .vmux = 2,
633 .gpio0 = 0xed92,
634 .gpio2 = 0x00ff,
635 }},
636 .radio = {
637 .type = CX88_RADIO,
638 .gpio0 = 0xed96,
639 .gpio2 = 0x00ff,
640 },
Michael Krufky48d5e802006-09-25 14:09:10 -0300641 .mpeg = CX88_MPEG_BLACKBIRD,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700642 },
643 [CX88_BOARD_DIGITALLOGIC_MEC] = {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700644 .name = "Digital-Logic MICROSPACE Entertainment Center (MEC)",
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700645 .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
646 .radio_type = UNSET,
647 .tuner_addr = ADDR_UNSET,
648 .radio_addr = ADDR_UNSET,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700649 .tda9887_conf = TDA9887_PRESENT,
650 .input = {{
651 .type = CX88_VMUX_TELEVISION,
652 .vmux = 0,
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700653 .gpio0 = 0x00009d80,
Michael Krufkyf24546a2006-10-16 16:51:11 -0300654 .extadc = 1,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700655 },{
656 .type = CX88_VMUX_COMPOSITE1,
657 .vmux = 1,
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700658 .gpio0 = 0x00009d76,
Michael Krufkyf24546a2006-10-16 16:51:11 -0300659 .extadc = 1,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700660 },{
661 .type = CX88_VMUX_SVIDEO,
662 .vmux = 2,
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700663 .gpio0 = 0x00009d76,
Michael Krufkyf24546a2006-10-16 16:51:11 -0300664 .extadc = 1,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700665 }},
666 .radio = {
667 .type = CX88_RADIO,
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700668 .gpio0 = 0x00009d00,
Michael Krufkyf24546a2006-10-16 16:51:11 -0300669 .extadc = 1,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700670 },
Michael Krufky48d5e802006-09-25 14:09:10 -0300671 .mpeg = CX88_MPEG_BLACKBIRD,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700672 },
673 [CX88_BOARD_IODATA_GVBCTV7E] = {
674 .name = "IODATA GV/BCTV7E",
675 .tuner_type = TUNER_PHILIPS_FQ1286,
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700676 .radio_type = UNSET,
677 .tuner_addr = ADDR_UNSET,
678 .radio_addr = ADDR_UNSET,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700679 .tda9887_conf = TDA9887_PRESENT,
680 .input = {{
681 .type = CX88_VMUX_TELEVISION,
682 .vmux = 1,
683 .gpio1 = 0x0000e03f,
684 },{
685 .type = CX88_VMUX_COMPOSITE1,
686 .vmux = 2,
687 .gpio1 = 0x0000e07f,
688 },{
689 .type = CX88_VMUX_SVIDEO,
690 .vmux = 3,
691 .gpio1 = 0x0000e07f,
692 }}
693 },
Manuel Capinha239df2e2005-06-23 22:04:53 -0700694 [CX88_BOARD_PIXELVIEW_PLAYTV_ULTRA_PRO] = {
695 .name = "PixelView PlayTV Ultra Pro (Stereo)",
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700696 /* May be also TUNER_YMEC_TVF_5533MF for NTSC/M or PAL/M */
697 .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
Mauro Carvalho Chehabc5287ba2005-07-15 03:56:28 -0700698 .radio_type = UNSET,
699 .tuner_addr = ADDR_UNSET,
700 .radio_addr = ADDR_UNSET,
Manuel Capinha239df2e2005-06-23 22:04:53 -0700701 .input = {{
702 .type = CX88_VMUX_TELEVISION,
703 .vmux = 0,
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700704 .gpio0 = 0xbf61, /* internal decoder */
Manuel Capinha239df2e2005-06-23 22:04:53 -0700705 },{
706 .type = CX88_VMUX_COMPOSITE1,
707 .vmux = 1,
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700708 .gpio0 = 0xbf63,
Manuel Capinha239df2e2005-06-23 22:04:53 -0700709 },{
710 .type = CX88_VMUX_SVIDEO,
711 .vmux = 2,
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700712 .gpio0 = 0xbf63,
Manuel Capinha239df2e2005-06-23 22:04:53 -0700713 }},
714 .radio = {
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700715 .type = CX88_RADIO,
716 .gpio0 = 0xbf60,
717 },
Manuel Capinha239df2e2005-06-23 22:04:53 -0700718 },
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800719 [CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_T] = {
Mauro Carvalho Chehaba82decf2005-07-07 17:58:36 -0700720 .name = "DViCO FusionHDTV 3 Gold-T",
Michael Krufky83ac87222006-01-09 15:25:29 -0200721 .tuner_type = TUNER_THOMSON_DTT761X,
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700722 .radio_type = UNSET,
723 .tuner_addr = ADDR_UNSET,
724 .radio_addr = ADDR_UNSET,
Mauro Carvalho Chehabe4f5c822005-12-04 12:41:54 -0200725 .tda9887_conf = TDA9887_PRESENT,
Mauro Carvalho Chehaba82decf2005-07-07 17:58:36 -0700726 .input = {{
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800727 .type = CX88_VMUX_TELEVISION,
728 .vmux = 0,
729 .gpio0 = 0x97ed,
730 },{
731 .type = CX88_VMUX_COMPOSITE1,
732 .vmux = 1,
733 .gpio0 = 0x97e9,
734 },{
735 .type = CX88_VMUX_SVIDEO,
736 .vmux = 2,
737 .gpio0 = 0x97e9,
738 }},
Michael Krufky48d5e802006-09-25 14:09:10 -0300739 .mpeg = CX88_MPEG_DVB,
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800740 },
741 [CX88_BOARD_ADSTECH_DVB_T_PCI] = {
742 .name = "ADS Tech Instant TV DVB-T PCI",
Mauro Carvalho Chehaba82decf2005-07-07 17:58:36 -0700743 .tuner_type = TUNER_ABSENT,
744 .radio_type = UNSET,
745 .tuner_addr = ADDR_UNSET,
746 .radio_addr = ADDR_UNSET,
747 .input = {{
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800748 .type = CX88_VMUX_COMPOSITE1,
749 .vmux = 1,
Mauro Carvalho Chehaba82decf2005-07-07 17:58:36 -0700750 .gpio0 = 0x0700,
751 .gpio2 = 0x0101,
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800752 },{
753 .type = CX88_VMUX_SVIDEO,
754 .vmux = 2,
Mauro Carvalho Chehaba82decf2005-07-07 17:58:36 -0700755 .gpio0 = 0x0700,
756 .gpio2 = 0x0101,
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800757 }},
Michael Krufky48d5e802006-09-25 14:09:10 -0300758 .mpeg = CX88_MPEG_DVB,
Mauro Carvalho Chehaba82decf2005-07-07 17:58:36 -0700759 },
Michael Krufkye057ee12005-07-07 17:58:40 -0700760 [CX88_BOARD_TERRATEC_CINERGY_1400_DVB_T1] = {
761 .name = "TerraTec Cinergy 1400 DVB-T",
762 .tuner_type = TUNER_ABSENT,
763 .input = {{
764 .type = CX88_VMUX_DVB,
765 .vmux = 0,
766 }},
Michael Krufky48d5e802006-09-25 14:09:10 -0300767 .mpeg = CX88_MPEG_DVB,
Michael Krufkye057ee12005-07-07 17:58:40 -0700768 },
Michael Krufky9fef07c2005-07-31 22:34:46 -0700769 [CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD] = {
770 .name = "DViCO FusionHDTV 5 Gold",
Michael Krufky9c26c8b2006-04-27 01:29:17 -0300771 .tuner_type = TUNER_LG_TDVS_H06XF, /* TDVS-H062F */
Michael Krufky9fef07c2005-07-31 22:34:46 -0700772 .radio_type = UNSET,
773 .tuner_addr = ADDR_UNSET,
774 .radio_addr = ADDR_UNSET,
Mauro Carvalho Chehabe52e98a2005-09-09 13:03:41 -0700775 .tda9887_conf = TDA9887_PRESENT,
Michael Krufky9fef07c2005-07-31 22:34:46 -0700776 .input = {{
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800777 .type = CX88_VMUX_TELEVISION,
778 .vmux = 0,
779 .gpio0 = 0x87fd,
780 },{
781 .type = CX88_VMUX_COMPOSITE1,
782 .vmux = 1,
783 .gpio0 = 0x87f9,
784 },{
785 .type = CX88_VMUX_SVIDEO,
786 .vmux = 2,
787 .gpio0 = 0x87f9,
788 }},
Michael Krufky48d5e802006-09-25 14:09:10 -0300789 .mpeg = CX88_MPEG_DVB,
Michael Krufky9fef07c2005-07-31 22:34:46 -0700790 },
Nickolay V. Shmyrevd45170e2005-11-08 21:36:15 -0800791 [CX88_BOARD_AVERMEDIA_ULTRATV_MC_550] = {
792 .name = "AverMedia UltraTV Media Center PCI 550",
793 .tuner_type = TUNER_PHILIPS_FM1236_MK3,
794 .radio_type = UNSET,
795 .tuner_addr = ADDR_UNSET,
796 .radio_addr = ADDR_UNSET,
797 .tda9887_conf = TDA9887_PRESENT,
Nickolay V. Shmyrevd45170e2005-11-08 21:36:15 -0800798 .input = {{
799 .type = CX88_VMUX_COMPOSITE1,
800 .vmux = 0,
801 .gpio0 = 0x0000cd73,
Michael Krufkyf24546a2006-10-16 16:51:11 -0300802 .extadc = 1,
Nickolay V. Shmyrevd45170e2005-11-08 21:36:15 -0800803 },{
804 .type = CX88_VMUX_SVIDEO,
805 .vmux = 1,
806 .gpio0 = 0x0000cd73,
Michael Krufkyf24546a2006-10-16 16:51:11 -0300807 .extadc = 1,
Nickolay V. Shmyrevd45170e2005-11-08 21:36:15 -0800808 },{
809 .type = CX88_VMUX_TELEVISION,
810 .vmux = 3,
811 .gpio0 = 0x0000cdb3,
Michael Krufkyf24546a2006-10-16 16:51:11 -0300812 .extadc = 1,
Nickolay V. Shmyrevd45170e2005-11-08 21:36:15 -0800813 }},
814 .radio = {
815 .type = CX88_RADIO,
816 .vmux = 2,
817 .gpio0 = 0x0000cdf3,
Michael Krufkyf24546a2006-10-16 16:51:11 -0300818 .extadc = 1,
Nickolay V. Shmyrevd45170e2005-11-08 21:36:15 -0800819 },
Michael Krufky5b26c822006-10-16 16:07:51 -0300820 .mpeg = CX88_MPEG_BLACKBIRD,
Nickolay V. Shmyrevd45170e2005-11-08 21:36:15 -0800821 },
Alexander Wold0bcc37c2005-11-08 21:36:58 -0800822 [CX88_BOARD_KWORLD_VSTREAM_EXPERT_DVD] = {
823 /* Alexander Wold <awold@bigfoot.com> */
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800824 .name = "Kworld V-Stream Xpert DVD",
825 .tuner_type = UNSET,
826 .input = {{
827 .type = CX88_VMUX_COMPOSITE1,
828 .vmux = 1,
829 .gpio0 = 0x03000000,
Alexander Wold0bcc37c2005-11-08 21:36:58 -0800830 .gpio1 = 0x01000000,
831 .gpio2 = 0x02000000,
832 .gpio3 = 0x00100000,
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800833 },{
834 .type = CX88_VMUX_SVIDEO,
835 .vmux = 2,
836 .gpio0 = 0x03000000,
837 .gpio1 = 0x01000000,
838 .gpio2 = 0x02000000,
839 .gpio3 = 0x00100000,
840 }},
Alexander Wold0bcc37c2005-11-08 21:36:58 -0800841 },
Kirk Lapraye976f9372005-11-08 21:37:04 -0800842 [CX88_BOARD_ATI_HDTVWONDER] = {
843 .name = "ATI HDTV Wonder",
844 .tuner_type = TUNER_PHILIPS_TUV1236D,
845 .radio_type = UNSET,
846 .tuner_addr = ADDR_UNSET,
847 .radio_addr = ADDR_UNSET,
848 .input = {{
849 .type = CX88_VMUX_TELEVISION,
850 .vmux = 0,
851 .gpio0 = 0x00000ff7,
852 .gpio1 = 0x000000ff,
853 .gpio2 = 0x00000001,
854 .gpio3 = 0x00000000,
855 },{
856 .type = CX88_VMUX_COMPOSITE1,
857 .vmux = 1,
858 .gpio0 = 0x00000ffe,
859 .gpio1 = 0x000000ff,
860 .gpio2 = 0x00000001,
861 .gpio3 = 0x00000000,
862 },{
863 .type = CX88_VMUX_SVIDEO,
864 .vmux = 2,
865 .gpio0 = 0x00000ffe,
866 .gpio1 = 0x000000ff,
867 .gpio2 = 0x00000001,
868 .gpio3 = 0x00000000,
869 }},
Michael Krufky48d5e802006-09-25 14:09:10 -0300870 .mpeg = CX88_MPEG_DVB,
Kirk Lapraye976f9372005-11-08 21:37:04 -0800871 },
David Shirley2b5200a2005-11-08 21:37:22 -0800872 [CX88_BOARD_WINFAST_DTV1000] = {
873 .name = "WinFast DTV1000-T",
874 .tuner_type = TUNER_ABSENT,
875 .radio_type = UNSET,
876 .tuner_addr = ADDR_UNSET,
877 .radio_addr = ADDR_UNSET,
878 .input = {{
879 .type = CX88_VMUX_DVB,
880 .vmux = 0,
881 }},
Michael Krufky48d5e802006-09-25 14:09:10 -0300882 .mpeg = CX88_MPEG_DVB,
David Shirley2b5200a2005-11-08 21:37:22 -0800883 },
Lubomir Bulej7418f342005-11-08 21:38:34 -0800884 [CX88_BOARD_AVERTV_303] = {
885 .name = "AVerTV 303 (M126)",
886 .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
887 .radio_type = UNSET,
888 .tuner_addr = ADDR_UNSET,
889 .radio_addr = ADDR_UNSET,
890 .tda9887_conf = TDA9887_PRESENT,
891 .input = {{
892 .type = CX88_VMUX_TELEVISION,
893 .vmux = 0,
894 .gpio0 = 0x00ff,
895 .gpio1 = 0xe09f,
896 .gpio2 = 0x0010,
897 .gpio3 = 0x0000,
898 },{
899 .type = CX88_VMUX_COMPOSITE1,
900 .vmux = 1,
901 .gpio0 = 0x00ff,
902 .gpio1 = 0xe05f,
903 .gpio2 = 0x0010,
904 .gpio3 = 0x0000,
905 },{
906 .type = CX88_VMUX_SVIDEO,
907 .vmux = 2,
908 .gpio0 = 0x00ff,
909 .gpio1 = 0xe05f,
910 .gpio2 = 0x0010,
911 .gpio3 = 0x0000,
912 }},
913 },
Steven Toth0fa14aa2006-01-09 15:25:02 -0200914 [CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1] = {
915 .name = "Hauppauge Nova-S-Plus DVB-S",
916 .tuner_type = TUNER_ABSENT,
917 .radio_type = UNSET,
918 .tuner_addr = ADDR_UNSET,
919 .radio_addr = ADDR_UNSET,
Steven Toth0fa14aa2006-01-09 15:25:02 -0200920 .input = {{
921 .type = CX88_VMUX_DVB,
922 .vmux = 0,
923 },{
924 .type = CX88_VMUX_COMPOSITE1,
925 .vmux = 1,
926 },{
927 .type = CX88_VMUX_SVIDEO,
928 .vmux = 2,
929 }},
Michael Krufky48d5e802006-09-25 14:09:10 -0300930 .mpeg = CX88_MPEG_DVB,
Steven Toth0fa14aa2006-01-09 15:25:02 -0200931 },
932 [CX88_BOARD_HAUPPAUGE_NOVASE2_S1] = {
933 .name = "Hauppauge Nova-SE2 DVB-S",
934 .tuner_type = TUNER_ABSENT,
935 .radio_type = UNSET,
936 .tuner_addr = ADDR_UNSET,
937 .radio_addr = ADDR_UNSET,
938 .input = {{
939 .type = CX88_VMUX_DVB,
940 .vmux = 0,
941 }},
Michael Krufky48d5e802006-09-25 14:09:10 -0300942 .mpeg = CX88_MPEG_DVB,
Steven Toth0fa14aa2006-01-09 15:25:02 -0200943 },
Vadim Catana0e0351e2006-01-09 15:25:02 -0200944 [CX88_BOARD_KWORLD_DVBS_100] = {
945 .name = "KWorld DVB-S 100",
946 .tuner_type = TUNER_ABSENT,
947 .radio_type = UNSET,
948 .tuner_addr = ADDR_UNSET,
949 .radio_addr = ADDR_UNSET,
950 .input = {{
951 .type = CX88_VMUX_DVB,
952 .vmux = 0,
953 },{
954 .type = CX88_VMUX_COMPOSITE1,
955 .vmux = 1,
956 },{
957 .type = CX88_VMUX_SVIDEO,
958 .vmux = 2,
959 }},
Michael Krufky48d5e802006-09-25 14:09:10 -0300960 .mpeg = CX88_MPEG_DVB,
Vadim Catana0e0351e2006-01-09 15:25:02 -0200961 },
Steven Toth611900c2006-01-09 15:25:12 -0200962 [CX88_BOARD_HAUPPAUGE_HVR1100] = {
963 .name = "Hauppauge WinTV-HVR1100 DVB-T/Hybrid",
964 .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3,
965 .radio_type = UNSET,
966 .tuner_addr = ADDR_UNSET,
967 .radio_addr = ADDR_UNSET,
968 .tda9887_conf = TDA9887_PRESENT,
969 .input = {{
970 .type = CX88_VMUX_TELEVISION,
971 .vmux = 0,
972 },{
973 .type = CX88_VMUX_COMPOSITE1,
974 .vmux = 1,
975 },{
976 .type = CX88_VMUX_SVIDEO,
977 .vmux = 2,
978 }},
979 /* fixme: Add radio support */
Michael Krufky48d5e802006-09-25 14:09:10 -0300980 .mpeg = CX88_MPEG_DVB,
Steven Toth611900c2006-01-09 15:25:12 -0200981 },
982 [CX88_BOARD_HAUPPAUGE_HVR1100LP] = {
983 .name = "Hauppauge WinTV-HVR1100 DVB-T/Hybrid (Low Profile)",
984 .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3,
985 .radio_type = UNSET,
986 .tuner_addr = ADDR_UNSET,
987 .radio_addr = ADDR_UNSET,
988 .tda9887_conf = TDA9887_PRESENT,
989 .input = {{
990 .type = CX88_VMUX_TELEVISION,
991 .vmux = 0,
992 },{
993 .type = CX88_VMUX_COMPOSITE1,
994 .vmux = 1,
995 }},
996 /* fixme: Add radio support */
Michael Krufky48d5e802006-09-25 14:09:10 -0300997 .mpeg = CX88_MPEG_DVB,
Steven Toth611900c2006-01-09 15:25:12 -0200998 },
Chris Pascoefc40b262006-01-09 15:25:35 -0200999 [CX88_BOARD_DNTV_LIVE_DVB_T_PRO] = {
1000 .name = "digitalnow DNTV Live! DVB-T Pro",
1001 .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3,
1002 .radio_type = UNSET,
1003 .tuner_addr = ADDR_UNSET,
1004 .radio_addr = ADDR_UNSET,
1005 .tda9887_conf = TDA9887_PRESENT | TDA9887_PORT1_ACTIVE |
1006 TDA9887_PORT2_ACTIVE,
1007 .input = {{
1008 .type = CX88_VMUX_TELEVISION,
1009 .vmux = 0,
1010 .gpio0 = 0xf80808,
1011 },{
1012 .type = CX88_VMUX_COMPOSITE1,
1013 .vmux = 1,
1014 .gpio0 = 0xf80808,
1015 },{
1016 .type = CX88_VMUX_SVIDEO,
1017 .vmux = 2,
1018 .gpio0 = 0xf80808,
1019 }},
1020 .radio = {
1021 .type = CX88_RADIO,
1022 .gpio0 = 0xf80808,
1023 },
Michael Krufky48d5e802006-09-25 14:09:10 -03001024 .mpeg = CX88_MPEG_DVB,
Chris Pascoefc40b262006-01-09 15:25:35 -02001025 },
Manenti Marcof39624f2006-01-09 15:32:45 -02001026 [CX88_BOARD_KWORLD_DVB_T_CX22702] = {
1027 /* Kworld V-stream Xpert DVB-T with Thomson tuner */
1028 /* DTT 7579 Conexant CX22702-19 Conexant CX2388x */
1029 /* Manenti Marco <marco_manenti@colman.it> */
1030 .name = "KWorld/VStream XPert DVB-T with cx22702",
1031 .tuner_type = TUNER_ABSENT,
1032 .radio_type = UNSET,
1033 .tuner_addr = ADDR_UNSET,
1034 .radio_addr = ADDR_UNSET,
1035 .input = {{
1036 .type = CX88_VMUX_COMPOSITE1,
1037 .vmux = 1,
1038 .gpio0 = 0x0700,
1039 .gpio2 = 0x0101,
1040 },{
1041 .type = CX88_VMUX_SVIDEO,
1042 .vmux = 2,
1043 .gpio0 = 0x0700,
1044 .gpio2 = 0x0101,
1045 }},
Michael Krufky48d5e802006-09-25 14:09:10 -03001046 .mpeg = CX88_MPEG_DVB,
Manenti Marcof39624f2006-01-09 15:32:45 -02001047 },
Chris Pascoe43eabb42006-01-09 18:21:28 -02001048 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL] = {
1049 .name = "DViCO FusionHDTV DVB-T Dual Digital",
1050 .tuner_type = TUNER_ABSENT, /* No analog tuner */
1051 .radio_type = UNSET,
1052 .tuner_addr = ADDR_UNSET,
1053 .radio_addr = ADDR_UNSET,
1054 .input = {{
1055 .type = CX88_VMUX_COMPOSITE1,
1056 .vmux = 1,
Chris Pascoed536e9c2006-08-10 03:22:21 -03001057 .gpio0 = 0x000067df,
Chris Pascoe43eabb42006-01-09 18:21:28 -02001058 },{
1059 .type = CX88_VMUX_SVIDEO,
1060 .vmux = 2,
Chris Pascoed536e9c2006-08-10 03:22:21 -03001061 .gpio0 = 0x000067df,
Chris Pascoe43eabb42006-01-09 18:21:28 -02001062 }},
Michael Krufky48d5e802006-09-25 14:09:10 -03001063 .mpeg = CX88_MPEG_DVB,
Chris Pascoe43eabb42006-01-09 18:21:28 -02001064 },
Michael Krufky44256de2006-02-07 06:49:14 -02001065 [CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT] = {
Michael Krufky44256de2006-02-07 06:49:14 -02001066 .name = "KWorld HardwareMpegTV XPert",
1067 .tuner_type = TUNER_PHILIPS_TDA8290,
1068 .radio_type = UNSET,
1069 .tuner_addr = ADDR_UNSET,
1070 .radio_addr = ADDR_UNSET,
1071 .input = {{
1072 .type = CX88_VMUX_TELEVISION,
1073 .vmux = 0,
Michael Krufkye2798212006-02-27 00:07:58 -03001074 .gpio0 = 0x3de2,
Michael Krufky24da4e42006-02-27 00:08:01 -03001075 .gpio2 = 0x00ff,
Michael Krufkybc53f782006-05-28 01:43:35 -03001076 },{
1077 .type = CX88_VMUX_COMPOSITE1,
1078 .vmux = 1,
1079 .gpio0 = 0x3de6,
Michael Krufkycc0f3f52006-10-16 16:53:01 -03001080 .extadc = 1,
Michael Krufkybc53f782006-05-28 01:43:35 -03001081 },{
1082 .type = CX88_VMUX_SVIDEO,
1083 .vmux = 2,
1084 .gpio0 = 0x3de6,
Michael Krufkycc0f3f52006-10-16 16:53:01 -03001085 .extadc = 1,
Michael Krufky44256de2006-02-07 06:49:14 -02001086 }},
Michael Krufkye2798212006-02-27 00:07:58 -03001087 .radio = {
1088 .type = CX88_RADIO,
1089 .gpio0 = 0x3de6,
Michael Krufky24da4e42006-02-27 00:08:01 -03001090 .gpio2 = 0x00ff,
Michael Krufkye2798212006-02-27 00:07:58 -03001091 },
Michael Krufky48d5e802006-09-25 14:09:10 -03001092 .mpeg = CX88_MPEG_BLACKBIRD,
Michael Krufky44256de2006-02-07 06:49:14 -02001093 },
Chris Pascoe780dfef2006-02-28 08:34:59 -03001094 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID] = {
1095 .name = "DViCO FusionHDTV DVB-T Hybrid",
Michael Krufky91ae3292006-03-01 00:04:42 -03001096 .tuner_type = TUNER_THOMSON_FE6600,
Chris Pascoe780dfef2006-02-28 08:34:59 -03001097 .radio_type = UNSET,
1098 .tuner_addr = ADDR_UNSET,
1099 .radio_addr = ADDR_UNSET,
1100 .input = {{
1101 .type = CX88_VMUX_TELEVISION,
1102 .vmux = 0,
1103 .gpio0 = 0x0000a75f,
1104 },{
1105 .type = CX88_VMUX_COMPOSITE1,
1106 .vmux = 1,
1107 .gpio0 = 0x0000a75b,
1108 },{
1109 .type = CX88_VMUX_SVIDEO,
1110 .vmux = 2,
1111 .gpio0 = 0x0000a75b,
1112 }},
Michael Krufky48d5e802006-09-25 14:09:10 -03001113 .mpeg = CX88_MPEG_DVB,
Chris Pascoe780dfef2006-02-28 08:34:59 -03001114 },
Michael Krufkye142e7c2006-04-07 03:24:54 -03001115 [CX88_BOARD_PCHDTV_HD5500] = {
1116 .name = "pcHDTV HD5500 HDTV",
Michael Krufky9c26c8b2006-04-27 01:29:17 -03001117 .tuner_type = TUNER_LG_TDVS_H06XF, /* TDVS-H064F */
Michael Krufkye142e7c2006-04-07 03:24:54 -03001118 .radio_type = UNSET,
1119 .tuner_addr = ADDR_UNSET,
1120 .radio_addr = ADDR_UNSET,
1121 .tda9887_conf = TDA9887_PRESENT,
1122 .input = {{
1123 .type = CX88_VMUX_TELEVISION,
1124 .vmux = 0,
1125 .gpio0 = 0x87fd,
1126 },{
1127 .type = CX88_VMUX_COMPOSITE1,
1128 .vmux = 1,
1129 .gpio0 = 0x87f9,
1130 },{
1131 .type = CX88_VMUX_SVIDEO,
1132 .vmux = 2,
1133 .gpio0 = 0x87f9,
1134 }},
Michael Krufky48d5e802006-09-25 14:09:10 -03001135 .mpeg = CX88_MPEG_DVB,
Michael Krufkye142e7c2006-04-07 03:24:54 -03001136 },
Valentin Zagurab3038302006-04-13 12:41:43 -03001137 [CX88_BOARD_KWORLD_MCE200_DELUXE] = {
1138 /* FIXME: tested TV input only, disabled composite,
1139 svideo and radio until they can be tested also. */
1140 .name = "Kworld MCE 200 Deluxe",
1141 .tuner_type = TUNER_TENA_9533_DI,
1142 .radio_type = UNSET,
1143 .tda9887_conf = TDA9887_PRESENT,
1144 .tuner_addr = ADDR_UNSET,
1145 .radio_addr = ADDR_UNSET,
1146 .input = {{
1147 .type = CX88_VMUX_TELEVISION,
1148 .vmux = 0,
1149 .gpio0 = 0x0000BDE6
1150 }},
Michael Krufky48d5e802006-09-25 14:09:10 -03001151 .mpeg = CX88_MPEG_BLACKBIRD,
Valentin Zagurab3038302006-04-13 12:41:43 -03001152 },
Angelo Marconia3124622006-05-09 18:27:48 -03001153 [CX88_BOARD_PIXELVIEW_PLAYTV_P7000] = {
1154 /* FIXME: SVideo, Composite and FM inputs are untested */
1155 .name = "PixelView PlayTV P7000",
1156 .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
1157 .radio_type = UNSET,
1158 .tuner_addr = ADDR_UNSET,
1159 .radio_addr = ADDR_UNSET,
1160 .tda9887_conf = TDA9887_PRESENT | TDA9887_PORT1_ACTIVE |
1161 TDA9887_PORT2_ACTIVE,
1162 .input = {{
1163 .type = CX88_VMUX_TELEVISION,
1164 .vmux = 0,
1165 .gpio0 = 0x5da6,
1166 }},
Michael Krufky48d5e802006-09-25 14:09:10 -03001167 .mpeg = CX88_MPEG_BLACKBIRD,
Angelo Marconia3124622006-05-09 18:27:48 -03001168 },
Ricardo Cerqueirabe4f4512006-06-08 17:36:17 -03001169 [CX88_BOARD_NPGTECH_REALTV_TOP10FM] = {
1170 .name = "NPG Tech Real TV FM Top 10",
1171 .tuner_type = TUNER_TNF_5335MF, /* Actually a TNF9535 */
Ricardo Cerqueira680543c2006-05-22 07:44:02 -03001172 .radio_type = UNSET,
1173 .tuner_addr = ADDR_UNSET,
1174 .radio_addr = ADDR_UNSET,
1175 .input = {{
1176 .type = CX88_VMUX_TELEVISION,
1177 .vmux = 0,
1178 .gpio0 = 0x0788,
1179 },{
1180 .type = CX88_VMUX_COMPOSITE1,
1181 .vmux = 1,
1182 .gpio0 = 0x078b,
1183 },{
1184 .type = CX88_VMUX_SVIDEO,
1185 .vmux = 2,
Ricardo Cerqueirabe4f4512006-06-08 17:36:17 -03001186 .gpio0 = 0x078b,
Ricardo Cerqueira680543c2006-05-22 07:44:02 -03001187 }},
1188 .radio = {
1189 .type = CX88_RADIO,
1190 .gpio0 = 0x074a,
1191 },
1192 },
Malcolm Valentine4bd6e9d2006-05-29 13:51:59 -03001193 [CX88_BOARD_WINFAST_DTV2000H] = {
1194 /* video inputs and radio still in testing */
1195 .name = "WinFast DTV2000 H",
1196 .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3,
1197 .radio_type = UNSET,
1198 .tuner_addr = ADDR_UNSET,
1199 .radio_addr = ADDR_UNSET,
1200 .tda9887_conf = TDA9887_PRESENT,
1201 .input = {{
1202 .type = CX88_VMUX_TELEVISION,
1203 .vmux = 0,
1204 .gpio0 = 0x00017304,
1205 .gpio1 = 0x00008203,
1206 .gpio2 = 0x00017304,
1207 .gpio3 = 0x02000000,
1208 }},
Michael Krufky48d5e802006-09-25 14:09:10 -03001209 .mpeg = CX88_MPEG_DVB,
Malcolm Valentine4bd6e9d2006-05-29 13:51:59 -03001210 },
Saqeb Akhterc02a34f2006-06-29 20:29:33 -03001211 [CX88_BOARD_GENIATECH_DVBS] = {
1212 .name = "Geniatech DVB-S",
1213 .tuner_type = TUNER_ABSENT,
1214 .radio_type = UNSET,
1215 .tuner_addr = ADDR_UNSET,
1216 .radio_addr = ADDR_UNSET,
1217 .input = {{
1218 .type = CX88_VMUX_DVB,
1219 .vmux = 0,
1220 },{
1221 .type = CX88_VMUX_COMPOSITE1,
1222 .vmux = 1,
1223 }},
Michael Krufky48d5e802006-09-25 14:09:10 -03001224 .mpeg = CX88_MPEG_DVB,
Saqeb Akhterc02a34f2006-06-29 20:29:33 -03001225 },
Eric Thomasad10c932006-08-08 09:10:04 -03001226 [CX88_BOARD_HAUPPAUGE_HVR3000] = {
1227 /* FIXME: Add dvb & radio support */
1228 .name = "Hauppauge WinTV-HVR3000 TriMode Analog/DVB-S/DVB-T",
1229 .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3,
1230 .radio_type = UNSET,
1231 .tuner_addr = ADDR_UNSET,
1232 .radio_addr = ADDR_UNSET,
1233 .tda9887_conf = TDA9887_PRESENT,
1234 .input = {{
1235 .type = CX88_VMUX_TELEVISION,
1236 .vmux = 0,
1237 .gpio0 = 0x84bf,
1238 },{
1239 .type = CX88_VMUX_COMPOSITE1,
1240 .vmux = 1,
1241 .gpio0 = 0x84bf,
1242 },{
1243 .type = CX88_VMUX_SVIDEO,
1244 .vmux = 2,
1245 .gpio0 = 0x84bf,
1246 }},
Steven Toth76dc82a2006-09-30 00:43:58 -03001247 .mpeg = CX88_MPEG_DVB,
Eric Thomasad10c932006-08-08 09:10:04 -03001248 },
Peter Naullsd1009bd2006-08-08 09:10:05 -03001249 [CX88_BOARD_NORWOOD_MICRO] = {
1250 .name = "Norwood Micro TV Tuner",
1251 .tuner_type = TUNER_TNF_5335MF,
1252 .radio_type = UNSET,
1253 .tuner_addr = ADDR_UNSET,
1254 .radio_addr = ADDR_UNSET,
1255 .input = {{
1256 .type = CX88_VMUX_TELEVISION,
1257 .vmux = 0,
1258 .gpio0 = 0x0709,
1259 },{
1260 .type = CX88_VMUX_COMPOSITE1,
1261 .vmux = 1,
1262 .gpio0 = 0x070b,
1263 },{
1264 .type = CX88_VMUX_SVIDEO,
1265 .vmux = 2,
1266 .gpio0 = 0x070b,
1267 }},
1268 },
Michael Krufky5b26c822006-10-16 16:07:51 -03001269 [CX88_BOARD_TE_DTV_250_OEM_SWANN] = {
1270 .name = "Shenzhen Tungsten Ages Tech TE-DTV-250 / Swann OEM",
1271 .tuner_type = TUNER_LG_PAL_NEW_TAPC,
1272 .radio_type = UNSET,
1273 .tuner_addr = ADDR_UNSET,
1274 .radio_addr = ADDR_UNSET,
1275 .input = {{
1276 .type = CX88_VMUX_TELEVISION,
1277 .vmux = 0,
1278 .gpio0 = 0x003fffff,
1279 .gpio1 = 0x00e00000,
1280 .gpio2 = 0x003fffff,
1281 .gpio3 = 0x02000000,
David Bussenschutt2acadef2006-08-08 09:10:05 -03001282 },{
Michael Krufky5b26c822006-10-16 16:07:51 -03001283 .type = CX88_VMUX_COMPOSITE1,
1284 .vmux = 1,
1285 .gpio0 = 0x003fffff,
1286 .gpio1 = 0x00e00000,
1287 .gpio2 = 0x003fffff,
1288 .gpio3 = 0x02000000,
1289 },{
1290 .type = CX88_VMUX_SVIDEO,
1291 .vmux = 2,
1292 .gpio0 = 0x003fffff,
1293 .gpio1 = 0x00e00000,
1294 .gpio2 = 0x003fffff,
1295 .gpio3 = 0x02000000,
1296 }},
1297 },
Steven Tothaa481a62006-09-14 15:41:13 -03001298 [CX88_BOARD_HAUPPAUGE_HVR1300] = {
1299 .name = "Hauppauge WinTV-HVR1300 DVB-T/Hybrid MPEG Encoder",
1300 .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3,
1301 .radio_type = UNSET,
1302 .tuner_addr = ADDR_UNSET,
1303 .radio_addr = ADDR_UNSET,
1304 .tda9887_conf = TDA9887_PRESENT,
Steven Toth30579062006-09-25 12:43:42 -03001305 .audio_chip = AUDIO_CHIP_WM8775,
Steven Tothaa481a62006-09-14 15:41:13 -03001306 .input = {{
1307 .type = CX88_VMUX_TELEVISION,
1308 .vmux = 0,
1309 .gpio0 = 0xe780,
Michael Krufkyf24546a2006-10-16 16:51:11 -03001310 .extadc = 1,
Steven Tothaa481a62006-09-14 15:41:13 -03001311 },{
1312 .type = CX88_VMUX_COMPOSITE1,
1313 .vmux = 1,
1314 .gpio0 = 0xe780,
Michael Krufkyf24546a2006-10-16 16:51:11 -03001315 .extadc = 1,
Steven Tothaa481a62006-09-14 15:41:13 -03001316 },{
1317 .type = CX88_VMUX_SVIDEO,
1318 .vmux = 2,
1319 .gpio0 = 0xe780,
Michael Krufkyf24546a2006-10-16 16:51:11 -03001320 .extadc = 1,
Steven Tothaa481a62006-09-14 15:41:13 -03001321 }},
1322 /* fixme: Add radio support */
Steven Toth6c5be742006-12-02 21:15:51 -02001323 .mpeg = CX88_MPEG_DVB | CX88_MPEG_BLACKBIRD,
Steven Tothaa481a62006-09-14 15:41:13 -03001324 },
Linus Torvalds1da177e2005-04-16 15:20:36 -07001325};
1326const unsigned int cx88_bcount = ARRAY_SIZE(cx88_boards);
1327
1328/* ------------------------------------------------------------------ */
1329/* PCI subsystem IDs */
1330
1331struct cx88_subid cx88_subids[] = {
1332 {
1333 .subvendor = 0x0070,
1334 .subdevice = 0x3400,
1335 .card = CX88_BOARD_HAUPPAUGE,
1336 },{
1337 .subvendor = 0x0070,
1338 .subdevice = 0x3401,
1339 .card = CX88_BOARD_HAUPPAUGE,
1340 },{
1341 .subvendor = 0x14c7,
1342 .subdevice = 0x0106,
1343 .card = CX88_BOARD_GDI,
1344 },{
1345 .subvendor = 0x14c7,
1346 .subdevice = 0x0107, /* with mpeg encoder */
1347 .card = CX88_BOARD_GDI,
1348 },{
1349 .subvendor = PCI_VENDOR_ID_ATI,
1350 .subdevice = 0x00f8,
1351 .card = CX88_BOARD_ATI_WONDER_PRO,
1352 },{
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -08001353 .subvendor = 0x107d,
1354 .subdevice = 0x6611,
1355 .card = CX88_BOARD_WINFAST2000XP_EXPERT,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001356 },{
1357 .subvendor = 0x107d,
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -08001358 .subdevice = 0x6613, /* NTSC */
1359 .card = CX88_BOARD_WINFAST2000XP_EXPERT,
1360 },{
1361 .subvendor = 0x107d,
1362 .subdevice = 0x6620,
1363 .card = CX88_BOARD_WINFAST_DV2000,
1364 },{
1365 .subvendor = 0x107d,
1366 .subdevice = 0x663b,
1367 .card = CX88_BOARD_LEADTEK_PVR2000,
1368 },{
1369 .subvendor = 0x107d,
Michael Krufky8dd86ee2006-09-16 19:09:38 -03001370 .subdevice = 0x663c,
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -08001371 .card = CX88_BOARD_LEADTEK_PVR2000,
1372 },{
Linus Torvalds1da177e2005-04-16 15:20:36 -07001373 .subvendor = 0x1461,
1374 .subdevice = 0x000b,
Lubomir Bulej7418f342005-11-08 21:38:34 -08001375 .card = CX88_BOARD_AVERTV_STUDIO_303,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001376 },{
1377 .subvendor = 0x1462,
1378 .subdevice = 0x8606,
1379 .card = CX88_BOARD_MSI_TVANYWHERE_MASTER,
1380 },{
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -08001381 .subvendor = 0x10fc,
1382 .subdevice = 0xd003,
1383 .card = CX88_BOARD_IODATA_GVVCP3PCI,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001384 },{
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -08001385 .subvendor = 0x1043,
1386 .subdevice = 0x4823, /* with mpeg encoder */
1387 .card = CX88_BOARD_ASUS_PVR_416,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001388 },{
1389 .subvendor = 0x17de,
1390 .subdevice = 0x08a6,
1391 .card = CX88_BOARD_KWORLD_DVB_T,
1392 },{
1393 .subvendor = 0x18ac,
1394 .subdevice = 0xd810,
Mauro Carvalho Chehaba82decf2005-07-07 17:58:36 -07001395 .card = CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001396 },{
Michael Krufky097b7502005-06-23 22:04:43 -07001397 .subvendor = 0x18ac,
1398 .subdevice = 0xd820,
Michael Krufky80d34362005-06-23 22:04:55 -07001399 .card = CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_T,
Michael Krufky097b7502005-06-23 22:04:43 -07001400 },{
Michael Krufky7df64e82005-11-08 21:36:16 -08001401 .subvendor = 0x18ac,
1402 .subdevice = 0xdb00,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001403 .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1,
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -08001404 },{
Linus Torvalds1da177e2005-04-16 15:20:36 -07001405 .subvendor = 0x0070,
1406 .subdevice = 0x9002,
1407 .card = CX88_BOARD_HAUPPAUGE_DVB_T1,
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -08001408 },{
Linus Torvalds1da177e2005-04-16 15:20:36 -07001409 .subvendor = 0x14f1,
1410 .subdevice = 0x0187,
1411 .card = CX88_BOARD_CONEXANT_DVB_T1,
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -08001412 },{
Linus Torvalds1da177e2005-04-16 15:20:36 -07001413 .subvendor = 0x1540,
1414 .subdevice = 0x2580,
1415 .card = CX88_BOARD_PROVIDEO_PV259,
1416 },{
Michael Krufky7df64e82005-11-08 21:36:16 -08001417 .subvendor = 0x18ac,
1418 .subdevice = 0xdb10,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001419 .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS,
1420 },{
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -08001421 .subvendor = 0x1554,
1422 .subdevice = 0x4811,
1423 .card = CX88_BOARD_PIXELVIEW,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001424 },{
1425 .subvendor = 0x7063,
1426 .subdevice = 0x3000, /* HD-3000 card */
1427 .card = CX88_BOARD_PCHDTV_HD3000,
1428 },{
Michael Krufky7df64e82005-11-08 21:36:16 -08001429 .subvendor = 0x17de,
1430 .subdevice = 0xa8a6,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001431 .card = CX88_BOARD_DNTV_LIVE_DVB_T,
1432 },{
1433 .subvendor = 0x0070,
1434 .subdevice = 0x2801,
1435 .card = CX88_BOARD_HAUPPAUGE_ROSLYN,
1436 },{
Michael Krufky7df64e82005-11-08 21:36:16 -08001437 .subvendor = 0x14f1,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001438 .subdevice = 0x0342,
1439 .card = CX88_BOARD_DIGITALLOGIC_MEC,
1440 },{
1441 .subvendor = 0x10fc,
1442 .subdevice = 0xd035,
1443 .card = CX88_BOARD_IODATA_GVBCTV7E,
Mauro Carvalho Chehaba82decf2005-07-07 17:58:36 -07001444 },{
1445 .subvendor = 0x1421,
1446 .subdevice = 0x0334,
1447 .card = CX88_BOARD_ADSTECH_DVB_T_PCI,
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -08001448 },{
Michael Krufkye057ee12005-07-07 17:58:40 -07001449 .subvendor = 0x153b,
1450 .subdevice = 0x1166,
1451 .card = CX88_BOARD_TERRATEC_CINERGY_1400_DVB_T1,
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -08001452 },{
Michael Krufky9fef07c2005-07-31 22:34:46 -07001453 .subvendor = 0x18ac,
1454 .subdevice = 0xd500,
1455 .card = CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD,
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -08001456 },{
Nickolay V. Shmyrevd45170e2005-11-08 21:36:15 -08001457 .subvendor = 0x1461,
1458 .subdevice = 0x8011,
1459 .card = CX88_BOARD_AVERMEDIA_ULTRATV_MC_550,
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -08001460 },{
Kirk Lapraye976f9372005-11-08 21:37:04 -08001461 .subvendor = PCI_VENDOR_ID_ATI,
1462 .subdevice = 0xa101,
1463 .card = CX88_BOARD_ATI_HDTVWONDER,
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -08001464 },{
David Shirley2b5200a2005-11-08 21:37:22 -08001465 .subvendor = 0x107d,
1466 .subdevice = 0x665f,
1467 .card = CX88_BOARD_WINFAST_DTV1000,
Lubomir Bulej7418f342005-11-08 21:38:34 -08001468 },{
1469 .subvendor = 0x1461,
1470 .subdevice = 0x000a,
1471 .card = CX88_BOARD_AVERTV_303,
Steven Toth0fa14aa2006-01-09 15:25:02 -02001472 },{
1473 .subvendor = 0x0070,
1474 .subdevice = 0x9200,
Steven Tothfb56cb62006-01-09 15:25:02 -02001475 .card = CX88_BOARD_HAUPPAUGE_NOVASE2_S1,
1476 },{
1477 .subvendor = 0x0070,
1478 .subdevice = 0x9201,
Steven Toth0fa14aa2006-01-09 15:25:02 -02001479 .card = CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1,
1480 },{
1481 .subvendor = 0x0070,
1482 .subdevice = 0x9202,
Steven Tothfb56cb62006-01-09 15:25:02 -02001483 .card = CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1,
Vadim Catana0e0351e2006-01-09 15:25:02 -02001484 },{
1485 .subvendor = 0x17de,
1486 .subdevice = 0x08b2,
1487 .card = CX88_BOARD_KWORLD_DVBS_100,
Steven Toth611900c2006-01-09 15:25:12 -02001488 },{
1489 .subvendor = 0x0070,
1490 .subdevice = 0x9400,
1491 .card = CX88_BOARD_HAUPPAUGE_HVR1100,
1492 },{
1493 .subvendor = 0x0070,
1494 .subdevice = 0x9402,
1495 .card = CX88_BOARD_HAUPPAUGE_HVR1100,
1496 },{
1497 .subvendor = 0x0070,
1498 .subdevice = 0x9800,
1499 .card = CX88_BOARD_HAUPPAUGE_HVR1100LP,
1500 },{
1501 .subvendor = 0x0070,
1502 .subdevice = 0x9802,
1503 .card = CX88_BOARD_HAUPPAUGE_HVR1100LP,
Steven Tothc432a072006-01-09 15:25:13 -02001504 },{
1505 .subvendor = 0x0070,
1506 .subdevice = 0x9001,
1507 .card = CX88_BOARD_HAUPPAUGE_DVB_T1,
Chris Pascoefc40b262006-01-09 15:25:35 -02001508 },{
1509 .subvendor = 0x1822,
1510 .subdevice = 0x0025,
1511 .card = CX88_BOARD_DNTV_LIVE_DVB_T_PRO,
Manenti Marcof39624f2006-01-09 15:32:45 -02001512 },{
Chris Pascoeb9f4ad52006-01-09 18:21:39 -02001513 .subvendor = 0x17de,
1514 .subdevice = 0x08a1,
1515 .card = CX88_BOARD_KWORLD_DVB_T_CX22702,
Chris Pascoe43eabb42006-01-09 18:21:28 -02001516 },{
1517 .subvendor = 0x18ac,
1518 .subdevice = 0xdb50,
1519 .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL,
Michael Krufky6bfb2e12006-01-11 22:52:28 -02001520 },{
1521 .subvendor = 0x18ac,
Michael Krufkyf74a6b32006-01-17 03:50:23 -02001522 .subdevice = 0xdb54,
1523 .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL,
1524 /* Re-branded DViCO: DigitalNow DVB-T Dual */
1525 },{
1526 .subvendor = 0x18ac,
Michael Krufky6bfb2e12006-01-11 22:52:28 -02001527 .subdevice = 0xdb11,
1528 .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS,
1529 /* Re-branded DViCO: UltraView DVB-T Plus */
Michael Krufky44256de2006-02-07 06:49:14 -02001530 },{
1531 .subvendor = 0x17de,
1532 .subdevice = 0x0840,
1533 .card = CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT,
Chris Pascoe780dfef2006-02-28 08:34:59 -03001534 },{
1535 .subvendor = 0x18ac,
1536 .subdevice = 0xdb40,
1537 .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID,
1538 },{
1539 .subvendor = 0x18ac,
1540 .subdevice = 0xdb44,
1541 .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID,
Rusty Scottda215d22006-04-07 02:21:31 -03001542 },{
1543 .subvendor = 0x7063,
1544 .subdevice = 0x5500,
1545 .card = CX88_BOARD_PCHDTV_HD5500,
Valentin Zagurab3038302006-04-13 12:41:43 -03001546 },{
1547 .subvendor = 0x17de,
1548 .subdevice = 0x0841,
1549 .card = CX88_BOARD_KWORLD_MCE200_DELUXE,
Michael Krufkyfc066472006-05-22 10:32:05 -03001550 },{
1551 .subvendor = 0x1822,
1552 .subdevice = 0x0019,
1553 .card = CX88_BOARD_DNTV_LIVE_DVB_T_PRO,
Angelo Marconia3124622006-05-09 18:27:48 -03001554 },{
1555 .subvendor = 0x1554,
1556 .subdevice = 0x4813,
1557 .card = CX88_BOARD_PIXELVIEW_PLAYTV_P7000,
Ricardo Cerqueira680543c2006-05-22 07:44:02 -03001558 },{
1559 .subvendor = 0x14f1,
1560 .subdevice = 0x0842,
Ricardo Cerqueirabe4f4512006-06-08 17:36:17 -03001561 .card = CX88_BOARD_NPGTECH_REALTV_TOP10FM,
Malcolm Valentine4bd6e9d2006-05-29 13:51:59 -03001562 },{
1563 .subvendor = 0x107d,
1564 .subdevice = 0x665e,
1565 .card = CX88_BOARD_WINFAST_DTV2000H,
Michael Krufky65271bf2006-06-21 16:04:33 -03001566 },{
1567 .subvendor = 0x18ac,
1568 .subdevice = 0xd800, /* FusionHDTV 3 Gold (original revision) */
1569 .card = CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q,
Saqeb Akhterc02a34f2006-06-29 20:29:33 -03001570 },{
1571 .subvendor = 0x14f1,
1572 .subdevice = 0x0084,
1573 .card = CX88_BOARD_GENIATECH_DVBS,
Eric Thomasad10c932006-08-08 09:10:04 -03001574 },{
1575 .subvendor = 0x0070,
1576 .subdevice = 0x1404,
1577 .card = CX88_BOARD_HAUPPAUGE_HVR3000,
Michael Krufky5dbaa2c2006-08-08 09:10:04 -03001578 },{
1579 .subvendor = 0x1461,
1580 .subdevice = 0xc111, /* AverMedia M150-D */
1581 /* This board is known to work with the ASUS PVR416 config */
1582 .card = CX88_BOARD_ASUS_PVR_416,
David Bussenschutt2acadef2006-08-08 09:10:05 -03001583 },{
1584 .subvendor = 0xc180,
1585 .subdevice = 0xc980,
1586 .card = CX88_BOARD_TE_DTV_250_OEM_SWANN,
Steven Tothaa481a62006-09-14 15:41:13 -03001587 },{
1588 .subvendor = 0x0070,
1589 .subdevice = 0x9600,
1590 .card = CX88_BOARD_HAUPPAUGE_HVR1300,
1591 },{
1592 .subvendor = 0x0070,
1593 .subdevice = 0x9601,
1594 .card = CX88_BOARD_HAUPPAUGE_HVR1300,
1595 },{
1596 .subvendor = 0x0070,
1597 .subdevice = 0x9602,
1598 .card = CX88_BOARD_HAUPPAUGE_HVR1300,
Michael Krufkydab489d2006-09-15 15:41:23 -03001599 },{
1600 .subvendor = 0x107d,
1601 .subdevice = 0x6632,
1602 .card = CX88_BOARD_LEADTEK_PVR2000,
Michael Krufky4508f592006-09-25 14:14:24 -03001603 },{
1604 .subvendor = 0x12ab,
1605 .subdevice = 0x2300, /* Club3D Zap TV2100 */
1606 .card = CX88_BOARD_KWORLD_DVB_T_CX22702,
Steven Toth3979ecc2006-09-29 22:37:07 -03001607 },{
1608 .subvendor = 0x0070,
1609 .subdevice = 0x9000,
1610 .card = CX88_BOARD_HAUPPAUGE_DVB_T1,
Steven Toth76dc82a2006-09-30 00:43:58 -03001611 },{
1612 .subvendor = 0x0070,
1613 .subdevice = 0x1400,
1614 .card = CX88_BOARD_HAUPPAUGE_HVR3000,
1615 },{
1616 .subvendor = 0x0070,
1617 .subdevice = 0x1401,
1618 .card = CX88_BOARD_HAUPPAUGE_HVR3000,
1619 },{
1620 .subvendor = 0x0070,
1621 .subdevice = 0x1402,
1622 .card = CX88_BOARD_HAUPPAUGE_HVR3000,
Chris Pascoeb9f4ad52006-01-09 18:21:39 -02001623 },
Linus Torvalds1da177e2005-04-16 15:20:36 -07001624};
1625const unsigned int cx88_idcount = ARRAY_SIZE(cx88_subids);
1626
1627/* ----------------------------------------------------------------------- */
1628/* some leadtek specific stuff */
1629
1630static void __devinit leadtek_eeprom(struct cx88_core *core, u8 *eeprom_data)
1631{
1632 /* This is just for the "Winfast 2000XP Expert" board ATM; I don't have data on
1633 * any others.
1634 *
1635 * Byte 0 is 1 on the NTSC board.
1636 */
1637
1638 if (eeprom_data[4] != 0x7d ||
1639 eeprom_data[5] != 0x10 ||
1640 eeprom_data[7] != 0x66) {
1641 printk(KERN_WARNING "%s: Leadtek eeprom invalid.\n",
1642 core->name);
1643 return;
1644 }
1645
1646 core->has_radio = 1;
1647 core->tuner_type = (eeprom_data[6] == 0x13) ? 43 : 38;
1648
1649 printk(KERN_INFO "%s: Leadtek Winfast 2000XP Expert config: "
1650 "tuner=%d, eeprom[0]=0x%02x\n",
1651 core->name, core->tuner_type, eeprom_data[0]);
1652}
1653
Linus Torvalds1da177e2005-04-16 15:20:36 -07001654static void hauppauge_eeprom(struct cx88_core *core, u8 *eeprom_data)
1655{
1656 struct tveeprom tv;
1657
Mauro Carvalho Chehab0f97a932005-09-09 13:04:05 -07001658 tveeprom_hauppauge_analog(&core->i2c_client, &tv, eeprom_data);
Linus Torvalds1da177e2005-04-16 15:20:36 -07001659 core->tuner_type = tv.tuner_type;
Steven Toth0345c382006-01-09 15:25:17 -02001660 core->tuner_formats = tv.tuner_formats;
Linus Torvalds1da177e2005-04-16 15:20:36 -07001661 core->has_radio = tv.has_radio;
Linus Torvalds1da177e2005-04-16 15:20:36 -07001662
1663 /* Make sure we support the board model */
Steven Toth3ca0ea92005-12-01 00:51:27 -08001664 switch (tv.model)
1665 {
Steven Toth76dc82a2006-09-30 00:43:58 -03001666 case 14009: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in) */
1667 case 14019: /* WinTV-HVR3000 (Retail, IR Blaster, b/panel video, 3.5mm audio in) */
1668 case 14029: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in - 880 bridge) */
1669 case 14109: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in - low profile) */
1670 case 14129: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in - 880 bridge - LP) */
1671 case 14559: /* WinTV-HVR3000 (OEM, no IR, b/panel video, 3.5mm audio in) */
Eric Thomasad10c932006-08-08 09:10:04 -03001672 case 14569: /* WinTV-HVR3000 (OEM, no IR, no back panel video) */
Steven Toth76dc82a2006-09-30 00:43:58 -03001673 case 14659: /* WinTV-HVR3000 (OEM, no IR, b/panel video, RCA audio in - Low profile) */
1674 case 14669: /* WinTV-HVR3000 (OEM, no IR, no b/panel video - Low profile) */
Steven Toth0345c382006-01-09 15:25:17 -02001675 case 28552: /* WinTV-PVR 'Roslyn' (No IR) */
Ian Pickworth42d2b6e2006-01-23 17:11:07 -02001676 case 34519: /* WinTV-PCI-FM */
Steven Toth759324c2005-12-01 00:51:26 -08001677 case 90002: /* Nova-T-PCI (9002) */
Steven Toth0fe22862005-12-01 00:51:41 -08001678 case 92001: /* Nova-S-Plus (Video and IR) */
1679 case 92002: /* Nova-S-Plus (Video and IR) */
1680 case 90003: /* Nova-T-PCI (9002 No RF out) */
Steven Toth759324c2005-12-01 00:51:26 -08001681 case 90500: /* Nova-T-PCI (oem) */
1682 case 90501: /* Nova-T-PCI (oem/IR) */
Steven Toth3ca0ea92005-12-01 00:51:27 -08001683 case 92000: /* Nova-SE2 (OEM, No Video or IR) */
Steven Toth611900c2006-01-09 15:25:12 -02001684 case 94009: /* WinTV-HVR1100 (Video and IR Retail) */
1685 case 94501: /* WinTV-HVR1100 (Video and IR OEM) */
Steven Tothaa481a62006-09-14 15:41:13 -03001686 case 96009: /* WinTV-HVR1300 (PAL Video, MPEG Video and IR RX) */
1687 case 96019: /* WinTV-HVR1300 (PAL Video, MPEG Video and IR RX/TX) */
1688 case 96559: /* WinTV-HVR1300 (PAL Video, MPEG Video no IR) */
1689 case 96569: /* WinTV-HVR1300 () */
1690 case 96659: /* WinTV-HVR1300 () */
Steven Toth611900c2006-01-09 15:25:12 -02001691 case 98559: /* WinTV-HVR1100LP (Video no IR, Retail - Low Profile) */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001692 /* known */
1693 break;
1694 default:
1695 printk("%s: warning: unknown hauppauge model #%d\n",
Steven Toth3ca0ea92005-12-01 00:51:27 -08001696 core->name, tv.model);
Linus Torvalds1da177e2005-04-16 15:20:36 -07001697 break;
1698 }
1699
Steven Toth3ca0ea92005-12-01 00:51:27 -08001700 printk(KERN_INFO "%s: hauppauge eeprom: model=%d\n",
1701 core->name, tv.model);
Linus Torvalds1da177e2005-04-16 15:20:36 -07001702}
1703
1704/* ----------------------------------------------------------------------- */
1705/* some GDI (was: Modular Technology) specific stuff */
1706
1707static struct {
1708 int id;
1709 int fm;
1710 char *name;
1711} gdi_tuner[] = {
1712 [ 0x01 ] = { .id = TUNER_ABSENT,
1713 .name = "NTSC_M" },
1714 [ 0x02 ] = { .id = TUNER_ABSENT,
1715 .name = "PAL_B" },
1716 [ 0x03 ] = { .id = TUNER_ABSENT,
1717 .name = "PAL_I" },
1718 [ 0x04 ] = { .id = TUNER_ABSENT,
1719 .name = "PAL_D" },
1720 [ 0x05 ] = { .id = TUNER_ABSENT,
1721 .name = "SECAM" },
1722
1723 [ 0x10 ] = { .id = TUNER_ABSENT,
1724 .fm = 1,
1725 .name = "TEMIC_4049" },
1726 [ 0x11 ] = { .id = TUNER_TEMIC_4136FY5,
1727 .name = "TEMIC_4136" },
1728 [ 0x12 ] = { .id = TUNER_ABSENT,
1729 .name = "TEMIC_4146" },
1730
1731 [ 0x20 ] = { .id = TUNER_PHILIPS_FQ1216ME,
1732 .fm = 1,
1733 .name = "PHILIPS_FQ1216_MK3" },
1734 [ 0x21 ] = { .id = TUNER_ABSENT, .fm = 1,
1735 .name = "PHILIPS_FQ1236_MK3" },
1736 [ 0x22 ] = { .id = TUNER_ABSENT,
1737 .name = "PHILIPS_FI1236_MK3" },
1738 [ 0x23 ] = { .id = TUNER_ABSENT,
1739 .name = "PHILIPS_FI1216_MK3" },
1740};
1741
1742static void gdi_eeprom(struct cx88_core *core, u8 *eeprom_data)
1743{
1744 char *name = (eeprom_data[0x0d] < ARRAY_SIZE(gdi_tuner))
1745 ? gdi_tuner[eeprom_data[0x0d]].name : NULL;
1746
1747 printk(KERN_INFO "%s: GDI: tuner=%s\n", core->name,
1748 name ? name : "unknown");
1749 if (NULL == name)
1750 return;
1751 core->tuner_type = gdi_tuner[eeprom_data[0x0d]].id;
1752 core->has_radio = gdi_tuner[eeprom_data[0x0d]].fm;
1753}
1754
1755/* ----------------------------------------------------------------------- */
Chris Pascoe780dfef2006-02-28 08:34:59 -03001756/* some DViCO specific stuff */
1757
1758static void dvico_fusionhdtv_hybrid_init(struct cx88_core *core)
1759{
1760 struct i2c_msg msg = { .addr = 0x45, .flags = 0 };
1761 int i, err;
Chris Pascoe69b27e32006-02-28 20:23:11 -03001762 static u8 init_bufs[13][5] = {
Chris Pascoe780dfef2006-02-28 08:34:59 -03001763 { 0x10, 0x00, 0x20, 0x01, 0x03 },
1764 { 0x10, 0x10, 0x01, 0x00, 0x21 },
1765 { 0x10, 0x10, 0x10, 0x00, 0xCA },
1766 { 0x10, 0x10, 0x12, 0x00, 0x08 },
1767 { 0x10, 0x10, 0x13, 0x00, 0x0A },
1768 { 0x10, 0x10, 0x16, 0x01, 0xC0 },
1769 { 0x10, 0x10, 0x22, 0x01, 0x3D },
1770 { 0x10, 0x10, 0x73, 0x01, 0x2E },
1771 { 0x10, 0x10, 0x72, 0x00, 0xC5 },
1772 { 0x10, 0x10, 0x71, 0x01, 0x97 },
1773 { 0x10, 0x10, 0x70, 0x00, 0x0F },
1774 { 0x10, 0x10, 0xB0, 0x00, 0x01 },
1775 { 0x03, 0x0C },
1776 };
1777
1778 for (i = 0; i < 13; i++) {
1779 msg.buf = init_bufs[i];
1780 msg.len = (i != 12 ? 5 : 2);
1781 err = i2c_transfer(&core->i2c_adap, &msg, 1);
1782 if (err != 1) {
1783 printk("dvico_fusionhdtv_hybrid_init buf %d failed (err = %d)!\n", i, err);
1784 return;
1785 }
1786 }
1787}
1788
1789/* ----------------------------------------------------------------------- */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001790
1791void cx88_card_list(struct cx88_core *core, struct pci_dev *pci)
1792{
1793 int i;
1794
1795 if (0 == pci->subsystem_vendor &&
1796 0 == pci->subsystem_device) {
1797 printk("%s: Your board has no valid PCI Subsystem ID and thus can't\n"
1798 "%s: be autodetected. Please pass card=<n> insmod option to\n"
1799 "%s: workaround that. Redirect complaints to the vendor of\n"
1800 "%s: the TV card. Best regards,\n"
1801 "%s: -- tux\n",
1802 core->name,core->name,core->name,core->name,core->name);
1803 } else {
1804 printk("%s: Your board isn't known (yet) to the driver. You can\n"
1805 "%s: try to pick one of the existing card configs via\n"
1806 "%s: card=<n> insmod option. Updating to the latest\n"
1807 "%s: version might help as well.\n",
1808 core->name,core->name,core->name,core->name);
1809 }
1810 printk("%s: Here is a list of valid choices for the card=<n> insmod option:\n",
1811 core->name);
1812 for (i = 0; i < cx88_bcount; i++)
1813 printk("%s: card=%d -> %s\n",
1814 core->name, i, cx88_boards[i].name);
1815}
1816
Steven Tothaa481a62006-09-14 15:41:13 -03001817void cx88_card_setup_pre_i2c(struct cx88_core *core)
1818{
1819 switch (core->board) {
1820 case CX88_BOARD_HAUPPAUGE_HVR1300:
1821 /* Bring the 702 demod up before i2c scanning/attach or devices are hidden */
1822 /* We leave here with the 702 on the bus */
1823 cx_write(MO_GP0_IO, 0x0000e780);
1824 udelay(1000);
1825 cx_clear(MO_GP0_IO, 0x00000080);
1826 udelay(50);
1827 cx_set(MO_GP0_IO, 0x00000080); /* 702 out of reset */
1828 udelay(1000);
1829 break;
1830 }
1831}
1832
Linus Torvalds1da177e2005-04-16 15:20:36 -07001833void cx88_card_setup(struct cx88_core *core)
1834{
Steven Toth3ca0ea92005-12-01 00:51:27 -08001835 static u8 eeprom[256];
Linus Torvalds1da177e2005-04-16 15:20:36 -07001836
1837 if (0 == core->i2c_rc) {
1838 core->i2c_client.addr = 0xa0 >> 1;
1839 tveeprom_read(&core->i2c_client,eeprom,sizeof(eeprom));
1840 }
1841
1842 switch (core->board) {
1843 case CX88_BOARD_HAUPPAUGE:
1844 case CX88_BOARD_HAUPPAUGE_ROSLYN:
1845 if (0 == core->i2c_rc)
1846 hauppauge_eeprom(core,eeprom+8);
1847 break;
1848 case CX88_BOARD_GDI:
1849 if (0 == core->i2c_rc)
1850 gdi_eeprom(core,eeprom);
1851 break;
1852 case CX88_BOARD_WINFAST2000XP_EXPERT:
1853 if (0 == core->i2c_rc)
1854 leadtek_eeprom(core,eeprom);
1855 break;
Steven Toth0fa14aa2006-01-09 15:25:02 -02001856 case CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1:
1857 case CX88_BOARD_HAUPPAUGE_NOVASE2_S1:
Linus Torvalds1da177e2005-04-16 15:20:36 -07001858 case CX88_BOARD_HAUPPAUGE_DVB_T1:
Steven Toth611900c2006-01-09 15:25:12 -02001859 case CX88_BOARD_HAUPPAUGE_HVR1100:
1860 case CX88_BOARD_HAUPPAUGE_HVR1100LP:
Eric Thomasad10c932006-08-08 09:10:04 -03001861 case CX88_BOARD_HAUPPAUGE_HVR3000:
Steven Tothaa481a62006-09-14 15:41:13 -03001862 case CX88_BOARD_HAUPPAUGE_HVR1300:
Linus Torvalds1da177e2005-04-16 15:20:36 -07001863 if (0 == core->i2c_rc)
Steven Toth3ca0ea92005-12-01 00:51:27 -08001864 hauppauge_eeprom(core,eeprom);
Linus Torvalds1da177e2005-04-16 15:20:36 -07001865 break;
Vadim Catana0e0351e2006-01-09 15:25:02 -02001866 case CX88_BOARD_KWORLD_DVBS_100:
1867 cx_write(MO_GP0_IO, 0x000007f8);
1868 cx_write(MO_GP1_IO, 0x00000001);
1869 break;
Chris Pascoed536e9c2006-08-10 03:22:21 -03001870 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL:
1871 /* GPIO0:6 is hooked to FX2 reset pin */
1872 cx_set(MO_GP0_IO, 0x00004040);
1873 cx_clear(MO_GP0_IO, 0x00000040);
1874 msleep(1000);
1875 cx_set(MO_GP0_IO, 0x00004040);
1876 /* FALLTHROUGH */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001877 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1:
1878 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS:
Chris Pascoe780dfef2006-02-28 08:34:59 -03001879 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID:
Linus Torvalds1da177e2005-04-16 15:20:36 -07001880 /* GPIO0:0 is hooked to mt352 reset pin */
1881 cx_set(MO_GP0_IO, 0x00000101);
1882 cx_clear(MO_GP0_IO, 0x00000001);
1883 msleep(1);
1884 cx_set(MO_GP0_IO, 0x00000101);
Chris Pascoe780dfef2006-02-28 08:34:59 -03001885 if (0 == core->i2c_rc &&
1886 core->board == CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID)
1887 dvico_fusionhdtv_hybrid_init(core);
Linus Torvalds1da177e2005-04-16 15:20:36 -07001888 break;
1889 case CX88_BOARD_KWORLD_DVB_T:
1890 case CX88_BOARD_DNTV_LIVE_DVB_T:
1891 cx_set(MO_GP0_IO, 0x00000707);
1892 cx_set(MO_GP2_IO, 0x00000101);
1893 cx_clear(MO_GP2_IO, 0x00000001);
1894 msleep(1);
1895 cx_clear(MO_GP0_IO, 0x00000007);
1896 cx_set(MO_GP2_IO, 0x00000101);
1897 break;
Chris Pascoefc40b262006-01-09 15:25:35 -02001898 case CX88_BOARD_DNTV_LIVE_DVB_T_PRO:
1899 cx_write(MO_GP0_IO, 0x00080808);
1900 break;
Kirk Lapraye976f9372005-11-08 21:37:04 -08001901 case CX88_BOARD_ATI_HDTVWONDER:
1902 if (0 == core->i2c_rc) {
1903 /* enable tuner */
1904 int i;
Michael Krufkyb9ee9ad2006-02-27 00:09:14 -03001905 static const u8 buffer [] = { 0x10,0x12,0x13,0x04,0x16,0x00,0x14,0x04,0x017,0x00 };
Kirk Lapraye976f9372005-11-08 21:37:04 -08001906 core->i2c_client.addr = 0x0a;
Kirk Lapraye976f9372005-11-08 21:37:04 -08001907
Kirk Laprayfde6d312005-11-08 21:38:18 -08001908 for (i = 0; i < 5; i++)
Kirk Lapraye976f9372005-11-08 21:37:04 -08001909 if (2 != i2c_master_send(&core->i2c_client,&buffer[i*2],2))
1910 printk(KERN_WARNING "%s: Unable to enable tuner(%i).\n",
1911 core->name, i);
1912 }
1913 break;
Linus Torvalds1da177e2005-04-16 15:20:36 -07001914 }
1915 if (cx88_boards[core->board].radio.type == CX88_RADIO)
1916 core->has_radio = 1;
1917}
1918
1919/* ------------------------------------------------------------------ */
1920
1921EXPORT_SYMBOL(cx88_boards);
Linus Torvalds1da177e2005-04-16 15:20:36 -07001922
1923/*
1924 * Local variables:
1925 * c-basic-offset: 8
1926 * End:
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -07001927 * kate: eol "unix"; indent-width 3; remove-trailing-space on; replace-trailing-space-save on; tab-width 8; replace-tabs off; space-indent off; mixed-indent off
Linus Torvalds1da177e2005-04-16 15:20:36 -07001928 */