cx88-cards.c 50 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981
  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. /* GPIO[2] = audio source for analog audio out connector
  574. * 0 = analog audio input connector
  575. * 1 = CX88 audio DACs
  576. *
  577. * GPIO[7] = input to CX88's audio/chroma ADC
  578. * 0 = FM 10.7 MHz IF
  579. * 1 = Sound 4.5 MHz IF
  580. *
  581. * GPIO[1,5,6] = Oren 51132 pins 27,35,28 respectively
  582. *
  583. * GPIO[16] = Remote control input
  584. */
  585. .input = {{
  586. .type = CX88_VMUX_TELEVISION,
  587. .vmux = 0,
  588. .gpio0 = 0x00008484,
  589. },{
  590. .type = CX88_VMUX_COMPOSITE1,
  591. .vmux = 1,
  592. .gpio0 = 0x00008400,
  593. },{
  594. .type = CX88_VMUX_SVIDEO,
  595. .vmux = 2,
  596. .gpio0 = 0x00008400,
  597. }},
  598. .radio = {
  599. .type = CX88_RADIO,
  600. .gpio0 = 0x00008404,
  601. },
  602. .mpeg = CX88_MPEG_DVB,
  603. },
  604. [CX88_BOARD_HAUPPAUGE_ROSLYN] = {
  605. // entry added by Kaustubh D. Bhalerao <bhalerao.1@osu.edu>
  606. // GPIO values obtained from regspy, courtesy Sean Covel
  607. .name = "Hauppauge WinTV 28xxx (Roslyn) models",
  608. .tuner_type = UNSET,
  609. .radio_type = UNSET,
  610. .tuner_addr = ADDR_UNSET,
  611. .radio_addr = ADDR_UNSET,
  612. .input = {{
  613. .type = CX88_VMUX_TELEVISION,
  614. .vmux = 0,
  615. .gpio0 = 0xed1a,
  616. .gpio2 = 0x00ff,
  617. },{
  618. .type = CX88_VMUX_DEBUG,
  619. .vmux = 0,
  620. .gpio0 = 0xff01,
  621. },{
  622. .type = CX88_VMUX_COMPOSITE1,
  623. .vmux = 1,
  624. .gpio0 = 0xff02,
  625. },{
  626. .type = CX88_VMUX_SVIDEO,
  627. .vmux = 2,
  628. .gpio0 = 0xed92,
  629. .gpio2 = 0x00ff,
  630. }},
  631. .radio = {
  632. .type = CX88_RADIO,
  633. .gpio0 = 0xed96,
  634. .gpio2 = 0x00ff,
  635. },
  636. .mpeg = CX88_MPEG_BLACKBIRD,
  637. },
  638. [CX88_BOARD_DIGITALLOGIC_MEC] = {
  639. .name = "Digital-Logic MICROSPACE Entertainment Center (MEC)",
  640. .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
  641. .radio_type = UNSET,
  642. .tuner_addr = ADDR_UNSET,
  643. .radio_addr = ADDR_UNSET,
  644. .tda9887_conf = TDA9887_PRESENT,
  645. .input = {{
  646. .type = CX88_VMUX_TELEVISION,
  647. .vmux = 0,
  648. .gpio0 = 0x00009d80,
  649. .extadc = 1,
  650. },{
  651. .type = CX88_VMUX_COMPOSITE1,
  652. .vmux = 1,
  653. .gpio0 = 0x00009d76,
  654. .extadc = 1,
  655. },{
  656. .type = CX88_VMUX_SVIDEO,
  657. .vmux = 2,
  658. .gpio0 = 0x00009d76,
  659. .extadc = 1,
  660. }},
  661. .radio = {
  662. .type = CX88_RADIO,
  663. .gpio0 = 0x00009d00,
  664. .extadc = 1,
  665. },
  666. .mpeg = CX88_MPEG_BLACKBIRD,
  667. },
  668. [CX88_BOARD_IODATA_GVBCTV7E] = {
  669. .name = "IODATA GV/BCTV7E",
  670. .tuner_type = TUNER_PHILIPS_FQ1286,
  671. .radio_type = UNSET,
  672. .tuner_addr = ADDR_UNSET,
  673. .radio_addr = ADDR_UNSET,
  674. .tda9887_conf = TDA9887_PRESENT,
  675. .input = {{
  676. .type = CX88_VMUX_TELEVISION,
  677. .vmux = 1,
  678. .gpio1 = 0x0000e03f,
  679. },{
  680. .type = CX88_VMUX_COMPOSITE1,
  681. .vmux = 2,
  682. .gpio1 = 0x0000e07f,
  683. },{
  684. .type = CX88_VMUX_SVIDEO,
  685. .vmux = 3,
  686. .gpio1 = 0x0000e07f,
  687. }}
  688. },
  689. [CX88_BOARD_PIXELVIEW_PLAYTV_ULTRA_PRO] = {
  690. .name = "PixelView PlayTV Ultra Pro (Stereo)",
  691. /* May be also TUNER_YMEC_TVF_5533MF for NTSC/M or PAL/M */
  692. .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
  693. .radio_type = UNSET,
  694. .tuner_addr = ADDR_UNSET,
  695. .radio_addr = ADDR_UNSET,
  696. .input = {{
  697. .type = CX88_VMUX_TELEVISION,
  698. .vmux = 0,
  699. .gpio0 = 0xbf61, /* internal decoder */
  700. },{
  701. .type = CX88_VMUX_COMPOSITE1,
  702. .vmux = 1,
  703. .gpio0 = 0xbf63,
  704. },{
  705. .type = CX88_VMUX_SVIDEO,
  706. .vmux = 2,
  707. .gpio0 = 0xbf63,
  708. }},
  709. .radio = {
  710. .type = CX88_RADIO,
  711. .gpio0 = 0xbf60,
  712. },
  713. },
  714. [CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_T] = {
  715. .name = "DViCO FusionHDTV 3 Gold-T",
  716. .tuner_type = TUNER_THOMSON_DTT761X,
  717. .radio_type = UNSET,
  718. .tuner_addr = ADDR_UNSET,
  719. .radio_addr = ADDR_UNSET,
  720. .tda9887_conf = TDA9887_PRESENT,
  721. .input = {{
  722. .type = CX88_VMUX_TELEVISION,
  723. .vmux = 0,
  724. .gpio0 = 0x97ed,
  725. },{
  726. .type = CX88_VMUX_COMPOSITE1,
  727. .vmux = 1,
  728. .gpio0 = 0x97e9,
  729. },{
  730. .type = CX88_VMUX_SVIDEO,
  731. .vmux = 2,
  732. .gpio0 = 0x97e9,
  733. }},
  734. .mpeg = CX88_MPEG_DVB,
  735. },
  736. [CX88_BOARD_ADSTECH_DVB_T_PCI] = {
  737. .name = "ADS Tech Instant TV DVB-T PCI",
  738. .tuner_type = TUNER_ABSENT,
  739. .radio_type = UNSET,
  740. .tuner_addr = ADDR_UNSET,
  741. .radio_addr = ADDR_UNSET,
  742. .input = {{
  743. .type = CX88_VMUX_COMPOSITE1,
  744. .vmux = 1,
  745. .gpio0 = 0x0700,
  746. .gpio2 = 0x0101,
  747. },{
  748. .type = CX88_VMUX_SVIDEO,
  749. .vmux = 2,
  750. .gpio0 = 0x0700,
  751. .gpio2 = 0x0101,
  752. }},
  753. .mpeg = CX88_MPEG_DVB,
  754. },
  755. [CX88_BOARD_TERRATEC_CINERGY_1400_DVB_T1] = {
  756. .name = "TerraTec Cinergy 1400 DVB-T",
  757. .tuner_type = TUNER_ABSENT,
  758. .input = {{
  759. .type = CX88_VMUX_DVB,
  760. .vmux = 0,
  761. },{
  762. .type = CX88_VMUX_COMPOSITE1,
  763. .vmux = 2,
  764. },{
  765. .type = CX88_VMUX_SVIDEO,
  766. .vmux = 2,
  767. }},
  768. .mpeg = CX88_MPEG_DVB,
  769. },
  770. [CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD] = {
  771. .name = "DViCO FusionHDTV 5 Gold",
  772. .tuner_type = TUNER_LG_TDVS_H06XF, /* TDVS-H062F */
  773. .radio_type = UNSET,
  774. .tuner_addr = ADDR_UNSET,
  775. .radio_addr = ADDR_UNSET,
  776. .tda9887_conf = TDA9887_PRESENT,
  777. .input = {{
  778. .type = CX88_VMUX_TELEVISION,
  779. .vmux = 0,
  780. .gpio0 = 0x87fd,
  781. },{
  782. .type = CX88_VMUX_COMPOSITE1,
  783. .vmux = 1,
  784. .gpio0 = 0x87f9,
  785. },{
  786. .type = CX88_VMUX_SVIDEO,
  787. .vmux = 2,
  788. .gpio0 = 0x87f9,
  789. }},
  790. .mpeg = CX88_MPEG_DVB,
  791. },
  792. [CX88_BOARD_AVERMEDIA_ULTRATV_MC_550] = {
  793. .name = "AverMedia UltraTV Media Center PCI 550",
  794. .tuner_type = TUNER_PHILIPS_FM1236_MK3,
  795. .radio_type = UNSET,
  796. .tuner_addr = ADDR_UNSET,
  797. .radio_addr = ADDR_UNSET,
  798. .tda9887_conf = TDA9887_PRESENT,
  799. .input = {{
  800. .type = CX88_VMUX_COMPOSITE1,
  801. .vmux = 0,
  802. .gpio0 = 0x0000cd73,
  803. .extadc = 1,
  804. },{
  805. .type = CX88_VMUX_SVIDEO,
  806. .vmux = 1,
  807. .gpio0 = 0x0000cd73,
  808. .extadc = 1,
  809. },{
  810. .type = CX88_VMUX_TELEVISION,
  811. .vmux = 3,
  812. .gpio0 = 0x0000cdb3,
  813. .extadc = 1,
  814. }},
  815. .radio = {
  816. .type = CX88_RADIO,
  817. .vmux = 2,
  818. .gpio0 = 0x0000cdf3,
  819. .extadc = 1,
  820. },
  821. .mpeg = CX88_MPEG_BLACKBIRD,
  822. },
  823. [CX88_BOARD_KWORLD_VSTREAM_EXPERT_DVD] = {
  824. /* Alexander Wold <awold@bigfoot.com> */
  825. .name = "Kworld V-Stream Xpert DVD",
  826. .tuner_type = UNSET,
  827. .input = {{
  828. .type = CX88_VMUX_COMPOSITE1,
  829. .vmux = 1,
  830. .gpio0 = 0x03000000,
  831. .gpio1 = 0x01000000,
  832. .gpio2 = 0x02000000,
  833. .gpio3 = 0x00100000,
  834. },{
  835. .type = CX88_VMUX_SVIDEO,
  836. .vmux = 2,
  837. .gpio0 = 0x03000000,
  838. .gpio1 = 0x01000000,
  839. .gpio2 = 0x02000000,
  840. .gpio3 = 0x00100000,
  841. }},
  842. },
  843. [CX88_BOARD_ATI_HDTVWONDER] = {
  844. .name = "ATI HDTV Wonder",
  845. .tuner_type = TUNER_PHILIPS_TUV1236D,
  846. .radio_type = UNSET,
  847. .tuner_addr = ADDR_UNSET,
  848. .radio_addr = ADDR_UNSET,
  849. .input = {{
  850. .type = CX88_VMUX_TELEVISION,
  851. .vmux = 0,
  852. .gpio0 = 0x00000ff7,
  853. .gpio1 = 0x000000ff,
  854. .gpio2 = 0x00000001,
  855. .gpio3 = 0x00000000,
  856. },{
  857. .type = CX88_VMUX_COMPOSITE1,
  858. .vmux = 1,
  859. .gpio0 = 0x00000ffe,
  860. .gpio1 = 0x000000ff,
  861. .gpio2 = 0x00000001,
  862. .gpio3 = 0x00000000,
  863. },{
  864. .type = CX88_VMUX_SVIDEO,
  865. .vmux = 2,
  866. .gpio0 = 0x00000ffe,
  867. .gpio1 = 0x000000ff,
  868. .gpio2 = 0x00000001,
  869. .gpio3 = 0x00000000,
  870. }},
  871. .mpeg = CX88_MPEG_DVB,
  872. },
  873. [CX88_BOARD_WINFAST_DTV1000] = {
  874. .name = "WinFast DTV1000-T",
  875. .tuner_type = TUNER_ABSENT,
  876. .radio_type = UNSET,
  877. .tuner_addr = ADDR_UNSET,
  878. .radio_addr = ADDR_UNSET,
  879. .input = {{
  880. .type = CX88_VMUX_DVB,
  881. .vmux = 0,
  882. },{
  883. .type = CX88_VMUX_COMPOSITE1,
  884. .vmux = 1,
  885. },{
  886. .type = CX88_VMUX_SVIDEO,
  887. .vmux = 2,
  888. }},
  889. .mpeg = CX88_MPEG_DVB,
  890. },
  891. [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. },
  921. [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,
  927. .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. }},
  937. .mpeg = CX88_MPEG_DVB,
  938. },
  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. }},
  949. .mpeg = CX88_MPEG_DVB,
  950. },
  951. [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. }},
  967. .mpeg = CX88_MPEG_DVB,
  968. },
  969. [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 */
  987. .mpeg = CX88_MPEG_DVB,
  988. },
  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 */
  1004. .mpeg = CX88_MPEG_DVB,
  1005. },
  1006. [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. },
  1031. .mpeg = CX88_MPEG_DVB,
  1032. },
  1033. [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. }},
  1053. .mpeg = CX88_MPEG_DVB,
  1054. },
  1055. [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,
  1064. .gpio0 = 0x000067df,
  1065. },{
  1066. .type = CX88_VMUX_SVIDEO,
  1067. .vmux = 2,
  1068. .gpio0 = 0x000067df,
  1069. }},
  1070. .mpeg = CX88_MPEG_DVB,
  1071. },
  1072. [CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT] = {
  1073. .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,
  1081. .gpio0 = 0x3de2,
  1082. .gpio2 = 0x00ff,
  1083. },{
  1084. .type = CX88_VMUX_COMPOSITE1,
  1085. .vmux = 1,
  1086. .gpio0 = 0x3de6,
  1087. .extadc = 1,
  1088. },{
  1089. .type = CX88_VMUX_SVIDEO,
  1090. .vmux = 2,
  1091. .gpio0 = 0x3de6,
  1092. .extadc = 1,
  1093. }},
  1094. .radio = {
  1095. .type = CX88_RADIO,
  1096. .gpio0 = 0x3de6,
  1097. .gpio2 = 0x00ff,
  1098. },
  1099. .mpeg = CX88_MPEG_BLACKBIRD,
  1100. },
  1101. [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID] = {
  1102. .name = "DViCO FusionHDTV DVB-T Hybrid",
  1103. .tuner_type = TUNER_THOMSON_FE6600,
  1104. .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. }},
  1120. .mpeg = CX88_MPEG_DVB,
  1121. },
  1122. [CX88_BOARD_PCHDTV_HD5500] = {
  1123. .name = "pcHDTV HD5500 HDTV",
  1124. .tuner_type = TUNER_LG_TDVS_H06XF, /* TDVS-H064F */
  1125. .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. }},
  1142. .mpeg = CX88_MPEG_DVB,
  1143. },
  1144. [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. }},
  1158. .mpeg = CX88_MPEG_BLACKBIRD,
  1159. },
  1160. [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. }},
  1174. .mpeg = CX88_MPEG_BLACKBIRD,
  1175. },
  1176. [CX88_BOARD_NPGTECH_REALTV_TOP10FM] = {
  1177. .name = "NPG Tech Real TV FM Top 10",
  1178. .tuner_type = TUNER_TNF_5335MF, /* Actually a TNF9535 */
  1179. .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,
  1193. .gpio0 = 0x078b,
  1194. }},
  1195. .radio = {
  1196. .type = CX88_RADIO,
  1197. .gpio0 = 0x074a,
  1198. },
  1199. },
  1200. [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. }},
  1216. .mpeg = CX88_MPEG_DVB,
  1217. },
  1218. [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. }},
  1231. .mpeg = CX88_MPEG_DVB,
  1232. },
  1233. [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. }},
  1254. .mpeg = CX88_MPEG_DVB,
  1255. },
  1256. [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. },
  1276. [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,
  1289. },{
  1290. .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. },
  1305. [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,
  1312. .audio_chip = AUDIO_CHIP_WM8775,
  1313. .input = {{
  1314. .type = CX88_VMUX_TELEVISION,
  1315. .vmux = 0,
  1316. .gpio0 = 0xe780,
  1317. .extadc = 1,
  1318. },{
  1319. .type = CX88_VMUX_COMPOSITE1,
  1320. .vmux = 1,
  1321. .gpio0 = 0xe780,
  1322. .extadc = 1,
  1323. },{
  1324. .type = CX88_VMUX_SVIDEO,
  1325. .vmux = 2,
  1326. .gpio0 = 0xe780,
  1327. .extadc = 1,
  1328. }},
  1329. /* fixme: Add radio support */
  1330. .mpeg = CX88_MPEG_DVB | CX88_MPEG_BLACKBIRD,
  1331. },
  1332. [CX88_BOARD_ADSTECH_PTV_390] = {
  1333. .name = "ADS Tech Instant Video PCI",
  1334. .tuner_type = TUNER_ABSENT,
  1335. .radio_type = UNSET,
  1336. .tuner_addr = ADDR_UNSET,
  1337. .radio_addr = ADDR_UNSET,
  1338. .input = {{
  1339. .type = CX88_VMUX_DEBUG,
  1340. .vmux = 3,
  1341. .gpio0 = 0x04ff,
  1342. },{
  1343. .type = CX88_VMUX_COMPOSITE1,
  1344. .vmux = 1,
  1345. .gpio0 = 0x07fa,
  1346. },{
  1347. .type = CX88_VMUX_SVIDEO,
  1348. .vmux = 2,
  1349. .gpio0 = 0x07fa,
  1350. }},
  1351. },
  1352. };
  1353. const unsigned int cx88_bcount = ARRAY_SIZE(cx88_boards);
  1354. /* ------------------------------------------------------------------ */
  1355. /* PCI subsystem IDs */
  1356. struct cx88_subid cx88_subids[] = {
  1357. {
  1358. .subvendor = 0x0070,
  1359. .subdevice = 0x3400,
  1360. .card = CX88_BOARD_HAUPPAUGE,
  1361. },{
  1362. .subvendor = 0x0070,
  1363. .subdevice = 0x3401,
  1364. .card = CX88_BOARD_HAUPPAUGE,
  1365. },{
  1366. .subvendor = 0x14c7,
  1367. .subdevice = 0x0106,
  1368. .card = CX88_BOARD_GDI,
  1369. },{
  1370. .subvendor = 0x14c7,
  1371. .subdevice = 0x0107, /* with mpeg encoder */
  1372. .card = CX88_BOARD_GDI,
  1373. },{
  1374. .subvendor = PCI_VENDOR_ID_ATI,
  1375. .subdevice = 0x00f8,
  1376. .card = CX88_BOARD_ATI_WONDER_PRO,
  1377. },{
  1378. .subvendor = 0x107d,
  1379. .subdevice = 0x6611,
  1380. .card = CX88_BOARD_WINFAST2000XP_EXPERT,
  1381. },{
  1382. .subvendor = 0x107d,
  1383. .subdevice = 0x6613, /* NTSC */
  1384. .card = CX88_BOARD_WINFAST2000XP_EXPERT,
  1385. },{
  1386. .subvendor = 0x107d,
  1387. .subdevice = 0x6620,
  1388. .card = CX88_BOARD_WINFAST_DV2000,
  1389. },{
  1390. .subvendor = 0x107d,
  1391. .subdevice = 0x663b,
  1392. .card = CX88_BOARD_LEADTEK_PVR2000,
  1393. },{
  1394. .subvendor = 0x107d,
  1395. .subdevice = 0x663c,
  1396. .card = CX88_BOARD_LEADTEK_PVR2000,
  1397. },{
  1398. .subvendor = 0x1461,
  1399. .subdevice = 0x000b,
  1400. .card = CX88_BOARD_AVERTV_STUDIO_303,
  1401. },{
  1402. .subvendor = 0x1462,
  1403. .subdevice = 0x8606,
  1404. .card = CX88_BOARD_MSI_TVANYWHERE_MASTER,
  1405. },{
  1406. .subvendor = 0x10fc,
  1407. .subdevice = 0xd003,
  1408. .card = CX88_BOARD_IODATA_GVVCP3PCI,
  1409. },{
  1410. .subvendor = 0x1043,
  1411. .subdevice = 0x4823, /* with mpeg encoder */
  1412. .card = CX88_BOARD_ASUS_PVR_416,
  1413. },{
  1414. .subvendor = 0x17de,
  1415. .subdevice = 0x08a6,
  1416. .card = CX88_BOARD_KWORLD_DVB_T,
  1417. },{
  1418. .subvendor = 0x18ac,
  1419. .subdevice = 0xd810,
  1420. .card = CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q,
  1421. },{
  1422. .subvendor = 0x18ac,
  1423. .subdevice = 0xd820,
  1424. .card = CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_T,
  1425. },{
  1426. .subvendor = 0x18ac,
  1427. .subdevice = 0xdb00,
  1428. .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1,
  1429. },{
  1430. .subvendor = 0x0070,
  1431. .subdevice = 0x9002,
  1432. .card = CX88_BOARD_HAUPPAUGE_DVB_T1,
  1433. },{
  1434. .subvendor = 0x14f1,
  1435. .subdevice = 0x0187,
  1436. .card = CX88_BOARD_CONEXANT_DVB_T1,
  1437. },{
  1438. .subvendor = 0x1540,
  1439. .subdevice = 0x2580,
  1440. .card = CX88_BOARD_PROVIDEO_PV259,
  1441. },{
  1442. .subvendor = 0x18ac,
  1443. .subdevice = 0xdb10,
  1444. .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS,
  1445. },{
  1446. .subvendor = 0x1554,
  1447. .subdevice = 0x4811,
  1448. .card = CX88_BOARD_PIXELVIEW,
  1449. },{
  1450. .subvendor = 0x7063,
  1451. .subdevice = 0x3000, /* HD-3000 card */
  1452. .card = CX88_BOARD_PCHDTV_HD3000,
  1453. },{
  1454. .subvendor = 0x17de,
  1455. .subdevice = 0xa8a6,
  1456. .card = CX88_BOARD_DNTV_LIVE_DVB_T,
  1457. },{
  1458. .subvendor = 0x0070,
  1459. .subdevice = 0x2801,
  1460. .card = CX88_BOARD_HAUPPAUGE_ROSLYN,
  1461. },{
  1462. .subvendor = 0x14f1,
  1463. .subdevice = 0x0342,
  1464. .card = CX88_BOARD_DIGITALLOGIC_MEC,
  1465. },{
  1466. .subvendor = 0x10fc,
  1467. .subdevice = 0xd035,
  1468. .card = CX88_BOARD_IODATA_GVBCTV7E,
  1469. },{
  1470. .subvendor = 0x1421,
  1471. .subdevice = 0x0334,
  1472. .card = CX88_BOARD_ADSTECH_DVB_T_PCI,
  1473. },{
  1474. .subvendor = 0x153b,
  1475. .subdevice = 0x1166,
  1476. .card = CX88_BOARD_TERRATEC_CINERGY_1400_DVB_T1,
  1477. },{
  1478. .subvendor = 0x18ac,
  1479. .subdevice = 0xd500,
  1480. .card = CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD,
  1481. },{
  1482. .subvendor = 0x1461,
  1483. .subdevice = 0x8011,
  1484. .card = CX88_BOARD_AVERMEDIA_ULTRATV_MC_550,
  1485. },{
  1486. .subvendor = PCI_VENDOR_ID_ATI,
  1487. .subdevice = 0xa101,
  1488. .card = CX88_BOARD_ATI_HDTVWONDER,
  1489. },{
  1490. .subvendor = 0x107d,
  1491. .subdevice = 0x665f,
  1492. .card = CX88_BOARD_WINFAST_DTV1000,
  1493. },{
  1494. .subvendor = 0x1461,
  1495. .subdevice = 0x000a,
  1496. .card = CX88_BOARD_AVERTV_303,
  1497. },{
  1498. .subvendor = 0x0070,
  1499. .subdevice = 0x9200,
  1500. .card = CX88_BOARD_HAUPPAUGE_NOVASE2_S1,
  1501. },{
  1502. .subvendor = 0x0070,
  1503. .subdevice = 0x9201,
  1504. .card = CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1,
  1505. },{
  1506. .subvendor = 0x0070,
  1507. .subdevice = 0x9202,
  1508. .card = CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1,
  1509. },{
  1510. .subvendor = 0x17de,
  1511. .subdevice = 0x08b2,
  1512. .card = CX88_BOARD_KWORLD_DVBS_100,
  1513. },{
  1514. .subvendor = 0x0070,
  1515. .subdevice = 0x9400,
  1516. .card = CX88_BOARD_HAUPPAUGE_HVR1100,
  1517. },{
  1518. .subvendor = 0x0070,
  1519. .subdevice = 0x9402,
  1520. .card = CX88_BOARD_HAUPPAUGE_HVR1100,
  1521. },{
  1522. .subvendor = 0x0070,
  1523. .subdevice = 0x9800,
  1524. .card = CX88_BOARD_HAUPPAUGE_HVR1100LP,
  1525. },{
  1526. .subvendor = 0x0070,
  1527. .subdevice = 0x9802,
  1528. .card = CX88_BOARD_HAUPPAUGE_HVR1100LP,
  1529. },{
  1530. .subvendor = 0x0070,
  1531. .subdevice = 0x9001,
  1532. .card = CX88_BOARD_HAUPPAUGE_DVB_T1,
  1533. },{
  1534. .subvendor = 0x1822,
  1535. .subdevice = 0x0025,
  1536. .card = CX88_BOARD_DNTV_LIVE_DVB_T_PRO,
  1537. },{
  1538. .subvendor = 0x17de,
  1539. .subdevice = 0x08a1,
  1540. .card = CX88_BOARD_KWORLD_DVB_T_CX22702,
  1541. },{
  1542. .subvendor = 0x18ac,
  1543. .subdevice = 0xdb50,
  1544. .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL,
  1545. },{
  1546. .subvendor = 0x18ac,
  1547. .subdevice = 0xdb54,
  1548. .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL,
  1549. /* Re-branded DViCO: DigitalNow DVB-T Dual */
  1550. },{
  1551. .subvendor = 0x18ac,
  1552. .subdevice = 0xdb11,
  1553. .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS,
  1554. /* Re-branded DViCO: UltraView DVB-T Plus */
  1555. },{
  1556. .subvendor = 0x17de,
  1557. .subdevice = 0x0840,
  1558. .card = CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT,
  1559. },{
  1560. .subvendor = 0x1421,
  1561. .subdevice = 0x0305,
  1562. .card = CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT,
  1563. },{
  1564. .subvendor = 0x18ac,
  1565. .subdevice = 0xdb40,
  1566. .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID,
  1567. },{
  1568. .subvendor = 0x18ac,
  1569. .subdevice = 0xdb44,
  1570. .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID,
  1571. },{
  1572. .subvendor = 0x7063,
  1573. .subdevice = 0x5500,
  1574. .card = CX88_BOARD_PCHDTV_HD5500,
  1575. },{
  1576. .subvendor = 0x17de,
  1577. .subdevice = 0x0841,
  1578. .card = CX88_BOARD_KWORLD_MCE200_DELUXE,
  1579. },{
  1580. .subvendor = 0x1822,
  1581. .subdevice = 0x0019,
  1582. .card = CX88_BOARD_DNTV_LIVE_DVB_T_PRO,
  1583. },{
  1584. .subvendor = 0x1554,
  1585. .subdevice = 0x4813,
  1586. .card = CX88_BOARD_PIXELVIEW_PLAYTV_P7000,
  1587. },{
  1588. .subvendor = 0x14f1,
  1589. .subdevice = 0x0842,
  1590. .card = CX88_BOARD_NPGTECH_REALTV_TOP10FM,
  1591. },{
  1592. .subvendor = 0x107d,
  1593. .subdevice = 0x665e,
  1594. .card = CX88_BOARD_WINFAST_DTV2000H,
  1595. },{
  1596. .subvendor = 0x18ac,
  1597. .subdevice = 0xd800, /* FusionHDTV 3 Gold (original revision) */
  1598. .card = CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q,
  1599. },{
  1600. .subvendor = 0x14f1,
  1601. .subdevice = 0x0084,
  1602. .card = CX88_BOARD_GENIATECH_DVBS,
  1603. },{
  1604. .subvendor = 0x0070,
  1605. .subdevice = 0x1404,
  1606. .card = CX88_BOARD_HAUPPAUGE_HVR3000,
  1607. },{
  1608. .subvendor = 0x1461,
  1609. .subdevice = 0xc111, /* AverMedia M150-D */
  1610. /* This board is known to work with the ASUS PVR416 config */
  1611. .card = CX88_BOARD_ASUS_PVR_416,
  1612. },{
  1613. .subvendor = 0xc180,
  1614. .subdevice = 0xc980,
  1615. .card = CX88_BOARD_TE_DTV_250_OEM_SWANN,
  1616. },{
  1617. .subvendor = 0x0070,
  1618. .subdevice = 0x9600,
  1619. .card = CX88_BOARD_HAUPPAUGE_HVR1300,
  1620. },{
  1621. .subvendor = 0x0070,
  1622. .subdevice = 0x9601,
  1623. .card = CX88_BOARD_HAUPPAUGE_HVR1300,
  1624. },{
  1625. .subvendor = 0x0070,
  1626. .subdevice = 0x9602,
  1627. .card = CX88_BOARD_HAUPPAUGE_HVR1300,
  1628. },{
  1629. .subvendor = 0x107d,
  1630. .subdevice = 0x6632,
  1631. .card = CX88_BOARD_LEADTEK_PVR2000,
  1632. },{
  1633. .subvendor = 0x12ab,
  1634. .subdevice = 0x2300, /* Club3D Zap TV2100 */
  1635. .card = CX88_BOARD_KWORLD_DVB_T_CX22702,
  1636. },{
  1637. .subvendor = 0x0070,
  1638. .subdevice = 0x9000,
  1639. .card = CX88_BOARD_HAUPPAUGE_DVB_T1,
  1640. },{
  1641. .subvendor = 0x0070,
  1642. .subdevice = 0x1400,
  1643. .card = CX88_BOARD_HAUPPAUGE_HVR3000,
  1644. },{
  1645. .subvendor = 0x0070,
  1646. .subdevice = 0x1401,
  1647. .card = CX88_BOARD_HAUPPAUGE_HVR3000,
  1648. },{
  1649. .subvendor = 0x0070,
  1650. .subdevice = 0x1402,
  1651. .card = CX88_BOARD_HAUPPAUGE_HVR3000,
  1652. },{
  1653. .subvendor = 0x1421,
  1654. .subdevice = 0x0341, /* ADS Tech InstantTV DVB-S */
  1655. .card = CX88_BOARD_KWORLD_DVBS_100,
  1656. },{
  1657. .subvendor = 0x1421,
  1658. .subdevice = 0x0390,
  1659. .card = CX88_BOARD_ADSTECH_PTV_390,
  1660. },
  1661. };
  1662. const unsigned int cx88_idcount = ARRAY_SIZE(cx88_subids);
  1663. /* ----------------------------------------------------------------------- */
  1664. /* some leadtek specific stuff */
  1665. static void leadtek_eeprom(struct cx88_core *core, u8 *eeprom_data)
  1666. {
  1667. /* This is just for the "Winfast 2000XP Expert" board ATM; I don't have data on
  1668. * any others.
  1669. *
  1670. * Byte 0 is 1 on the NTSC board.
  1671. */
  1672. if (eeprom_data[4] != 0x7d ||
  1673. eeprom_data[5] != 0x10 ||
  1674. eeprom_data[7] != 0x66) {
  1675. printk(KERN_WARNING "%s: Leadtek eeprom invalid.\n",
  1676. core->name);
  1677. return;
  1678. }
  1679. core->has_radio = 1;
  1680. core->tuner_type = (eeprom_data[6] == 0x13) ? 43 : 38;
  1681. printk(KERN_INFO "%s: Leadtek Winfast 2000XP Expert config: "
  1682. "tuner=%d, eeprom[0]=0x%02x\n",
  1683. core->name, core->tuner_type, eeprom_data[0]);
  1684. }
  1685. static void hauppauge_eeprom(struct cx88_core *core, u8 *eeprom_data)
  1686. {
  1687. struct tveeprom tv;
  1688. tveeprom_hauppauge_analog(&core->i2c_client, &tv, eeprom_data);
  1689. core->tuner_type = tv.tuner_type;
  1690. core->tuner_formats = tv.tuner_formats;
  1691. core->has_radio = tv.has_radio;
  1692. /* Make sure we support the board model */
  1693. switch (tv.model)
  1694. {
  1695. case 14009: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in) */
  1696. case 14019: /* WinTV-HVR3000 (Retail, IR Blaster, b/panel video, 3.5mm audio in) */
  1697. case 14029: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in - 880 bridge) */
  1698. case 14109: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in - low profile) */
  1699. case 14129: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in - 880 bridge - LP) */
  1700. case 14559: /* WinTV-HVR3000 (OEM, no IR, b/panel video, 3.5mm audio in) */
  1701. case 14569: /* WinTV-HVR3000 (OEM, no IR, no back panel video) */
  1702. case 14659: /* WinTV-HVR3000 (OEM, no IR, b/panel video, RCA audio in - Low profile) */
  1703. case 14669: /* WinTV-HVR3000 (OEM, no IR, no b/panel video - Low profile) */
  1704. case 28552: /* WinTV-PVR 'Roslyn' (No IR) */
  1705. case 34519: /* WinTV-PCI-FM */
  1706. case 90002: /* Nova-T-PCI (9002) */
  1707. case 92001: /* Nova-S-Plus (Video and IR) */
  1708. case 92002: /* Nova-S-Plus (Video and IR) */
  1709. case 90003: /* Nova-T-PCI (9002 No RF out) */
  1710. case 90500: /* Nova-T-PCI (oem) */
  1711. case 90501: /* Nova-T-PCI (oem/IR) */
  1712. case 92000: /* Nova-SE2 (OEM, No Video or IR) */
  1713. case 94009: /* WinTV-HVR1100 (Video and IR Retail) */
  1714. case 94501: /* WinTV-HVR1100 (Video and IR OEM) */
  1715. case 96009: /* WinTV-HVR1300 (PAL Video, MPEG Video and IR RX) */
  1716. case 96019: /* WinTV-HVR1300 (PAL Video, MPEG Video and IR RX/TX) */
  1717. case 96559: /* WinTV-HVR1300 (PAL Video, MPEG Video no IR) */
  1718. case 96569: /* WinTV-HVR1300 () */
  1719. case 96659: /* WinTV-HVR1300 () */
  1720. case 98559: /* WinTV-HVR1100LP (Video no IR, Retail - Low Profile) */
  1721. /* known */
  1722. break;
  1723. default:
  1724. printk("%s: warning: unknown hauppauge model #%d\n",
  1725. core->name, tv.model);
  1726. break;
  1727. }
  1728. printk(KERN_INFO "%s: hauppauge eeprom: model=%d\n",
  1729. core->name, tv.model);
  1730. }
  1731. /* ----------------------------------------------------------------------- */
  1732. /* some GDI (was: Modular Technology) specific stuff */
  1733. static struct {
  1734. int id;
  1735. int fm;
  1736. char *name;
  1737. } gdi_tuner[] = {
  1738. [ 0x01 ] = { .id = TUNER_ABSENT,
  1739. .name = "NTSC_M" },
  1740. [ 0x02 ] = { .id = TUNER_ABSENT,
  1741. .name = "PAL_B" },
  1742. [ 0x03 ] = { .id = TUNER_ABSENT,
  1743. .name = "PAL_I" },
  1744. [ 0x04 ] = { .id = TUNER_ABSENT,
  1745. .name = "PAL_D" },
  1746. [ 0x05 ] = { .id = TUNER_ABSENT,
  1747. .name = "SECAM" },
  1748. [ 0x10 ] = { .id = TUNER_ABSENT,
  1749. .fm = 1,
  1750. .name = "TEMIC_4049" },
  1751. [ 0x11 ] = { .id = TUNER_TEMIC_4136FY5,
  1752. .name = "TEMIC_4136" },
  1753. [ 0x12 ] = { .id = TUNER_ABSENT,
  1754. .name = "TEMIC_4146" },
  1755. [ 0x20 ] = { .id = TUNER_PHILIPS_FQ1216ME,
  1756. .fm = 1,
  1757. .name = "PHILIPS_FQ1216_MK3" },
  1758. [ 0x21 ] = { .id = TUNER_ABSENT, .fm = 1,
  1759. .name = "PHILIPS_FQ1236_MK3" },
  1760. [ 0x22 ] = { .id = TUNER_ABSENT,
  1761. .name = "PHILIPS_FI1236_MK3" },
  1762. [ 0x23 ] = { .id = TUNER_ABSENT,
  1763. .name = "PHILIPS_FI1216_MK3" },
  1764. };
  1765. static void gdi_eeprom(struct cx88_core *core, u8 *eeprom_data)
  1766. {
  1767. char *name = (eeprom_data[0x0d] < ARRAY_SIZE(gdi_tuner))
  1768. ? gdi_tuner[eeprom_data[0x0d]].name : NULL;
  1769. printk(KERN_INFO "%s: GDI: tuner=%s\n", core->name,
  1770. name ? name : "unknown");
  1771. if (NULL == name)
  1772. return;
  1773. core->tuner_type = gdi_tuner[eeprom_data[0x0d]].id;
  1774. core->has_radio = gdi_tuner[eeprom_data[0x0d]].fm;
  1775. }
  1776. /* ----------------------------------------------------------------------- */
  1777. /* some DViCO specific stuff */
  1778. static void dvico_fusionhdtv_hybrid_init(struct cx88_core *core)
  1779. {
  1780. struct i2c_msg msg = { .addr = 0x45, .flags = 0 };
  1781. int i, err;
  1782. static u8 init_bufs[13][5] = {
  1783. { 0x10, 0x00, 0x20, 0x01, 0x03 },
  1784. { 0x10, 0x10, 0x01, 0x00, 0x21 },
  1785. { 0x10, 0x10, 0x10, 0x00, 0xCA },
  1786. { 0x10, 0x10, 0x12, 0x00, 0x08 },
  1787. { 0x10, 0x10, 0x13, 0x00, 0x0A },
  1788. { 0x10, 0x10, 0x16, 0x01, 0xC0 },
  1789. { 0x10, 0x10, 0x22, 0x01, 0x3D },
  1790. { 0x10, 0x10, 0x73, 0x01, 0x2E },
  1791. { 0x10, 0x10, 0x72, 0x00, 0xC5 },
  1792. { 0x10, 0x10, 0x71, 0x01, 0x97 },
  1793. { 0x10, 0x10, 0x70, 0x00, 0x0F },
  1794. { 0x10, 0x10, 0xB0, 0x00, 0x01 },
  1795. { 0x03, 0x0C },
  1796. };
  1797. for (i = 0; i < ARRAY_SIZE(init_bufs); i++) {
  1798. msg.buf = init_bufs[i];
  1799. msg.len = (i != 12 ? 5 : 2);
  1800. err = i2c_transfer(&core->i2c_adap, &msg, 1);
  1801. if (err != 1) {
  1802. printk("dvico_fusionhdtv_hybrid_init buf %d failed (err = %d)!\n", i, err);
  1803. return;
  1804. }
  1805. }
  1806. }
  1807. /* ----------------------------------------------------------------------- */
  1808. void cx88_card_list(struct cx88_core *core, struct pci_dev *pci)
  1809. {
  1810. int i;
  1811. if (0 == pci->subsystem_vendor &&
  1812. 0 == pci->subsystem_device) {
  1813. printk("%s: Your board has no valid PCI Subsystem ID and thus can't\n"
  1814. "%s: be autodetected. Please pass card=<n> insmod option to\n"
  1815. "%s: workaround that. Redirect complaints to the vendor of\n"
  1816. "%s: the TV card. Best regards,\n"
  1817. "%s: -- tux\n",
  1818. core->name,core->name,core->name,core->name,core->name);
  1819. } else {
  1820. printk("%s: Your board isn't known (yet) to the driver. You can\n"
  1821. "%s: try to pick one of the existing card configs via\n"
  1822. "%s: card=<n> insmod option. Updating to the latest\n"
  1823. "%s: version might help as well.\n",
  1824. core->name,core->name,core->name,core->name);
  1825. }
  1826. printk("%s: Here is a list of valid choices for the card=<n> insmod option:\n",
  1827. core->name);
  1828. for (i = 0; i < cx88_bcount; i++)
  1829. printk("%s: card=%d -> %s\n",
  1830. core->name, i, cx88_boards[i].name);
  1831. }
  1832. void 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. void cx88_card_setup(struct cx88_core *core)
  1848. {
  1849. static u8 eeprom[256];
  1850. if (0 == core->i2c_rc) {
  1851. core->i2c_client.addr = 0xa0 >> 1;
  1852. tveeprom_read(&core->i2c_client,eeprom,sizeof(eeprom));
  1853. }
  1854. switch (core->board) {
  1855. case CX88_BOARD_HAUPPAUGE:
  1856. case CX88_BOARD_HAUPPAUGE_ROSLYN:
  1857. if (0 == core->i2c_rc)
  1858. hauppauge_eeprom(core,eeprom+8);
  1859. break;
  1860. case CX88_BOARD_GDI:
  1861. if (0 == core->i2c_rc)
  1862. gdi_eeprom(core,eeprom);
  1863. break;
  1864. case CX88_BOARD_WINFAST2000XP_EXPERT:
  1865. if (0 == core->i2c_rc)
  1866. leadtek_eeprom(core,eeprom);
  1867. break;
  1868. case CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1:
  1869. case CX88_BOARD_HAUPPAUGE_NOVASE2_S1:
  1870. case CX88_BOARD_HAUPPAUGE_DVB_T1:
  1871. case CX88_BOARD_HAUPPAUGE_HVR1100:
  1872. case CX88_BOARD_HAUPPAUGE_HVR1100LP:
  1873. case CX88_BOARD_HAUPPAUGE_HVR3000:
  1874. case CX88_BOARD_HAUPPAUGE_HVR1300:
  1875. if (0 == core->i2c_rc)
  1876. hauppauge_eeprom(core,eeprom);
  1877. break;
  1878. case CX88_BOARD_KWORLD_DVBS_100:
  1879. cx_write(MO_GP0_IO, 0x000007f8);
  1880. cx_write(MO_GP1_IO, 0x00000001);
  1881. break;
  1882. case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL:
  1883. /* GPIO0:6 is hooked to FX2 reset pin */
  1884. cx_set(MO_GP0_IO, 0x00004040);
  1885. cx_clear(MO_GP0_IO, 0x00000040);
  1886. msleep(1000);
  1887. cx_set(MO_GP0_IO, 0x00004040);
  1888. /* FALLTHROUGH */
  1889. case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1:
  1890. case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS:
  1891. case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID:
  1892. /* GPIO0:0 is hooked to mt352 reset pin */
  1893. cx_set(MO_GP0_IO, 0x00000101);
  1894. cx_clear(MO_GP0_IO, 0x00000001);
  1895. msleep(1);
  1896. cx_set(MO_GP0_IO, 0x00000101);
  1897. if (0 == core->i2c_rc &&
  1898. core->board == CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID)
  1899. dvico_fusionhdtv_hybrid_init(core);
  1900. break;
  1901. case CX88_BOARD_KWORLD_DVB_T:
  1902. case CX88_BOARD_DNTV_LIVE_DVB_T:
  1903. cx_set(MO_GP0_IO, 0x00000707);
  1904. cx_set(MO_GP2_IO, 0x00000101);
  1905. cx_clear(MO_GP2_IO, 0x00000001);
  1906. msleep(1);
  1907. cx_clear(MO_GP0_IO, 0x00000007);
  1908. cx_set(MO_GP2_IO, 0x00000101);
  1909. break;
  1910. case CX88_BOARD_DNTV_LIVE_DVB_T_PRO:
  1911. cx_write(MO_GP0_IO, 0x00080808);
  1912. break;
  1913. case CX88_BOARD_ATI_HDTVWONDER:
  1914. if (0 == core->i2c_rc) {
  1915. /* enable tuner */
  1916. int i;
  1917. static const u8 buffer [][2] = {
  1918. {0x10,0x12},
  1919. {0x13,0x04},
  1920. {0x16,0x00},
  1921. {0x14,0x04},
  1922. {0x17,0x00}
  1923. };
  1924. core->i2c_client.addr = 0x0a;
  1925. for (i = 0; i < ARRAY_SIZE(buffer); i++)
  1926. if (2 != i2c_master_send(&core->i2c_client,
  1927. buffer[i],2))
  1928. printk(KERN_WARNING
  1929. "%s: Unable to enable "
  1930. "tuner(%i).\n",
  1931. core->name, i);
  1932. }
  1933. break;
  1934. }
  1935. if (cx88_boards[core->board].radio.type == CX88_RADIO)
  1936. core->has_radio = 1;
  1937. }
  1938. /* ------------------------------------------------------------------ */
  1939. EXPORT_SYMBOL(cx88_boards);
  1940. /*
  1941. * Local variables:
  1942. * c-basic-offset: 8
  1943. * End:
  1944. * 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
  1945. */