blob: 13a8bb551ffff9e461e83074e323aa84935ba464 [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?
Michael Krufkyfe16af22006-10-16 20:47:14 -0300360 .extadc = 1,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700361 }},
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800362 .radio = {
363 .type = CX88_RADIO,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700364 .gpio0 = 0x0000fde2,
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800365 },
Michael Krufky48d5e802006-09-25 14:09:10 -0300366 .mpeg = CX88_MPEG_BLACKBIRD,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700367 },
368 [CX88_BOARD_MSI_TVANYWHERE] = {
369 .name = "MSI TV-@nywhere",
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700370 .tuner_type = TUNER_MT2032,
371 .radio_type = UNSET,
372 .tuner_addr = ADDR_UNSET,
373 .radio_addr = ADDR_UNSET,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700374 .tda9887_conf = TDA9887_PRESENT,
375 .input = {{
376 .type = CX88_VMUX_TELEVISION,
377 .vmux = 0,
378 .gpio0 = 0x00000fbf,
379 .gpio2 = 0x0000fc08,
380 },{
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800381 .type = CX88_VMUX_COMPOSITE1,
382 .vmux = 1,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700383 .gpio0 = 0x00000fbf,
384 .gpio2 = 0x0000fc68,
385 },{
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800386 .type = CX88_VMUX_SVIDEO,
387 .vmux = 2,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700388 .gpio0 = 0x00000fbf,
389 .gpio2 = 0x0000fc68,
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800390 }},
Linus Torvalds1da177e2005-04-16 15:20:36 -0700391 },
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800392 [CX88_BOARD_KWORLD_DVB_T] = {
393 .name = "KWorld/VStream XPert DVB-T",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700394 .tuner_type = TUNER_ABSENT,
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700395 .radio_type = UNSET,
396 .tuner_addr = ADDR_UNSET,
397 .radio_addr = ADDR_UNSET,
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800398 .input = {{
399 .type = CX88_VMUX_COMPOSITE1,
400 .vmux = 1,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700401 .gpio0 = 0x0700,
402 .gpio2 = 0x0101,
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800403 },{
404 .type = CX88_VMUX_SVIDEO,
405 .vmux = 2,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700406 .gpio0 = 0x0700,
407 .gpio2 = 0x0101,
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800408 }},
Michael Krufky48d5e802006-09-25 14:09:10 -0300409 .mpeg = CX88_MPEG_DVB,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700410 },
411 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1] = {
Mauro Carvalho Chehaba82decf2005-07-07 17:58:36 -0700412 .name = "DViCO FusionHDTV DVB-T1",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700413 .tuner_type = TUNER_ABSENT, /* No analog tuner */
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700414 .radio_type = UNSET,
415 .tuner_addr = ADDR_UNSET,
416 .radio_addr = ADDR_UNSET,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700417 .input = {{
418 .type = CX88_VMUX_COMPOSITE1,
419 .vmux = 1,
420 .gpio0 = 0x000027df,
Michael Krufky47ee2f32006-06-06 15:51:38 -0300421 },{
Linus Torvalds1da177e2005-04-16 15:20:36 -0700422 .type = CX88_VMUX_SVIDEO,
423 .vmux = 2,
424 .gpio0 = 0x000027df,
425 }},
Michael Krufky48d5e802006-09-25 14:09:10 -0300426 .mpeg = CX88_MPEG_DVB,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700427 },
428 [CX88_BOARD_KWORLD_LTV883] = {
429 .name = "KWorld LTV883RF",
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700430 .tuner_type = TUNER_TNF_8831BGFF,
431 .radio_type = UNSET,
432 .tuner_addr = ADDR_UNSET,
433 .radio_addr = ADDR_UNSET,
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800434 .input = {{
435 .type = CX88_VMUX_TELEVISION,
436 .vmux = 0,
437 .gpio0 = 0x07f8,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700438 },{
439 .type = CX88_VMUX_DEBUG,
440 .vmux = 0,
441 .gpio0 = 0x07f9, // mono from tuner chip
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800442 },{
443 .type = CX88_VMUX_COMPOSITE1,
444 .vmux = 1,
445 .gpio0 = 0x000007fa,
446 },{
447 .type = CX88_VMUX_SVIDEO,
448 .vmux = 2,
449 .gpio0 = 0x000007fa,
450 }},
451 .radio = {
452 .type = CX88_RADIO,
453 .gpio0 = 0x000007f8,
454 },
Linus Torvalds1da177e2005-04-16 15:20:36 -0700455 },
Mauro Carvalho Chehaba82decf2005-07-07 17:58:36 -0700456 [CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q] = {
457 .name = "DViCO FusionHDTV 3 Gold-Q",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700458 .tuner_type = TUNER_MICROTUNE_4042FI5,
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700459 .radio_type = UNSET,
460 .tuner_addr = ADDR_UNSET,
461 .radio_addr = ADDR_UNSET,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700462 /*
463 GPIO[0] resets DT3302 DTV receiver
464 0 - reset asserted
465 1 - normal operation
466 GPIO[1] mutes analog audio output connector
467 0 - enable selected source
468 1 - mute
469 GPIO[2] selects source for analog audio output connector
470 0 - analog audio input connector on tab
471 1 - analog DAC output from CX23881 chip
472 GPIO[3] selects RF input connector on tuner module
473 0 - RF connector labeled CABLE
474 1 - RF connector labeled ANT
Mauro Carvalho Chehaba82decf2005-07-07 17:58:36 -0700475 GPIO[4] selects high RF for QAM256 mode
476 0 - normal RF
477 1 - high RF
Linus Torvalds1da177e2005-04-16 15:20:36 -0700478 */
479 .input = {{
480 .type = CX88_VMUX_TELEVISION,
481 .vmux = 0,
482 .gpio0 = 0x0f0d,
483 },{
484 .type = CX88_VMUX_CABLE,
485 .vmux = 0,
486 .gpio0 = 0x0f05,
487 },{
488 .type = CX88_VMUX_COMPOSITE1,
489 .vmux = 1,
490 .gpio0 = 0x0f00,
491 },{
492 .type = CX88_VMUX_SVIDEO,
493 .vmux = 2,
494 .gpio0 = 0x0f00,
495 }},
Michael Krufky48d5e802006-09-25 14:09:10 -0300496 .mpeg = CX88_MPEG_DVB,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700497 },
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800498 [CX88_BOARD_HAUPPAUGE_DVB_T1] = {
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700499 .name = "Hauppauge Nova-T DVB-T",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700500 .tuner_type = TUNER_ABSENT,
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700501 .radio_type = UNSET,
502 .tuner_addr = ADDR_UNSET,
503 .radio_addr = ADDR_UNSET,
504 .input = {{
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800505 .type = CX88_VMUX_DVB,
506 .vmux = 0,
507 }},
Michael Krufky48d5e802006-09-25 14:09:10 -0300508 .mpeg = CX88_MPEG_DVB,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700509 },
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800510 [CX88_BOARD_CONEXANT_DVB_T1] = {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700511 .name = "Conexant DVB-T reference design",
512 .tuner_type = TUNER_ABSENT,
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700513 .radio_type = UNSET,
514 .tuner_addr = ADDR_UNSET,
515 .radio_addr = ADDR_UNSET,
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800516 .input = {{
517 .type = CX88_VMUX_DVB,
518 .vmux = 0,
519 }},
Michael Krufky48d5e802006-09-25 14:09:10 -0300520 .mpeg = CX88_MPEG_DVB,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700521 },
522 [CX88_BOARD_PROVIDEO_PV259] = {
523 .name = "Provideo PV259",
524 .tuner_type = TUNER_PHILIPS_FQ1216ME,
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700525 .radio_type = UNSET,
526 .tuner_addr = ADDR_UNSET,
527 .radio_addr = ADDR_UNSET,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700528 .input = {{
529 .type = CX88_VMUX_TELEVISION,
530 .vmux = 0,
Michael Krufkyf24546a2006-10-16 16:51:11 -0300531 .extadc = 1,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700532 }},
Michael Krufky48d5e802006-09-25 14:09:10 -0300533 .mpeg = CX88_MPEG_BLACKBIRD,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700534 },
535 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS] = {
Mauro Carvalho Chehaba82decf2005-07-07 17:58:36 -0700536 .name = "DViCO FusionHDTV DVB-T Plus",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700537 .tuner_type = TUNER_ABSENT, /* No analog tuner */
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700538 .radio_type = UNSET,
539 .tuner_addr = ADDR_UNSET,
540 .radio_addr = ADDR_UNSET,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700541 .input = {{
542 .type = CX88_VMUX_COMPOSITE1,
543 .vmux = 1,
544 .gpio0 = 0x000027df,
Michael Krufky47ee2f32006-06-06 15:51:38 -0300545 },{
Linus Torvalds1da177e2005-04-16 15:20:36 -0700546 .type = CX88_VMUX_SVIDEO,
547 .vmux = 2,
548 .gpio0 = 0x000027df,
549 }},
Michael Krufky48d5e802006-09-25 14:09:10 -0300550 .mpeg = CX88_MPEG_DVB,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700551 },
552 [CX88_BOARD_DNTV_LIVE_DVB_T] = {
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800553 .name = "digitalnow DNTV Live! DVB-T",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700554 .tuner_type = TUNER_ABSENT,
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700555 .radio_type = UNSET,
556 .tuner_addr = ADDR_UNSET,
557 .radio_addr = ADDR_UNSET,
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800558 .input = {{
Linus Torvalds1da177e2005-04-16 15:20:36 -0700559 .type = CX88_VMUX_COMPOSITE1,
560 .vmux = 1,
561 .gpio0 = 0x00000700,
562 .gpio2 = 0x00000101,
563 },{
564 .type = CX88_VMUX_SVIDEO,
565 .vmux = 2,
566 .gpio0 = 0x00000700,
567 .gpio2 = 0x00000101,
568 }},
Michael Krufky48d5e802006-09-25 14:09:10 -0300569 .mpeg = CX88_MPEG_DVB,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700570 },
571 [CX88_BOARD_PCHDTV_HD3000] = {
572 .name = "pcHDTV HD3000 HDTV",
Trent Piepho9175b852006-04-10 09:40:37 -0300573 .tuner_type = TUNER_THOMSON_DTT761X,
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700574 .radio_type = UNSET,
575 .tuner_addr = ADDR_UNSET,
576 .radio_addr = ADDR_UNSET,
Mauro Carvalho Chehabe4f5c822005-12-04 12:41:54 -0200577 .tda9887_conf = TDA9887_PRESENT,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700578 .input = {{
579 .type = CX88_VMUX_TELEVISION,
580 .vmux = 0,
581 .gpio0 = 0x00008484,
582 .gpio1 = 0x00000000,
583 .gpio2 = 0x00000000,
584 .gpio3 = 0x00000000,
585 },{
586 .type = CX88_VMUX_COMPOSITE1,
587 .vmux = 1,
588 .gpio0 = 0x00008400,
589 .gpio1 = 0x00000000,
590 .gpio2 = 0x00000000,
591 .gpio3 = 0x00000000,
592 },{
593 .type = CX88_VMUX_SVIDEO,
594 .vmux = 2,
595 .gpio0 = 0x00008400,
596 .gpio1 = 0x00000000,
597 .gpio2 = 0x00000000,
598 .gpio3 = 0x00000000,
599 }},
600 .radio = {
601 .type = CX88_RADIO,
602 .vmux = 2,
603 .gpio0 = 0x00008400,
604 .gpio1 = 0x00000000,
605 .gpio2 = 0x00000000,
606 .gpio3 = 0x00000000,
607 },
Michael Krufky48d5e802006-09-25 14:09:10 -0300608 .mpeg = CX88_MPEG_DVB,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700609 },
610 [CX88_BOARD_HAUPPAUGE_ROSLYN] = {
611 // entry added by Kaustubh D. Bhalerao <bhalerao.1@osu.edu>
612 // GPIO values obtained from regspy, courtesy Sean Covel
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700613 .name = "Hauppauge WinTV 28xxx (Roslyn) models",
614 .tuner_type = UNSET,
615 .radio_type = UNSET,
616 .tuner_addr = ADDR_UNSET,
617 .radio_addr = ADDR_UNSET,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700618 .input = {{
619 .type = CX88_VMUX_TELEVISION,
620 .vmux = 0,
Steven Toth0345c382006-01-09 15:25:17 -0200621 .gpio0 = 0xed1a,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700622 .gpio2 = 0x00ff,
623 },{
624 .type = CX88_VMUX_DEBUG,
625 .vmux = 0,
Steven Toth0345c382006-01-09 15:25:17 -0200626 .gpio0 = 0xff01,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700627 },{
628 .type = CX88_VMUX_COMPOSITE1,
629 .vmux = 1,
630 .gpio0 = 0xff02,
631 },{
632 .type = CX88_VMUX_SVIDEO,
633 .vmux = 2,
634 .gpio0 = 0xed92,
635 .gpio2 = 0x00ff,
636 }},
637 .radio = {
638 .type = CX88_RADIO,
639 .gpio0 = 0xed96,
640 .gpio2 = 0x00ff,
641 },
Michael Krufky48d5e802006-09-25 14:09:10 -0300642 .mpeg = CX88_MPEG_BLACKBIRD,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700643 },
644 [CX88_BOARD_DIGITALLOGIC_MEC] = {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700645 .name = "Digital-Logic MICROSPACE Entertainment Center (MEC)",
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700646 .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
647 .radio_type = UNSET,
648 .tuner_addr = ADDR_UNSET,
649 .radio_addr = ADDR_UNSET,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700650 .tda9887_conf = TDA9887_PRESENT,
651 .input = {{
652 .type = CX88_VMUX_TELEVISION,
653 .vmux = 0,
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700654 .gpio0 = 0x00009d80,
Michael Krufkyf24546a2006-10-16 16:51:11 -0300655 .extadc = 1,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700656 },{
657 .type = CX88_VMUX_COMPOSITE1,
658 .vmux = 1,
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700659 .gpio0 = 0x00009d76,
Michael Krufkyf24546a2006-10-16 16:51:11 -0300660 .extadc = 1,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700661 },{
662 .type = CX88_VMUX_SVIDEO,
663 .vmux = 2,
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700664 .gpio0 = 0x00009d76,
Michael Krufkyf24546a2006-10-16 16:51:11 -0300665 .extadc = 1,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700666 }},
667 .radio = {
668 .type = CX88_RADIO,
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700669 .gpio0 = 0x00009d00,
Michael Krufkyf24546a2006-10-16 16:51:11 -0300670 .extadc = 1,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700671 },
Michael Krufky48d5e802006-09-25 14:09:10 -0300672 .mpeg = CX88_MPEG_BLACKBIRD,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700673 },
674 [CX88_BOARD_IODATA_GVBCTV7E] = {
675 .name = "IODATA GV/BCTV7E",
676 .tuner_type = TUNER_PHILIPS_FQ1286,
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700677 .radio_type = UNSET,
678 .tuner_addr = ADDR_UNSET,
679 .radio_addr = ADDR_UNSET,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700680 .tda9887_conf = TDA9887_PRESENT,
681 .input = {{
682 .type = CX88_VMUX_TELEVISION,
683 .vmux = 1,
684 .gpio1 = 0x0000e03f,
685 },{
686 .type = CX88_VMUX_COMPOSITE1,
687 .vmux = 2,
688 .gpio1 = 0x0000e07f,
689 },{
690 .type = CX88_VMUX_SVIDEO,
691 .vmux = 3,
692 .gpio1 = 0x0000e07f,
693 }}
694 },
Manuel Capinha239df2e2005-06-23 22:04:53 -0700695 [CX88_BOARD_PIXELVIEW_PLAYTV_ULTRA_PRO] = {
696 .name = "PixelView PlayTV Ultra Pro (Stereo)",
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700697 /* May be also TUNER_YMEC_TVF_5533MF for NTSC/M or PAL/M */
698 .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
Mauro Carvalho Chehabc5287ba2005-07-15 03:56:28 -0700699 .radio_type = UNSET,
700 .tuner_addr = ADDR_UNSET,
701 .radio_addr = ADDR_UNSET,
Manuel Capinha239df2e2005-06-23 22:04:53 -0700702 .input = {{
703 .type = CX88_VMUX_TELEVISION,
704 .vmux = 0,
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700705 .gpio0 = 0xbf61, /* internal decoder */
Manuel Capinha239df2e2005-06-23 22:04:53 -0700706 },{
707 .type = CX88_VMUX_COMPOSITE1,
708 .vmux = 1,
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700709 .gpio0 = 0xbf63,
Manuel Capinha239df2e2005-06-23 22:04:53 -0700710 },{
711 .type = CX88_VMUX_SVIDEO,
712 .vmux = 2,
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700713 .gpio0 = 0xbf63,
Manuel Capinha239df2e2005-06-23 22:04:53 -0700714 }},
715 .radio = {
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700716 .type = CX88_RADIO,
717 .gpio0 = 0xbf60,
718 },
Manuel Capinha239df2e2005-06-23 22:04:53 -0700719 },
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800720 [CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_T] = {
Mauro Carvalho Chehaba82decf2005-07-07 17:58:36 -0700721 .name = "DViCO FusionHDTV 3 Gold-T",
Michael Krufky83ac87222006-01-09 15:25:29 -0200722 .tuner_type = TUNER_THOMSON_DTT761X,
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -0700723 .radio_type = UNSET,
724 .tuner_addr = ADDR_UNSET,
725 .radio_addr = ADDR_UNSET,
Mauro Carvalho Chehabe4f5c822005-12-04 12:41:54 -0200726 .tda9887_conf = TDA9887_PRESENT,
Mauro Carvalho Chehaba82decf2005-07-07 17:58:36 -0700727 .input = {{
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800728 .type = CX88_VMUX_TELEVISION,
729 .vmux = 0,
730 .gpio0 = 0x97ed,
731 },{
732 .type = CX88_VMUX_COMPOSITE1,
733 .vmux = 1,
734 .gpio0 = 0x97e9,
735 },{
736 .type = CX88_VMUX_SVIDEO,
737 .vmux = 2,
738 .gpio0 = 0x97e9,
739 }},
Michael Krufky48d5e802006-09-25 14:09:10 -0300740 .mpeg = CX88_MPEG_DVB,
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800741 },
742 [CX88_BOARD_ADSTECH_DVB_T_PCI] = {
743 .name = "ADS Tech Instant TV DVB-T PCI",
Mauro Carvalho Chehaba82decf2005-07-07 17:58:36 -0700744 .tuner_type = TUNER_ABSENT,
745 .radio_type = UNSET,
746 .tuner_addr = ADDR_UNSET,
747 .radio_addr = ADDR_UNSET,
748 .input = {{
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800749 .type = CX88_VMUX_COMPOSITE1,
750 .vmux = 1,
Mauro Carvalho Chehaba82decf2005-07-07 17:58:36 -0700751 .gpio0 = 0x0700,
752 .gpio2 = 0x0101,
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800753 },{
754 .type = CX88_VMUX_SVIDEO,
755 .vmux = 2,
Mauro Carvalho Chehaba82decf2005-07-07 17:58:36 -0700756 .gpio0 = 0x0700,
757 .gpio2 = 0x0101,
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800758 }},
Michael Krufky48d5e802006-09-25 14:09:10 -0300759 .mpeg = CX88_MPEG_DVB,
Mauro Carvalho Chehaba82decf2005-07-07 17:58:36 -0700760 },
Michael Krufkye057ee12005-07-07 17:58:40 -0700761 [CX88_BOARD_TERRATEC_CINERGY_1400_DVB_T1] = {
762 .name = "TerraTec Cinergy 1400 DVB-T",
763 .tuner_type = TUNER_ABSENT,
764 .input = {{
765 .type = CX88_VMUX_DVB,
766 .vmux = 0,
Heiko Baums05eda242007-01-21 05:58:19 -0300767 },{
768 .type = CX88_VMUX_COMPOSITE1,
769 .vmux = 2,
770 },{
771 .type = CX88_VMUX_SVIDEO,
772 .vmux = 2,
Michael Krufkye057ee12005-07-07 17:58:40 -0700773 }},
Michael Krufky48d5e802006-09-25 14:09:10 -0300774 .mpeg = CX88_MPEG_DVB,
Michael Krufkye057ee12005-07-07 17:58:40 -0700775 },
Michael Krufky9fef07c2005-07-31 22:34:46 -0700776 [CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD] = {
777 .name = "DViCO FusionHDTV 5 Gold",
Michael Krufky9c26c8b2006-04-27 01:29:17 -0300778 .tuner_type = TUNER_LG_TDVS_H06XF, /* TDVS-H062F */
Michael Krufky9fef07c2005-07-31 22:34:46 -0700779 .radio_type = UNSET,
780 .tuner_addr = ADDR_UNSET,
781 .radio_addr = ADDR_UNSET,
Mauro Carvalho Chehabe52e98a2005-09-09 13:03:41 -0700782 .tda9887_conf = TDA9887_PRESENT,
Michael Krufky9fef07c2005-07-31 22:34:46 -0700783 .input = {{
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800784 .type = CX88_VMUX_TELEVISION,
785 .vmux = 0,
786 .gpio0 = 0x87fd,
787 },{
788 .type = CX88_VMUX_COMPOSITE1,
789 .vmux = 1,
790 .gpio0 = 0x87f9,
791 },{
792 .type = CX88_VMUX_SVIDEO,
793 .vmux = 2,
794 .gpio0 = 0x87f9,
795 }},
Michael Krufky48d5e802006-09-25 14:09:10 -0300796 .mpeg = CX88_MPEG_DVB,
Michael Krufky9fef07c2005-07-31 22:34:46 -0700797 },
Nickolay V. Shmyrevd45170e2005-11-08 21:36:15 -0800798 [CX88_BOARD_AVERMEDIA_ULTRATV_MC_550] = {
799 .name = "AverMedia UltraTV Media Center PCI 550",
800 .tuner_type = TUNER_PHILIPS_FM1236_MK3,
801 .radio_type = UNSET,
802 .tuner_addr = ADDR_UNSET,
803 .radio_addr = ADDR_UNSET,
804 .tda9887_conf = TDA9887_PRESENT,
Nickolay V. Shmyrevd45170e2005-11-08 21:36:15 -0800805 .input = {{
806 .type = CX88_VMUX_COMPOSITE1,
807 .vmux = 0,
808 .gpio0 = 0x0000cd73,
Michael Krufkyf24546a2006-10-16 16:51:11 -0300809 .extadc = 1,
Nickolay V. Shmyrevd45170e2005-11-08 21:36:15 -0800810 },{
811 .type = CX88_VMUX_SVIDEO,
812 .vmux = 1,
813 .gpio0 = 0x0000cd73,
Michael Krufkyf24546a2006-10-16 16:51:11 -0300814 .extadc = 1,
Nickolay V. Shmyrevd45170e2005-11-08 21:36:15 -0800815 },{
816 .type = CX88_VMUX_TELEVISION,
817 .vmux = 3,
818 .gpio0 = 0x0000cdb3,
Michael Krufkyf24546a2006-10-16 16:51:11 -0300819 .extadc = 1,
Nickolay V. Shmyrevd45170e2005-11-08 21:36:15 -0800820 }},
821 .radio = {
822 .type = CX88_RADIO,
823 .vmux = 2,
824 .gpio0 = 0x0000cdf3,
Michael Krufkyf24546a2006-10-16 16:51:11 -0300825 .extadc = 1,
Nickolay V. Shmyrevd45170e2005-11-08 21:36:15 -0800826 },
Michael Krufky5b26c822006-10-16 16:07:51 -0300827 .mpeg = CX88_MPEG_BLACKBIRD,
Nickolay V. Shmyrevd45170e2005-11-08 21:36:15 -0800828 },
Alexander Wold0bcc37c2005-11-08 21:36:58 -0800829 [CX88_BOARD_KWORLD_VSTREAM_EXPERT_DVD] = {
830 /* Alexander Wold <awold@bigfoot.com> */
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800831 .name = "Kworld V-Stream Xpert DVD",
832 .tuner_type = UNSET,
833 .input = {{
834 .type = CX88_VMUX_COMPOSITE1,
835 .vmux = 1,
836 .gpio0 = 0x03000000,
Alexander Wold0bcc37c2005-11-08 21:36:58 -0800837 .gpio1 = 0x01000000,
838 .gpio2 = 0x02000000,
839 .gpio3 = 0x00100000,
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -0800840 },{
841 .type = CX88_VMUX_SVIDEO,
842 .vmux = 2,
843 .gpio0 = 0x03000000,
844 .gpio1 = 0x01000000,
845 .gpio2 = 0x02000000,
846 .gpio3 = 0x00100000,
847 }},
Alexander Wold0bcc37c2005-11-08 21:36:58 -0800848 },
Kirk Lapraye976f9372005-11-08 21:37:04 -0800849 [CX88_BOARD_ATI_HDTVWONDER] = {
850 .name = "ATI HDTV Wonder",
851 .tuner_type = TUNER_PHILIPS_TUV1236D,
852 .radio_type = UNSET,
853 .tuner_addr = ADDR_UNSET,
854 .radio_addr = ADDR_UNSET,
855 .input = {{
856 .type = CX88_VMUX_TELEVISION,
857 .vmux = 0,
858 .gpio0 = 0x00000ff7,
859 .gpio1 = 0x000000ff,
860 .gpio2 = 0x00000001,
861 .gpio3 = 0x00000000,
862 },{
863 .type = CX88_VMUX_COMPOSITE1,
864 .vmux = 1,
865 .gpio0 = 0x00000ffe,
866 .gpio1 = 0x000000ff,
867 .gpio2 = 0x00000001,
868 .gpio3 = 0x00000000,
869 },{
870 .type = CX88_VMUX_SVIDEO,
871 .vmux = 2,
872 .gpio0 = 0x00000ffe,
873 .gpio1 = 0x000000ff,
874 .gpio2 = 0x00000001,
875 .gpio3 = 0x00000000,
876 }},
Michael Krufky48d5e802006-09-25 14:09:10 -0300877 .mpeg = CX88_MPEG_DVB,
Kirk Lapraye976f9372005-11-08 21:37:04 -0800878 },
David Shirley2b5200a2005-11-08 21:37:22 -0800879 [CX88_BOARD_WINFAST_DTV1000] = {
880 .name = "WinFast DTV1000-T",
881 .tuner_type = TUNER_ABSENT,
882 .radio_type = UNSET,
883 .tuner_addr = ADDR_UNSET,
884 .radio_addr = ADDR_UNSET,
885 .input = {{
886 .type = CX88_VMUX_DVB,
887 .vmux = 0,
888 }},
Michael Krufky48d5e802006-09-25 14:09:10 -0300889 .mpeg = CX88_MPEG_DVB,
David Shirley2b5200a2005-11-08 21:37:22 -0800890 },
Lubomir Bulej7418f342005-11-08 21:38:34 -0800891 [CX88_BOARD_AVERTV_303] = {
892 .name = "AVerTV 303 (M126)",
893 .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
894 .radio_type = UNSET,
895 .tuner_addr = ADDR_UNSET,
896 .radio_addr = ADDR_UNSET,
897 .tda9887_conf = TDA9887_PRESENT,
898 .input = {{
899 .type = CX88_VMUX_TELEVISION,
900 .vmux = 0,
901 .gpio0 = 0x00ff,
902 .gpio1 = 0xe09f,
903 .gpio2 = 0x0010,
904 .gpio3 = 0x0000,
905 },{
906 .type = CX88_VMUX_COMPOSITE1,
907 .vmux = 1,
908 .gpio0 = 0x00ff,
909 .gpio1 = 0xe05f,
910 .gpio2 = 0x0010,
911 .gpio3 = 0x0000,
912 },{
913 .type = CX88_VMUX_SVIDEO,
914 .vmux = 2,
915 .gpio0 = 0x00ff,
916 .gpio1 = 0xe05f,
917 .gpio2 = 0x0010,
918 .gpio3 = 0x0000,
919 }},
920 },
Steven Toth0fa14aa2006-01-09 15:25:02 -0200921 [CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1] = {
922 .name = "Hauppauge Nova-S-Plus DVB-S",
923 .tuner_type = TUNER_ABSENT,
924 .radio_type = UNSET,
925 .tuner_addr = ADDR_UNSET,
926 .radio_addr = ADDR_UNSET,
Steven Toth0fa14aa2006-01-09 15:25:02 -0200927 .input = {{
928 .type = CX88_VMUX_DVB,
929 .vmux = 0,
930 },{
931 .type = CX88_VMUX_COMPOSITE1,
932 .vmux = 1,
933 },{
934 .type = CX88_VMUX_SVIDEO,
935 .vmux = 2,
936 }},
Michael Krufky48d5e802006-09-25 14:09:10 -0300937 .mpeg = CX88_MPEG_DVB,
Steven Toth0fa14aa2006-01-09 15:25:02 -0200938 },
939 [CX88_BOARD_HAUPPAUGE_NOVASE2_S1] = {
940 .name = "Hauppauge Nova-SE2 DVB-S",
941 .tuner_type = TUNER_ABSENT,
942 .radio_type = UNSET,
943 .tuner_addr = ADDR_UNSET,
944 .radio_addr = ADDR_UNSET,
945 .input = {{
946 .type = CX88_VMUX_DVB,
947 .vmux = 0,
948 }},
Michael Krufky48d5e802006-09-25 14:09:10 -0300949 .mpeg = CX88_MPEG_DVB,
Steven Toth0fa14aa2006-01-09 15:25:02 -0200950 },
Vadim Catana0e0351e2006-01-09 15:25:02 -0200951 [CX88_BOARD_KWORLD_DVBS_100] = {
952 .name = "KWorld DVB-S 100",
953 .tuner_type = TUNER_ABSENT,
954 .radio_type = UNSET,
955 .tuner_addr = ADDR_UNSET,
956 .radio_addr = ADDR_UNSET,
957 .input = {{
958 .type = CX88_VMUX_DVB,
959 .vmux = 0,
960 },{
961 .type = CX88_VMUX_COMPOSITE1,
962 .vmux = 1,
963 },{
964 .type = CX88_VMUX_SVIDEO,
965 .vmux = 2,
966 }},
Michael Krufky48d5e802006-09-25 14:09:10 -0300967 .mpeg = CX88_MPEG_DVB,
Vadim Catana0e0351e2006-01-09 15:25:02 -0200968 },
Steven Toth611900c2006-01-09 15:25:12 -0200969 [CX88_BOARD_HAUPPAUGE_HVR1100] = {
970 .name = "Hauppauge WinTV-HVR1100 DVB-T/Hybrid",
971 .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3,
972 .radio_type = UNSET,
973 .tuner_addr = ADDR_UNSET,
974 .radio_addr = ADDR_UNSET,
975 .tda9887_conf = TDA9887_PRESENT,
976 .input = {{
977 .type = CX88_VMUX_TELEVISION,
978 .vmux = 0,
979 },{
980 .type = CX88_VMUX_COMPOSITE1,
981 .vmux = 1,
982 },{
983 .type = CX88_VMUX_SVIDEO,
984 .vmux = 2,
985 }},
986 /* fixme: Add radio support */
Michael Krufky48d5e802006-09-25 14:09:10 -0300987 .mpeg = CX88_MPEG_DVB,
Steven Toth611900c2006-01-09 15:25:12 -0200988 },
989 [CX88_BOARD_HAUPPAUGE_HVR1100LP] = {
990 .name = "Hauppauge WinTV-HVR1100 DVB-T/Hybrid (Low Profile)",
991 .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3,
992 .radio_type = UNSET,
993 .tuner_addr = ADDR_UNSET,
994 .radio_addr = ADDR_UNSET,
995 .tda9887_conf = TDA9887_PRESENT,
996 .input = {{
997 .type = CX88_VMUX_TELEVISION,
998 .vmux = 0,
999 },{
1000 .type = CX88_VMUX_COMPOSITE1,
1001 .vmux = 1,
1002 }},
1003 /* fixme: Add radio support */
Michael Krufky48d5e802006-09-25 14:09:10 -03001004 .mpeg = CX88_MPEG_DVB,
Steven Toth611900c2006-01-09 15:25:12 -02001005 },
Chris Pascoefc40b262006-01-09 15:25:35 -02001006 [CX88_BOARD_DNTV_LIVE_DVB_T_PRO] = {
1007 .name = "digitalnow DNTV Live! DVB-T Pro",
1008 .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3,
1009 .radio_type = UNSET,
1010 .tuner_addr = ADDR_UNSET,
1011 .radio_addr = ADDR_UNSET,
1012 .tda9887_conf = TDA9887_PRESENT | TDA9887_PORT1_ACTIVE |
1013 TDA9887_PORT2_ACTIVE,
1014 .input = {{
1015 .type = CX88_VMUX_TELEVISION,
1016 .vmux = 0,
1017 .gpio0 = 0xf80808,
1018 },{
1019 .type = CX88_VMUX_COMPOSITE1,
1020 .vmux = 1,
1021 .gpio0 = 0xf80808,
1022 },{
1023 .type = CX88_VMUX_SVIDEO,
1024 .vmux = 2,
1025 .gpio0 = 0xf80808,
1026 }},
1027 .radio = {
1028 .type = CX88_RADIO,
1029 .gpio0 = 0xf80808,
1030 },
Michael Krufky48d5e802006-09-25 14:09:10 -03001031 .mpeg = CX88_MPEG_DVB,
Chris Pascoefc40b262006-01-09 15:25:35 -02001032 },
Manenti Marcof39624f2006-01-09 15:32:45 -02001033 [CX88_BOARD_KWORLD_DVB_T_CX22702] = {
1034 /* Kworld V-stream Xpert DVB-T with Thomson tuner */
1035 /* DTT 7579 Conexant CX22702-19 Conexant CX2388x */
1036 /* Manenti Marco <marco_manenti@colman.it> */
1037 .name = "KWorld/VStream XPert DVB-T with cx22702",
1038 .tuner_type = TUNER_ABSENT,
1039 .radio_type = UNSET,
1040 .tuner_addr = ADDR_UNSET,
1041 .radio_addr = ADDR_UNSET,
1042 .input = {{
1043 .type = CX88_VMUX_COMPOSITE1,
1044 .vmux = 1,
1045 .gpio0 = 0x0700,
1046 .gpio2 = 0x0101,
1047 },{
1048 .type = CX88_VMUX_SVIDEO,
1049 .vmux = 2,
1050 .gpio0 = 0x0700,
1051 .gpio2 = 0x0101,
1052 }},
Michael Krufky48d5e802006-09-25 14:09:10 -03001053 .mpeg = CX88_MPEG_DVB,
Manenti Marcof39624f2006-01-09 15:32:45 -02001054 },
Chris Pascoe43eabb42006-01-09 18:21:28 -02001055 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL] = {
1056 .name = "DViCO FusionHDTV DVB-T Dual Digital",
1057 .tuner_type = TUNER_ABSENT, /* No analog tuner */
1058 .radio_type = UNSET,
1059 .tuner_addr = ADDR_UNSET,
1060 .radio_addr = ADDR_UNSET,
1061 .input = {{
1062 .type = CX88_VMUX_COMPOSITE1,
1063 .vmux = 1,
Chris Pascoed536e9c2006-08-10 03:22:21 -03001064 .gpio0 = 0x000067df,
Chris Pascoe43eabb42006-01-09 18:21:28 -02001065 },{
1066 .type = CX88_VMUX_SVIDEO,
1067 .vmux = 2,
Chris Pascoed536e9c2006-08-10 03:22:21 -03001068 .gpio0 = 0x000067df,
Chris Pascoe43eabb42006-01-09 18:21:28 -02001069 }},
Michael Krufky48d5e802006-09-25 14:09:10 -03001070 .mpeg = CX88_MPEG_DVB,
Chris Pascoe43eabb42006-01-09 18:21:28 -02001071 },
Michael Krufky44256de2006-02-07 06:49:14 -02001072 [CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT] = {
Michael Krufky44256de2006-02-07 06:49:14 -02001073 .name = "KWorld HardwareMpegTV XPert",
1074 .tuner_type = TUNER_PHILIPS_TDA8290,
1075 .radio_type = UNSET,
1076 .tuner_addr = ADDR_UNSET,
1077 .radio_addr = ADDR_UNSET,
1078 .input = {{
1079 .type = CX88_VMUX_TELEVISION,
1080 .vmux = 0,
Michael Krufkye2798212006-02-27 00:07:58 -03001081 .gpio0 = 0x3de2,
Michael Krufky24da4e42006-02-27 00:08:01 -03001082 .gpio2 = 0x00ff,
Michael Krufkybc53f782006-05-28 01:43:35 -03001083 },{
1084 .type = CX88_VMUX_COMPOSITE1,
1085 .vmux = 1,
1086 .gpio0 = 0x3de6,
Michael Krufkycc0f3f52006-10-16 16:53:01 -03001087 .extadc = 1,
Michael Krufkybc53f782006-05-28 01:43:35 -03001088 },{
1089 .type = CX88_VMUX_SVIDEO,
1090 .vmux = 2,
1091 .gpio0 = 0x3de6,
Michael Krufkycc0f3f52006-10-16 16:53:01 -03001092 .extadc = 1,
Michael Krufky44256de2006-02-07 06:49:14 -02001093 }},
Michael Krufkye2798212006-02-27 00:07:58 -03001094 .radio = {
1095 .type = CX88_RADIO,
1096 .gpio0 = 0x3de6,
Michael Krufky24da4e42006-02-27 00:08:01 -03001097 .gpio2 = 0x00ff,
Michael Krufkye2798212006-02-27 00:07:58 -03001098 },
Michael Krufky48d5e802006-09-25 14:09:10 -03001099 .mpeg = CX88_MPEG_BLACKBIRD,
Michael Krufky44256de2006-02-07 06:49:14 -02001100 },
Chris Pascoe780dfef2006-02-28 08:34:59 -03001101 [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID] = {
1102 .name = "DViCO FusionHDTV DVB-T Hybrid",
Michael Krufky91ae3292006-03-01 00:04:42 -03001103 .tuner_type = TUNER_THOMSON_FE6600,
Chris Pascoe780dfef2006-02-28 08:34:59 -03001104 .radio_type = UNSET,
1105 .tuner_addr = ADDR_UNSET,
1106 .radio_addr = ADDR_UNSET,
1107 .input = {{
1108 .type = CX88_VMUX_TELEVISION,
1109 .vmux = 0,
1110 .gpio0 = 0x0000a75f,
1111 },{
1112 .type = CX88_VMUX_COMPOSITE1,
1113 .vmux = 1,
1114 .gpio0 = 0x0000a75b,
1115 },{
1116 .type = CX88_VMUX_SVIDEO,
1117 .vmux = 2,
1118 .gpio0 = 0x0000a75b,
1119 }},
Michael Krufky48d5e802006-09-25 14:09:10 -03001120 .mpeg = CX88_MPEG_DVB,
Chris Pascoe780dfef2006-02-28 08:34:59 -03001121 },
Michael Krufkye142e7c2006-04-07 03:24:54 -03001122 [CX88_BOARD_PCHDTV_HD5500] = {
1123 .name = "pcHDTV HD5500 HDTV",
Michael Krufky9c26c8b2006-04-27 01:29:17 -03001124 .tuner_type = TUNER_LG_TDVS_H06XF, /* TDVS-H064F */
Michael Krufkye142e7c2006-04-07 03:24:54 -03001125 .radio_type = UNSET,
1126 .tuner_addr = ADDR_UNSET,
1127 .radio_addr = ADDR_UNSET,
1128 .tda9887_conf = TDA9887_PRESENT,
1129 .input = {{
1130 .type = CX88_VMUX_TELEVISION,
1131 .vmux = 0,
1132 .gpio0 = 0x87fd,
1133 },{
1134 .type = CX88_VMUX_COMPOSITE1,
1135 .vmux = 1,
1136 .gpio0 = 0x87f9,
1137 },{
1138 .type = CX88_VMUX_SVIDEO,
1139 .vmux = 2,
1140 .gpio0 = 0x87f9,
1141 }},
Michael Krufky48d5e802006-09-25 14:09:10 -03001142 .mpeg = CX88_MPEG_DVB,
Michael Krufkye142e7c2006-04-07 03:24:54 -03001143 },
Valentin Zagurab3038302006-04-13 12:41:43 -03001144 [CX88_BOARD_KWORLD_MCE200_DELUXE] = {
1145 /* FIXME: tested TV input only, disabled composite,
1146 svideo and radio until they can be tested also. */
1147 .name = "Kworld MCE 200 Deluxe",
1148 .tuner_type = TUNER_TENA_9533_DI,
1149 .radio_type = UNSET,
1150 .tda9887_conf = TDA9887_PRESENT,
1151 .tuner_addr = ADDR_UNSET,
1152 .radio_addr = ADDR_UNSET,
1153 .input = {{
1154 .type = CX88_VMUX_TELEVISION,
1155 .vmux = 0,
1156 .gpio0 = 0x0000BDE6
1157 }},
Michael Krufky48d5e802006-09-25 14:09:10 -03001158 .mpeg = CX88_MPEG_BLACKBIRD,
Valentin Zagurab3038302006-04-13 12:41:43 -03001159 },
Angelo Marconia3124622006-05-09 18:27:48 -03001160 [CX88_BOARD_PIXELVIEW_PLAYTV_P7000] = {
1161 /* FIXME: SVideo, Composite and FM inputs are untested */
1162 .name = "PixelView PlayTV P7000",
1163 .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
1164 .radio_type = UNSET,
1165 .tuner_addr = ADDR_UNSET,
1166 .radio_addr = ADDR_UNSET,
1167 .tda9887_conf = TDA9887_PRESENT | TDA9887_PORT1_ACTIVE |
1168 TDA9887_PORT2_ACTIVE,
1169 .input = {{
1170 .type = CX88_VMUX_TELEVISION,
1171 .vmux = 0,
1172 .gpio0 = 0x5da6,
1173 }},
Michael Krufky48d5e802006-09-25 14:09:10 -03001174 .mpeg = CX88_MPEG_BLACKBIRD,
Angelo Marconia3124622006-05-09 18:27:48 -03001175 },
Ricardo Cerqueirabe4f4512006-06-08 17:36:17 -03001176 [CX88_BOARD_NPGTECH_REALTV_TOP10FM] = {
1177 .name = "NPG Tech Real TV FM Top 10",
1178 .tuner_type = TUNER_TNF_5335MF, /* Actually a TNF9535 */
Ricardo Cerqueira680543c2006-05-22 07:44:02 -03001179 .radio_type = UNSET,
1180 .tuner_addr = ADDR_UNSET,
1181 .radio_addr = ADDR_UNSET,
1182 .input = {{
1183 .type = CX88_VMUX_TELEVISION,
1184 .vmux = 0,
1185 .gpio0 = 0x0788,
1186 },{
1187 .type = CX88_VMUX_COMPOSITE1,
1188 .vmux = 1,
1189 .gpio0 = 0x078b,
1190 },{
1191 .type = CX88_VMUX_SVIDEO,
1192 .vmux = 2,
Ricardo Cerqueirabe4f4512006-06-08 17:36:17 -03001193 .gpio0 = 0x078b,
Ricardo Cerqueira680543c2006-05-22 07:44:02 -03001194 }},
1195 .radio = {
1196 .type = CX88_RADIO,
1197 .gpio0 = 0x074a,
1198 },
1199 },
Malcolm Valentine4bd6e9d2006-05-29 13:51:59 -03001200 [CX88_BOARD_WINFAST_DTV2000H] = {
1201 /* video inputs and radio still in testing */
1202 .name = "WinFast DTV2000 H",
1203 .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3,
1204 .radio_type = UNSET,
1205 .tuner_addr = ADDR_UNSET,
1206 .radio_addr = ADDR_UNSET,
1207 .tda9887_conf = TDA9887_PRESENT,
1208 .input = {{
1209 .type = CX88_VMUX_TELEVISION,
1210 .vmux = 0,
1211 .gpio0 = 0x00017304,
1212 .gpio1 = 0x00008203,
1213 .gpio2 = 0x00017304,
1214 .gpio3 = 0x02000000,
1215 }},
Michael Krufky48d5e802006-09-25 14:09:10 -03001216 .mpeg = CX88_MPEG_DVB,
Malcolm Valentine4bd6e9d2006-05-29 13:51:59 -03001217 },
Saqeb Akhterc02a34f2006-06-29 20:29:33 -03001218 [CX88_BOARD_GENIATECH_DVBS] = {
1219 .name = "Geniatech DVB-S",
1220 .tuner_type = TUNER_ABSENT,
1221 .radio_type = UNSET,
1222 .tuner_addr = ADDR_UNSET,
1223 .radio_addr = ADDR_UNSET,
1224 .input = {{
1225 .type = CX88_VMUX_DVB,
1226 .vmux = 0,
1227 },{
1228 .type = CX88_VMUX_COMPOSITE1,
1229 .vmux = 1,
1230 }},
Michael Krufky48d5e802006-09-25 14:09:10 -03001231 .mpeg = CX88_MPEG_DVB,
Saqeb Akhterc02a34f2006-06-29 20:29:33 -03001232 },
Eric Thomasad10c932006-08-08 09:10:04 -03001233 [CX88_BOARD_HAUPPAUGE_HVR3000] = {
1234 /* FIXME: Add dvb & radio support */
1235 .name = "Hauppauge WinTV-HVR3000 TriMode Analog/DVB-S/DVB-T",
1236 .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3,
1237 .radio_type = UNSET,
1238 .tuner_addr = ADDR_UNSET,
1239 .radio_addr = ADDR_UNSET,
1240 .tda9887_conf = TDA9887_PRESENT,
1241 .input = {{
1242 .type = CX88_VMUX_TELEVISION,
1243 .vmux = 0,
1244 .gpio0 = 0x84bf,
1245 },{
1246 .type = CX88_VMUX_COMPOSITE1,
1247 .vmux = 1,
1248 .gpio0 = 0x84bf,
1249 },{
1250 .type = CX88_VMUX_SVIDEO,
1251 .vmux = 2,
1252 .gpio0 = 0x84bf,
1253 }},
Steven Toth76dc82a2006-09-30 00:43:58 -03001254 .mpeg = CX88_MPEG_DVB,
Eric Thomasad10c932006-08-08 09:10:04 -03001255 },
Peter Naullsd1009bd2006-08-08 09:10:05 -03001256 [CX88_BOARD_NORWOOD_MICRO] = {
1257 .name = "Norwood Micro TV Tuner",
1258 .tuner_type = TUNER_TNF_5335MF,
1259 .radio_type = UNSET,
1260 .tuner_addr = ADDR_UNSET,
1261 .radio_addr = ADDR_UNSET,
1262 .input = {{
1263 .type = CX88_VMUX_TELEVISION,
1264 .vmux = 0,
1265 .gpio0 = 0x0709,
1266 },{
1267 .type = CX88_VMUX_COMPOSITE1,
1268 .vmux = 1,
1269 .gpio0 = 0x070b,
1270 },{
1271 .type = CX88_VMUX_SVIDEO,
1272 .vmux = 2,
1273 .gpio0 = 0x070b,
1274 }},
1275 },
Michael Krufky5b26c822006-10-16 16:07:51 -03001276 [CX88_BOARD_TE_DTV_250_OEM_SWANN] = {
1277 .name = "Shenzhen Tungsten Ages Tech TE-DTV-250 / Swann OEM",
1278 .tuner_type = TUNER_LG_PAL_NEW_TAPC,
1279 .radio_type = UNSET,
1280 .tuner_addr = ADDR_UNSET,
1281 .radio_addr = ADDR_UNSET,
1282 .input = {{
1283 .type = CX88_VMUX_TELEVISION,
1284 .vmux = 0,
1285 .gpio0 = 0x003fffff,
1286 .gpio1 = 0x00e00000,
1287 .gpio2 = 0x003fffff,
1288 .gpio3 = 0x02000000,
David Bussenschutt2acadef2006-08-08 09:10:05 -03001289 },{
Michael Krufky5b26c822006-10-16 16:07:51 -03001290 .type = CX88_VMUX_COMPOSITE1,
1291 .vmux = 1,
1292 .gpio0 = 0x003fffff,
1293 .gpio1 = 0x00e00000,
1294 .gpio2 = 0x003fffff,
1295 .gpio3 = 0x02000000,
1296 },{
1297 .type = CX88_VMUX_SVIDEO,
1298 .vmux = 2,
1299 .gpio0 = 0x003fffff,
1300 .gpio1 = 0x00e00000,
1301 .gpio2 = 0x003fffff,
1302 .gpio3 = 0x02000000,
1303 }},
1304 },
Steven Tothaa481a62006-09-14 15:41:13 -03001305 [CX88_BOARD_HAUPPAUGE_HVR1300] = {
1306 .name = "Hauppauge WinTV-HVR1300 DVB-T/Hybrid MPEG Encoder",
1307 .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3,
1308 .radio_type = UNSET,
1309 .tuner_addr = ADDR_UNSET,
1310 .radio_addr = ADDR_UNSET,
1311 .tda9887_conf = TDA9887_PRESENT,
Steven Toth30579062006-09-25 12:43:42 -03001312 .audio_chip = AUDIO_CHIP_WM8775,
Steven Tothaa481a62006-09-14 15:41:13 -03001313 .input = {{
1314 .type = CX88_VMUX_TELEVISION,
1315 .vmux = 0,
1316 .gpio0 = 0xe780,
Michael Krufkyf24546a2006-10-16 16:51:11 -03001317 .extadc = 1,
Steven Tothaa481a62006-09-14 15:41:13 -03001318 },{
1319 .type = CX88_VMUX_COMPOSITE1,
1320 .vmux = 1,
1321 .gpio0 = 0xe780,
Michael Krufkyf24546a2006-10-16 16:51:11 -03001322 .extadc = 1,
Steven Tothaa481a62006-09-14 15:41:13 -03001323 },{
1324 .type = CX88_VMUX_SVIDEO,
1325 .vmux = 2,
1326 .gpio0 = 0xe780,
Michael Krufkyf24546a2006-10-16 16:51:11 -03001327 .extadc = 1,
Steven Tothaa481a62006-09-14 15:41:13 -03001328 }},
1329 /* fixme: Add radio support */
Steven Toth6c5be742006-12-02 21:15:51 -02001330 .mpeg = CX88_MPEG_DVB | CX88_MPEG_BLACKBIRD,
Steven Tothaa481a62006-09-14 15:41:13 -03001331 },
Linus Torvalds1da177e2005-04-16 15:20:36 -07001332};
1333const unsigned int cx88_bcount = ARRAY_SIZE(cx88_boards);
1334
1335/* ------------------------------------------------------------------ */
1336/* PCI subsystem IDs */
1337
1338struct cx88_subid cx88_subids[] = {
1339 {
1340 .subvendor = 0x0070,
1341 .subdevice = 0x3400,
1342 .card = CX88_BOARD_HAUPPAUGE,
1343 },{
1344 .subvendor = 0x0070,
1345 .subdevice = 0x3401,
1346 .card = CX88_BOARD_HAUPPAUGE,
1347 },{
1348 .subvendor = 0x14c7,
1349 .subdevice = 0x0106,
1350 .card = CX88_BOARD_GDI,
1351 },{
1352 .subvendor = 0x14c7,
1353 .subdevice = 0x0107, /* with mpeg encoder */
1354 .card = CX88_BOARD_GDI,
1355 },{
1356 .subvendor = PCI_VENDOR_ID_ATI,
1357 .subdevice = 0x00f8,
1358 .card = CX88_BOARD_ATI_WONDER_PRO,
1359 },{
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -08001360 .subvendor = 0x107d,
1361 .subdevice = 0x6611,
1362 .card = CX88_BOARD_WINFAST2000XP_EXPERT,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001363 },{
1364 .subvendor = 0x107d,
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -08001365 .subdevice = 0x6613, /* NTSC */
1366 .card = CX88_BOARD_WINFAST2000XP_EXPERT,
1367 },{
1368 .subvendor = 0x107d,
1369 .subdevice = 0x6620,
1370 .card = CX88_BOARD_WINFAST_DV2000,
1371 },{
1372 .subvendor = 0x107d,
1373 .subdevice = 0x663b,
1374 .card = CX88_BOARD_LEADTEK_PVR2000,
1375 },{
1376 .subvendor = 0x107d,
Michael Krufky8dd86ee2006-09-16 19:09:38 -03001377 .subdevice = 0x663c,
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -08001378 .card = CX88_BOARD_LEADTEK_PVR2000,
1379 },{
Linus Torvalds1da177e2005-04-16 15:20:36 -07001380 .subvendor = 0x1461,
1381 .subdevice = 0x000b,
Lubomir Bulej7418f342005-11-08 21:38:34 -08001382 .card = CX88_BOARD_AVERTV_STUDIO_303,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001383 },{
1384 .subvendor = 0x1462,
1385 .subdevice = 0x8606,
1386 .card = CX88_BOARD_MSI_TVANYWHERE_MASTER,
1387 },{
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -08001388 .subvendor = 0x10fc,
1389 .subdevice = 0xd003,
1390 .card = CX88_BOARD_IODATA_GVVCP3PCI,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001391 },{
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -08001392 .subvendor = 0x1043,
1393 .subdevice = 0x4823, /* with mpeg encoder */
1394 .card = CX88_BOARD_ASUS_PVR_416,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001395 },{
1396 .subvendor = 0x17de,
1397 .subdevice = 0x08a6,
1398 .card = CX88_BOARD_KWORLD_DVB_T,
1399 },{
1400 .subvendor = 0x18ac,
1401 .subdevice = 0xd810,
Mauro Carvalho Chehaba82decf2005-07-07 17:58:36 -07001402 .card = CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001403 },{
Michael Krufky097b7502005-06-23 22:04:43 -07001404 .subvendor = 0x18ac,
1405 .subdevice = 0xd820,
Michael Krufky80d34362005-06-23 22:04:55 -07001406 .card = CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_T,
Michael Krufky097b7502005-06-23 22:04:43 -07001407 },{
Michael Krufky7df64e82005-11-08 21:36:16 -08001408 .subvendor = 0x18ac,
1409 .subdevice = 0xdb00,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001410 .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1,
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -08001411 },{
Linus Torvalds1da177e2005-04-16 15:20:36 -07001412 .subvendor = 0x0070,
1413 .subdevice = 0x9002,
1414 .card = CX88_BOARD_HAUPPAUGE_DVB_T1,
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -08001415 },{
Linus Torvalds1da177e2005-04-16 15:20:36 -07001416 .subvendor = 0x14f1,
1417 .subdevice = 0x0187,
1418 .card = CX88_BOARD_CONEXANT_DVB_T1,
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -08001419 },{
Linus Torvalds1da177e2005-04-16 15:20:36 -07001420 .subvendor = 0x1540,
1421 .subdevice = 0x2580,
1422 .card = CX88_BOARD_PROVIDEO_PV259,
1423 },{
Michael Krufky7df64e82005-11-08 21:36:16 -08001424 .subvendor = 0x18ac,
1425 .subdevice = 0xdb10,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001426 .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS,
1427 },{
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -08001428 .subvendor = 0x1554,
1429 .subdevice = 0x4811,
1430 .card = CX88_BOARD_PIXELVIEW,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001431 },{
1432 .subvendor = 0x7063,
1433 .subdevice = 0x3000, /* HD-3000 card */
1434 .card = CX88_BOARD_PCHDTV_HD3000,
1435 },{
Michael Krufky7df64e82005-11-08 21:36:16 -08001436 .subvendor = 0x17de,
1437 .subdevice = 0xa8a6,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001438 .card = CX88_BOARD_DNTV_LIVE_DVB_T,
1439 },{
1440 .subvendor = 0x0070,
1441 .subdevice = 0x2801,
1442 .card = CX88_BOARD_HAUPPAUGE_ROSLYN,
1443 },{
Michael Krufky7df64e82005-11-08 21:36:16 -08001444 .subvendor = 0x14f1,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001445 .subdevice = 0x0342,
1446 .card = CX88_BOARD_DIGITALLOGIC_MEC,
1447 },{
1448 .subvendor = 0x10fc,
1449 .subdevice = 0xd035,
1450 .card = CX88_BOARD_IODATA_GVBCTV7E,
Mauro Carvalho Chehaba82decf2005-07-07 17:58:36 -07001451 },{
1452 .subvendor = 0x1421,
1453 .subdevice = 0x0334,
1454 .card = CX88_BOARD_ADSTECH_DVB_T_PCI,
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -08001455 },{
Michael Krufkye057ee12005-07-07 17:58:40 -07001456 .subvendor = 0x153b,
1457 .subdevice = 0x1166,
1458 .card = CX88_BOARD_TERRATEC_CINERGY_1400_DVB_T1,
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -08001459 },{
Michael Krufky9fef07c2005-07-31 22:34:46 -07001460 .subvendor = 0x18ac,
1461 .subdevice = 0xd500,
1462 .card = CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD,
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -08001463 },{
Nickolay V. Shmyrevd45170e2005-11-08 21:36:15 -08001464 .subvendor = 0x1461,
1465 .subdevice = 0x8011,
1466 .card = CX88_BOARD_AVERMEDIA_ULTRATV_MC_550,
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -08001467 },{
Kirk Lapraye976f9372005-11-08 21:37:04 -08001468 .subvendor = PCI_VENDOR_ID_ATI,
1469 .subdevice = 0xa101,
1470 .card = CX88_BOARD_ATI_HDTVWONDER,
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -08001471 },{
David Shirley2b5200a2005-11-08 21:37:22 -08001472 .subvendor = 0x107d,
1473 .subdevice = 0x665f,
1474 .card = CX88_BOARD_WINFAST_DTV1000,
Lubomir Bulej7418f342005-11-08 21:38:34 -08001475 },{
1476 .subvendor = 0x1461,
1477 .subdevice = 0x000a,
1478 .card = CX88_BOARD_AVERTV_303,
Steven Toth0fa14aa2006-01-09 15:25:02 -02001479 },{
1480 .subvendor = 0x0070,
1481 .subdevice = 0x9200,
Steven Tothfb56cb62006-01-09 15:25:02 -02001482 .card = CX88_BOARD_HAUPPAUGE_NOVASE2_S1,
1483 },{
1484 .subvendor = 0x0070,
1485 .subdevice = 0x9201,
Steven Toth0fa14aa2006-01-09 15:25:02 -02001486 .card = CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1,
1487 },{
1488 .subvendor = 0x0070,
1489 .subdevice = 0x9202,
Steven Tothfb56cb62006-01-09 15:25:02 -02001490 .card = CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1,
Vadim Catana0e0351e2006-01-09 15:25:02 -02001491 },{
1492 .subvendor = 0x17de,
1493 .subdevice = 0x08b2,
1494 .card = CX88_BOARD_KWORLD_DVBS_100,
Steven Toth611900c2006-01-09 15:25:12 -02001495 },{
1496 .subvendor = 0x0070,
1497 .subdevice = 0x9400,
1498 .card = CX88_BOARD_HAUPPAUGE_HVR1100,
1499 },{
1500 .subvendor = 0x0070,
1501 .subdevice = 0x9402,
1502 .card = CX88_BOARD_HAUPPAUGE_HVR1100,
1503 },{
1504 .subvendor = 0x0070,
1505 .subdevice = 0x9800,
1506 .card = CX88_BOARD_HAUPPAUGE_HVR1100LP,
1507 },{
1508 .subvendor = 0x0070,
1509 .subdevice = 0x9802,
1510 .card = CX88_BOARD_HAUPPAUGE_HVR1100LP,
Steven Tothc432a072006-01-09 15:25:13 -02001511 },{
1512 .subvendor = 0x0070,
1513 .subdevice = 0x9001,
1514 .card = CX88_BOARD_HAUPPAUGE_DVB_T1,
Chris Pascoefc40b262006-01-09 15:25:35 -02001515 },{
1516 .subvendor = 0x1822,
1517 .subdevice = 0x0025,
1518 .card = CX88_BOARD_DNTV_LIVE_DVB_T_PRO,
Manenti Marcof39624f2006-01-09 15:32:45 -02001519 },{
Chris Pascoeb9f4ad52006-01-09 18:21:39 -02001520 .subvendor = 0x17de,
1521 .subdevice = 0x08a1,
1522 .card = CX88_BOARD_KWORLD_DVB_T_CX22702,
Chris Pascoe43eabb42006-01-09 18:21:28 -02001523 },{
1524 .subvendor = 0x18ac,
1525 .subdevice = 0xdb50,
1526 .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL,
Michael Krufky6bfb2e12006-01-11 22:52:28 -02001527 },{
1528 .subvendor = 0x18ac,
Michael Krufkyf74a6b32006-01-17 03:50:23 -02001529 .subdevice = 0xdb54,
1530 .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL,
1531 /* Re-branded DViCO: DigitalNow DVB-T Dual */
1532 },{
1533 .subvendor = 0x18ac,
Michael Krufky6bfb2e12006-01-11 22:52:28 -02001534 .subdevice = 0xdb11,
1535 .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS,
1536 /* Re-branded DViCO: UltraView DVB-T Plus */
Michael Krufky44256de2006-02-07 06:49:14 -02001537 },{
1538 .subvendor = 0x17de,
1539 .subdevice = 0x0840,
Michael Krufky923da8a2007-03-11 12:52:48 -03001540 .card = CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT,
1541 },{
1542 .subvendor = 0x1421,
1543 .subdevice = 0x0305,
Michael Krufky44256de2006-02-07 06:49:14 -02001544 .card = CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT,
Chris Pascoe780dfef2006-02-28 08:34:59 -03001545 },{
1546 .subvendor = 0x18ac,
1547 .subdevice = 0xdb40,
1548 .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID,
1549 },{
1550 .subvendor = 0x18ac,
1551 .subdevice = 0xdb44,
1552 .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID,
Rusty Scottda215d22006-04-07 02:21:31 -03001553 },{
1554 .subvendor = 0x7063,
1555 .subdevice = 0x5500,
1556 .card = CX88_BOARD_PCHDTV_HD5500,
Valentin Zagurab3038302006-04-13 12:41:43 -03001557 },{
1558 .subvendor = 0x17de,
1559 .subdevice = 0x0841,
1560 .card = CX88_BOARD_KWORLD_MCE200_DELUXE,
Michael Krufkyfc066472006-05-22 10:32:05 -03001561 },{
1562 .subvendor = 0x1822,
1563 .subdevice = 0x0019,
1564 .card = CX88_BOARD_DNTV_LIVE_DVB_T_PRO,
Angelo Marconia3124622006-05-09 18:27:48 -03001565 },{
1566 .subvendor = 0x1554,
1567 .subdevice = 0x4813,
1568 .card = CX88_BOARD_PIXELVIEW_PLAYTV_P7000,
Ricardo Cerqueira680543c2006-05-22 07:44:02 -03001569 },{
1570 .subvendor = 0x14f1,
1571 .subdevice = 0x0842,
Ricardo Cerqueirabe4f4512006-06-08 17:36:17 -03001572 .card = CX88_BOARD_NPGTECH_REALTV_TOP10FM,
Malcolm Valentine4bd6e9d2006-05-29 13:51:59 -03001573 },{
1574 .subvendor = 0x107d,
1575 .subdevice = 0x665e,
1576 .card = CX88_BOARD_WINFAST_DTV2000H,
Michael Krufky65271bf2006-06-21 16:04:33 -03001577 },{
1578 .subvendor = 0x18ac,
1579 .subdevice = 0xd800, /* FusionHDTV 3 Gold (original revision) */
1580 .card = CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q,
Saqeb Akhterc02a34f2006-06-29 20:29:33 -03001581 },{
1582 .subvendor = 0x14f1,
1583 .subdevice = 0x0084,
1584 .card = CX88_BOARD_GENIATECH_DVBS,
Eric Thomasad10c932006-08-08 09:10:04 -03001585 },{
1586 .subvendor = 0x0070,
1587 .subdevice = 0x1404,
1588 .card = CX88_BOARD_HAUPPAUGE_HVR3000,
Michael Krufky5dbaa2c2006-08-08 09:10:04 -03001589 },{
1590 .subvendor = 0x1461,
1591 .subdevice = 0xc111, /* AverMedia M150-D */
1592 /* This board is known to work with the ASUS PVR416 config */
1593 .card = CX88_BOARD_ASUS_PVR_416,
David Bussenschutt2acadef2006-08-08 09:10:05 -03001594 },{
1595 .subvendor = 0xc180,
1596 .subdevice = 0xc980,
1597 .card = CX88_BOARD_TE_DTV_250_OEM_SWANN,
Steven Tothaa481a62006-09-14 15:41:13 -03001598 },{
1599 .subvendor = 0x0070,
1600 .subdevice = 0x9600,
1601 .card = CX88_BOARD_HAUPPAUGE_HVR1300,
1602 },{
1603 .subvendor = 0x0070,
1604 .subdevice = 0x9601,
1605 .card = CX88_BOARD_HAUPPAUGE_HVR1300,
1606 },{
1607 .subvendor = 0x0070,
1608 .subdevice = 0x9602,
1609 .card = CX88_BOARD_HAUPPAUGE_HVR1300,
Michael Krufkydab489d2006-09-15 15:41:23 -03001610 },{
1611 .subvendor = 0x107d,
1612 .subdevice = 0x6632,
1613 .card = CX88_BOARD_LEADTEK_PVR2000,
Michael Krufky4508f592006-09-25 14:14:24 -03001614 },{
1615 .subvendor = 0x12ab,
1616 .subdevice = 0x2300, /* Club3D Zap TV2100 */
1617 .card = CX88_BOARD_KWORLD_DVB_T_CX22702,
Steven Toth3979ecc2006-09-29 22:37:07 -03001618 },{
1619 .subvendor = 0x0070,
1620 .subdevice = 0x9000,
1621 .card = CX88_BOARD_HAUPPAUGE_DVB_T1,
Steven Toth76dc82a2006-09-30 00:43:58 -03001622 },{
1623 .subvendor = 0x0070,
1624 .subdevice = 0x1400,
1625 .card = CX88_BOARD_HAUPPAUGE_HVR3000,
1626 },{
1627 .subvendor = 0x0070,
1628 .subdevice = 0x1401,
1629 .card = CX88_BOARD_HAUPPAUGE_HVR3000,
1630 },{
1631 .subvendor = 0x0070,
1632 .subdevice = 0x1402,
1633 .card = CX88_BOARD_HAUPPAUGE_HVR3000,
Michael Krufky733aeaf2007-03-11 12:48:04 -03001634 },{
1635 .subvendor = 0x1421,
1636 .subdevice = 0x0341, /* ADS Tech InstantTV DVB-S */
1637 .card = CX88_BOARD_KWORLD_DVBS_100,
Chris Pascoeb9f4ad52006-01-09 18:21:39 -02001638 },
Linus Torvalds1da177e2005-04-16 15:20:36 -07001639};
1640const unsigned int cx88_idcount = ARRAY_SIZE(cx88_subids);
1641
1642/* ----------------------------------------------------------------------- */
1643/* some leadtek specific stuff */
1644
Jean Delvare69f7e75a92006-12-23 14:11:03 -03001645static void leadtek_eeprom(struct cx88_core *core, u8 *eeprom_data)
Linus Torvalds1da177e2005-04-16 15:20:36 -07001646{
1647 /* This is just for the "Winfast 2000XP Expert" board ATM; I don't have data on
1648 * any others.
1649 *
1650 * Byte 0 is 1 on the NTSC board.
1651 */
1652
1653 if (eeprom_data[4] != 0x7d ||
1654 eeprom_data[5] != 0x10 ||
1655 eeprom_data[7] != 0x66) {
1656 printk(KERN_WARNING "%s: Leadtek eeprom invalid.\n",
1657 core->name);
1658 return;
1659 }
1660
1661 core->has_radio = 1;
1662 core->tuner_type = (eeprom_data[6] == 0x13) ? 43 : 38;
1663
1664 printk(KERN_INFO "%s: Leadtek Winfast 2000XP Expert config: "
1665 "tuner=%d, eeprom[0]=0x%02x\n",
1666 core->name, core->tuner_type, eeprom_data[0]);
1667}
1668
Linus Torvalds1da177e2005-04-16 15:20:36 -07001669static void hauppauge_eeprom(struct cx88_core *core, u8 *eeprom_data)
1670{
1671 struct tveeprom tv;
1672
Mauro Carvalho Chehab0f97a932005-09-09 13:04:05 -07001673 tveeprom_hauppauge_analog(&core->i2c_client, &tv, eeprom_data);
Linus Torvalds1da177e2005-04-16 15:20:36 -07001674 core->tuner_type = tv.tuner_type;
Steven Toth0345c382006-01-09 15:25:17 -02001675 core->tuner_formats = tv.tuner_formats;
Linus Torvalds1da177e2005-04-16 15:20:36 -07001676 core->has_radio = tv.has_radio;
Linus Torvalds1da177e2005-04-16 15:20:36 -07001677
1678 /* Make sure we support the board model */
Steven Toth3ca0ea92005-12-01 00:51:27 -08001679 switch (tv.model)
1680 {
Steven Toth76dc82a2006-09-30 00:43:58 -03001681 case 14009: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in) */
1682 case 14019: /* WinTV-HVR3000 (Retail, IR Blaster, b/panel video, 3.5mm audio in) */
1683 case 14029: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in - 880 bridge) */
1684 case 14109: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in - low profile) */
1685 case 14129: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in - 880 bridge - LP) */
1686 case 14559: /* WinTV-HVR3000 (OEM, no IR, b/panel video, 3.5mm audio in) */
Eric Thomasad10c932006-08-08 09:10:04 -03001687 case 14569: /* WinTV-HVR3000 (OEM, no IR, no back panel video) */
Steven Toth76dc82a2006-09-30 00:43:58 -03001688 case 14659: /* WinTV-HVR3000 (OEM, no IR, b/panel video, RCA audio in - Low profile) */
1689 case 14669: /* WinTV-HVR3000 (OEM, no IR, no b/panel video - Low profile) */
Steven Toth0345c382006-01-09 15:25:17 -02001690 case 28552: /* WinTV-PVR 'Roslyn' (No IR) */
Ian Pickworth42d2b6e2006-01-23 17:11:07 -02001691 case 34519: /* WinTV-PCI-FM */
Steven Toth759324c2005-12-01 00:51:26 -08001692 case 90002: /* Nova-T-PCI (9002) */
Steven Toth0fe22862005-12-01 00:51:41 -08001693 case 92001: /* Nova-S-Plus (Video and IR) */
1694 case 92002: /* Nova-S-Plus (Video and IR) */
1695 case 90003: /* Nova-T-PCI (9002 No RF out) */
Steven Toth759324c2005-12-01 00:51:26 -08001696 case 90500: /* Nova-T-PCI (oem) */
1697 case 90501: /* Nova-T-PCI (oem/IR) */
Steven Toth3ca0ea92005-12-01 00:51:27 -08001698 case 92000: /* Nova-SE2 (OEM, No Video or IR) */
Steven Toth611900c2006-01-09 15:25:12 -02001699 case 94009: /* WinTV-HVR1100 (Video and IR Retail) */
1700 case 94501: /* WinTV-HVR1100 (Video and IR OEM) */
Steven Tothaa481a62006-09-14 15:41:13 -03001701 case 96009: /* WinTV-HVR1300 (PAL Video, MPEG Video and IR RX) */
1702 case 96019: /* WinTV-HVR1300 (PAL Video, MPEG Video and IR RX/TX) */
1703 case 96559: /* WinTV-HVR1300 (PAL Video, MPEG Video no IR) */
1704 case 96569: /* WinTV-HVR1300 () */
1705 case 96659: /* WinTV-HVR1300 () */
Steven Toth611900c2006-01-09 15:25:12 -02001706 case 98559: /* WinTV-HVR1100LP (Video no IR, Retail - Low Profile) */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001707 /* known */
1708 break;
1709 default:
1710 printk("%s: warning: unknown hauppauge model #%d\n",
Steven Toth3ca0ea92005-12-01 00:51:27 -08001711 core->name, tv.model);
Linus Torvalds1da177e2005-04-16 15:20:36 -07001712 break;
1713 }
1714
Steven Toth3ca0ea92005-12-01 00:51:27 -08001715 printk(KERN_INFO "%s: hauppauge eeprom: model=%d\n",
1716 core->name, tv.model);
Linus Torvalds1da177e2005-04-16 15:20:36 -07001717}
1718
1719/* ----------------------------------------------------------------------- */
1720/* some GDI (was: Modular Technology) specific stuff */
1721
1722static struct {
1723 int id;
1724 int fm;
1725 char *name;
1726} gdi_tuner[] = {
1727 [ 0x01 ] = { .id = TUNER_ABSENT,
1728 .name = "NTSC_M" },
1729 [ 0x02 ] = { .id = TUNER_ABSENT,
1730 .name = "PAL_B" },
1731 [ 0x03 ] = { .id = TUNER_ABSENT,
1732 .name = "PAL_I" },
1733 [ 0x04 ] = { .id = TUNER_ABSENT,
1734 .name = "PAL_D" },
1735 [ 0x05 ] = { .id = TUNER_ABSENT,
1736 .name = "SECAM" },
1737
1738 [ 0x10 ] = { .id = TUNER_ABSENT,
1739 .fm = 1,
1740 .name = "TEMIC_4049" },
1741 [ 0x11 ] = { .id = TUNER_TEMIC_4136FY5,
1742 .name = "TEMIC_4136" },
1743 [ 0x12 ] = { .id = TUNER_ABSENT,
1744 .name = "TEMIC_4146" },
1745
1746 [ 0x20 ] = { .id = TUNER_PHILIPS_FQ1216ME,
1747 .fm = 1,
1748 .name = "PHILIPS_FQ1216_MK3" },
1749 [ 0x21 ] = { .id = TUNER_ABSENT, .fm = 1,
1750 .name = "PHILIPS_FQ1236_MK3" },
1751 [ 0x22 ] = { .id = TUNER_ABSENT,
1752 .name = "PHILIPS_FI1236_MK3" },
1753 [ 0x23 ] = { .id = TUNER_ABSENT,
1754 .name = "PHILIPS_FI1216_MK3" },
1755};
1756
1757static void gdi_eeprom(struct cx88_core *core, u8 *eeprom_data)
1758{
1759 char *name = (eeprom_data[0x0d] < ARRAY_SIZE(gdi_tuner))
1760 ? gdi_tuner[eeprom_data[0x0d]].name : NULL;
1761
1762 printk(KERN_INFO "%s: GDI: tuner=%s\n", core->name,
1763 name ? name : "unknown");
1764 if (NULL == name)
1765 return;
1766 core->tuner_type = gdi_tuner[eeprom_data[0x0d]].id;
1767 core->has_radio = gdi_tuner[eeprom_data[0x0d]].fm;
1768}
1769
1770/* ----------------------------------------------------------------------- */
Chris Pascoe780dfef2006-02-28 08:34:59 -03001771/* some DViCO specific stuff */
1772
1773static void dvico_fusionhdtv_hybrid_init(struct cx88_core *core)
1774{
1775 struct i2c_msg msg = { .addr = 0x45, .flags = 0 };
1776 int i, err;
Chris Pascoe69b27e32006-02-28 20:23:11 -03001777 static u8 init_bufs[13][5] = {
Chris Pascoe780dfef2006-02-28 08:34:59 -03001778 { 0x10, 0x00, 0x20, 0x01, 0x03 },
1779 { 0x10, 0x10, 0x01, 0x00, 0x21 },
1780 { 0x10, 0x10, 0x10, 0x00, 0xCA },
1781 { 0x10, 0x10, 0x12, 0x00, 0x08 },
1782 { 0x10, 0x10, 0x13, 0x00, 0x0A },
1783 { 0x10, 0x10, 0x16, 0x01, 0xC0 },
1784 { 0x10, 0x10, 0x22, 0x01, 0x3D },
1785 { 0x10, 0x10, 0x73, 0x01, 0x2E },
1786 { 0x10, 0x10, 0x72, 0x00, 0xC5 },
1787 { 0x10, 0x10, 0x71, 0x01, 0x97 },
1788 { 0x10, 0x10, 0x70, 0x00, 0x0F },
1789 { 0x10, 0x10, 0xB0, 0x00, 0x01 },
1790 { 0x03, 0x0C },
1791 };
1792
1793 for (i = 0; i < 13; i++) {
1794 msg.buf = init_bufs[i];
1795 msg.len = (i != 12 ? 5 : 2);
1796 err = i2c_transfer(&core->i2c_adap, &msg, 1);
1797 if (err != 1) {
1798 printk("dvico_fusionhdtv_hybrid_init buf %d failed (err = %d)!\n", i, err);
1799 return;
1800 }
1801 }
1802}
1803
1804/* ----------------------------------------------------------------------- */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001805
1806void cx88_card_list(struct cx88_core *core, struct pci_dev *pci)
1807{
1808 int i;
1809
1810 if (0 == pci->subsystem_vendor &&
1811 0 == pci->subsystem_device) {
1812 printk("%s: Your board has no valid PCI Subsystem ID and thus can't\n"
1813 "%s: be autodetected. Please pass card=<n> insmod option to\n"
1814 "%s: workaround that. Redirect complaints to the vendor of\n"
1815 "%s: the TV card. Best regards,\n"
1816 "%s: -- tux\n",
1817 core->name,core->name,core->name,core->name,core->name);
1818 } else {
1819 printk("%s: Your board isn't known (yet) to the driver. You can\n"
1820 "%s: try to pick one of the existing card configs via\n"
1821 "%s: card=<n> insmod option. Updating to the latest\n"
1822 "%s: version might help as well.\n",
1823 core->name,core->name,core->name,core->name);
1824 }
1825 printk("%s: Here is a list of valid choices for the card=<n> insmod option:\n",
1826 core->name);
1827 for (i = 0; i < cx88_bcount; i++)
1828 printk("%s: card=%d -> %s\n",
1829 core->name, i, cx88_boards[i].name);
1830}
1831
Steven Tothaa481a62006-09-14 15:41:13 -03001832void cx88_card_setup_pre_i2c(struct cx88_core *core)
1833{
1834 switch (core->board) {
1835 case CX88_BOARD_HAUPPAUGE_HVR1300:
1836 /* Bring the 702 demod up before i2c scanning/attach or devices are hidden */
1837 /* We leave here with the 702 on the bus */
1838 cx_write(MO_GP0_IO, 0x0000e780);
1839 udelay(1000);
1840 cx_clear(MO_GP0_IO, 0x00000080);
1841 udelay(50);
1842 cx_set(MO_GP0_IO, 0x00000080); /* 702 out of reset */
1843 udelay(1000);
1844 break;
1845 }
1846}
1847
Linus Torvalds1da177e2005-04-16 15:20:36 -07001848void cx88_card_setup(struct cx88_core *core)
1849{
Steven Toth3ca0ea92005-12-01 00:51:27 -08001850 static u8 eeprom[256];
Linus Torvalds1da177e2005-04-16 15:20:36 -07001851
1852 if (0 == core->i2c_rc) {
1853 core->i2c_client.addr = 0xa0 >> 1;
1854 tveeprom_read(&core->i2c_client,eeprom,sizeof(eeprom));
1855 }
1856
1857 switch (core->board) {
1858 case CX88_BOARD_HAUPPAUGE:
1859 case CX88_BOARD_HAUPPAUGE_ROSLYN:
1860 if (0 == core->i2c_rc)
1861 hauppauge_eeprom(core,eeprom+8);
1862 break;
1863 case CX88_BOARD_GDI:
1864 if (0 == core->i2c_rc)
1865 gdi_eeprom(core,eeprom);
1866 break;
1867 case CX88_BOARD_WINFAST2000XP_EXPERT:
1868 if (0 == core->i2c_rc)
1869 leadtek_eeprom(core,eeprom);
1870 break;
Steven Toth0fa14aa2006-01-09 15:25:02 -02001871 case CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1:
1872 case CX88_BOARD_HAUPPAUGE_NOVASE2_S1:
Linus Torvalds1da177e2005-04-16 15:20:36 -07001873 case CX88_BOARD_HAUPPAUGE_DVB_T1:
Steven Toth611900c2006-01-09 15:25:12 -02001874 case CX88_BOARD_HAUPPAUGE_HVR1100:
1875 case CX88_BOARD_HAUPPAUGE_HVR1100LP:
Eric Thomasad10c932006-08-08 09:10:04 -03001876 case CX88_BOARD_HAUPPAUGE_HVR3000:
Steven Tothaa481a62006-09-14 15:41:13 -03001877 case CX88_BOARD_HAUPPAUGE_HVR1300:
Linus Torvalds1da177e2005-04-16 15:20:36 -07001878 if (0 == core->i2c_rc)
Steven Toth3ca0ea92005-12-01 00:51:27 -08001879 hauppauge_eeprom(core,eeprom);
Linus Torvalds1da177e2005-04-16 15:20:36 -07001880 break;
Vadim Catana0e0351e2006-01-09 15:25:02 -02001881 case CX88_BOARD_KWORLD_DVBS_100:
1882 cx_write(MO_GP0_IO, 0x000007f8);
1883 cx_write(MO_GP1_IO, 0x00000001);
1884 break;
Chris Pascoed536e9c2006-08-10 03:22:21 -03001885 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL:
1886 /* GPIO0:6 is hooked to FX2 reset pin */
1887 cx_set(MO_GP0_IO, 0x00004040);
1888 cx_clear(MO_GP0_IO, 0x00000040);
1889 msleep(1000);
1890 cx_set(MO_GP0_IO, 0x00004040);
1891 /* FALLTHROUGH */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001892 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1:
1893 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS:
Chris Pascoe780dfef2006-02-28 08:34:59 -03001894 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID:
Linus Torvalds1da177e2005-04-16 15:20:36 -07001895 /* GPIO0:0 is hooked to mt352 reset pin */
1896 cx_set(MO_GP0_IO, 0x00000101);
1897 cx_clear(MO_GP0_IO, 0x00000001);
1898 msleep(1);
1899 cx_set(MO_GP0_IO, 0x00000101);
Chris Pascoe780dfef2006-02-28 08:34:59 -03001900 if (0 == core->i2c_rc &&
1901 core->board == CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID)
1902 dvico_fusionhdtv_hybrid_init(core);
Linus Torvalds1da177e2005-04-16 15:20:36 -07001903 break;
1904 case CX88_BOARD_KWORLD_DVB_T:
1905 case CX88_BOARD_DNTV_LIVE_DVB_T:
1906 cx_set(MO_GP0_IO, 0x00000707);
1907 cx_set(MO_GP2_IO, 0x00000101);
1908 cx_clear(MO_GP2_IO, 0x00000001);
1909 msleep(1);
1910 cx_clear(MO_GP0_IO, 0x00000007);
1911 cx_set(MO_GP2_IO, 0x00000101);
1912 break;
Chris Pascoefc40b262006-01-09 15:25:35 -02001913 case CX88_BOARD_DNTV_LIVE_DVB_T_PRO:
1914 cx_write(MO_GP0_IO, 0x00080808);
1915 break;
Kirk Lapraye976f9372005-11-08 21:37:04 -08001916 case CX88_BOARD_ATI_HDTVWONDER:
1917 if (0 == core->i2c_rc) {
1918 /* enable tuner */
1919 int i;
Michael Krufkyb9ee9ad2006-02-27 00:09:14 -03001920 static const u8 buffer [] = { 0x10,0x12,0x13,0x04,0x16,0x00,0x14,0x04,0x017,0x00 };
Kirk Lapraye976f9372005-11-08 21:37:04 -08001921 core->i2c_client.addr = 0x0a;
Kirk Lapraye976f9372005-11-08 21:37:04 -08001922
Kirk Laprayfde6d312005-11-08 21:38:18 -08001923 for (i = 0; i < 5; i++)
Kirk Lapraye976f9372005-11-08 21:37:04 -08001924 if (2 != i2c_master_send(&core->i2c_client,&buffer[i*2],2))
1925 printk(KERN_WARNING "%s: Unable to enable tuner(%i).\n",
1926 core->name, i);
1927 }
1928 break;
Linus Torvalds1da177e2005-04-16 15:20:36 -07001929 }
1930 if (cx88_boards[core->board].radio.type == CX88_RADIO)
1931 core->has_radio = 1;
1932}
1933
1934/* ------------------------------------------------------------------ */
1935
1936EXPORT_SYMBOL(cx88_boards);
Linus Torvalds1da177e2005-04-16 15:20:36 -07001937
1938/*
1939 * Local variables:
1940 * c-basic-offset: 8
1941 * End:
Mauro Carvalho Chehabb45009b2005-06-23 22:05:03 -07001942 * 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 -07001943 */