cx88-cards.c 50 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958
  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. .type = CX88_VMUX_COMPOSITE1,
  885. .vmux = 1,
  886. },{
  887. .type = CX88_VMUX_SVIDEO,
  888. .vmux = 2,
  889. }},
  890. .mpeg = CX88_MPEG_DVB,
  891. },
  892. [CX88_BOARD_AVERTV_303] = {
  893. .name = "AVerTV 303 (M126)",
  894. .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
  895. .radio_type = UNSET,
  896. .tuner_addr = ADDR_UNSET,
  897. .radio_addr = ADDR_UNSET,
  898. .tda9887_conf = TDA9887_PRESENT,
  899. .input = {{
  900. .type = CX88_VMUX_TELEVISION,
  901. .vmux = 0,
  902. .gpio0 = 0x00ff,
  903. .gpio1 = 0xe09f,
  904. .gpio2 = 0x0010,
  905. .gpio3 = 0x0000,
  906. },{
  907. .type = CX88_VMUX_COMPOSITE1,
  908. .vmux = 1,
  909. .gpio0 = 0x00ff,
  910. .gpio1 = 0xe05f,
  911. .gpio2 = 0x0010,
  912. .gpio3 = 0x0000,
  913. },{
  914. .type = CX88_VMUX_SVIDEO,
  915. .vmux = 2,
  916. .gpio0 = 0x00ff,
  917. .gpio1 = 0xe05f,
  918. .gpio2 = 0x0010,
  919. .gpio3 = 0x0000,
  920. }},
  921. },
  922. [CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1] = {
  923. .name = "Hauppauge Nova-S-Plus DVB-S",
  924. .tuner_type = TUNER_ABSENT,
  925. .radio_type = UNSET,
  926. .tuner_addr = ADDR_UNSET,
  927. .radio_addr = ADDR_UNSET,
  928. .input = {{
  929. .type = CX88_VMUX_DVB,
  930. .vmux = 0,
  931. },{
  932. .type = CX88_VMUX_COMPOSITE1,
  933. .vmux = 1,
  934. },{
  935. .type = CX88_VMUX_SVIDEO,
  936. .vmux = 2,
  937. }},
  938. .mpeg = CX88_MPEG_DVB,
  939. },
  940. [CX88_BOARD_HAUPPAUGE_NOVASE2_S1] = {
  941. .name = "Hauppauge Nova-SE2 DVB-S",
  942. .tuner_type = TUNER_ABSENT,
  943. .radio_type = UNSET,
  944. .tuner_addr = ADDR_UNSET,
  945. .radio_addr = ADDR_UNSET,
  946. .input = {{
  947. .type = CX88_VMUX_DVB,
  948. .vmux = 0,
  949. }},
  950. .mpeg = CX88_MPEG_DVB,
  951. },
  952. [CX88_BOARD_KWORLD_DVBS_100] = {
  953. .name = "KWorld DVB-S 100",
  954. .tuner_type = TUNER_ABSENT,
  955. .radio_type = UNSET,
  956. .tuner_addr = ADDR_UNSET,
  957. .radio_addr = ADDR_UNSET,
  958. .input = {{
  959. .type = CX88_VMUX_DVB,
  960. .vmux = 0,
  961. },{
  962. .type = CX88_VMUX_COMPOSITE1,
  963. .vmux = 1,
  964. },{
  965. .type = CX88_VMUX_SVIDEO,
  966. .vmux = 2,
  967. }},
  968. .mpeg = CX88_MPEG_DVB,
  969. },
  970. [CX88_BOARD_HAUPPAUGE_HVR1100] = {
  971. .name = "Hauppauge WinTV-HVR1100 DVB-T/Hybrid",
  972. .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3,
  973. .radio_type = UNSET,
  974. .tuner_addr = ADDR_UNSET,
  975. .radio_addr = ADDR_UNSET,
  976. .tda9887_conf = TDA9887_PRESENT,
  977. .input = {{
  978. .type = CX88_VMUX_TELEVISION,
  979. .vmux = 0,
  980. },{
  981. .type = CX88_VMUX_COMPOSITE1,
  982. .vmux = 1,
  983. },{
  984. .type = CX88_VMUX_SVIDEO,
  985. .vmux = 2,
  986. }},
  987. /* fixme: Add radio support */
  988. .mpeg = CX88_MPEG_DVB,
  989. },
  990. [CX88_BOARD_HAUPPAUGE_HVR1100LP] = {
  991. .name = "Hauppauge WinTV-HVR1100 DVB-T/Hybrid (Low Profile)",
  992. .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3,
  993. .radio_type = UNSET,
  994. .tuner_addr = ADDR_UNSET,
  995. .radio_addr = ADDR_UNSET,
  996. .tda9887_conf = TDA9887_PRESENT,
  997. .input = {{
  998. .type = CX88_VMUX_TELEVISION,
  999. .vmux = 0,
  1000. },{
  1001. .type = CX88_VMUX_COMPOSITE1,
  1002. .vmux = 1,
  1003. }},
  1004. /* fixme: Add radio support */
  1005. .mpeg = CX88_MPEG_DVB,
  1006. },
  1007. [CX88_BOARD_DNTV_LIVE_DVB_T_PRO] = {
  1008. .name = "digitalnow DNTV Live! DVB-T Pro",
  1009. .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3,
  1010. .radio_type = UNSET,
  1011. .tuner_addr = ADDR_UNSET,
  1012. .radio_addr = ADDR_UNSET,
  1013. .tda9887_conf = TDA9887_PRESENT | TDA9887_PORT1_ACTIVE |
  1014. TDA9887_PORT2_ACTIVE,
  1015. .input = {{
  1016. .type = CX88_VMUX_TELEVISION,
  1017. .vmux = 0,
  1018. .gpio0 = 0xf80808,
  1019. },{
  1020. .type = CX88_VMUX_COMPOSITE1,
  1021. .vmux = 1,
  1022. .gpio0 = 0xf80808,
  1023. },{
  1024. .type = CX88_VMUX_SVIDEO,
  1025. .vmux = 2,
  1026. .gpio0 = 0xf80808,
  1027. }},
  1028. .radio = {
  1029. .type = CX88_RADIO,
  1030. .gpio0 = 0xf80808,
  1031. },
  1032. .mpeg = CX88_MPEG_DVB,
  1033. },
  1034. [CX88_BOARD_KWORLD_DVB_T_CX22702] = {
  1035. /* Kworld V-stream Xpert DVB-T with Thomson tuner */
  1036. /* DTT 7579 Conexant CX22702-19 Conexant CX2388x */
  1037. /* Manenti Marco <marco_manenti@colman.it> */
  1038. .name = "KWorld/VStream XPert DVB-T with cx22702",
  1039. .tuner_type = TUNER_ABSENT,
  1040. .radio_type = UNSET,
  1041. .tuner_addr = ADDR_UNSET,
  1042. .radio_addr = ADDR_UNSET,
  1043. .input = {{
  1044. .type = CX88_VMUX_COMPOSITE1,
  1045. .vmux = 1,
  1046. .gpio0 = 0x0700,
  1047. .gpio2 = 0x0101,
  1048. },{
  1049. .type = CX88_VMUX_SVIDEO,
  1050. .vmux = 2,
  1051. .gpio0 = 0x0700,
  1052. .gpio2 = 0x0101,
  1053. }},
  1054. .mpeg = CX88_MPEG_DVB,
  1055. },
  1056. [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL] = {
  1057. .name = "DViCO FusionHDTV DVB-T Dual Digital",
  1058. .tuner_type = TUNER_ABSENT, /* No analog tuner */
  1059. .radio_type = UNSET,
  1060. .tuner_addr = ADDR_UNSET,
  1061. .radio_addr = ADDR_UNSET,
  1062. .input = {{
  1063. .type = CX88_VMUX_COMPOSITE1,
  1064. .vmux = 1,
  1065. .gpio0 = 0x000067df,
  1066. },{
  1067. .type = CX88_VMUX_SVIDEO,
  1068. .vmux = 2,
  1069. .gpio0 = 0x000067df,
  1070. }},
  1071. .mpeg = CX88_MPEG_DVB,
  1072. },
  1073. [CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT] = {
  1074. .name = "KWorld HardwareMpegTV XPert",
  1075. .tuner_type = TUNER_PHILIPS_TDA8290,
  1076. .radio_type = UNSET,
  1077. .tuner_addr = ADDR_UNSET,
  1078. .radio_addr = ADDR_UNSET,
  1079. .input = {{
  1080. .type = CX88_VMUX_TELEVISION,
  1081. .vmux = 0,
  1082. .gpio0 = 0x3de2,
  1083. .gpio2 = 0x00ff,
  1084. },{
  1085. .type = CX88_VMUX_COMPOSITE1,
  1086. .vmux = 1,
  1087. .gpio0 = 0x3de6,
  1088. .extadc = 1,
  1089. },{
  1090. .type = CX88_VMUX_SVIDEO,
  1091. .vmux = 2,
  1092. .gpio0 = 0x3de6,
  1093. .extadc = 1,
  1094. }},
  1095. .radio = {
  1096. .type = CX88_RADIO,
  1097. .gpio0 = 0x3de6,
  1098. .gpio2 = 0x00ff,
  1099. },
  1100. .mpeg = CX88_MPEG_BLACKBIRD,
  1101. },
  1102. [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID] = {
  1103. .name = "DViCO FusionHDTV DVB-T Hybrid",
  1104. .tuner_type = TUNER_THOMSON_FE6600,
  1105. .radio_type = UNSET,
  1106. .tuner_addr = ADDR_UNSET,
  1107. .radio_addr = ADDR_UNSET,
  1108. .input = {{
  1109. .type = CX88_VMUX_TELEVISION,
  1110. .vmux = 0,
  1111. .gpio0 = 0x0000a75f,
  1112. },{
  1113. .type = CX88_VMUX_COMPOSITE1,
  1114. .vmux = 1,
  1115. .gpio0 = 0x0000a75b,
  1116. },{
  1117. .type = CX88_VMUX_SVIDEO,
  1118. .vmux = 2,
  1119. .gpio0 = 0x0000a75b,
  1120. }},
  1121. .mpeg = CX88_MPEG_DVB,
  1122. },
  1123. [CX88_BOARD_PCHDTV_HD5500] = {
  1124. .name = "pcHDTV HD5500 HDTV",
  1125. .tuner_type = TUNER_LG_TDVS_H06XF, /* TDVS-H064F */
  1126. .radio_type = UNSET,
  1127. .tuner_addr = ADDR_UNSET,
  1128. .radio_addr = ADDR_UNSET,
  1129. .tda9887_conf = TDA9887_PRESENT,
  1130. .input = {{
  1131. .type = CX88_VMUX_TELEVISION,
  1132. .vmux = 0,
  1133. .gpio0 = 0x87fd,
  1134. },{
  1135. .type = CX88_VMUX_COMPOSITE1,
  1136. .vmux = 1,
  1137. .gpio0 = 0x87f9,
  1138. },{
  1139. .type = CX88_VMUX_SVIDEO,
  1140. .vmux = 2,
  1141. .gpio0 = 0x87f9,
  1142. }},
  1143. .mpeg = CX88_MPEG_DVB,
  1144. },
  1145. [CX88_BOARD_KWORLD_MCE200_DELUXE] = {
  1146. /* FIXME: tested TV input only, disabled composite,
  1147. svideo and radio until they can be tested also. */
  1148. .name = "Kworld MCE 200 Deluxe",
  1149. .tuner_type = TUNER_TENA_9533_DI,
  1150. .radio_type = UNSET,
  1151. .tda9887_conf = TDA9887_PRESENT,
  1152. .tuner_addr = ADDR_UNSET,
  1153. .radio_addr = ADDR_UNSET,
  1154. .input = {{
  1155. .type = CX88_VMUX_TELEVISION,
  1156. .vmux = 0,
  1157. .gpio0 = 0x0000BDE6
  1158. }},
  1159. .mpeg = CX88_MPEG_BLACKBIRD,
  1160. },
  1161. [CX88_BOARD_PIXELVIEW_PLAYTV_P7000] = {
  1162. /* FIXME: SVideo, Composite and FM inputs are untested */
  1163. .name = "PixelView PlayTV P7000",
  1164. .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
  1165. .radio_type = UNSET,
  1166. .tuner_addr = ADDR_UNSET,
  1167. .radio_addr = ADDR_UNSET,
  1168. .tda9887_conf = TDA9887_PRESENT | TDA9887_PORT1_ACTIVE |
  1169. TDA9887_PORT2_ACTIVE,
  1170. .input = {{
  1171. .type = CX88_VMUX_TELEVISION,
  1172. .vmux = 0,
  1173. .gpio0 = 0x5da6,
  1174. }},
  1175. .mpeg = CX88_MPEG_BLACKBIRD,
  1176. },
  1177. [CX88_BOARD_NPGTECH_REALTV_TOP10FM] = {
  1178. .name = "NPG Tech Real TV FM Top 10",
  1179. .tuner_type = TUNER_TNF_5335MF, /* Actually a TNF9535 */
  1180. .radio_type = UNSET,
  1181. .tuner_addr = ADDR_UNSET,
  1182. .radio_addr = ADDR_UNSET,
  1183. .input = {{
  1184. .type = CX88_VMUX_TELEVISION,
  1185. .vmux = 0,
  1186. .gpio0 = 0x0788,
  1187. },{
  1188. .type = CX88_VMUX_COMPOSITE1,
  1189. .vmux = 1,
  1190. .gpio0 = 0x078b,
  1191. },{
  1192. .type = CX88_VMUX_SVIDEO,
  1193. .vmux = 2,
  1194. .gpio0 = 0x078b,
  1195. }},
  1196. .radio = {
  1197. .type = CX88_RADIO,
  1198. .gpio0 = 0x074a,
  1199. },
  1200. },
  1201. [CX88_BOARD_WINFAST_DTV2000H] = {
  1202. /* video inputs and radio still in testing */
  1203. .name = "WinFast DTV2000 H",
  1204. .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3,
  1205. .radio_type = UNSET,
  1206. .tuner_addr = ADDR_UNSET,
  1207. .radio_addr = ADDR_UNSET,
  1208. .tda9887_conf = TDA9887_PRESENT,
  1209. .input = {{
  1210. .type = CX88_VMUX_TELEVISION,
  1211. .vmux = 0,
  1212. .gpio0 = 0x00017304,
  1213. .gpio1 = 0x00008203,
  1214. .gpio2 = 0x00017304,
  1215. .gpio3 = 0x02000000,
  1216. }},
  1217. .mpeg = CX88_MPEG_DVB,
  1218. },
  1219. [CX88_BOARD_GENIATECH_DVBS] = {
  1220. .name = "Geniatech DVB-S",
  1221. .tuner_type = TUNER_ABSENT,
  1222. .radio_type = UNSET,
  1223. .tuner_addr = ADDR_UNSET,
  1224. .radio_addr = ADDR_UNSET,
  1225. .input = {{
  1226. .type = CX88_VMUX_DVB,
  1227. .vmux = 0,
  1228. },{
  1229. .type = CX88_VMUX_COMPOSITE1,
  1230. .vmux = 1,
  1231. }},
  1232. .mpeg = CX88_MPEG_DVB,
  1233. },
  1234. [CX88_BOARD_HAUPPAUGE_HVR3000] = {
  1235. /* FIXME: Add dvb & radio support */
  1236. .name = "Hauppauge WinTV-HVR3000 TriMode Analog/DVB-S/DVB-T",
  1237. .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3,
  1238. .radio_type = UNSET,
  1239. .tuner_addr = ADDR_UNSET,
  1240. .radio_addr = ADDR_UNSET,
  1241. .tda9887_conf = TDA9887_PRESENT,
  1242. .input = {{
  1243. .type = CX88_VMUX_TELEVISION,
  1244. .vmux = 0,
  1245. .gpio0 = 0x84bf,
  1246. },{
  1247. .type = CX88_VMUX_COMPOSITE1,
  1248. .vmux = 1,
  1249. .gpio0 = 0x84bf,
  1250. },{
  1251. .type = CX88_VMUX_SVIDEO,
  1252. .vmux = 2,
  1253. .gpio0 = 0x84bf,
  1254. }},
  1255. .mpeg = CX88_MPEG_DVB,
  1256. },
  1257. [CX88_BOARD_NORWOOD_MICRO] = {
  1258. .name = "Norwood Micro TV Tuner",
  1259. .tuner_type = TUNER_TNF_5335MF,
  1260. .radio_type = UNSET,
  1261. .tuner_addr = ADDR_UNSET,
  1262. .radio_addr = ADDR_UNSET,
  1263. .input = {{
  1264. .type = CX88_VMUX_TELEVISION,
  1265. .vmux = 0,
  1266. .gpio0 = 0x0709,
  1267. },{
  1268. .type = CX88_VMUX_COMPOSITE1,
  1269. .vmux = 1,
  1270. .gpio0 = 0x070b,
  1271. },{
  1272. .type = CX88_VMUX_SVIDEO,
  1273. .vmux = 2,
  1274. .gpio0 = 0x070b,
  1275. }},
  1276. },
  1277. [CX88_BOARD_TE_DTV_250_OEM_SWANN] = {
  1278. .name = "Shenzhen Tungsten Ages Tech TE-DTV-250 / Swann OEM",
  1279. .tuner_type = TUNER_LG_PAL_NEW_TAPC,
  1280. .radio_type = UNSET,
  1281. .tuner_addr = ADDR_UNSET,
  1282. .radio_addr = ADDR_UNSET,
  1283. .input = {{
  1284. .type = CX88_VMUX_TELEVISION,
  1285. .vmux = 0,
  1286. .gpio0 = 0x003fffff,
  1287. .gpio1 = 0x00e00000,
  1288. .gpio2 = 0x003fffff,
  1289. .gpio3 = 0x02000000,
  1290. },{
  1291. .type = CX88_VMUX_COMPOSITE1,
  1292. .vmux = 1,
  1293. .gpio0 = 0x003fffff,
  1294. .gpio1 = 0x00e00000,
  1295. .gpio2 = 0x003fffff,
  1296. .gpio3 = 0x02000000,
  1297. },{
  1298. .type = CX88_VMUX_SVIDEO,
  1299. .vmux = 2,
  1300. .gpio0 = 0x003fffff,
  1301. .gpio1 = 0x00e00000,
  1302. .gpio2 = 0x003fffff,
  1303. .gpio3 = 0x02000000,
  1304. }},
  1305. },
  1306. [CX88_BOARD_HAUPPAUGE_HVR1300] = {
  1307. .name = "Hauppauge WinTV-HVR1300 DVB-T/Hybrid MPEG Encoder",
  1308. .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3,
  1309. .radio_type = UNSET,
  1310. .tuner_addr = ADDR_UNSET,
  1311. .radio_addr = ADDR_UNSET,
  1312. .tda9887_conf = TDA9887_PRESENT,
  1313. .audio_chip = AUDIO_CHIP_WM8775,
  1314. .input = {{
  1315. .type = CX88_VMUX_TELEVISION,
  1316. .vmux = 0,
  1317. .gpio0 = 0xe780,
  1318. .extadc = 1,
  1319. },{
  1320. .type = CX88_VMUX_COMPOSITE1,
  1321. .vmux = 1,
  1322. .gpio0 = 0xe780,
  1323. .extadc = 1,
  1324. },{
  1325. .type = CX88_VMUX_SVIDEO,
  1326. .vmux = 2,
  1327. .gpio0 = 0xe780,
  1328. .extadc = 1,
  1329. }},
  1330. /* fixme: Add radio support */
  1331. .mpeg = CX88_MPEG_DVB | CX88_MPEG_BLACKBIRD,
  1332. },
  1333. };
  1334. const unsigned int cx88_bcount = ARRAY_SIZE(cx88_boards);
  1335. /* ------------------------------------------------------------------ */
  1336. /* PCI subsystem IDs */
  1337. struct cx88_subid cx88_subids[] = {
  1338. {
  1339. .subvendor = 0x0070,
  1340. .subdevice = 0x3400,
  1341. .card = CX88_BOARD_HAUPPAUGE,
  1342. },{
  1343. .subvendor = 0x0070,
  1344. .subdevice = 0x3401,
  1345. .card = CX88_BOARD_HAUPPAUGE,
  1346. },{
  1347. .subvendor = 0x14c7,
  1348. .subdevice = 0x0106,
  1349. .card = CX88_BOARD_GDI,
  1350. },{
  1351. .subvendor = 0x14c7,
  1352. .subdevice = 0x0107, /* with mpeg encoder */
  1353. .card = CX88_BOARD_GDI,
  1354. },{
  1355. .subvendor = PCI_VENDOR_ID_ATI,
  1356. .subdevice = 0x00f8,
  1357. .card = CX88_BOARD_ATI_WONDER_PRO,
  1358. },{
  1359. .subvendor = 0x107d,
  1360. .subdevice = 0x6611,
  1361. .card = CX88_BOARD_WINFAST2000XP_EXPERT,
  1362. },{
  1363. .subvendor = 0x107d,
  1364. .subdevice = 0x6613, /* NTSC */
  1365. .card = CX88_BOARD_WINFAST2000XP_EXPERT,
  1366. },{
  1367. .subvendor = 0x107d,
  1368. .subdevice = 0x6620,
  1369. .card = CX88_BOARD_WINFAST_DV2000,
  1370. },{
  1371. .subvendor = 0x107d,
  1372. .subdevice = 0x663b,
  1373. .card = CX88_BOARD_LEADTEK_PVR2000,
  1374. },{
  1375. .subvendor = 0x107d,
  1376. .subdevice = 0x663c,
  1377. .card = CX88_BOARD_LEADTEK_PVR2000,
  1378. },{
  1379. .subvendor = 0x1461,
  1380. .subdevice = 0x000b,
  1381. .card = CX88_BOARD_AVERTV_STUDIO_303,
  1382. },{
  1383. .subvendor = 0x1462,
  1384. .subdevice = 0x8606,
  1385. .card = CX88_BOARD_MSI_TVANYWHERE_MASTER,
  1386. },{
  1387. .subvendor = 0x10fc,
  1388. .subdevice = 0xd003,
  1389. .card = CX88_BOARD_IODATA_GVVCP3PCI,
  1390. },{
  1391. .subvendor = 0x1043,
  1392. .subdevice = 0x4823, /* with mpeg encoder */
  1393. .card = CX88_BOARD_ASUS_PVR_416,
  1394. },{
  1395. .subvendor = 0x17de,
  1396. .subdevice = 0x08a6,
  1397. .card = CX88_BOARD_KWORLD_DVB_T,
  1398. },{
  1399. .subvendor = 0x18ac,
  1400. .subdevice = 0xd810,
  1401. .card = CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q,
  1402. },{
  1403. .subvendor = 0x18ac,
  1404. .subdevice = 0xd820,
  1405. .card = CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_T,
  1406. },{
  1407. .subvendor = 0x18ac,
  1408. .subdevice = 0xdb00,
  1409. .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1,
  1410. },{
  1411. .subvendor = 0x0070,
  1412. .subdevice = 0x9002,
  1413. .card = CX88_BOARD_HAUPPAUGE_DVB_T1,
  1414. },{
  1415. .subvendor = 0x14f1,
  1416. .subdevice = 0x0187,
  1417. .card = CX88_BOARD_CONEXANT_DVB_T1,
  1418. },{
  1419. .subvendor = 0x1540,
  1420. .subdevice = 0x2580,
  1421. .card = CX88_BOARD_PROVIDEO_PV259,
  1422. },{
  1423. .subvendor = 0x18ac,
  1424. .subdevice = 0xdb10,
  1425. .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS,
  1426. },{
  1427. .subvendor = 0x1554,
  1428. .subdevice = 0x4811,
  1429. .card = CX88_BOARD_PIXELVIEW,
  1430. },{
  1431. .subvendor = 0x7063,
  1432. .subdevice = 0x3000, /* HD-3000 card */
  1433. .card = CX88_BOARD_PCHDTV_HD3000,
  1434. },{
  1435. .subvendor = 0x17de,
  1436. .subdevice = 0xa8a6,
  1437. .card = CX88_BOARD_DNTV_LIVE_DVB_T,
  1438. },{
  1439. .subvendor = 0x0070,
  1440. .subdevice = 0x2801,
  1441. .card = CX88_BOARD_HAUPPAUGE_ROSLYN,
  1442. },{
  1443. .subvendor = 0x14f1,
  1444. .subdevice = 0x0342,
  1445. .card = CX88_BOARD_DIGITALLOGIC_MEC,
  1446. },{
  1447. .subvendor = 0x10fc,
  1448. .subdevice = 0xd035,
  1449. .card = CX88_BOARD_IODATA_GVBCTV7E,
  1450. },{
  1451. .subvendor = 0x1421,
  1452. .subdevice = 0x0334,
  1453. .card = CX88_BOARD_ADSTECH_DVB_T_PCI,
  1454. },{
  1455. .subvendor = 0x153b,
  1456. .subdevice = 0x1166,
  1457. .card = CX88_BOARD_TERRATEC_CINERGY_1400_DVB_T1,
  1458. },{
  1459. .subvendor = 0x18ac,
  1460. .subdevice = 0xd500,
  1461. .card = CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD,
  1462. },{
  1463. .subvendor = 0x1461,
  1464. .subdevice = 0x8011,
  1465. .card = CX88_BOARD_AVERMEDIA_ULTRATV_MC_550,
  1466. },{
  1467. .subvendor = PCI_VENDOR_ID_ATI,
  1468. .subdevice = 0xa101,
  1469. .card = CX88_BOARD_ATI_HDTVWONDER,
  1470. },{
  1471. .subvendor = 0x107d,
  1472. .subdevice = 0x665f,
  1473. .card = CX88_BOARD_WINFAST_DTV1000,
  1474. },{
  1475. .subvendor = 0x1461,
  1476. .subdevice = 0x000a,
  1477. .card = CX88_BOARD_AVERTV_303,
  1478. },{
  1479. .subvendor = 0x0070,
  1480. .subdevice = 0x9200,
  1481. .card = CX88_BOARD_HAUPPAUGE_NOVASE2_S1,
  1482. },{
  1483. .subvendor = 0x0070,
  1484. .subdevice = 0x9201,
  1485. .card = CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1,
  1486. },{
  1487. .subvendor = 0x0070,
  1488. .subdevice = 0x9202,
  1489. .card = CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1,
  1490. },{
  1491. .subvendor = 0x17de,
  1492. .subdevice = 0x08b2,
  1493. .card = CX88_BOARD_KWORLD_DVBS_100,
  1494. },{
  1495. .subvendor = 0x0070,
  1496. .subdevice = 0x9400,
  1497. .card = CX88_BOARD_HAUPPAUGE_HVR1100,
  1498. },{
  1499. .subvendor = 0x0070,
  1500. .subdevice = 0x9402,
  1501. .card = CX88_BOARD_HAUPPAUGE_HVR1100,
  1502. },{
  1503. .subvendor = 0x0070,
  1504. .subdevice = 0x9800,
  1505. .card = CX88_BOARD_HAUPPAUGE_HVR1100LP,
  1506. },{
  1507. .subvendor = 0x0070,
  1508. .subdevice = 0x9802,
  1509. .card = CX88_BOARD_HAUPPAUGE_HVR1100LP,
  1510. },{
  1511. .subvendor = 0x0070,
  1512. .subdevice = 0x9001,
  1513. .card = CX88_BOARD_HAUPPAUGE_DVB_T1,
  1514. },{
  1515. .subvendor = 0x1822,
  1516. .subdevice = 0x0025,
  1517. .card = CX88_BOARD_DNTV_LIVE_DVB_T_PRO,
  1518. },{
  1519. .subvendor = 0x17de,
  1520. .subdevice = 0x08a1,
  1521. .card = CX88_BOARD_KWORLD_DVB_T_CX22702,
  1522. },{
  1523. .subvendor = 0x18ac,
  1524. .subdevice = 0xdb50,
  1525. .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL,
  1526. },{
  1527. .subvendor = 0x18ac,
  1528. .subdevice = 0xdb54,
  1529. .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL,
  1530. /* Re-branded DViCO: DigitalNow DVB-T Dual */
  1531. },{
  1532. .subvendor = 0x18ac,
  1533. .subdevice = 0xdb11,
  1534. .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS,
  1535. /* Re-branded DViCO: UltraView DVB-T Plus */
  1536. },{
  1537. .subvendor = 0x17de,
  1538. .subdevice = 0x0840,
  1539. .card = CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT,
  1540. },{
  1541. .subvendor = 0x1421,
  1542. .subdevice = 0x0305,
  1543. .card = CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT,
  1544. },{
  1545. .subvendor = 0x18ac,
  1546. .subdevice = 0xdb40,
  1547. .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID,
  1548. },{
  1549. .subvendor = 0x18ac,
  1550. .subdevice = 0xdb44,
  1551. .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID,
  1552. },{
  1553. .subvendor = 0x7063,
  1554. .subdevice = 0x5500,
  1555. .card = CX88_BOARD_PCHDTV_HD5500,
  1556. },{
  1557. .subvendor = 0x17de,
  1558. .subdevice = 0x0841,
  1559. .card = CX88_BOARD_KWORLD_MCE200_DELUXE,
  1560. },{
  1561. .subvendor = 0x1822,
  1562. .subdevice = 0x0019,
  1563. .card = CX88_BOARD_DNTV_LIVE_DVB_T_PRO,
  1564. },{
  1565. .subvendor = 0x1554,
  1566. .subdevice = 0x4813,
  1567. .card = CX88_BOARD_PIXELVIEW_PLAYTV_P7000,
  1568. },{
  1569. .subvendor = 0x14f1,
  1570. .subdevice = 0x0842,
  1571. .card = CX88_BOARD_NPGTECH_REALTV_TOP10FM,
  1572. },{
  1573. .subvendor = 0x107d,
  1574. .subdevice = 0x665e,
  1575. .card = CX88_BOARD_WINFAST_DTV2000H,
  1576. },{
  1577. .subvendor = 0x18ac,
  1578. .subdevice = 0xd800, /* FusionHDTV 3 Gold (original revision) */
  1579. .card = CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q,
  1580. },{
  1581. .subvendor = 0x14f1,
  1582. .subdevice = 0x0084,
  1583. .card = CX88_BOARD_GENIATECH_DVBS,
  1584. },{
  1585. .subvendor = 0x0070,
  1586. .subdevice = 0x1404,
  1587. .card = CX88_BOARD_HAUPPAUGE_HVR3000,
  1588. },{
  1589. .subvendor = 0x1461,
  1590. .subdevice = 0xc111, /* AverMedia M150-D */
  1591. /* This board is known to work with the ASUS PVR416 config */
  1592. .card = CX88_BOARD_ASUS_PVR_416,
  1593. },{
  1594. .subvendor = 0xc180,
  1595. .subdevice = 0xc980,
  1596. .card = CX88_BOARD_TE_DTV_250_OEM_SWANN,
  1597. },{
  1598. .subvendor = 0x0070,
  1599. .subdevice = 0x9600,
  1600. .card = CX88_BOARD_HAUPPAUGE_HVR1300,
  1601. },{
  1602. .subvendor = 0x0070,
  1603. .subdevice = 0x9601,
  1604. .card = CX88_BOARD_HAUPPAUGE_HVR1300,
  1605. },{
  1606. .subvendor = 0x0070,
  1607. .subdevice = 0x9602,
  1608. .card = CX88_BOARD_HAUPPAUGE_HVR1300,
  1609. },{
  1610. .subvendor = 0x107d,
  1611. .subdevice = 0x6632,
  1612. .card = CX88_BOARD_LEADTEK_PVR2000,
  1613. },{
  1614. .subvendor = 0x12ab,
  1615. .subdevice = 0x2300, /* Club3D Zap TV2100 */
  1616. .card = CX88_BOARD_KWORLD_DVB_T_CX22702,
  1617. },{
  1618. .subvendor = 0x0070,
  1619. .subdevice = 0x9000,
  1620. .card = CX88_BOARD_HAUPPAUGE_DVB_T1,
  1621. },{
  1622. .subvendor = 0x0070,
  1623. .subdevice = 0x1400,
  1624. .card = CX88_BOARD_HAUPPAUGE_HVR3000,
  1625. },{
  1626. .subvendor = 0x0070,
  1627. .subdevice = 0x1401,
  1628. .card = CX88_BOARD_HAUPPAUGE_HVR3000,
  1629. },{
  1630. .subvendor = 0x0070,
  1631. .subdevice = 0x1402,
  1632. .card = CX88_BOARD_HAUPPAUGE_HVR3000,
  1633. },{
  1634. .subvendor = 0x1421,
  1635. .subdevice = 0x0341, /* ADS Tech InstantTV DVB-S */
  1636. .card = CX88_BOARD_KWORLD_DVBS_100,
  1637. },
  1638. };
  1639. const unsigned int cx88_idcount = ARRAY_SIZE(cx88_subids);
  1640. /* ----------------------------------------------------------------------- */
  1641. /* some leadtek specific stuff */
  1642. static void leadtek_eeprom(struct cx88_core *core, u8 *eeprom_data)
  1643. {
  1644. /* This is just for the "Winfast 2000XP Expert" board ATM; I don't have data on
  1645. * any others.
  1646. *
  1647. * Byte 0 is 1 on the NTSC board.
  1648. */
  1649. if (eeprom_data[4] != 0x7d ||
  1650. eeprom_data[5] != 0x10 ||
  1651. eeprom_data[7] != 0x66) {
  1652. printk(KERN_WARNING "%s: Leadtek eeprom invalid.\n",
  1653. core->name);
  1654. return;
  1655. }
  1656. core->has_radio = 1;
  1657. core->tuner_type = (eeprom_data[6] == 0x13) ? 43 : 38;
  1658. printk(KERN_INFO "%s: Leadtek Winfast 2000XP Expert config: "
  1659. "tuner=%d, eeprom[0]=0x%02x\n",
  1660. core->name, core->tuner_type, eeprom_data[0]);
  1661. }
  1662. static void hauppauge_eeprom(struct cx88_core *core, u8 *eeprom_data)
  1663. {
  1664. struct tveeprom tv;
  1665. tveeprom_hauppauge_analog(&core->i2c_client, &tv, eeprom_data);
  1666. core->tuner_type = tv.tuner_type;
  1667. core->tuner_formats = tv.tuner_formats;
  1668. core->has_radio = tv.has_radio;
  1669. /* Make sure we support the board model */
  1670. switch (tv.model)
  1671. {
  1672. case 14009: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in) */
  1673. case 14019: /* WinTV-HVR3000 (Retail, IR Blaster, b/panel video, 3.5mm audio in) */
  1674. case 14029: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in - 880 bridge) */
  1675. case 14109: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in - low profile) */
  1676. case 14129: /* WinTV-HVR3000 (Retail, IR, b/panel video, 3.5mm audio in - 880 bridge - LP) */
  1677. case 14559: /* WinTV-HVR3000 (OEM, no IR, b/panel video, 3.5mm audio in) */
  1678. case 14569: /* WinTV-HVR3000 (OEM, no IR, no back panel video) */
  1679. case 14659: /* WinTV-HVR3000 (OEM, no IR, b/panel video, RCA audio in - Low profile) */
  1680. case 14669: /* WinTV-HVR3000 (OEM, no IR, no b/panel video - Low profile) */
  1681. case 28552: /* WinTV-PVR 'Roslyn' (No IR) */
  1682. case 34519: /* WinTV-PCI-FM */
  1683. case 90002: /* Nova-T-PCI (9002) */
  1684. case 92001: /* Nova-S-Plus (Video and IR) */
  1685. case 92002: /* Nova-S-Plus (Video and IR) */
  1686. case 90003: /* Nova-T-PCI (9002 No RF out) */
  1687. case 90500: /* Nova-T-PCI (oem) */
  1688. case 90501: /* Nova-T-PCI (oem/IR) */
  1689. case 92000: /* Nova-SE2 (OEM, No Video or IR) */
  1690. case 94009: /* WinTV-HVR1100 (Video and IR Retail) */
  1691. case 94501: /* WinTV-HVR1100 (Video and IR OEM) */
  1692. case 96009: /* WinTV-HVR1300 (PAL Video, MPEG Video and IR RX) */
  1693. case 96019: /* WinTV-HVR1300 (PAL Video, MPEG Video and IR RX/TX) */
  1694. case 96559: /* WinTV-HVR1300 (PAL Video, MPEG Video no IR) */
  1695. case 96569: /* WinTV-HVR1300 () */
  1696. case 96659: /* WinTV-HVR1300 () */
  1697. case 98559: /* WinTV-HVR1100LP (Video no IR, Retail - Low Profile) */
  1698. /* known */
  1699. break;
  1700. default:
  1701. printk("%s: warning: unknown hauppauge model #%d\n",
  1702. core->name, tv.model);
  1703. break;
  1704. }
  1705. printk(KERN_INFO "%s: hauppauge eeprom: model=%d\n",
  1706. core->name, tv.model);
  1707. }
  1708. /* ----------------------------------------------------------------------- */
  1709. /* some GDI (was: Modular Technology) specific stuff */
  1710. static struct {
  1711. int id;
  1712. int fm;
  1713. char *name;
  1714. } gdi_tuner[] = {
  1715. [ 0x01 ] = { .id = TUNER_ABSENT,
  1716. .name = "NTSC_M" },
  1717. [ 0x02 ] = { .id = TUNER_ABSENT,
  1718. .name = "PAL_B" },
  1719. [ 0x03 ] = { .id = TUNER_ABSENT,
  1720. .name = "PAL_I" },
  1721. [ 0x04 ] = { .id = TUNER_ABSENT,
  1722. .name = "PAL_D" },
  1723. [ 0x05 ] = { .id = TUNER_ABSENT,
  1724. .name = "SECAM" },
  1725. [ 0x10 ] = { .id = TUNER_ABSENT,
  1726. .fm = 1,
  1727. .name = "TEMIC_4049" },
  1728. [ 0x11 ] = { .id = TUNER_TEMIC_4136FY5,
  1729. .name = "TEMIC_4136" },
  1730. [ 0x12 ] = { .id = TUNER_ABSENT,
  1731. .name = "TEMIC_4146" },
  1732. [ 0x20 ] = { .id = TUNER_PHILIPS_FQ1216ME,
  1733. .fm = 1,
  1734. .name = "PHILIPS_FQ1216_MK3" },
  1735. [ 0x21 ] = { .id = TUNER_ABSENT, .fm = 1,
  1736. .name = "PHILIPS_FQ1236_MK3" },
  1737. [ 0x22 ] = { .id = TUNER_ABSENT,
  1738. .name = "PHILIPS_FI1236_MK3" },
  1739. [ 0x23 ] = { .id = TUNER_ABSENT,
  1740. .name = "PHILIPS_FI1216_MK3" },
  1741. };
  1742. static void gdi_eeprom(struct cx88_core *core, u8 *eeprom_data)
  1743. {
  1744. char *name = (eeprom_data[0x0d] < ARRAY_SIZE(gdi_tuner))
  1745. ? gdi_tuner[eeprom_data[0x0d]].name : NULL;
  1746. printk(KERN_INFO "%s: GDI: tuner=%s\n", core->name,
  1747. name ? name : "unknown");
  1748. if (NULL == name)
  1749. return;
  1750. core->tuner_type = gdi_tuner[eeprom_data[0x0d]].id;
  1751. core->has_radio = gdi_tuner[eeprom_data[0x0d]].fm;
  1752. }
  1753. /* ----------------------------------------------------------------------- */
  1754. /* some DViCO specific stuff */
  1755. static void dvico_fusionhdtv_hybrid_init(struct cx88_core *core)
  1756. {
  1757. struct i2c_msg msg = { .addr = 0x45, .flags = 0 };
  1758. int i, err;
  1759. static u8 init_bufs[13][5] = {
  1760. { 0x10, 0x00, 0x20, 0x01, 0x03 },
  1761. { 0x10, 0x10, 0x01, 0x00, 0x21 },
  1762. { 0x10, 0x10, 0x10, 0x00, 0xCA },
  1763. { 0x10, 0x10, 0x12, 0x00, 0x08 },
  1764. { 0x10, 0x10, 0x13, 0x00, 0x0A },
  1765. { 0x10, 0x10, 0x16, 0x01, 0xC0 },
  1766. { 0x10, 0x10, 0x22, 0x01, 0x3D },
  1767. { 0x10, 0x10, 0x73, 0x01, 0x2E },
  1768. { 0x10, 0x10, 0x72, 0x00, 0xC5 },
  1769. { 0x10, 0x10, 0x71, 0x01, 0x97 },
  1770. { 0x10, 0x10, 0x70, 0x00, 0x0F },
  1771. { 0x10, 0x10, 0xB0, 0x00, 0x01 },
  1772. { 0x03, 0x0C },
  1773. };
  1774. for (i = 0; i < ARRAY_SIZE(init_bufs); i++) {
  1775. msg.buf = init_bufs[i];
  1776. msg.len = (i != 12 ? 5 : 2);
  1777. err = i2c_transfer(&core->i2c_adap, &msg, 1);
  1778. if (err != 1) {
  1779. printk("dvico_fusionhdtv_hybrid_init buf %d failed (err = %d)!\n", i, err);
  1780. return;
  1781. }
  1782. }
  1783. }
  1784. /* ----------------------------------------------------------------------- */
  1785. void cx88_card_list(struct cx88_core *core, struct pci_dev *pci)
  1786. {
  1787. int i;
  1788. if (0 == pci->subsystem_vendor &&
  1789. 0 == pci->subsystem_device) {
  1790. printk("%s: Your board has no valid PCI Subsystem ID and thus can't\n"
  1791. "%s: be autodetected. Please pass card=<n> insmod option to\n"
  1792. "%s: workaround that. Redirect complaints to the vendor of\n"
  1793. "%s: the TV card. Best regards,\n"
  1794. "%s: -- tux\n",
  1795. core->name,core->name,core->name,core->name,core->name);
  1796. } else {
  1797. printk("%s: Your board isn't known (yet) to the driver. You can\n"
  1798. "%s: try to pick one of the existing card configs via\n"
  1799. "%s: card=<n> insmod option. Updating to the latest\n"
  1800. "%s: version might help as well.\n",
  1801. core->name,core->name,core->name,core->name);
  1802. }
  1803. printk("%s: Here is a list of valid choices for the card=<n> insmod option:\n",
  1804. core->name);
  1805. for (i = 0; i < cx88_bcount; i++)
  1806. printk("%s: card=%d -> %s\n",
  1807. core->name, i, cx88_boards[i].name);
  1808. }
  1809. void cx88_card_setup_pre_i2c(struct cx88_core *core)
  1810. {
  1811. switch (core->board) {
  1812. case CX88_BOARD_HAUPPAUGE_HVR1300:
  1813. /* Bring the 702 demod up before i2c scanning/attach or devices are hidden */
  1814. /* We leave here with the 702 on the bus */
  1815. cx_write(MO_GP0_IO, 0x0000e780);
  1816. udelay(1000);
  1817. cx_clear(MO_GP0_IO, 0x00000080);
  1818. udelay(50);
  1819. cx_set(MO_GP0_IO, 0x00000080); /* 702 out of reset */
  1820. udelay(1000);
  1821. break;
  1822. }
  1823. }
  1824. void cx88_card_setup(struct cx88_core *core)
  1825. {
  1826. static u8 eeprom[256];
  1827. if (0 == core->i2c_rc) {
  1828. core->i2c_client.addr = 0xa0 >> 1;
  1829. tveeprom_read(&core->i2c_client,eeprom,sizeof(eeprom));
  1830. }
  1831. switch (core->board) {
  1832. case CX88_BOARD_HAUPPAUGE:
  1833. case CX88_BOARD_HAUPPAUGE_ROSLYN:
  1834. if (0 == core->i2c_rc)
  1835. hauppauge_eeprom(core,eeprom+8);
  1836. break;
  1837. case CX88_BOARD_GDI:
  1838. if (0 == core->i2c_rc)
  1839. gdi_eeprom(core,eeprom);
  1840. break;
  1841. case CX88_BOARD_WINFAST2000XP_EXPERT:
  1842. if (0 == core->i2c_rc)
  1843. leadtek_eeprom(core,eeprom);
  1844. break;
  1845. case CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1:
  1846. case CX88_BOARD_HAUPPAUGE_NOVASE2_S1:
  1847. case CX88_BOARD_HAUPPAUGE_DVB_T1:
  1848. case CX88_BOARD_HAUPPAUGE_HVR1100:
  1849. case CX88_BOARD_HAUPPAUGE_HVR1100LP:
  1850. case CX88_BOARD_HAUPPAUGE_HVR3000:
  1851. case CX88_BOARD_HAUPPAUGE_HVR1300:
  1852. if (0 == core->i2c_rc)
  1853. hauppauge_eeprom(core,eeprom);
  1854. break;
  1855. case CX88_BOARD_KWORLD_DVBS_100:
  1856. cx_write(MO_GP0_IO, 0x000007f8);
  1857. cx_write(MO_GP1_IO, 0x00000001);
  1858. break;
  1859. case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL:
  1860. /* GPIO0:6 is hooked to FX2 reset pin */
  1861. cx_set(MO_GP0_IO, 0x00004040);
  1862. cx_clear(MO_GP0_IO, 0x00000040);
  1863. msleep(1000);
  1864. cx_set(MO_GP0_IO, 0x00004040);
  1865. /* FALLTHROUGH */
  1866. case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1:
  1867. case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS:
  1868. case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID:
  1869. /* GPIO0:0 is hooked to mt352 reset pin */
  1870. cx_set(MO_GP0_IO, 0x00000101);
  1871. cx_clear(MO_GP0_IO, 0x00000001);
  1872. msleep(1);
  1873. cx_set(MO_GP0_IO, 0x00000101);
  1874. if (0 == core->i2c_rc &&
  1875. core->board == CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID)
  1876. dvico_fusionhdtv_hybrid_init(core);
  1877. break;
  1878. case CX88_BOARD_KWORLD_DVB_T:
  1879. case CX88_BOARD_DNTV_LIVE_DVB_T:
  1880. cx_set(MO_GP0_IO, 0x00000707);
  1881. cx_set(MO_GP2_IO, 0x00000101);
  1882. cx_clear(MO_GP2_IO, 0x00000001);
  1883. msleep(1);
  1884. cx_clear(MO_GP0_IO, 0x00000007);
  1885. cx_set(MO_GP2_IO, 0x00000101);
  1886. break;
  1887. case CX88_BOARD_DNTV_LIVE_DVB_T_PRO:
  1888. cx_write(MO_GP0_IO, 0x00080808);
  1889. break;
  1890. case CX88_BOARD_ATI_HDTVWONDER:
  1891. if (0 == core->i2c_rc) {
  1892. /* enable tuner */
  1893. int i;
  1894. static const u8 buffer [][2] = {
  1895. {0x10,0x12},
  1896. {0x13,0x04},
  1897. {0x16,0x00},
  1898. {0x14,0x04},
  1899. {0x17,0x00}
  1900. };
  1901. core->i2c_client.addr = 0x0a;
  1902. for (i = 0; i < ARRAY_SIZE(buffer); i++)
  1903. if (2 != i2c_master_send(&core->i2c_client,
  1904. buffer[i],2))
  1905. printk(KERN_WARNING
  1906. "%s: Unable to enable "
  1907. "tuner(%i).\n",
  1908. core->name, i);
  1909. }
  1910. break;
  1911. }
  1912. if (cx88_boards[core->board].radio.type == CX88_RADIO)
  1913. core->has_radio = 1;
  1914. }
  1915. /* ------------------------------------------------------------------ */
  1916. EXPORT_SYMBOL(cx88_boards);
  1917. /*
  1918. * Local variables:
  1919. * c-basic-offset: 8
  1920. * End:
  1921. * 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
  1922. */