cx88-cards.c 55 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130
  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 "CORE %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 "TV tuner %d at 0x%02x, Radio tuner %d at 0x%02x\n",
  2056. core->board.tuner_type, core->board.tuner_addr<<1,
  2057. core->board.radio_type, core->board.radio_addr<<1);
  2058. /* init hardware */
  2059. cx88_reset(core);
  2060. cx88_card_setup_pre_i2c(core);
  2061. cx88_i2c_init(core, pci);
  2062. cx88_call_i2c_clients (core, TUNER_SET_STANDBY, NULL);
  2063. cx88_card_setup(core);
  2064. cx88_ir_init(core, pci);
  2065. return core;
  2066. }
  2067. /* ------------------------------------------------------------------ */
  2068. /*
  2069. * Local variables:
  2070. * c-basic-offset: 8
  2071. * End:
  2072. * 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
  2073. */