cx88-cards.c 49 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939
  1. /*
  2. *
  3. * device driver for Conexant 2388x based TV cards
  4. * card-specific stuff.
  5. *
  6. * (c) 2003 Gerd Knorr <kraxel@bytesex.org> [SuSE Labs]
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation; either version 2 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21. */
  22. #include <linux/init.h>
  23. #include <linux/module.h>
  24. #include <linux/pci.h>
  25. #include <linux/delay.h>
  26. #include "cx88.h"
  27. /* ------------------------------------------------------------------ */
  28. /* board config info */
  29. struct cx88_board cx88_boards[] = {
  30. [CX88_BOARD_UNKNOWN] = {
  31. .name = "UNKNOWN/GENERIC",
  32. .tuner_type = UNSET,
  33. .radio_type = UNSET,
  34. .tuner_addr = ADDR_UNSET,
  35. .radio_addr = ADDR_UNSET,
  36. .input = {{
  37. .type = CX88_VMUX_COMPOSITE1,
  38. .vmux = 0,
  39. },{
  40. .type = CX88_VMUX_COMPOSITE2,
  41. .vmux = 1,
  42. },{
  43. .type = CX88_VMUX_COMPOSITE3,
  44. .vmux = 2,
  45. },{
  46. .type = CX88_VMUX_COMPOSITE4,
  47. .vmux = 3,
  48. }},
  49. },
  50. [CX88_BOARD_HAUPPAUGE] = {
  51. .name = "Hauppauge WinTV 34xxx models",
  52. .tuner_type = UNSET,
  53. .radio_type = UNSET,
  54. .tuner_addr = ADDR_UNSET,
  55. .radio_addr = ADDR_UNSET,
  56. .tda9887_conf = TDA9887_PRESENT,
  57. .input = {{
  58. .type = CX88_VMUX_TELEVISION,
  59. .vmux = 0,
  60. .gpio0 = 0xff00, // internal decoder
  61. },{
  62. .type = CX88_VMUX_DEBUG,
  63. .vmux = 0,
  64. .gpio0 = 0xff01, // mono from tuner chip
  65. },{
  66. .type = CX88_VMUX_COMPOSITE1,
  67. .vmux = 1,
  68. .gpio0 = 0xff02,
  69. },{
  70. .type = CX88_VMUX_SVIDEO,
  71. .vmux = 2,
  72. .gpio0 = 0xff02,
  73. }},
  74. .radio = {
  75. .type = CX88_RADIO,
  76. .gpio0 = 0xff01,
  77. },
  78. },
  79. [CX88_BOARD_GDI] = {
  80. .name = "GDI Black Gold",
  81. .tuner_type = UNSET,
  82. .radio_type = UNSET,
  83. .tuner_addr = ADDR_UNSET,
  84. .radio_addr = ADDR_UNSET,
  85. .input = {{
  86. .type = CX88_VMUX_TELEVISION,
  87. .vmux = 0,
  88. },{
  89. .type = CX88_VMUX_SVIDEO,
  90. .vmux = 2,
  91. }},
  92. },
  93. [CX88_BOARD_PIXELVIEW] = {
  94. .name = "PixelView",
  95. .tuner_type = TUNER_PHILIPS_PAL,
  96. .radio_type = UNSET,
  97. .tuner_addr = ADDR_UNSET,
  98. .radio_addr = ADDR_UNSET,
  99. .input = {{
  100. .type = CX88_VMUX_TELEVISION,
  101. .vmux = 0,
  102. .gpio0 = 0xff00, // internal decoder
  103. },{
  104. .type = CX88_VMUX_COMPOSITE1,
  105. .vmux = 1,
  106. },{
  107. .type = CX88_VMUX_SVIDEO,
  108. .vmux = 2,
  109. }},
  110. .radio = {
  111. .type = CX88_RADIO,
  112. .gpio0 = 0xff10,
  113. },
  114. },
  115. [CX88_BOARD_ATI_WONDER_PRO] = {
  116. .name = "ATI TV Wonder Pro",
  117. .tuner_type = TUNER_PHILIPS_4IN1,
  118. .radio_type = UNSET,
  119. .tuner_addr = ADDR_UNSET,
  120. .radio_addr = ADDR_UNSET,
  121. .tda9887_conf = TDA9887_PRESENT | TDA9887_INTERCARRIER,
  122. .input = {{
  123. .type = CX88_VMUX_TELEVISION,
  124. .vmux = 0,
  125. .gpio0 = 0x03ff,
  126. },{
  127. .type = CX88_VMUX_COMPOSITE1,
  128. .vmux = 1,
  129. .gpio0 = 0x03fe,
  130. },{
  131. .type = CX88_VMUX_SVIDEO,
  132. .vmux = 2,
  133. .gpio0 = 0x03fe,
  134. }},
  135. },
  136. [CX88_BOARD_WINFAST2000XP_EXPERT] = {
  137. .name = "Leadtek Winfast 2000XP Expert",
  138. .tuner_type = TUNER_PHILIPS_4IN1,
  139. .radio_type = UNSET,
  140. .tuner_addr = ADDR_UNSET,
  141. .radio_addr = ADDR_UNSET,
  142. .tda9887_conf = TDA9887_PRESENT,
  143. .input = {{
  144. .type = CX88_VMUX_TELEVISION,
  145. .vmux = 0,
  146. .gpio0 = 0x00F5e700,
  147. .gpio1 = 0x00003004,
  148. .gpio2 = 0x00F5e700,
  149. .gpio3 = 0x02000000,
  150. },{
  151. .type = CX88_VMUX_COMPOSITE1,
  152. .vmux = 1,
  153. .gpio0 = 0x00F5c700,
  154. .gpio1 = 0x00003004,
  155. .gpio2 = 0x00F5c700,
  156. .gpio3 = 0x02000000,
  157. },{
  158. .type = CX88_VMUX_SVIDEO,
  159. .vmux = 2,
  160. .gpio0 = 0x00F5c700,
  161. .gpio1 = 0x00003004,
  162. .gpio2 = 0x00F5c700,
  163. .gpio3 = 0x02000000,
  164. }},
  165. .radio = {
  166. .type = CX88_RADIO,
  167. .gpio0 = 0x00F5d700,
  168. .gpio1 = 0x00003004,
  169. .gpio2 = 0x00F5d700,
  170. .gpio3 = 0x02000000,
  171. },
  172. },
  173. [CX88_BOARD_AVERTV_STUDIO_303] = {
  174. .name = "AverTV Studio 303 (M126)",
  175. .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
  176. .radio_type = UNSET,
  177. .tuner_addr = ADDR_UNSET,
  178. .radio_addr = ADDR_UNSET,
  179. .tda9887_conf = TDA9887_PRESENT,
  180. .input = {{
  181. .type = CX88_VMUX_TELEVISION,
  182. .vmux = 0,
  183. .gpio1 = 0xe09f,
  184. },{
  185. .type = CX88_VMUX_COMPOSITE1,
  186. .vmux = 1,
  187. .gpio1 = 0xe05f,
  188. },{
  189. .type = CX88_VMUX_SVIDEO,
  190. .vmux = 2,
  191. .gpio1 = 0xe05f,
  192. }},
  193. .radio = {
  194. .gpio1 = 0xe0df,
  195. .type = CX88_RADIO,
  196. },
  197. },
  198. [CX88_BOARD_MSI_TVANYWHERE_MASTER] = {
  199. // added gpio values thanks to Michal
  200. // values for PAL from DScaler
  201. .name = "MSI TV-@nywhere Master",
  202. .tuner_type = TUNER_MT2032,
  203. .radio_type = UNSET,
  204. .tuner_addr = ADDR_UNSET,
  205. .radio_addr = ADDR_UNSET,
  206. .tda9887_conf = TDA9887_PRESENT | TDA9887_INTERCARRIER_NTSC,
  207. .input = {{
  208. .type = CX88_VMUX_TELEVISION,
  209. .vmux = 0,
  210. .gpio0 = 0x000040bf,
  211. .gpio1 = 0x000080c0,
  212. .gpio2 = 0x0000ff40,
  213. },{
  214. .type = CX88_VMUX_COMPOSITE1,
  215. .vmux = 1,
  216. .gpio0 = 0x000040bf,
  217. .gpio1 = 0x000080c0,
  218. .gpio2 = 0x0000ff40,
  219. },{
  220. .type = CX88_VMUX_SVIDEO,
  221. .vmux = 2,
  222. .gpio0 = 0x000040bf,
  223. .gpio1 = 0x000080c0,
  224. .gpio2 = 0x0000ff40,
  225. }},
  226. .radio = {
  227. .type = CX88_RADIO,
  228. },
  229. },
  230. [CX88_BOARD_WINFAST_DV2000] = {
  231. .name = "Leadtek Winfast DV2000",
  232. .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
  233. .radio_type = UNSET,
  234. .tuner_addr = ADDR_UNSET,
  235. .radio_addr = ADDR_UNSET,
  236. .tda9887_conf = TDA9887_PRESENT,
  237. .input = {{
  238. .type = CX88_VMUX_TELEVISION,
  239. .vmux = 0,
  240. .gpio0 = 0x0035e700,
  241. .gpio1 = 0x00003004,
  242. .gpio2 = 0x0035e700,
  243. .gpio3 = 0x02000000,
  244. },{
  245. .type = CX88_VMUX_COMPOSITE1,
  246. .vmux = 1,
  247. .gpio0 = 0x0035c700,
  248. .gpio1 = 0x00003004,
  249. .gpio2 = 0x0035c700,
  250. .gpio3 = 0x02000000,
  251. },{
  252. .type = CX88_VMUX_SVIDEO,
  253. .vmux = 2,
  254. .gpio0 = 0x0035c700,
  255. .gpio1 = 0x0035c700,
  256. .gpio2 = 0x02000000,
  257. .gpio3 = 0x02000000,
  258. }},
  259. .radio = {
  260. .type = CX88_RADIO,
  261. .gpio0 = 0x0035d700,
  262. .gpio1 = 0x00007004,
  263. .gpio2 = 0x0035d700,
  264. .gpio3 = 0x02000000,
  265. },
  266. },
  267. [CX88_BOARD_LEADTEK_PVR2000] = {
  268. // gpio values for PAL version from regspy by DScaler
  269. .name = "Leadtek PVR 2000",
  270. .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
  271. .radio_type = UNSET,
  272. .tuner_addr = ADDR_UNSET,
  273. .radio_addr = ADDR_UNSET,
  274. .tda9887_conf = TDA9887_PRESENT,
  275. .input = {{
  276. .type = CX88_VMUX_TELEVISION,
  277. .vmux = 0,
  278. .gpio0 = 0x0000bde2,
  279. .extadc = 1,
  280. },{
  281. .type = CX88_VMUX_COMPOSITE1,
  282. .vmux = 1,
  283. .gpio0 = 0x0000bde6,
  284. .extadc = 1,
  285. },{
  286. .type = CX88_VMUX_SVIDEO,
  287. .vmux = 2,
  288. .gpio0 = 0x0000bde6,
  289. .extadc = 1,
  290. }},
  291. .radio = {
  292. .type = CX88_RADIO,
  293. .gpio0 = 0x0000bd62,
  294. .extadc = 1,
  295. },
  296. .mpeg = CX88_MPEG_BLACKBIRD,
  297. },
  298. [CX88_BOARD_IODATA_GVVCP3PCI] = {
  299. .name = "IODATA GV-VCP3/PCI",
  300. .tuner_type = TUNER_ABSENT,
  301. .radio_type = UNSET,
  302. .tuner_addr = ADDR_UNSET,
  303. .radio_addr = ADDR_UNSET,
  304. .input = {{
  305. .type = CX88_VMUX_COMPOSITE1,
  306. .vmux = 0,
  307. },{
  308. .type = CX88_VMUX_COMPOSITE2,
  309. .vmux = 1,
  310. },{
  311. .type = CX88_VMUX_SVIDEO,
  312. .vmux = 2,
  313. }},
  314. },
  315. [CX88_BOARD_PROLINK_PLAYTVPVR] = {
  316. .name = "Prolink PlayTV PVR",
  317. .tuner_type = TUNER_PHILIPS_FM1236_MK3,
  318. .radio_type = UNSET,
  319. .tuner_addr = ADDR_UNSET,
  320. .radio_addr = ADDR_UNSET,
  321. .tda9887_conf = TDA9887_PRESENT,
  322. .input = {{
  323. .type = CX88_VMUX_TELEVISION,
  324. .vmux = 0,
  325. .gpio0 = 0xbff0,
  326. },{
  327. .type = CX88_VMUX_COMPOSITE1,
  328. .vmux = 1,
  329. .gpio0 = 0xbff3,
  330. },{
  331. .type = CX88_VMUX_SVIDEO,
  332. .vmux = 2,
  333. .gpio0 = 0xbff3,
  334. }},
  335. .radio = {
  336. .type = CX88_RADIO,
  337. .gpio0 = 0xbff0,
  338. },
  339. },
  340. [CX88_BOARD_ASUS_PVR_416] = {
  341. .name = "ASUS PVR-416",
  342. .tuner_type = TUNER_PHILIPS_FM1236_MK3,
  343. .radio_type = UNSET,
  344. .tuner_addr = ADDR_UNSET,
  345. .radio_addr = ADDR_UNSET,
  346. .tda9887_conf = TDA9887_PRESENT,
  347. .input = {{
  348. .type = CX88_VMUX_TELEVISION,
  349. .vmux = 0,
  350. .gpio0 = 0x0000fde6,
  351. },{
  352. .type = CX88_VMUX_SVIDEO,
  353. .vmux = 2,
  354. .gpio0 = 0x0000fde6, // 0x0000fda6 L,R RCA audio in?
  355. .extadc = 1,
  356. }},
  357. .radio = {
  358. .type = CX88_RADIO,
  359. .gpio0 = 0x0000fde2,
  360. },
  361. .mpeg = CX88_MPEG_BLACKBIRD,
  362. },
  363. [CX88_BOARD_MSI_TVANYWHERE] = {
  364. .name = "MSI TV-@nywhere",
  365. .tuner_type = TUNER_MT2032,
  366. .radio_type = UNSET,
  367. .tuner_addr = ADDR_UNSET,
  368. .radio_addr = ADDR_UNSET,
  369. .tda9887_conf = TDA9887_PRESENT,
  370. .input = {{
  371. .type = CX88_VMUX_TELEVISION,
  372. .vmux = 0,
  373. .gpio0 = 0x00000fbf,
  374. .gpio2 = 0x0000fc08,
  375. },{
  376. .type = CX88_VMUX_COMPOSITE1,
  377. .vmux = 1,
  378. .gpio0 = 0x00000fbf,
  379. .gpio2 = 0x0000fc68,
  380. },{
  381. .type = CX88_VMUX_SVIDEO,
  382. .vmux = 2,
  383. .gpio0 = 0x00000fbf,
  384. .gpio2 = 0x0000fc68,
  385. }},
  386. },
  387. [CX88_BOARD_KWORLD_DVB_T] = {
  388. .name = "KWorld/VStream XPert DVB-T",
  389. .tuner_type = TUNER_ABSENT,
  390. .radio_type = UNSET,
  391. .tuner_addr = ADDR_UNSET,
  392. .radio_addr = ADDR_UNSET,
  393. .input = {{
  394. .type = CX88_VMUX_COMPOSITE1,
  395. .vmux = 1,
  396. .gpio0 = 0x0700,
  397. .gpio2 = 0x0101,
  398. },{
  399. .type = CX88_VMUX_SVIDEO,
  400. .vmux = 2,
  401. .gpio0 = 0x0700,
  402. .gpio2 = 0x0101,
  403. }},
  404. .mpeg = CX88_MPEG_DVB,
  405. },
  406. [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1] = {
  407. .name = "DViCO FusionHDTV DVB-T1",
  408. .tuner_type = TUNER_ABSENT, /* No analog tuner */
  409. .radio_type = UNSET,
  410. .tuner_addr = ADDR_UNSET,
  411. .radio_addr = ADDR_UNSET,
  412. .input = {{
  413. .type = CX88_VMUX_COMPOSITE1,
  414. .vmux = 1,
  415. .gpio0 = 0x000027df,
  416. },{
  417. .type = CX88_VMUX_SVIDEO,
  418. .vmux = 2,
  419. .gpio0 = 0x000027df,
  420. }},
  421. .mpeg = CX88_MPEG_DVB,
  422. },
  423. [CX88_BOARD_KWORLD_LTV883] = {
  424. .name = "KWorld LTV883RF",
  425. .tuner_type = TUNER_TNF_8831BGFF,
  426. .radio_type = UNSET,
  427. .tuner_addr = ADDR_UNSET,
  428. .radio_addr = ADDR_UNSET,
  429. .input = {{
  430. .type = CX88_VMUX_TELEVISION,
  431. .vmux = 0,
  432. .gpio0 = 0x07f8,
  433. },{
  434. .type = CX88_VMUX_DEBUG,
  435. .vmux = 0,
  436. .gpio0 = 0x07f9, // mono from tuner chip
  437. },{
  438. .type = CX88_VMUX_COMPOSITE1,
  439. .vmux = 1,
  440. .gpio0 = 0x000007fa,
  441. },{
  442. .type = CX88_VMUX_SVIDEO,
  443. .vmux = 2,
  444. .gpio0 = 0x000007fa,
  445. }},
  446. .radio = {
  447. .type = CX88_RADIO,
  448. .gpio0 = 0x000007f8,
  449. },
  450. },
  451. [CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q] = {
  452. .name = "DViCO FusionHDTV 3 Gold-Q",
  453. .tuner_type = TUNER_MICROTUNE_4042FI5,
  454. .radio_type = UNSET,
  455. .tuner_addr = ADDR_UNSET,
  456. .radio_addr = ADDR_UNSET,
  457. /*
  458. GPIO[0] resets DT3302 DTV receiver
  459. 0 - reset asserted
  460. 1 - normal operation
  461. GPIO[1] mutes analog audio output connector
  462. 0 - enable selected source
  463. 1 - mute
  464. GPIO[2] selects source for analog audio output connector
  465. 0 - analog audio input connector on tab
  466. 1 - analog DAC output from CX23881 chip
  467. GPIO[3] selects RF input connector on tuner module
  468. 0 - RF connector labeled CABLE
  469. 1 - RF connector labeled ANT
  470. GPIO[4] selects high RF for QAM256 mode
  471. 0 - normal RF
  472. 1 - high RF
  473. */
  474. .input = {{
  475. .type = CX88_VMUX_TELEVISION,
  476. .vmux = 0,
  477. .gpio0 = 0x0f0d,
  478. },{
  479. .type = CX88_VMUX_CABLE,
  480. .vmux = 0,
  481. .gpio0 = 0x0f05,
  482. },{
  483. .type = CX88_VMUX_COMPOSITE1,
  484. .vmux = 1,
  485. .gpio0 = 0x0f00,
  486. },{
  487. .type = CX88_VMUX_SVIDEO,
  488. .vmux = 2,
  489. .gpio0 = 0x0f00,
  490. }},
  491. .mpeg = CX88_MPEG_DVB,
  492. },
  493. [CX88_BOARD_HAUPPAUGE_DVB_T1] = {
  494. .name = "Hauppauge Nova-T DVB-T",
  495. .tuner_type = TUNER_ABSENT,
  496. .radio_type = UNSET,
  497. .tuner_addr = ADDR_UNSET,
  498. .radio_addr = ADDR_UNSET,
  499. .input = {{
  500. .type = CX88_VMUX_DVB,
  501. .vmux = 0,
  502. }},
  503. .mpeg = CX88_MPEG_DVB,
  504. },
  505. [CX88_BOARD_CONEXANT_DVB_T1] = {
  506. .name = "Conexant DVB-T reference design",
  507. .tuner_type = TUNER_ABSENT,
  508. .radio_type = UNSET,
  509. .tuner_addr = ADDR_UNSET,
  510. .radio_addr = ADDR_UNSET,
  511. .input = {{
  512. .type = CX88_VMUX_DVB,
  513. .vmux = 0,
  514. }},
  515. .mpeg = CX88_MPEG_DVB,
  516. },
  517. [CX88_BOARD_PROVIDEO_PV259] = {
  518. .name = "Provideo PV259",
  519. .tuner_type = TUNER_PHILIPS_FQ1216ME,
  520. .radio_type = UNSET,
  521. .tuner_addr = ADDR_UNSET,
  522. .radio_addr = ADDR_UNSET,
  523. .input = {{
  524. .type = CX88_VMUX_TELEVISION,
  525. .vmux = 0,
  526. .extadc = 1,
  527. }},
  528. .mpeg = CX88_MPEG_BLACKBIRD,
  529. },
  530. [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS] = {
  531. .name = "DViCO FusionHDTV DVB-T Plus",
  532. .tuner_type = TUNER_ABSENT, /* No analog tuner */
  533. .radio_type = UNSET,
  534. .tuner_addr = ADDR_UNSET,
  535. .radio_addr = ADDR_UNSET,
  536. .input = {{
  537. .type = CX88_VMUX_COMPOSITE1,
  538. .vmux = 1,
  539. .gpio0 = 0x000027df,
  540. },{
  541. .type = CX88_VMUX_SVIDEO,
  542. .vmux = 2,
  543. .gpio0 = 0x000027df,
  544. }},
  545. .mpeg = CX88_MPEG_DVB,
  546. },
  547. [CX88_BOARD_DNTV_LIVE_DVB_T] = {
  548. .name = "digitalnow DNTV Live! DVB-T",
  549. .tuner_type = TUNER_ABSENT,
  550. .radio_type = UNSET,
  551. .tuner_addr = ADDR_UNSET,
  552. .radio_addr = ADDR_UNSET,
  553. .input = {{
  554. .type = CX88_VMUX_COMPOSITE1,
  555. .vmux = 1,
  556. .gpio0 = 0x00000700,
  557. .gpio2 = 0x00000101,
  558. },{
  559. .type = CX88_VMUX_SVIDEO,
  560. .vmux = 2,
  561. .gpio0 = 0x00000700,
  562. .gpio2 = 0x00000101,
  563. }},
  564. .mpeg = CX88_MPEG_DVB,
  565. },
  566. [CX88_BOARD_PCHDTV_HD3000] = {
  567. .name = "pcHDTV HD3000 HDTV",
  568. .tuner_type = TUNER_THOMSON_DTT761X,
  569. .radio_type = UNSET,
  570. .tuner_addr = ADDR_UNSET,
  571. .radio_addr = ADDR_UNSET,
  572. .tda9887_conf = TDA9887_PRESENT,
  573. .input = {{
  574. .type = CX88_VMUX_TELEVISION,
  575. .vmux = 0,
  576. .gpio0 = 0x00008484,
  577. .gpio1 = 0x00000000,
  578. .gpio2 = 0x00000000,
  579. .gpio3 = 0x00000000,
  580. },{
  581. .type = CX88_VMUX_COMPOSITE1,
  582. .vmux = 1,
  583. .gpio0 = 0x00008400,
  584. .gpio1 = 0x00000000,
  585. .gpio2 = 0x00000000,
  586. .gpio3 = 0x00000000,
  587. },{
  588. .type = CX88_VMUX_SVIDEO,
  589. .vmux = 2,
  590. .gpio0 = 0x00008400,
  591. .gpio1 = 0x00000000,
  592. .gpio2 = 0x00000000,
  593. .gpio3 = 0x00000000,
  594. }},
  595. .radio = {
  596. .type = CX88_RADIO,
  597. .vmux = 2,
  598. .gpio0 = 0x00008400,
  599. .gpio1 = 0x00000000,
  600. .gpio2 = 0x00000000,
  601. .gpio3 = 0x00000000,
  602. },
  603. .mpeg = CX88_MPEG_DVB,
  604. },
  605. [CX88_BOARD_HAUPPAUGE_ROSLYN] = {
  606. // entry added by Kaustubh D. Bhalerao <bhalerao.1@osu.edu>
  607. // GPIO values obtained from regspy, courtesy Sean Covel
  608. .name = "Hauppauge WinTV 28xxx (Roslyn) models",
  609. .tuner_type = UNSET,
  610. .radio_type = UNSET,
  611. .tuner_addr = ADDR_UNSET,
  612. .radio_addr = ADDR_UNSET,
  613. .input = {{
  614. .type = CX88_VMUX_TELEVISION,
  615. .vmux = 0,
  616. .gpio0 = 0xed1a,
  617. .gpio2 = 0x00ff,
  618. },{
  619. .type = CX88_VMUX_DEBUG,
  620. .vmux = 0,
  621. .gpio0 = 0xff01,
  622. },{
  623. .type = CX88_VMUX_COMPOSITE1,
  624. .vmux = 1,
  625. .gpio0 = 0xff02,
  626. },{
  627. .type = CX88_VMUX_SVIDEO,
  628. .vmux = 2,
  629. .gpio0 = 0xed92,
  630. .gpio2 = 0x00ff,
  631. }},
  632. .radio = {
  633. .type = CX88_RADIO,
  634. .gpio0 = 0xed96,
  635. .gpio2 = 0x00ff,
  636. },
  637. .mpeg = CX88_MPEG_BLACKBIRD,
  638. },
  639. [CX88_BOARD_DIGITALLOGIC_MEC] = {
  640. .name = "Digital-Logic MICROSPACE Entertainment Center (MEC)",
  641. .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
  642. .radio_type = UNSET,
  643. .tuner_addr = ADDR_UNSET,
  644. .radio_addr = ADDR_UNSET,
  645. .tda9887_conf = TDA9887_PRESENT,
  646. .input = {{
  647. .type = CX88_VMUX_TELEVISION,
  648. .vmux = 0,
  649. .gpio0 = 0x00009d80,
  650. .extadc = 1,
  651. },{
  652. .type = CX88_VMUX_COMPOSITE1,
  653. .vmux = 1,
  654. .gpio0 = 0x00009d76,
  655. .extadc = 1,
  656. },{
  657. .type = CX88_VMUX_SVIDEO,
  658. .vmux = 2,
  659. .gpio0 = 0x00009d76,
  660. .extadc = 1,
  661. }},
  662. .radio = {
  663. .type = CX88_RADIO,
  664. .gpio0 = 0x00009d00,
  665. .extadc = 1,
  666. },
  667. .mpeg = CX88_MPEG_BLACKBIRD,
  668. },
  669. [CX88_BOARD_IODATA_GVBCTV7E] = {
  670. .name = "IODATA GV/BCTV7E",
  671. .tuner_type = TUNER_PHILIPS_FQ1286,
  672. .radio_type = UNSET,
  673. .tuner_addr = ADDR_UNSET,
  674. .radio_addr = ADDR_UNSET,
  675. .tda9887_conf = TDA9887_PRESENT,
  676. .input = {{
  677. .type = CX88_VMUX_TELEVISION,
  678. .vmux = 1,
  679. .gpio1 = 0x0000e03f,
  680. },{
  681. .type = CX88_VMUX_COMPOSITE1,
  682. .vmux = 2,
  683. .gpio1 = 0x0000e07f,
  684. },{
  685. .type = CX88_VMUX_SVIDEO,
  686. .vmux = 3,
  687. .gpio1 = 0x0000e07f,
  688. }}
  689. },
  690. [CX88_BOARD_PIXELVIEW_PLAYTV_ULTRA_PRO] = {
  691. .name = "PixelView PlayTV Ultra Pro (Stereo)",
  692. /* May be also TUNER_YMEC_TVF_5533MF for NTSC/M or PAL/M */
  693. .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
  694. .radio_type = UNSET,
  695. .tuner_addr = ADDR_UNSET,
  696. .radio_addr = ADDR_UNSET,
  697. .input = {{
  698. .type = CX88_VMUX_TELEVISION,
  699. .vmux = 0,
  700. .gpio0 = 0xbf61, /* internal decoder */
  701. },{
  702. .type = CX88_VMUX_COMPOSITE1,
  703. .vmux = 1,
  704. .gpio0 = 0xbf63,
  705. },{
  706. .type = CX88_VMUX_SVIDEO,
  707. .vmux = 2,
  708. .gpio0 = 0xbf63,
  709. }},
  710. .radio = {
  711. .type = CX88_RADIO,
  712. .gpio0 = 0xbf60,
  713. },
  714. },
  715. [CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_T] = {
  716. .name = "DViCO FusionHDTV 3 Gold-T",
  717. .tuner_type = TUNER_THOMSON_DTT761X,
  718. .radio_type = UNSET,
  719. .tuner_addr = ADDR_UNSET,
  720. .radio_addr = ADDR_UNSET,
  721. .tda9887_conf = TDA9887_PRESENT,
  722. .input = {{
  723. .type = CX88_VMUX_TELEVISION,
  724. .vmux = 0,
  725. .gpio0 = 0x97ed,
  726. },{
  727. .type = CX88_VMUX_COMPOSITE1,
  728. .vmux = 1,
  729. .gpio0 = 0x97e9,
  730. },{
  731. .type = CX88_VMUX_SVIDEO,
  732. .vmux = 2,
  733. .gpio0 = 0x97e9,
  734. }},
  735. .mpeg = CX88_MPEG_DVB,
  736. },
  737. [CX88_BOARD_ADSTECH_DVB_T_PCI] = {
  738. .name = "ADS Tech Instant TV DVB-T PCI",
  739. .tuner_type = TUNER_ABSENT,
  740. .radio_type = UNSET,
  741. .tuner_addr = ADDR_UNSET,
  742. .radio_addr = ADDR_UNSET,
  743. .input = {{
  744. .type = CX88_VMUX_COMPOSITE1,
  745. .vmux = 1,
  746. .gpio0 = 0x0700,
  747. .gpio2 = 0x0101,
  748. },{
  749. .type = CX88_VMUX_SVIDEO,
  750. .vmux = 2,
  751. .gpio0 = 0x0700,
  752. .gpio2 = 0x0101,
  753. }},
  754. .mpeg = CX88_MPEG_DVB,
  755. },
  756. [CX88_BOARD_TERRATEC_CINERGY_1400_DVB_T1] = {
  757. .name = "TerraTec Cinergy 1400 DVB-T",
  758. .tuner_type = TUNER_ABSENT,
  759. .input = {{
  760. .type = CX88_VMUX_DVB,
  761. .vmux = 0,
  762. },{
  763. .type = CX88_VMUX_COMPOSITE1,
  764. .vmux = 2,
  765. },{
  766. .type = CX88_VMUX_SVIDEO,
  767. .vmux = 2,
  768. }},
  769. .mpeg = CX88_MPEG_DVB,
  770. },
  771. [CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD] = {
  772. .name = "DViCO FusionHDTV 5 Gold",
  773. .tuner_type = TUNER_LG_TDVS_H06XF, /* TDVS-H062F */
  774. .radio_type = UNSET,
  775. .tuner_addr = ADDR_UNSET,
  776. .radio_addr = ADDR_UNSET,
  777. .tda9887_conf = TDA9887_PRESENT,
  778. .input = {{
  779. .type = CX88_VMUX_TELEVISION,
  780. .vmux = 0,
  781. .gpio0 = 0x87fd,
  782. },{
  783. .type = CX88_VMUX_COMPOSITE1,
  784. .vmux = 1,
  785. .gpio0 = 0x87f9,
  786. },{
  787. .type = CX88_VMUX_SVIDEO,
  788. .vmux = 2,
  789. .gpio0 = 0x87f9,
  790. }},
  791. .mpeg = CX88_MPEG_DVB,
  792. },
  793. [CX88_BOARD_AVERMEDIA_ULTRATV_MC_550] = {
  794. .name = "AverMedia UltraTV Media Center PCI 550",
  795. .tuner_type = TUNER_PHILIPS_FM1236_MK3,
  796. .radio_type = UNSET,
  797. .tuner_addr = ADDR_UNSET,
  798. .radio_addr = ADDR_UNSET,
  799. .tda9887_conf = TDA9887_PRESENT,
  800. .input = {{
  801. .type = CX88_VMUX_COMPOSITE1,
  802. .vmux = 0,
  803. .gpio0 = 0x0000cd73,
  804. .extadc = 1,
  805. },{
  806. .type = CX88_VMUX_SVIDEO,
  807. .vmux = 1,
  808. .gpio0 = 0x0000cd73,
  809. .extadc = 1,
  810. },{
  811. .type = CX88_VMUX_TELEVISION,
  812. .vmux = 3,
  813. .gpio0 = 0x0000cdb3,
  814. .extadc = 1,
  815. }},
  816. .radio = {
  817. .type = CX88_RADIO,
  818. .vmux = 2,
  819. .gpio0 = 0x0000cdf3,
  820. .extadc = 1,
  821. },
  822. .mpeg = CX88_MPEG_BLACKBIRD,
  823. },
  824. [CX88_BOARD_KWORLD_VSTREAM_EXPERT_DVD] = {
  825. /* Alexander Wold <awold@bigfoot.com> */
  826. .name = "Kworld V-Stream Xpert DVD",
  827. .tuner_type = UNSET,
  828. .input = {{
  829. .type = CX88_VMUX_COMPOSITE1,
  830. .vmux = 1,
  831. .gpio0 = 0x03000000,
  832. .gpio1 = 0x01000000,
  833. .gpio2 = 0x02000000,
  834. .gpio3 = 0x00100000,
  835. },{
  836. .type = CX88_VMUX_SVIDEO,
  837. .vmux = 2,
  838. .gpio0 = 0x03000000,
  839. .gpio1 = 0x01000000,
  840. .gpio2 = 0x02000000,
  841. .gpio3 = 0x00100000,
  842. }},
  843. },
  844. [CX88_BOARD_ATI_HDTVWONDER] = {
  845. .name = "ATI HDTV Wonder",
  846. .tuner_type = TUNER_PHILIPS_TUV1236D,
  847. .radio_type = UNSET,
  848. .tuner_addr = ADDR_UNSET,
  849. .radio_addr = ADDR_UNSET,
  850. .input = {{
  851. .type = CX88_VMUX_TELEVISION,
  852. .vmux = 0,
  853. .gpio0 = 0x00000ff7,
  854. .gpio1 = 0x000000ff,
  855. .gpio2 = 0x00000001,
  856. .gpio3 = 0x00000000,
  857. },{
  858. .type = CX88_VMUX_COMPOSITE1,
  859. .vmux = 1,
  860. .gpio0 = 0x00000ffe,
  861. .gpio1 = 0x000000ff,
  862. .gpio2 = 0x00000001,
  863. .gpio3 = 0x00000000,
  864. },{
  865. .type = CX88_VMUX_SVIDEO,
  866. .vmux = 2,
  867. .gpio0 = 0x00000ffe,
  868. .gpio1 = 0x000000ff,
  869. .gpio2 = 0x00000001,
  870. .gpio3 = 0x00000000,
  871. }},
  872. .mpeg = CX88_MPEG_DVB,
  873. },
  874. [CX88_BOARD_WINFAST_DTV1000] = {
  875. .name = "WinFast DTV1000-T",
  876. .tuner_type = TUNER_ABSENT,
  877. .radio_type = UNSET,
  878. .tuner_addr = ADDR_UNSET,
  879. .radio_addr = ADDR_UNSET,
  880. .input = {{
  881. .type = CX88_VMUX_DVB,
  882. .vmux = 0,
  883. }},
  884. .mpeg = CX88_MPEG_DVB,
  885. },
  886. [CX88_BOARD_AVERTV_303] = {
  887. .name = "AVerTV 303 (M126)",
  888. .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
  889. .radio_type = UNSET,
  890. .tuner_addr = ADDR_UNSET,
  891. .radio_addr = ADDR_UNSET,
  892. .tda9887_conf = TDA9887_PRESENT,
  893. .input = {{
  894. .type = CX88_VMUX_TELEVISION,
  895. .vmux = 0,
  896. .gpio0 = 0x00ff,
  897. .gpio1 = 0xe09f,
  898. .gpio2 = 0x0010,
  899. .gpio3 = 0x0000,
  900. },{
  901. .type = CX88_VMUX_COMPOSITE1,
  902. .vmux = 1,
  903. .gpio0 = 0x00ff,
  904. .gpio1 = 0xe05f,
  905. .gpio2 = 0x0010,
  906. .gpio3 = 0x0000,
  907. },{
  908. .type = CX88_VMUX_SVIDEO,
  909. .vmux = 2,
  910. .gpio0 = 0x00ff,
  911. .gpio1 = 0xe05f,
  912. .gpio2 = 0x0010,
  913. .gpio3 = 0x0000,
  914. }},
  915. },
  916. [CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1] = {
  917. .name = "Hauppauge Nova-S-Plus DVB-S",
  918. .tuner_type = TUNER_ABSENT,
  919. .radio_type = UNSET,
  920. .tuner_addr = ADDR_UNSET,
  921. .radio_addr = ADDR_UNSET,
  922. .input = {{
  923. .type = CX88_VMUX_DVB,
  924. .vmux = 0,
  925. },{
  926. .type = CX88_VMUX_COMPOSITE1,
  927. .vmux = 1,
  928. },{
  929. .type = CX88_VMUX_SVIDEO,
  930. .vmux = 2,
  931. }},
  932. .mpeg = CX88_MPEG_DVB,
  933. },
  934. [CX88_BOARD_HAUPPAUGE_NOVASE2_S1] = {
  935. .name = "Hauppauge Nova-SE2 DVB-S",
  936. .tuner_type = TUNER_ABSENT,
  937. .radio_type = UNSET,
  938. .tuner_addr = ADDR_UNSET,
  939. .radio_addr = ADDR_UNSET,
  940. .input = {{
  941. .type = CX88_VMUX_DVB,
  942. .vmux = 0,
  943. }},
  944. .mpeg = CX88_MPEG_DVB,
  945. },
  946. [CX88_BOARD_KWORLD_DVBS_100] = {
  947. .name = "KWorld DVB-S 100",
  948. .tuner_type = TUNER_ABSENT,
  949. .radio_type = UNSET,
  950. .tuner_addr = ADDR_UNSET,
  951. .radio_addr = ADDR_UNSET,
  952. .input = {{
  953. .type = CX88_VMUX_DVB,
  954. .vmux = 0,
  955. },{
  956. .type = CX88_VMUX_COMPOSITE1,
  957. .vmux = 1,
  958. },{
  959. .type = CX88_VMUX_SVIDEO,
  960. .vmux = 2,
  961. }},
  962. .mpeg = CX88_MPEG_DVB,
  963. },
  964. [CX88_BOARD_HAUPPAUGE_HVR1100] = {
  965. .name = "Hauppauge WinTV-HVR1100 DVB-T/Hybrid",
  966. .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3,
  967. .radio_type = UNSET,
  968. .tuner_addr = ADDR_UNSET,
  969. .radio_addr = ADDR_UNSET,
  970. .tda9887_conf = TDA9887_PRESENT,
  971. .input = {{
  972. .type = CX88_VMUX_TELEVISION,
  973. .vmux = 0,
  974. },{
  975. .type = CX88_VMUX_COMPOSITE1,
  976. .vmux = 1,
  977. },{
  978. .type = CX88_VMUX_SVIDEO,
  979. .vmux = 2,
  980. }},
  981. /* fixme: Add radio support */
  982. .mpeg = CX88_MPEG_DVB,
  983. },
  984. [CX88_BOARD_HAUPPAUGE_HVR1100LP] = {
  985. .name = "Hauppauge WinTV-HVR1100 DVB-T/Hybrid (Low Profile)",
  986. .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3,
  987. .radio_type = UNSET,
  988. .tuner_addr = ADDR_UNSET,
  989. .radio_addr = ADDR_UNSET,
  990. .tda9887_conf = TDA9887_PRESENT,
  991. .input = {{
  992. .type = CX88_VMUX_TELEVISION,
  993. .vmux = 0,
  994. },{
  995. .type = CX88_VMUX_COMPOSITE1,
  996. .vmux = 1,
  997. }},
  998. /* fixme: Add radio support */
  999. .mpeg = CX88_MPEG_DVB,
  1000. },
  1001. [CX88_BOARD_DNTV_LIVE_DVB_T_PRO] = {
  1002. .name = "digitalnow DNTV Live! DVB-T Pro",
  1003. .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3,
  1004. .radio_type = UNSET,
  1005. .tuner_addr = ADDR_UNSET,
  1006. .radio_addr = ADDR_UNSET,
  1007. .tda9887_conf = TDA9887_PRESENT | TDA9887_PORT1_ACTIVE |
  1008. TDA9887_PORT2_ACTIVE,
  1009. .input = {{
  1010. .type = CX88_VMUX_TELEVISION,
  1011. .vmux = 0,
  1012. .gpio0 = 0xf80808,
  1013. },{
  1014. .type = CX88_VMUX_COMPOSITE1,
  1015. .vmux = 1,
  1016. .gpio0 = 0xf80808,
  1017. },{
  1018. .type = CX88_VMUX_SVIDEO,
  1019. .vmux = 2,
  1020. .gpio0 = 0xf80808,
  1021. }},
  1022. .radio = {
  1023. .type = CX88_RADIO,
  1024. .gpio0 = 0xf80808,
  1025. },
  1026. .mpeg = CX88_MPEG_DVB,
  1027. },
  1028. [CX88_BOARD_KWORLD_DVB_T_CX22702] = {
  1029. /* Kworld V-stream Xpert DVB-T with Thomson tuner */
  1030. /* DTT 7579 Conexant CX22702-19 Conexant CX2388x */
  1031. /* Manenti Marco <marco_manenti@colman.it> */
  1032. .name = "KWorld/VStream XPert DVB-T with cx22702",
  1033. .tuner_type = TUNER_ABSENT,
  1034. .radio_type = UNSET,
  1035. .tuner_addr = ADDR_UNSET,
  1036. .radio_addr = ADDR_UNSET,
  1037. .input = {{
  1038. .type = CX88_VMUX_COMPOSITE1,
  1039. .vmux = 1,
  1040. .gpio0 = 0x0700,
  1041. .gpio2 = 0x0101,
  1042. },{
  1043. .type = CX88_VMUX_SVIDEO,
  1044. .vmux = 2,
  1045. .gpio0 = 0x0700,
  1046. .gpio2 = 0x0101,
  1047. }},
  1048. .mpeg = CX88_MPEG_DVB,
  1049. },
  1050. [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL] = {
  1051. .name = "DViCO FusionHDTV DVB-T Dual Digital",
  1052. .tuner_type = TUNER_ABSENT, /* No analog tuner */
  1053. .radio_type = UNSET,
  1054. .tuner_addr = ADDR_UNSET,
  1055. .radio_addr = ADDR_UNSET,
  1056. .input = {{
  1057. .type = CX88_VMUX_COMPOSITE1,
  1058. .vmux = 1,
  1059. .gpio0 = 0x000067df,
  1060. },{
  1061. .type = CX88_VMUX_SVIDEO,
  1062. .vmux = 2,
  1063. .gpio0 = 0x000067df,
  1064. }},
  1065. .mpeg = CX88_MPEG_DVB,
  1066. },
  1067. [CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT] = {
  1068. .name = "KWorld HardwareMpegTV XPert",
  1069. .tuner_type = TUNER_PHILIPS_TDA8290,
  1070. .radio_type = UNSET,
  1071. .tuner_addr = ADDR_UNSET,
  1072. .radio_addr = ADDR_UNSET,
  1073. .input = {{
  1074. .type = CX88_VMUX_TELEVISION,
  1075. .vmux = 0,
  1076. .gpio0 = 0x3de2,
  1077. .gpio2 = 0x00ff,
  1078. },{
  1079. .type = CX88_VMUX_COMPOSITE1,
  1080. .vmux = 1,
  1081. .gpio0 = 0x3de6,
  1082. .extadc = 1,
  1083. },{
  1084. .type = CX88_VMUX_SVIDEO,
  1085. .vmux = 2,
  1086. .gpio0 = 0x3de6,
  1087. .extadc = 1,
  1088. }},
  1089. .radio = {
  1090. .type = CX88_RADIO,
  1091. .gpio0 = 0x3de6,
  1092. .gpio2 = 0x00ff,
  1093. },
  1094. .mpeg = CX88_MPEG_BLACKBIRD,
  1095. },
  1096. [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID] = {
  1097. .name = "DViCO FusionHDTV DVB-T Hybrid",
  1098. .tuner_type = TUNER_THOMSON_FE6600,
  1099. .radio_type = UNSET,
  1100. .tuner_addr = ADDR_UNSET,
  1101. .radio_addr = ADDR_UNSET,
  1102. .input = {{
  1103. .type = CX88_VMUX_TELEVISION,
  1104. .vmux = 0,
  1105. .gpio0 = 0x0000a75f,
  1106. },{
  1107. .type = CX88_VMUX_COMPOSITE1,
  1108. .vmux = 1,
  1109. .gpio0 = 0x0000a75b,
  1110. },{
  1111. .type = CX88_VMUX_SVIDEO,
  1112. .vmux = 2,
  1113. .gpio0 = 0x0000a75b,
  1114. }},
  1115. .mpeg = CX88_MPEG_DVB,
  1116. },
  1117. [CX88_BOARD_PCHDTV_HD5500] = {
  1118. .name = "pcHDTV HD5500 HDTV",
  1119. .tuner_type = TUNER_LG_TDVS_H06XF, /* TDVS-H064F */
  1120. .radio_type = UNSET,
  1121. .tuner_addr = ADDR_UNSET,
  1122. .radio_addr = ADDR_UNSET,
  1123. .tda9887_conf = TDA9887_PRESENT,
  1124. .input = {{
  1125. .type = CX88_VMUX_TELEVISION,
  1126. .vmux = 0,
  1127. .gpio0 = 0x87fd,
  1128. },{
  1129. .type = CX88_VMUX_COMPOSITE1,
  1130. .vmux = 1,
  1131. .gpio0 = 0x87f9,
  1132. },{
  1133. .type = CX88_VMUX_SVIDEO,
  1134. .vmux = 2,
  1135. .gpio0 = 0x87f9,
  1136. }},
  1137. .mpeg = CX88_MPEG_DVB,
  1138. },
  1139. [CX88_BOARD_KWORLD_MCE200_DELUXE] = {
  1140. /* FIXME: tested TV input only, disabled composite,
  1141. svideo and radio until they can be tested also. */
  1142. .name = "Kworld MCE 200 Deluxe",
  1143. .tuner_type = TUNER_TENA_9533_DI,
  1144. .radio_type = UNSET,
  1145. .tda9887_conf = TDA9887_PRESENT,
  1146. .tuner_addr = ADDR_UNSET,
  1147. .radio_addr = ADDR_UNSET,
  1148. .input = {{
  1149. .type = CX88_VMUX_TELEVISION,
  1150. .vmux = 0,
  1151. .gpio0 = 0x0000BDE6
  1152. }},
  1153. .mpeg = CX88_MPEG_BLACKBIRD,
  1154. },
  1155. [CX88_BOARD_PIXELVIEW_PLAYTV_P7000] = {
  1156. /* FIXME: SVideo, Composite and FM inputs are untested */
  1157. .name = "PixelView PlayTV P7000",
  1158. .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
  1159. .radio_type = UNSET,
  1160. .tuner_addr = ADDR_UNSET,
  1161. .radio_addr = ADDR_UNSET,
  1162. .tda9887_conf = TDA9887_PRESENT | TDA9887_PORT1_ACTIVE |
  1163. TDA9887_PORT2_ACTIVE,
  1164. .input = {{
  1165. .type = CX88_VMUX_TELEVISION,
  1166. .vmux = 0,
  1167. .gpio0 = 0x5da6,
  1168. }},
  1169. .mpeg = CX88_MPEG_BLACKBIRD,
  1170. },
  1171. [CX88_BOARD_NPGTECH_REALTV_TOP10FM] = {
  1172. .name = "NPG Tech Real TV FM Top 10",
  1173. .tuner_type = TUNER_TNF_5335MF, /* Actually a TNF9535 */
  1174. .radio_type = UNSET,
  1175. .tuner_addr = ADDR_UNSET,
  1176. .radio_addr = ADDR_UNSET,
  1177. .input = {{
  1178. .type = CX88_VMUX_TELEVISION,
  1179. .vmux = 0,
  1180. .gpio0 = 0x0788,
  1181. },{
  1182. .type = CX88_VMUX_COMPOSITE1,
  1183. .vmux = 1,
  1184. .gpio0 = 0x078b,
  1185. },{
  1186. .type = CX88_VMUX_SVIDEO,
  1187. .vmux = 2,
  1188. .gpio0 = 0x078b,
  1189. }},
  1190. .radio = {
  1191. .type = CX88_RADIO,
  1192. .gpio0 = 0x074a,
  1193. },
  1194. },
  1195. [CX88_BOARD_WINFAST_DTV2000H] = {
  1196. /* video inputs and radio still in testing */
  1197. .name = "WinFast DTV2000 H",
  1198. .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3,
  1199. .radio_type = UNSET,
  1200. .tuner_addr = ADDR_UNSET,
  1201. .radio_addr = ADDR_UNSET,
  1202. .tda9887_conf = TDA9887_PRESENT,
  1203. .input = {{
  1204. .type = CX88_VMUX_TELEVISION,
  1205. .vmux = 0,
  1206. .gpio0 = 0x00017304,
  1207. .gpio1 = 0x00008203,
  1208. .gpio2 = 0x00017304,
  1209. .gpio3 = 0x02000000,
  1210. }},
  1211. .mpeg = CX88_MPEG_DVB,
  1212. },
  1213. [CX88_BOARD_GENIATECH_DVBS] = {
  1214. .name = "Geniatech DVB-S",
  1215. .tuner_type = TUNER_ABSENT,
  1216. .radio_type = UNSET,
  1217. .tuner_addr = ADDR_UNSET,
  1218. .radio_addr = ADDR_UNSET,
  1219. .input = {{
  1220. .type = CX88_VMUX_DVB,
  1221. .vmux = 0,
  1222. },{
  1223. .type = CX88_VMUX_COMPOSITE1,
  1224. .vmux = 1,
  1225. }},
  1226. .mpeg = CX88_MPEG_DVB,
  1227. },
  1228. [CX88_BOARD_HAUPPAUGE_HVR3000] = {
  1229. /* FIXME: Add dvb & radio support */
  1230. .name = "Hauppauge WinTV-HVR3000 TriMode Analog/DVB-S/DVB-T",
  1231. .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3,
  1232. .radio_type = UNSET,
  1233. .tuner_addr = ADDR_UNSET,
  1234. .radio_addr = ADDR_UNSET,
  1235. .tda9887_conf = TDA9887_PRESENT,
  1236. .input = {{
  1237. .type = CX88_VMUX_TELEVISION,
  1238. .vmux = 0,
  1239. .gpio0 = 0x84bf,
  1240. },{
  1241. .type = CX88_VMUX_COMPOSITE1,
  1242. .vmux = 1,
  1243. .gpio0 = 0x84bf,
  1244. },{
  1245. .type = CX88_VMUX_SVIDEO,
  1246. .vmux = 2,
  1247. .gpio0 = 0x84bf,
  1248. }},
  1249. .mpeg = CX88_MPEG_DVB,
  1250. },
  1251. [CX88_BOARD_NORWOOD_MICRO] = {
  1252. .name = "Norwood Micro TV Tuner",
  1253. .tuner_type = TUNER_TNF_5335MF,
  1254. .radio_type = UNSET,
  1255. .tuner_addr = ADDR_UNSET,
  1256. .radio_addr = ADDR_UNSET,
  1257. .input = {{
  1258. .type = CX88_VMUX_TELEVISION,
  1259. .vmux = 0,
  1260. .gpio0 = 0x0709,
  1261. },{
  1262. .type = CX88_VMUX_COMPOSITE1,
  1263. .vmux = 1,
  1264. .gpio0 = 0x070b,
  1265. },{
  1266. .type = CX88_VMUX_SVIDEO,
  1267. .vmux = 2,
  1268. .gpio0 = 0x070b,
  1269. }},
  1270. },
  1271. [CX88_BOARD_TE_DTV_250_OEM_SWANN] = {
  1272. .name = "Shenzhen Tungsten Ages Tech TE-DTV-250 / Swann OEM",
  1273. .tuner_type = TUNER_LG_PAL_NEW_TAPC,
  1274. .radio_type = UNSET,
  1275. .tuner_addr = ADDR_UNSET,
  1276. .radio_addr = ADDR_UNSET,
  1277. .input = {{
  1278. .type = CX88_VMUX_TELEVISION,
  1279. .vmux = 0,
  1280. .gpio0 = 0x003fffff,
  1281. .gpio1 = 0x00e00000,
  1282. .gpio2 = 0x003fffff,
  1283. .gpio3 = 0x02000000,
  1284. },{
  1285. .type = CX88_VMUX_COMPOSITE1,
  1286. .vmux = 1,
  1287. .gpio0 = 0x003fffff,
  1288. .gpio1 = 0x00e00000,
  1289. .gpio2 = 0x003fffff,
  1290. .gpio3 = 0x02000000,
  1291. },{
  1292. .type = CX88_VMUX_SVIDEO,
  1293. .vmux = 2,
  1294. .gpio0 = 0x003fffff,
  1295. .gpio1 = 0x00e00000,
  1296. .gpio2 = 0x003fffff,
  1297. .gpio3 = 0x02000000,
  1298. }},
  1299. },
  1300. [CX88_BOARD_HAUPPAUGE_HVR1300] = {
  1301. .name = "Hauppauge WinTV-HVR1300 DVB-T/Hybrid MPEG Encoder",
  1302. .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3,
  1303. .radio_type = UNSET,
  1304. .tuner_addr = ADDR_UNSET,
  1305. .radio_addr = ADDR_UNSET,
  1306. .tda9887_conf = TDA9887_PRESENT,
  1307. .audio_chip = AUDIO_CHIP_WM8775,
  1308. .input = {{
  1309. .type = CX88_VMUX_TELEVISION,
  1310. .vmux = 0,
  1311. .gpio0 = 0xe780,
  1312. .extadc = 1,
  1313. },{
  1314. .type = CX88_VMUX_COMPOSITE1,
  1315. .vmux = 1,
  1316. .gpio0 = 0xe780,
  1317. .extadc = 1,
  1318. },{
  1319. .type = CX88_VMUX_SVIDEO,
  1320. .vmux = 2,
  1321. .gpio0 = 0xe780,
  1322. .extadc = 1,
  1323. }},
  1324. /* fixme: Add radio support */
  1325. .mpeg = CX88_MPEG_DVB | CX88_MPEG_BLACKBIRD,
  1326. },
  1327. };
  1328. const unsigned int cx88_bcount = ARRAY_SIZE(cx88_boards);
  1329. /* ------------------------------------------------------------------ */
  1330. /* PCI subsystem IDs */
  1331. struct 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. },{
  1353. .subvendor = 0x107d,
  1354. .subdevice = 0x6611,
  1355. .card = CX88_BOARD_WINFAST2000XP_EXPERT,
  1356. },{
  1357. .subvendor = 0x107d,
  1358. .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,
  1370. .subdevice = 0x663c,
  1371. .card = CX88_BOARD_LEADTEK_PVR2000,
  1372. },{
  1373. .subvendor = 0x1461,
  1374. .subdevice = 0x000b,
  1375. .card = CX88_BOARD_AVERTV_STUDIO_303,
  1376. },{
  1377. .subvendor = 0x1462,
  1378. .subdevice = 0x8606,
  1379. .card = CX88_BOARD_MSI_TVANYWHERE_MASTER,
  1380. },{
  1381. .subvendor = 0x10fc,
  1382. .subdevice = 0xd003,
  1383. .card = CX88_BOARD_IODATA_GVVCP3PCI,
  1384. },{
  1385. .subvendor = 0x1043,
  1386. .subdevice = 0x4823, /* with mpeg encoder */
  1387. .card = CX88_BOARD_ASUS_PVR_416,
  1388. },{
  1389. .subvendor = 0x17de,
  1390. .subdevice = 0x08a6,
  1391. .card = CX88_BOARD_KWORLD_DVB_T,
  1392. },{
  1393. .subvendor = 0x18ac,
  1394. .subdevice = 0xd810,
  1395. .card = CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q,
  1396. },{
  1397. .subvendor = 0x18ac,
  1398. .subdevice = 0xd820,
  1399. .card = CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_T,
  1400. },{
  1401. .subvendor = 0x18ac,
  1402. .subdevice = 0xdb00,
  1403. .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1,
  1404. },{
  1405. .subvendor = 0x0070,
  1406. .subdevice = 0x9002,
  1407. .card = CX88_BOARD_HAUPPAUGE_DVB_T1,
  1408. },{
  1409. .subvendor = 0x14f1,
  1410. .subdevice = 0x0187,
  1411. .card = CX88_BOARD_CONEXANT_DVB_T1,
  1412. },{
  1413. .subvendor = 0x1540,
  1414. .subdevice = 0x2580,
  1415. .card = CX88_BOARD_PROVIDEO_PV259,
  1416. },{
  1417. .subvendor = 0x18ac,
  1418. .subdevice = 0xdb10,
  1419. .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS,
  1420. },{
  1421. .subvendor = 0x1554,
  1422. .subdevice = 0x4811,
  1423. .card = CX88_BOARD_PIXELVIEW,
  1424. },{
  1425. .subvendor = 0x7063,
  1426. .subdevice = 0x3000, /* HD-3000 card */
  1427. .card = CX88_BOARD_PCHDTV_HD3000,
  1428. },{
  1429. .subvendor = 0x17de,
  1430. .subdevice = 0xa8a6,
  1431. .card = CX88_BOARD_DNTV_LIVE_DVB_T,
  1432. },{
  1433. .subvendor = 0x0070,
  1434. .subdevice = 0x2801,
  1435. .card = CX88_BOARD_HAUPPAUGE_ROSLYN,
  1436. },{
  1437. .subvendor = 0x14f1,
  1438. .subdevice = 0x0342,
  1439. .card = CX88_BOARD_DIGITALLOGIC_MEC,
  1440. },{
  1441. .subvendor = 0x10fc,
  1442. .subdevice = 0xd035,
  1443. .card = CX88_BOARD_IODATA_GVBCTV7E,
  1444. },{
  1445. .subvendor = 0x1421,
  1446. .subdevice = 0x0334,
  1447. .card = CX88_BOARD_ADSTECH_DVB_T_PCI,
  1448. },{
  1449. .subvendor = 0x153b,
  1450. .subdevice = 0x1166,
  1451. .card = CX88_BOARD_TERRATEC_CINERGY_1400_DVB_T1,
  1452. },{
  1453. .subvendor = 0x18ac,
  1454. .subdevice = 0xd500,
  1455. .card = CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD,
  1456. },{
  1457. .subvendor = 0x1461,
  1458. .subdevice = 0x8011,
  1459. .card = CX88_BOARD_AVERMEDIA_ULTRATV_MC_550,
  1460. },{
  1461. .subvendor = PCI_VENDOR_ID_ATI,
  1462. .subdevice = 0xa101,
  1463. .card = CX88_BOARD_ATI_HDTVWONDER,
  1464. },{
  1465. .subvendor = 0x107d,
  1466. .subdevice = 0x665f,
  1467. .card = CX88_BOARD_WINFAST_DTV1000,
  1468. },{
  1469. .subvendor = 0x1461,
  1470. .subdevice = 0x000a,
  1471. .card = CX88_BOARD_AVERTV_303,
  1472. },{
  1473. .subvendor = 0x0070,
  1474. .subdevice = 0x9200,
  1475. .card = CX88_BOARD_HAUPPAUGE_NOVASE2_S1,
  1476. },{
  1477. .subvendor = 0x0070,
  1478. .subdevice = 0x9201,
  1479. .card = CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1,
  1480. },{
  1481. .subvendor = 0x0070,
  1482. .subdevice = 0x9202,
  1483. .card = CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1,
  1484. },{
  1485. .subvendor = 0x17de,
  1486. .subdevice = 0x08b2,
  1487. .card = CX88_BOARD_KWORLD_DVBS_100,
  1488. },{
  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,
  1504. },{
  1505. .subvendor = 0x0070,
  1506. .subdevice = 0x9001,
  1507. .card = CX88_BOARD_HAUPPAUGE_DVB_T1,
  1508. },{
  1509. .subvendor = 0x1822,
  1510. .subdevice = 0x0025,
  1511. .card = CX88_BOARD_DNTV_LIVE_DVB_T_PRO,
  1512. },{
  1513. .subvendor = 0x17de,
  1514. .subdevice = 0x08a1,
  1515. .card = CX88_BOARD_KWORLD_DVB_T_CX22702,
  1516. },{
  1517. .subvendor = 0x18ac,
  1518. .subdevice = 0xdb50,
  1519. .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL,
  1520. },{
  1521. .subvendor = 0x18ac,
  1522. .subdevice = 0xdb54,
  1523. .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL,
  1524. /* Re-branded DViCO: DigitalNow DVB-T Dual */
  1525. },{
  1526. .subvendor = 0x18ac,
  1527. .subdevice = 0xdb11,
  1528. .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS,
  1529. /* Re-branded DViCO: UltraView DVB-T Plus */
  1530. },{
  1531. .subvendor = 0x17de,
  1532. .subdevice = 0x0840,
  1533. .card = CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT,
  1534. },{
  1535. .subvendor = 0x1421,
  1536. .subdevice = 0x0305,
  1537. .card = CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT,
  1538. },{
  1539. .subvendor = 0x18ac,
  1540. .subdevice = 0xdb40,
  1541. .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID,
  1542. },{
  1543. .subvendor = 0x18ac,
  1544. .subdevice = 0xdb44,
  1545. .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID,
  1546. },{
  1547. .subvendor = 0x7063,
  1548. .subdevice = 0x5500,
  1549. .card = CX88_BOARD_PCHDTV_HD5500,
  1550. },{
  1551. .subvendor = 0x17de,
  1552. .subdevice = 0x0841,
  1553. .card = CX88_BOARD_KWORLD_MCE200_DELUXE,
  1554. },{
  1555. .subvendor = 0x1822,
  1556. .subdevice = 0x0019,
  1557. .card = CX88_BOARD_DNTV_LIVE_DVB_T_PRO,
  1558. },{
  1559. .subvendor = 0x1554,
  1560. .subdevice = 0x4813,
  1561. .card = CX88_BOARD_PIXELVIEW_PLAYTV_P7000,
  1562. },{
  1563. .subvendor = 0x14f1,
  1564. .subdevice = 0x0842,
  1565. .card = CX88_BOARD_NPGTECH_REALTV_TOP10FM,
  1566. },{
  1567. .subvendor = 0x107d,
  1568. .subdevice = 0x665e,
  1569. .card = CX88_BOARD_WINFAST_DTV2000H,
  1570. },{
  1571. .subvendor = 0x18ac,
  1572. .subdevice = 0xd800, /* FusionHDTV 3 Gold (original revision) */
  1573. .card = CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q,
  1574. },{
  1575. .subvendor = 0x14f1,
  1576. .subdevice = 0x0084,
  1577. .card = CX88_BOARD_GENIATECH_DVBS,
  1578. },{
  1579. .subvendor = 0x0070,
  1580. .subdevice = 0x1404,
  1581. .card = CX88_BOARD_HAUPPAUGE_HVR3000,
  1582. },{
  1583. .subvendor = 0x1461,
  1584. .subdevice = 0xc111, /* AverMedia M150-D */
  1585. /* This board is known to work with the ASUS PVR416 config */
  1586. .card = CX88_BOARD_ASUS_PVR_416,
  1587. },{
  1588. .subvendor = 0xc180,
  1589. .subdevice = 0xc980,
  1590. .card = CX88_BOARD_TE_DTV_250_OEM_SWANN,
  1591. },{
  1592. .subvendor = 0x0070,
  1593. .subdevice = 0x9600,
  1594. .card = CX88_BOARD_HAUPPAUGE_HVR1300,
  1595. },{
  1596. .subvendor = 0x0070,
  1597. .subdevice = 0x9601,
  1598. .card = CX88_BOARD_HAUPPAUGE_HVR1300,
  1599. },{
  1600. .subvendor = 0x0070,
  1601. .subdevice = 0x9602,
  1602. .card = CX88_BOARD_HAUPPAUGE_HVR1300,
  1603. },{
  1604. .subvendor = 0x107d,
  1605. .subdevice = 0x6632,
  1606. .card = CX88_BOARD_LEADTEK_PVR2000,
  1607. },{
  1608. .subvendor = 0x12ab,
  1609. .subdevice = 0x2300, /* Club3D Zap TV2100 */
  1610. .card = CX88_BOARD_KWORLD_DVB_T_CX22702,
  1611. },{
  1612. .subvendor = 0x0070,
  1613. .subdevice = 0x9000,
  1614. .card = CX88_BOARD_HAUPPAUGE_DVB_T1,
  1615. },{
  1616. .subvendor = 0x0070,
  1617. .subdevice = 0x1400,
  1618. .card = CX88_BOARD_HAUPPAUGE_HVR3000,
  1619. },{
  1620. .subvendor = 0x0070,
  1621. .subdevice = 0x1401,
  1622. .card = CX88_BOARD_HAUPPAUGE_HVR3000,
  1623. },{
  1624. .subvendor = 0x0070,
  1625. .subdevice = 0x1402,
  1626. .card = CX88_BOARD_HAUPPAUGE_HVR3000,
  1627. },
  1628. };
  1629. const unsigned int cx88_idcount = ARRAY_SIZE(cx88_subids);
  1630. /* ----------------------------------------------------------------------- */
  1631. /* some leadtek specific stuff */
  1632. static void leadtek_eeprom(struct cx88_core *core, u8 *eeprom_data)
  1633. {
  1634. /* This is just for the "Winfast 2000XP Expert" board ATM; I don't have data on
  1635. * any others.
  1636. *
  1637. * Byte 0 is 1 on the NTSC board.
  1638. */
  1639. if (eeprom_data[4] != 0x7d ||
  1640. eeprom_data[5] != 0x10 ||
  1641. eeprom_data[7] != 0x66) {
  1642. printk(KERN_WARNING "%s: Leadtek eeprom invalid.\n",
  1643. core->name);
  1644. return;
  1645. }
  1646. core->has_radio = 1;
  1647. core->tuner_type = (eeprom_data[6] == 0x13) ? 43 : 38;
  1648. printk(KERN_INFO "%s: Leadtek Winfast 2000XP Expert config: "
  1649. "tuner=%d, eeprom[0]=0x%02x\n",
  1650. core->name, core->tuner_type, eeprom_data[0]);
  1651. }
  1652. static void hauppauge_eeprom(struct cx88_core *core, u8 *eeprom_data)
  1653. {
  1654. struct tveeprom tv;
  1655. tveeprom_hauppauge_analog(&core->i2c_client, &tv, eeprom_data);
  1656. core->tuner_type = tv.tuner_type;
  1657. core->tuner_formats = tv.tuner_formats;
  1658. core->has_radio = tv.has_radio;
  1659. /* Make sure we support the board model */
  1660. switch (tv.model)
  1661. {
  1662. case 14009: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in) */
  1663. case 14019: /* WinTV-HVR3000 (Retail, IR Blaster, b/panel video, 3.5mm audio in) */
  1664. case 14029: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in - 880 bridge) */
  1665. case 14109: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in - low profile) */
  1666. case 14129: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in - 880 bridge - LP) */
  1667. case 14559: /* WinTV-HVR3000 (OEM, no IR, b/panel video, 3.5mm audio in) */
  1668. case 14569: /* WinTV-HVR3000 (OEM, no IR, no back panel video) */
  1669. case 14659: /* WinTV-HVR3000 (OEM, no IR, b/panel video, RCA audio in - Low profile) */
  1670. case 14669: /* WinTV-HVR3000 (OEM, no IR, no b/panel video - Low profile) */
  1671. case 28552: /* WinTV-PVR 'Roslyn' (No IR) */
  1672. case 34519: /* WinTV-PCI-FM */
  1673. case 90002: /* Nova-T-PCI (9002) */
  1674. case 92001: /* Nova-S-Plus (Video and IR) */
  1675. case 92002: /* Nova-S-Plus (Video and IR) */
  1676. case 90003: /* Nova-T-PCI (9002 No RF out) */
  1677. case 90500: /* Nova-T-PCI (oem) */
  1678. case 90501: /* Nova-T-PCI (oem/IR) */
  1679. case 92000: /* Nova-SE2 (OEM, No Video or IR) */
  1680. case 94009: /* WinTV-HVR1100 (Video and IR Retail) */
  1681. case 94501: /* WinTV-HVR1100 (Video and IR OEM) */
  1682. case 96009: /* WinTV-HVR1300 (PAL Video, MPEG Video and IR RX) */
  1683. case 96019: /* WinTV-HVR1300 (PAL Video, MPEG Video and IR RX/TX) */
  1684. case 96559: /* WinTV-HVR1300 (PAL Video, MPEG Video no IR) */
  1685. case 96569: /* WinTV-HVR1300 () */
  1686. case 96659: /* WinTV-HVR1300 () */
  1687. case 98559: /* WinTV-HVR1100LP (Video no IR, Retail - Low Profile) */
  1688. /* known */
  1689. break;
  1690. default:
  1691. printk("%s: warning: unknown hauppauge model #%d\n",
  1692. core->name, tv.model);
  1693. break;
  1694. }
  1695. printk(KERN_INFO "%s: hauppauge eeprom: model=%d\n",
  1696. core->name, tv.model);
  1697. }
  1698. /* ----------------------------------------------------------------------- */
  1699. /* some GDI (was: Modular Technology) specific stuff */
  1700. static struct {
  1701. int id;
  1702. int fm;
  1703. char *name;
  1704. } gdi_tuner[] = {
  1705. [ 0x01 ] = { .id = TUNER_ABSENT,
  1706. .name = "NTSC_M" },
  1707. [ 0x02 ] = { .id = TUNER_ABSENT,
  1708. .name = "PAL_B" },
  1709. [ 0x03 ] = { .id = TUNER_ABSENT,
  1710. .name = "PAL_I" },
  1711. [ 0x04 ] = { .id = TUNER_ABSENT,
  1712. .name = "PAL_D" },
  1713. [ 0x05 ] = { .id = TUNER_ABSENT,
  1714. .name = "SECAM" },
  1715. [ 0x10 ] = { .id = TUNER_ABSENT,
  1716. .fm = 1,
  1717. .name = "TEMIC_4049" },
  1718. [ 0x11 ] = { .id = TUNER_TEMIC_4136FY5,
  1719. .name = "TEMIC_4136" },
  1720. [ 0x12 ] = { .id = TUNER_ABSENT,
  1721. .name = "TEMIC_4146" },
  1722. [ 0x20 ] = { .id = TUNER_PHILIPS_FQ1216ME,
  1723. .fm = 1,
  1724. .name = "PHILIPS_FQ1216_MK3" },
  1725. [ 0x21 ] = { .id = TUNER_ABSENT, .fm = 1,
  1726. .name = "PHILIPS_FQ1236_MK3" },
  1727. [ 0x22 ] = { .id = TUNER_ABSENT,
  1728. .name = "PHILIPS_FI1236_MK3" },
  1729. [ 0x23 ] = { .id = TUNER_ABSENT,
  1730. .name = "PHILIPS_FI1216_MK3" },
  1731. };
  1732. static void gdi_eeprom(struct cx88_core *core, u8 *eeprom_data)
  1733. {
  1734. char *name = (eeprom_data[0x0d] < ARRAY_SIZE(gdi_tuner))
  1735. ? gdi_tuner[eeprom_data[0x0d]].name : NULL;
  1736. printk(KERN_INFO "%s: GDI: tuner=%s\n", core->name,
  1737. name ? name : "unknown");
  1738. if (NULL == name)
  1739. return;
  1740. core->tuner_type = gdi_tuner[eeprom_data[0x0d]].id;
  1741. core->has_radio = gdi_tuner[eeprom_data[0x0d]].fm;
  1742. }
  1743. /* ----------------------------------------------------------------------- */
  1744. /* some DViCO specific stuff */
  1745. static void dvico_fusionhdtv_hybrid_init(struct cx88_core *core)
  1746. {
  1747. struct i2c_msg msg = { .addr = 0x45, .flags = 0 };
  1748. int i, err;
  1749. static u8 init_bufs[13][5] = {
  1750. { 0x10, 0x00, 0x20, 0x01, 0x03 },
  1751. { 0x10, 0x10, 0x01, 0x00, 0x21 },
  1752. { 0x10, 0x10, 0x10, 0x00, 0xCA },
  1753. { 0x10, 0x10, 0x12, 0x00, 0x08 },
  1754. { 0x10, 0x10, 0x13, 0x00, 0x0A },
  1755. { 0x10, 0x10, 0x16, 0x01, 0xC0 },
  1756. { 0x10, 0x10, 0x22, 0x01, 0x3D },
  1757. { 0x10, 0x10, 0x73, 0x01, 0x2E },
  1758. { 0x10, 0x10, 0x72, 0x00, 0xC5 },
  1759. { 0x10, 0x10, 0x71, 0x01, 0x97 },
  1760. { 0x10, 0x10, 0x70, 0x00, 0x0F },
  1761. { 0x10, 0x10, 0xB0, 0x00, 0x01 },
  1762. { 0x03, 0x0C },
  1763. };
  1764. for (i = 0; i < 13; i++) {
  1765. msg.buf = init_bufs[i];
  1766. msg.len = (i != 12 ? 5 : 2);
  1767. err = i2c_transfer(&core->i2c_adap, &msg, 1);
  1768. if (err != 1) {
  1769. printk("dvico_fusionhdtv_hybrid_init buf %d failed (err = %d)!\n", i, err);
  1770. return;
  1771. }
  1772. }
  1773. }
  1774. /* ----------------------------------------------------------------------- */
  1775. void cx88_card_list(struct cx88_core *core, struct pci_dev *pci)
  1776. {
  1777. int i;
  1778. if (0 == pci->subsystem_vendor &&
  1779. 0 == pci->subsystem_device) {
  1780. printk("%s: Your board has no valid PCI Subsystem ID and thus can't\n"
  1781. "%s: be autodetected. Please pass card=<n> insmod option to\n"
  1782. "%s: workaround that. Redirect complaints to the vendor of\n"
  1783. "%s: the TV card. Best regards,\n"
  1784. "%s: -- tux\n",
  1785. core->name,core->name,core->name,core->name,core->name);
  1786. } else {
  1787. printk("%s: Your board isn't known (yet) to the driver. You can\n"
  1788. "%s: try to pick one of the existing card configs via\n"
  1789. "%s: card=<n> insmod option. Updating to the latest\n"
  1790. "%s: version might help as well.\n",
  1791. core->name,core->name,core->name,core->name);
  1792. }
  1793. printk("%s: Here is a list of valid choices for the card=<n> insmod option:\n",
  1794. core->name);
  1795. for (i = 0; i < cx88_bcount; i++)
  1796. printk("%s: card=%d -> %s\n",
  1797. core->name, i, cx88_boards[i].name);
  1798. }
  1799. void cx88_card_setup_pre_i2c(struct cx88_core *core)
  1800. {
  1801. switch (core->board) {
  1802. case CX88_BOARD_HAUPPAUGE_HVR1300:
  1803. /* Bring the 702 demod up before i2c scanning/attach or devices are hidden */
  1804. /* We leave here with the 702 on the bus */
  1805. cx_write(MO_GP0_IO, 0x0000e780);
  1806. udelay(1000);
  1807. cx_clear(MO_GP0_IO, 0x00000080);
  1808. udelay(50);
  1809. cx_set(MO_GP0_IO, 0x00000080); /* 702 out of reset */
  1810. udelay(1000);
  1811. break;
  1812. }
  1813. }
  1814. void cx88_card_setup(struct cx88_core *core)
  1815. {
  1816. static u8 eeprom[256];
  1817. if (0 == core->i2c_rc) {
  1818. core->i2c_client.addr = 0xa0 >> 1;
  1819. tveeprom_read(&core->i2c_client,eeprom,sizeof(eeprom));
  1820. }
  1821. switch (core->board) {
  1822. case CX88_BOARD_HAUPPAUGE:
  1823. case CX88_BOARD_HAUPPAUGE_ROSLYN:
  1824. if (0 == core->i2c_rc)
  1825. hauppauge_eeprom(core,eeprom+8);
  1826. break;
  1827. case CX88_BOARD_GDI:
  1828. if (0 == core->i2c_rc)
  1829. gdi_eeprom(core,eeprom);
  1830. break;
  1831. case CX88_BOARD_WINFAST2000XP_EXPERT:
  1832. if (0 == core->i2c_rc)
  1833. leadtek_eeprom(core,eeprom);
  1834. break;
  1835. case CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1:
  1836. case CX88_BOARD_HAUPPAUGE_NOVASE2_S1:
  1837. case CX88_BOARD_HAUPPAUGE_DVB_T1:
  1838. case CX88_BOARD_HAUPPAUGE_HVR1100:
  1839. case CX88_BOARD_HAUPPAUGE_HVR1100LP:
  1840. case CX88_BOARD_HAUPPAUGE_HVR3000:
  1841. case CX88_BOARD_HAUPPAUGE_HVR1300:
  1842. if (0 == core->i2c_rc)
  1843. hauppauge_eeprom(core,eeprom);
  1844. break;
  1845. case CX88_BOARD_KWORLD_DVBS_100:
  1846. cx_write(MO_GP0_IO, 0x000007f8);
  1847. cx_write(MO_GP1_IO, 0x00000001);
  1848. break;
  1849. case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL:
  1850. /* GPIO0:6 is hooked to FX2 reset pin */
  1851. cx_set(MO_GP0_IO, 0x00004040);
  1852. cx_clear(MO_GP0_IO, 0x00000040);
  1853. msleep(1000);
  1854. cx_set(MO_GP0_IO, 0x00004040);
  1855. /* FALLTHROUGH */
  1856. case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1:
  1857. case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS:
  1858. case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID:
  1859. /* GPIO0:0 is hooked to mt352 reset pin */
  1860. cx_set(MO_GP0_IO, 0x00000101);
  1861. cx_clear(MO_GP0_IO, 0x00000001);
  1862. msleep(1);
  1863. cx_set(MO_GP0_IO, 0x00000101);
  1864. if (0 == core->i2c_rc &&
  1865. core->board == CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID)
  1866. dvico_fusionhdtv_hybrid_init(core);
  1867. break;
  1868. case CX88_BOARD_KWORLD_DVB_T:
  1869. case CX88_BOARD_DNTV_LIVE_DVB_T:
  1870. cx_set(MO_GP0_IO, 0x00000707);
  1871. cx_set(MO_GP2_IO, 0x00000101);
  1872. cx_clear(MO_GP2_IO, 0x00000001);
  1873. msleep(1);
  1874. cx_clear(MO_GP0_IO, 0x00000007);
  1875. cx_set(MO_GP2_IO, 0x00000101);
  1876. break;
  1877. case CX88_BOARD_DNTV_LIVE_DVB_T_PRO:
  1878. cx_write(MO_GP0_IO, 0x00080808);
  1879. break;
  1880. case CX88_BOARD_ATI_HDTVWONDER:
  1881. if (0 == core->i2c_rc) {
  1882. /* enable tuner */
  1883. int i;
  1884. static const u8 buffer [] = { 0x10,0x12,0x13,0x04,0x16,0x00,0x14,0x04,0x017,0x00 };
  1885. core->i2c_client.addr = 0x0a;
  1886. for (i = 0; i < 5; i++)
  1887. if (2 != i2c_master_send(&core->i2c_client,&buffer[i*2],2))
  1888. printk(KERN_WARNING "%s: Unable to enable tuner(%i).\n",
  1889. core->name, i);
  1890. }
  1891. break;
  1892. }
  1893. if (cx88_boards[core->board].radio.type == CX88_RADIO)
  1894. core->has_radio = 1;
  1895. }
  1896. /* ------------------------------------------------------------------ */
  1897. EXPORT_SYMBOL(cx88_boards);
  1898. /*
  1899. * Local variables:
  1900. * c-basic-offset: 8
  1901. * End:
  1902. * 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
  1903. */