cx88-cards.c 55 KB

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