cx88-cards.c 49 KB

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