cx88-cards.c 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710
  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. },{
  280. .type = CX88_VMUX_COMPOSITE1,
  281. .vmux = 1,
  282. .gpio0 = 0x0000bde6,
  283. },{
  284. .type = CX88_VMUX_SVIDEO,
  285. .vmux = 2,
  286. .gpio0 = 0x0000bde6,
  287. }},
  288. .radio = {
  289. .type = CX88_RADIO,
  290. .gpio0 = 0x0000bd62,
  291. },
  292. .blackbird = 1,
  293. },
  294. [CX88_BOARD_IODATA_GVVCP3PCI] = {
  295. .name = "IODATA GV-VCP3/PCI",
  296. .tuner_type = TUNER_ABSENT,
  297. .radio_type = UNSET,
  298. .tuner_addr = ADDR_UNSET,
  299. .radio_addr = ADDR_UNSET,
  300. .input = {{
  301. .type = CX88_VMUX_COMPOSITE1,
  302. .vmux = 0,
  303. },{
  304. .type = CX88_VMUX_COMPOSITE2,
  305. .vmux = 1,
  306. },{
  307. .type = CX88_VMUX_SVIDEO,
  308. .vmux = 2,
  309. }},
  310. },
  311. [CX88_BOARD_PROLINK_PLAYTVPVR] = {
  312. .name = "Prolink PlayTV PVR",
  313. .tuner_type = TUNER_PHILIPS_FM1236_MK3,
  314. .radio_type = UNSET,
  315. .tuner_addr = ADDR_UNSET,
  316. .radio_addr = ADDR_UNSET,
  317. .tda9887_conf = TDA9887_PRESENT,
  318. .input = {{
  319. .type = CX88_VMUX_TELEVISION,
  320. .vmux = 0,
  321. .gpio0 = 0xbff0,
  322. },{
  323. .type = CX88_VMUX_COMPOSITE1,
  324. .vmux = 1,
  325. .gpio0 = 0xbff3,
  326. },{
  327. .type = CX88_VMUX_SVIDEO,
  328. .vmux = 2,
  329. .gpio0 = 0xbff3,
  330. }},
  331. .radio = {
  332. .type = CX88_RADIO,
  333. .gpio0 = 0xbff0,
  334. },
  335. },
  336. [CX88_BOARD_ASUS_PVR_416] = {
  337. .name = "ASUS PVR-416",
  338. .tuner_type = TUNER_PHILIPS_FM1236_MK3,
  339. .radio_type = UNSET,
  340. .tuner_addr = ADDR_UNSET,
  341. .radio_addr = ADDR_UNSET,
  342. .tda9887_conf = TDA9887_PRESENT,
  343. .input = {{
  344. .type = CX88_VMUX_TELEVISION,
  345. .vmux = 0,
  346. .gpio0 = 0x0000fde6,
  347. },{
  348. .type = CX88_VMUX_SVIDEO,
  349. .vmux = 2,
  350. .gpio0 = 0x0000fde6, // 0x0000fda6 L,R RCA audio in?
  351. }},
  352. .radio = {
  353. .type = CX88_RADIO,
  354. .gpio0 = 0x0000fde2,
  355. },
  356. .blackbird = 1,
  357. },
  358. [CX88_BOARD_MSI_TVANYWHERE] = {
  359. .name = "MSI TV-@nywhere",
  360. .tuner_type = TUNER_MT2032,
  361. .radio_type = UNSET,
  362. .tuner_addr = ADDR_UNSET,
  363. .radio_addr = ADDR_UNSET,
  364. .tda9887_conf = TDA9887_PRESENT,
  365. .input = {{
  366. .type = CX88_VMUX_TELEVISION,
  367. .vmux = 0,
  368. .gpio0 = 0x00000fbf,
  369. .gpio2 = 0x0000fc08,
  370. },{
  371. .type = CX88_VMUX_COMPOSITE1,
  372. .vmux = 1,
  373. .gpio0 = 0x00000fbf,
  374. .gpio2 = 0x0000fc68,
  375. },{
  376. .type = CX88_VMUX_SVIDEO,
  377. .vmux = 2,
  378. .gpio0 = 0x00000fbf,
  379. .gpio2 = 0x0000fc68,
  380. }},
  381. },
  382. [CX88_BOARD_KWORLD_DVB_T] = {
  383. .name = "KWorld/VStream XPert DVB-T",
  384. .tuner_type = TUNER_ABSENT,
  385. .radio_type = UNSET,
  386. .tuner_addr = ADDR_UNSET,
  387. .radio_addr = ADDR_UNSET,
  388. .input = {{
  389. .type = CX88_VMUX_COMPOSITE1,
  390. .vmux = 1,
  391. .gpio0 = 0x0700,
  392. .gpio2 = 0x0101,
  393. },{
  394. .type = CX88_VMUX_SVIDEO,
  395. .vmux = 2,
  396. .gpio0 = 0x0700,
  397. .gpio2 = 0x0101,
  398. }},
  399. .dvb = 1,
  400. },
  401. [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1] = {
  402. .name = "DViCO FusionHDTV DVB-T1",
  403. .tuner_type = TUNER_ABSENT, /* No analog tuner */
  404. .radio_type = UNSET,
  405. .tuner_addr = ADDR_UNSET,
  406. .radio_addr = ADDR_UNSET,
  407. .input = {{
  408. .type = CX88_VMUX_COMPOSITE1,
  409. .vmux = 1,
  410. .gpio0 = 0x000027df,
  411. },{
  412. .type = CX88_VMUX_SVIDEO,
  413. .vmux = 2,
  414. .gpio0 = 0x000027df,
  415. }},
  416. .dvb = 1,
  417. },
  418. [CX88_BOARD_KWORLD_LTV883] = {
  419. .name = "KWorld LTV883RF",
  420. .tuner_type = TUNER_TNF_8831BGFF,
  421. .radio_type = UNSET,
  422. .tuner_addr = ADDR_UNSET,
  423. .radio_addr = ADDR_UNSET,
  424. .input = {{
  425. .type = CX88_VMUX_TELEVISION,
  426. .vmux = 0,
  427. .gpio0 = 0x07f8,
  428. },{
  429. .type = CX88_VMUX_DEBUG,
  430. .vmux = 0,
  431. .gpio0 = 0x07f9, // mono from tuner chip
  432. },{
  433. .type = CX88_VMUX_COMPOSITE1,
  434. .vmux = 1,
  435. .gpio0 = 0x000007fa,
  436. },{
  437. .type = CX88_VMUX_SVIDEO,
  438. .vmux = 2,
  439. .gpio0 = 0x000007fa,
  440. }},
  441. .radio = {
  442. .type = CX88_RADIO,
  443. .gpio0 = 0x000007f8,
  444. },
  445. },
  446. [CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q] = {
  447. .name = "DViCO FusionHDTV 3 Gold-Q",
  448. .tuner_type = TUNER_MICROTUNE_4042FI5,
  449. .radio_type = UNSET,
  450. .tuner_addr = ADDR_UNSET,
  451. .radio_addr = ADDR_UNSET,
  452. /*
  453. GPIO[0] resets DT3302 DTV receiver
  454. 0 - reset asserted
  455. 1 - normal operation
  456. GPIO[1] mutes analog audio output connector
  457. 0 - enable selected source
  458. 1 - mute
  459. GPIO[2] selects source for analog audio output connector
  460. 0 - analog audio input connector on tab
  461. 1 - analog DAC output from CX23881 chip
  462. GPIO[3] selects RF input connector on tuner module
  463. 0 - RF connector labeled CABLE
  464. 1 - RF connector labeled ANT
  465. GPIO[4] selects high RF for QAM256 mode
  466. 0 - normal RF
  467. 1 - high RF
  468. */
  469. .input = {{
  470. .type = CX88_VMUX_TELEVISION,
  471. .vmux = 0,
  472. .gpio0 = 0x0f0d,
  473. },{
  474. .type = CX88_VMUX_CABLE,
  475. .vmux = 0,
  476. .gpio0 = 0x0f05,
  477. },{
  478. .type = CX88_VMUX_COMPOSITE1,
  479. .vmux = 1,
  480. .gpio0 = 0x0f00,
  481. },{
  482. .type = CX88_VMUX_SVIDEO,
  483. .vmux = 2,
  484. .gpio0 = 0x0f00,
  485. }},
  486. .dvb = 1,
  487. },
  488. [CX88_BOARD_HAUPPAUGE_DVB_T1] = {
  489. .name = "Hauppauge Nova-T DVB-T",
  490. .tuner_type = TUNER_ABSENT,
  491. .radio_type = UNSET,
  492. .tuner_addr = ADDR_UNSET,
  493. .radio_addr = ADDR_UNSET,
  494. .input = {{
  495. .type = CX88_VMUX_DVB,
  496. .vmux = 0,
  497. }},
  498. .dvb = 1,
  499. },
  500. [CX88_BOARD_CONEXANT_DVB_T1] = {
  501. .name = "Conexant DVB-T reference design",
  502. .tuner_type = TUNER_ABSENT,
  503. .radio_type = UNSET,
  504. .tuner_addr = ADDR_UNSET,
  505. .radio_addr = ADDR_UNSET,
  506. .input = {{
  507. .type = CX88_VMUX_DVB,
  508. .vmux = 0,
  509. }},
  510. .dvb = 1,
  511. },
  512. [CX88_BOARD_PROVIDEO_PV259] = {
  513. .name = "Provideo PV259",
  514. .tuner_type = TUNER_PHILIPS_FQ1216ME,
  515. .radio_type = UNSET,
  516. .tuner_addr = ADDR_UNSET,
  517. .radio_addr = ADDR_UNSET,
  518. .input = {{
  519. .type = CX88_VMUX_TELEVISION,
  520. .vmux = 0,
  521. }},
  522. .blackbird = 1,
  523. },
  524. [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS] = {
  525. .name = "DViCO FusionHDTV DVB-T Plus",
  526. .tuner_type = TUNER_ABSENT, /* No analog tuner */
  527. .radio_type = UNSET,
  528. .tuner_addr = ADDR_UNSET,
  529. .radio_addr = ADDR_UNSET,
  530. .input = {{
  531. .type = CX88_VMUX_COMPOSITE1,
  532. .vmux = 1,
  533. .gpio0 = 0x000027df,
  534. },{
  535. .type = CX88_VMUX_SVIDEO,
  536. .vmux = 2,
  537. .gpio0 = 0x000027df,
  538. }},
  539. .dvb = 1,
  540. },
  541. [CX88_BOARD_DNTV_LIVE_DVB_T] = {
  542. .name = "digitalnow DNTV Live! DVB-T",
  543. .tuner_type = TUNER_ABSENT,
  544. .radio_type = UNSET,
  545. .tuner_addr = ADDR_UNSET,
  546. .radio_addr = ADDR_UNSET,
  547. .input = {{
  548. .type = CX88_VMUX_COMPOSITE1,
  549. .vmux = 1,
  550. .gpio0 = 0x00000700,
  551. .gpio2 = 0x00000101,
  552. },{
  553. .type = CX88_VMUX_SVIDEO,
  554. .vmux = 2,
  555. .gpio0 = 0x00000700,
  556. .gpio2 = 0x00000101,
  557. }},
  558. .dvb = 1,
  559. },
  560. [CX88_BOARD_PCHDTV_HD3000] = {
  561. .name = "pcHDTV HD3000 HDTV",
  562. .tuner_type = TUNER_THOMSON_DTT761X,
  563. .radio_type = UNSET,
  564. .tuner_addr = ADDR_UNSET,
  565. .radio_addr = ADDR_UNSET,
  566. .tda9887_conf = TDA9887_PRESENT,
  567. .input = {{
  568. .type = CX88_VMUX_TELEVISION,
  569. .vmux = 0,
  570. .gpio0 = 0x00008484,
  571. .gpio1 = 0x00000000,
  572. .gpio2 = 0x00000000,
  573. .gpio3 = 0x00000000,
  574. },{
  575. .type = CX88_VMUX_COMPOSITE1,
  576. .vmux = 1,
  577. .gpio0 = 0x00008400,
  578. .gpio1 = 0x00000000,
  579. .gpio2 = 0x00000000,
  580. .gpio3 = 0x00000000,
  581. },{
  582. .type = CX88_VMUX_SVIDEO,
  583. .vmux = 2,
  584. .gpio0 = 0x00008400,
  585. .gpio1 = 0x00000000,
  586. .gpio2 = 0x00000000,
  587. .gpio3 = 0x00000000,
  588. }},
  589. .radio = {
  590. .type = CX88_RADIO,
  591. .vmux = 2,
  592. .gpio0 = 0x00008400,
  593. .gpio1 = 0x00000000,
  594. .gpio2 = 0x00000000,
  595. .gpio3 = 0x00000000,
  596. },
  597. .dvb = 1,
  598. },
  599. [CX88_BOARD_HAUPPAUGE_ROSLYN] = {
  600. // entry added by Kaustubh D. Bhalerao <bhalerao.1@osu.edu>
  601. // GPIO values obtained from regspy, courtesy Sean Covel
  602. .name = "Hauppauge WinTV 28xxx (Roslyn) models",
  603. .tuner_type = UNSET,
  604. .radio_type = UNSET,
  605. .tuner_addr = ADDR_UNSET,
  606. .radio_addr = ADDR_UNSET,
  607. .input = {{
  608. .type = CX88_VMUX_TELEVISION,
  609. .vmux = 0,
  610. .gpio0 = 0xed1a,
  611. .gpio2 = 0x00ff,
  612. },{
  613. .type = CX88_VMUX_DEBUG,
  614. .vmux = 0,
  615. .gpio0 = 0xff01,
  616. },{
  617. .type = CX88_VMUX_COMPOSITE1,
  618. .vmux = 1,
  619. .gpio0 = 0xff02,
  620. },{
  621. .type = CX88_VMUX_SVIDEO,
  622. .vmux = 2,
  623. .gpio0 = 0xed92,
  624. .gpio2 = 0x00ff,
  625. }},
  626. .radio = {
  627. .type = CX88_RADIO,
  628. .gpio0 = 0xed96,
  629. .gpio2 = 0x00ff,
  630. },
  631. .blackbird = 1,
  632. },
  633. [CX88_BOARD_DIGITALLOGIC_MEC] = {
  634. .name = "Digital-Logic MICROSPACE Entertainment Center (MEC)",
  635. .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
  636. .radio_type = UNSET,
  637. .tuner_addr = ADDR_UNSET,
  638. .radio_addr = ADDR_UNSET,
  639. .tda9887_conf = TDA9887_PRESENT,
  640. .input = {{
  641. .type = CX88_VMUX_TELEVISION,
  642. .vmux = 0,
  643. .gpio0 = 0x00009d80,
  644. },{
  645. .type = CX88_VMUX_COMPOSITE1,
  646. .vmux = 1,
  647. .gpio0 = 0x00009d76,
  648. },{
  649. .type = CX88_VMUX_SVIDEO,
  650. .vmux = 2,
  651. .gpio0 = 0x00009d76,
  652. }},
  653. .radio = {
  654. .type = CX88_RADIO,
  655. .gpio0 = 0x00009d00,
  656. },
  657. .blackbird = 1,
  658. },
  659. [CX88_BOARD_IODATA_GVBCTV7E] = {
  660. .name = "IODATA GV/BCTV7E",
  661. .tuner_type = TUNER_PHILIPS_FQ1286,
  662. .radio_type = UNSET,
  663. .tuner_addr = ADDR_UNSET,
  664. .radio_addr = ADDR_UNSET,
  665. .tda9887_conf = TDA9887_PRESENT,
  666. .input = {{
  667. .type = CX88_VMUX_TELEVISION,
  668. .vmux = 1,
  669. .gpio1 = 0x0000e03f,
  670. },{
  671. .type = CX88_VMUX_COMPOSITE1,
  672. .vmux = 2,
  673. .gpio1 = 0x0000e07f,
  674. },{
  675. .type = CX88_VMUX_SVIDEO,
  676. .vmux = 3,
  677. .gpio1 = 0x0000e07f,
  678. }}
  679. },
  680. [CX88_BOARD_PIXELVIEW_PLAYTV_ULTRA_PRO] = {
  681. .name = "PixelView PlayTV Ultra Pro (Stereo)",
  682. /* May be also TUNER_YMEC_TVF_5533MF for NTSC/M or PAL/M */
  683. .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
  684. .radio_type = UNSET,
  685. .tuner_addr = ADDR_UNSET,
  686. .radio_addr = ADDR_UNSET,
  687. .input = {{
  688. .type = CX88_VMUX_TELEVISION,
  689. .vmux = 0,
  690. .gpio0 = 0xbf61, /* internal decoder */
  691. },{
  692. .type = CX88_VMUX_COMPOSITE1,
  693. .vmux = 1,
  694. .gpio0 = 0xbf63,
  695. },{
  696. .type = CX88_VMUX_SVIDEO,
  697. .vmux = 2,
  698. .gpio0 = 0xbf63,
  699. }},
  700. .radio = {
  701. .type = CX88_RADIO,
  702. .gpio0 = 0xbf60,
  703. },
  704. },
  705. [CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_T] = {
  706. .name = "DViCO FusionHDTV 3 Gold-T",
  707. .tuner_type = TUNER_THOMSON_DTT761X,
  708. .radio_type = UNSET,
  709. .tuner_addr = ADDR_UNSET,
  710. .radio_addr = ADDR_UNSET,
  711. .tda9887_conf = TDA9887_PRESENT,
  712. .input = {{
  713. .type = CX88_VMUX_TELEVISION,
  714. .vmux = 0,
  715. .gpio0 = 0x97ed,
  716. },{
  717. .type = CX88_VMUX_COMPOSITE1,
  718. .vmux = 1,
  719. .gpio0 = 0x97e9,
  720. },{
  721. .type = CX88_VMUX_SVIDEO,
  722. .vmux = 2,
  723. .gpio0 = 0x97e9,
  724. }},
  725. .dvb = 1,
  726. },
  727. [CX88_BOARD_ADSTECH_DVB_T_PCI] = {
  728. .name = "ADS Tech Instant TV DVB-T PCI",
  729. .tuner_type = TUNER_ABSENT,
  730. .radio_type = UNSET,
  731. .tuner_addr = ADDR_UNSET,
  732. .radio_addr = ADDR_UNSET,
  733. .input = {{
  734. .type = CX88_VMUX_COMPOSITE1,
  735. .vmux = 1,
  736. .gpio0 = 0x0700,
  737. .gpio2 = 0x0101,
  738. },{
  739. .type = CX88_VMUX_SVIDEO,
  740. .vmux = 2,
  741. .gpio0 = 0x0700,
  742. .gpio2 = 0x0101,
  743. }},
  744. .dvb = 1,
  745. },
  746. [CX88_BOARD_TERRATEC_CINERGY_1400_DVB_T1] = {
  747. .name = "TerraTec Cinergy 1400 DVB-T",
  748. .tuner_type = TUNER_ABSENT,
  749. .input = {{
  750. .type = CX88_VMUX_DVB,
  751. .vmux = 0,
  752. }},
  753. .dvb = 1,
  754. },
  755. [CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD] = {
  756. .name = "DViCO FusionHDTV 5 Gold",
  757. .tuner_type = TUNER_LG_TDVS_H06XF, /* TDVS-H062F */
  758. .radio_type = UNSET,
  759. .tuner_addr = ADDR_UNSET,
  760. .radio_addr = ADDR_UNSET,
  761. .tda9887_conf = TDA9887_PRESENT,
  762. .input = {{
  763. .type = CX88_VMUX_TELEVISION,
  764. .vmux = 0,
  765. .gpio0 = 0x87fd,
  766. },{
  767. .type = CX88_VMUX_COMPOSITE1,
  768. .vmux = 1,
  769. .gpio0 = 0x87f9,
  770. },{
  771. .type = CX88_VMUX_SVIDEO,
  772. .vmux = 2,
  773. .gpio0 = 0x87f9,
  774. }},
  775. .dvb = 1,
  776. },
  777. [CX88_BOARD_AVERMEDIA_ULTRATV_MC_550] = {
  778. .name = "AverMedia UltraTV Media Center PCI 550",
  779. .tuner_type = TUNER_PHILIPS_FM1236_MK3,
  780. .radio_type = UNSET,
  781. .tuner_addr = ADDR_UNSET,
  782. .radio_addr = ADDR_UNSET,
  783. .tda9887_conf = TDA9887_PRESENT,
  784. .blackbird = 1,
  785. .input = {{
  786. .type = CX88_VMUX_COMPOSITE1,
  787. .vmux = 0,
  788. .gpio0 = 0x0000cd73,
  789. },{
  790. .type = CX88_VMUX_SVIDEO,
  791. .vmux = 1,
  792. .gpio0 = 0x0000cd73,
  793. },{
  794. .type = CX88_VMUX_TELEVISION,
  795. .vmux = 3,
  796. .gpio0 = 0x0000cdb3,
  797. }},
  798. .radio = {
  799. .type = CX88_RADIO,
  800. .vmux = 2,
  801. .gpio0 = 0x0000cdf3,
  802. },
  803. },
  804. [CX88_BOARD_KWORLD_VSTREAM_EXPERT_DVD] = {
  805. /* Alexander Wold <awold@bigfoot.com> */
  806. .name = "Kworld V-Stream Xpert DVD",
  807. .tuner_type = UNSET,
  808. .input = {{
  809. .type = CX88_VMUX_COMPOSITE1,
  810. .vmux = 1,
  811. .gpio0 = 0x03000000,
  812. .gpio1 = 0x01000000,
  813. .gpio2 = 0x02000000,
  814. .gpio3 = 0x00100000,
  815. },{
  816. .type = CX88_VMUX_SVIDEO,
  817. .vmux = 2,
  818. .gpio0 = 0x03000000,
  819. .gpio1 = 0x01000000,
  820. .gpio2 = 0x02000000,
  821. .gpio3 = 0x00100000,
  822. }},
  823. },
  824. [CX88_BOARD_ATI_HDTVWONDER] = {
  825. .name = "ATI HDTV Wonder",
  826. .tuner_type = TUNER_PHILIPS_TUV1236D,
  827. .radio_type = UNSET,
  828. .tuner_addr = ADDR_UNSET,
  829. .radio_addr = ADDR_UNSET,
  830. .input = {{
  831. .type = CX88_VMUX_TELEVISION,
  832. .vmux = 0,
  833. .gpio0 = 0x00000ff7,
  834. .gpio1 = 0x000000ff,
  835. .gpio2 = 0x00000001,
  836. .gpio3 = 0x00000000,
  837. },{
  838. .type = CX88_VMUX_COMPOSITE1,
  839. .vmux = 1,
  840. .gpio0 = 0x00000ffe,
  841. .gpio1 = 0x000000ff,
  842. .gpio2 = 0x00000001,
  843. .gpio3 = 0x00000000,
  844. },{
  845. .type = CX88_VMUX_SVIDEO,
  846. .vmux = 2,
  847. .gpio0 = 0x00000ffe,
  848. .gpio1 = 0x000000ff,
  849. .gpio2 = 0x00000001,
  850. .gpio3 = 0x00000000,
  851. }},
  852. .dvb = 1,
  853. },
  854. [CX88_BOARD_WINFAST_DTV1000] = {
  855. .name = "WinFast DTV1000-T",
  856. .tuner_type = TUNER_ABSENT,
  857. .radio_type = UNSET,
  858. .tuner_addr = ADDR_UNSET,
  859. .radio_addr = ADDR_UNSET,
  860. .input = {{
  861. .type = CX88_VMUX_DVB,
  862. .vmux = 0,
  863. }},
  864. .dvb = 1,
  865. },
  866. [CX88_BOARD_AVERTV_303] = {
  867. .name = "AVerTV 303 (M126)",
  868. .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
  869. .radio_type = UNSET,
  870. .tuner_addr = ADDR_UNSET,
  871. .radio_addr = ADDR_UNSET,
  872. .tda9887_conf = TDA9887_PRESENT,
  873. .input = {{
  874. .type = CX88_VMUX_TELEVISION,
  875. .vmux = 0,
  876. .gpio0 = 0x00ff,
  877. .gpio1 = 0xe09f,
  878. .gpio2 = 0x0010,
  879. .gpio3 = 0x0000,
  880. },{
  881. .type = CX88_VMUX_COMPOSITE1,
  882. .vmux = 1,
  883. .gpio0 = 0x00ff,
  884. .gpio1 = 0xe05f,
  885. .gpio2 = 0x0010,
  886. .gpio3 = 0x0000,
  887. },{
  888. .type = CX88_VMUX_SVIDEO,
  889. .vmux = 2,
  890. .gpio0 = 0x00ff,
  891. .gpio1 = 0xe05f,
  892. .gpio2 = 0x0010,
  893. .gpio3 = 0x0000,
  894. }},
  895. },
  896. [CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1] = {
  897. .name = "Hauppauge Nova-S-Plus DVB-S",
  898. .tuner_type = TUNER_ABSENT,
  899. .radio_type = UNSET,
  900. .tuner_addr = ADDR_UNSET,
  901. .radio_addr = ADDR_UNSET,
  902. .input = {{
  903. .type = CX88_VMUX_DVB,
  904. .vmux = 0,
  905. },{
  906. .type = CX88_VMUX_COMPOSITE1,
  907. .vmux = 1,
  908. },{
  909. .type = CX88_VMUX_SVIDEO,
  910. .vmux = 2,
  911. }},
  912. .dvb = 1,
  913. },
  914. [CX88_BOARD_HAUPPAUGE_NOVASE2_S1] = {
  915. .name = "Hauppauge Nova-SE2 DVB-S",
  916. .tuner_type = TUNER_ABSENT,
  917. .radio_type = UNSET,
  918. .tuner_addr = ADDR_UNSET,
  919. .radio_addr = ADDR_UNSET,
  920. .input = {{
  921. .type = CX88_VMUX_DVB,
  922. .vmux = 0,
  923. }},
  924. .dvb = 1,
  925. },
  926. [CX88_BOARD_KWORLD_DVBS_100] = {
  927. .name = "KWorld DVB-S 100",
  928. .tuner_type = TUNER_ABSENT,
  929. .radio_type = UNSET,
  930. .tuner_addr = ADDR_UNSET,
  931. .radio_addr = ADDR_UNSET,
  932. .input = {{
  933. .type = CX88_VMUX_DVB,
  934. .vmux = 0,
  935. },{
  936. .type = CX88_VMUX_COMPOSITE1,
  937. .vmux = 1,
  938. },{
  939. .type = CX88_VMUX_SVIDEO,
  940. .vmux = 2,
  941. }},
  942. .dvb = 1,
  943. },
  944. [CX88_BOARD_HAUPPAUGE_HVR1100] = {
  945. .name = "Hauppauge WinTV-HVR1100 DVB-T/Hybrid",
  946. .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3,
  947. .radio_type = UNSET,
  948. .tuner_addr = ADDR_UNSET,
  949. .radio_addr = ADDR_UNSET,
  950. .tda9887_conf = TDA9887_PRESENT,
  951. .input = {{
  952. .type = CX88_VMUX_TELEVISION,
  953. .vmux = 0,
  954. },{
  955. .type = CX88_VMUX_COMPOSITE1,
  956. .vmux = 1,
  957. },{
  958. .type = CX88_VMUX_SVIDEO,
  959. .vmux = 2,
  960. }},
  961. /* fixme: Add radio support */
  962. .dvb = 1,
  963. },
  964. [CX88_BOARD_HAUPPAUGE_HVR1100LP] = {
  965. .name = "Hauppauge WinTV-HVR1100 DVB-T/Hybrid (Low Profile)",
  966. .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3,
  967. .radio_type = UNSET,
  968. .tuner_addr = ADDR_UNSET,
  969. .radio_addr = ADDR_UNSET,
  970. .tda9887_conf = TDA9887_PRESENT,
  971. .input = {{
  972. .type = CX88_VMUX_TELEVISION,
  973. .vmux = 0,
  974. },{
  975. .type = CX88_VMUX_COMPOSITE1,
  976. .vmux = 1,
  977. }},
  978. /* fixme: Add radio support */
  979. .dvb = 1,
  980. },
  981. [CX88_BOARD_DNTV_LIVE_DVB_T_PRO] = {
  982. .name = "digitalnow DNTV Live! DVB-T Pro",
  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 | TDA9887_PORT1_ACTIVE |
  988. TDA9887_PORT2_ACTIVE,
  989. .input = {{
  990. .type = CX88_VMUX_TELEVISION,
  991. .vmux = 0,
  992. .gpio0 = 0xf80808,
  993. },{
  994. .type = CX88_VMUX_COMPOSITE1,
  995. .vmux = 1,
  996. .gpio0 = 0xf80808,
  997. },{
  998. .type = CX88_VMUX_SVIDEO,
  999. .vmux = 2,
  1000. .gpio0 = 0xf80808,
  1001. }},
  1002. .radio = {
  1003. .type = CX88_RADIO,
  1004. .gpio0 = 0xf80808,
  1005. },
  1006. .dvb = 1,
  1007. },
  1008. [CX88_BOARD_KWORLD_DVB_T_CX22702] = {
  1009. /* Kworld V-stream Xpert DVB-T with Thomson tuner */
  1010. /* DTT 7579 Conexant CX22702-19 Conexant CX2388x */
  1011. /* Manenti Marco <marco_manenti@colman.it> */
  1012. .name = "KWorld/VStream XPert DVB-T with cx22702",
  1013. .tuner_type = TUNER_ABSENT,
  1014. .radio_type = UNSET,
  1015. .tuner_addr = ADDR_UNSET,
  1016. .radio_addr = ADDR_UNSET,
  1017. .input = {{
  1018. .type = CX88_VMUX_COMPOSITE1,
  1019. .vmux = 1,
  1020. .gpio0 = 0x0700,
  1021. .gpio2 = 0x0101,
  1022. },{
  1023. .type = CX88_VMUX_SVIDEO,
  1024. .vmux = 2,
  1025. .gpio0 = 0x0700,
  1026. .gpio2 = 0x0101,
  1027. }},
  1028. .dvb = 1,
  1029. },
  1030. [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL] = {
  1031. .name = "DViCO FusionHDTV DVB-T Dual Digital",
  1032. .tuner_type = TUNER_ABSENT, /* No analog tuner */
  1033. .radio_type = UNSET,
  1034. .tuner_addr = ADDR_UNSET,
  1035. .radio_addr = ADDR_UNSET,
  1036. .input = {{
  1037. .type = CX88_VMUX_COMPOSITE1,
  1038. .vmux = 1,
  1039. .gpio0 = 0x000027df,
  1040. },{
  1041. .type = CX88_VMUX_SVIDEO,
  1042. .vmux = 2,
  1043. .gpio0 = 0x000027df,
  1044. }},
  1045. .dvb = 1,
  1046. },
  1047. [CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT] = {
  1048. /* FIXME: Audio not working for s-video / composite inputs. */
  1049. .name = "KWorld HardwareMpegTV XPert",
  1050. .tuner_type = TUNER_PHILIPS_TDA8290,
  1051. .radio_type = UNSET,
  1052. .tuner_addr = ADDR_UNSET,
  1053. .radio_addr = ADDR_UNSET,
  1054. .input = {{
  1055. .type = CX88_VMUX_TELEVISION,
  1056. .vmux = 0,
  1057. .gpio0 = 0x3de2,
  1058. .gpio2 = 0x00ff,
  1059. },{
  1060. .type = CX88_VMUX_COMPOSITE1,
  1061. .vmux = 1,
  1062. .gpio0 = 0x3de6,
  1063. },{
  1064. .type = CX88_VMUX_SVIDEO,
  1065. .vmux = 2,
  1066. .gpio0 = 0x3de6,
  1067. }},
  1068. .radio = {
  1069. .type = CX88_RADIO,
  1070. .gpio0 = 0x3de6,
  1071. .gpio2 = 0x00ff,
  1072. },
  1073. .blackbird = 1,
  1074. },
  1075. [CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID] = {
  1076. .name = "DViCO FusionHDTV DVB-T Hybrid",
  1077. .tuner_type = TUNER_THOMSON_FE6600,
  1078. .radio_type = UNSET,
  1079. .tuner_addr = ADDR_UNSET,
  1080. .radio_addr = ADDR_UNSET,
  1081. .input = {{
  1082. .type = CX88_VMUX_TELEVISION,
  1083. .vmux = 0,
  1084. .gpio0 = 0x0000a75f,
  1085. },{
  1086. .type = CX88_VMUX_COMPOSITE1,
  1087. .vmux = 1,
  1088. .gpio0 = 0x0000a75b,
  1089. },{
  1090. .type = CX88_VMUX_SVIDEO,
  1091. .vmux = 2,
  1092. .gpio0 = 0x0000a75b,
  1093. }},
  1094. .dvb = 1,
  1095. },
  1096. [CX88_BOARD_PCHDTV_HD5500] = {
  1097. .name = "pcHDTV HD5500 HDTV",
  1098. .tuner_type = TUNER_LG_TDVS_H06XF, /* TDVS-H064F */
  1099. .radio_type = UNSET,
  1100. .tuner_addr = ADDR_UNSET,
  1101. .radio_addr = ADDR_UNSET,
  1102. .tda9887_conf = TDA9887_PRESENT,
  1103. .input = {{
  1104. .type = CX88_VMUX_TELEVISION,
  1105. .vmux = 0,
  1106. .gpio0 = 0x87fd,
  1107. },{
  1108. .type = CX88_VMUX_COMPOSITE1,
  1109. .vmux = 1,
  1110. .gpio0 = 0x87f9,
  1111. },{
  1112. .type = CX88_VMUX_SVIDEO,
  1113. .vmux = 2,
  1114. .gpio0 = 0x87f9,
  1115. }},
  1116. .dvb = 1,
  1117. },
  1118. [CX88_BOARD_KWORLD_MCE200_DELUXE] = {
  1119. /* FIXME: tested TV input only, disabled composite,
  1120. svideo and radio until they can be tested also. */
  1121. .name = "Kworld MCE 200 Deluxe",
  1122. .tuner_type = TUNER_TENA_9533_DI,
  1123. .radio_type = UNSET,
  1124. .tda9887_conf = TDA9887_PRESENT,
  1125. .tuner_addr = ADDR_UNSET,
  1126. .radio_addr = ADDR_UNSET,
  1127. .input = {{
  1128. .type = CX88_VMUX_TELEVISION,
  1129. .vmux = 0,
  1130. .gpio0 = 0x0000BDE6
  1131. }},
  1132. .blackbird = 1,
  1133. },
  1134. [CX88_BOARD_PIXELVIEW_PLAYTV_P7000] = {
  1135. /* FIXME: SVideo, Composite and FM inputs are untested */
  1136. .name = "PixelView PlayTV P7000",
  1137. .tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
  1138. .radio_type = UNSET,
  1139. .tuner_addr = ADDR_UNSET,
  1140. .radio_addr = ADDR_UNSET,
  1141. .tda9887_conf = TDA9887_PRESENT | TDA9887_PORT1_ACTIVE |
  1142. TDA9887_PORT2_ACTIVE,
  1143. .input = {{
  1144. .type = CX88_VMUX_TELEVISION,
  1145. .vmux = 0,
  1146. .gpio0 = 0x5da6,
  1147. }},
  1148. .blackbird = 1,
  1149. },
  1150. [CX88_BOARD_NPGTECH_REALTV_TOP10FM] = {
  1151. .name = "NPG Tech Real TV FM Top 10",
  1152. .tuner_type = TUNER_TNF_5335MF, /* Actually a TNF9535 */
  1153. .radio_type = UNSET,
  1154. .tuner_addr = ADDR_UNSET,
  1155. .radio_addr = ADDR_UNSET,
  1156. .input = {{
  1157. .type = CX88_VMUX_TELEVISION,
  1158. .vmux = 0,
  1159. .gpio0 = 0x0788,
  1160. },{
  1161. .type = CX88_VMUX_COMPOSITE1,
  1162. .vmux = 1,
  1163. .gpio0 = 0x078b,
  1164. },{
  1165. .type = CX88_VMUX_SVIDEO,
  1166. .vmux = 2,
  1167. .gpio0 = 0x078b,
  1168. }},
  1169. .radio = {
  1170. .type = CX88_RADIO,
  1171. .gpio0 = 0x074a,
  1172. },
  1173. },
  1174. [CX88_BOARD_WINFAST_DTV2000H] = {
  1175. /* video inputs and radio still in testing */
  1176. .name = "WinFast DTV2000 H",
  1177. .tuner_type = TUNER_PHILIPS_FMD1216ME_MK3,
  1178. .radio_type = UNSET,
  1179. .tuner_addr = ADDR_UNSET,
  1180. .radio_addr = ADDR_UNSET,
  1181. .tda9887_conf = TDA9887_PRESENT,
  1182. .input = {{
  1183. .type = CX88_VMUX_TELEVISION,
  1184. .vmux = 0,
  1185. .gpio0 = 0x00017304,
  1186. .gpio1 = 0x00008203,
  1187. .gpio2 = 0x00017304,
  1188. .gpio3 = 0x02000000,
  1189. }},
  1190. .dvb = 1,
  1191. },
  1192. };
  1193. const unsigned int cx88_bcount = ARRAY_SIZE(cx88_boards);
  1194. /* ------------------------------------------------------------------ */
  1195. /* PCI subsystem IDs */
  1196. struct cx88_subid cx88_subids[] = {
  1197. {
  1198. .subvendor = 0x0070,
  1199. .subdevice = 0x3400,
  1200. .card = CX88_BOARD_HAUPPAUGE,
  1201. },{
  1202. .subvendor = 0x0070,
  1203. .subdevice = 0x3401,
  1204. .card = CX88_BOARD_HAUPPAUGE,
  1205. },{
  1206. .subvendor = 0x14c7,
  1207. .subdevice = 0x0106,
  1208. .card = CX88_BOARD_GDI,
  1209. },{
  1210. .subvendor = 0x14c7,
  1211. .subdevice = 0x0107, /* with mpeg encoder */
  1212. .card = CX88_BOARD_GDI,
  1213. },{
  1214. .subvendor = PCI_VENDOR_ID_ATI,
  1215. .subdevice = 0x00f8,
  1216. .card = CX88_BOARD_ATI_WONDER_PRO,
  1217. },{
  1218. .subvendor = 0x107d,
  1219. .subdevice = 0x6611,
  1220. .card = CX88_BOARD_WINFAST2000XP_EXPERT,
  1221. },{
  1222. .subvendor = 0x107d,
  1223. .subdevice = 0x6613, /* NTSC */
  1224. .card = CX88_BOARD_WINFAST2000XP_EXPERT,
  1225. },{
  1226. .subvendor = 0x107d,
  1227. .subdevice = 0x6620,
  1228. .card = CX88_BOARD_WINFAST_DV2000,
  1229. },{
  1230. .subvendor = 0x107d,
  1231. .subdevice = 0x663b,
  1232. .card = CX88_BOARD_LEADTEK_PVR2000,
  1233. },{
  1234. .subvendor = 0x107d,
  1235. .subdevice = 0x663C,
  1236. .card = CX88_BOARD_LEADTEK_PVR2000,
  1237. },{
  1238. .subvendor = 0x1461,
  1239. .subdevice = 0x000b,
  1240. .card = CX88_BOARD_AVERTV_STUDIO_303,
  1241. },{
  1242. .subvendor = 0x1462,
  1243. .subdevice = 0x8606,
  1244. .card = CX88_BOARD_MSI_TVANYWHERE_MASTER,
  1245. },{
  1246. .subvendor = 0x10fc,
  1247. .subdevice = 0xd003,
  1248. .card = CX88_BOARD_IODATA_GVVCP3PCI,
  1249. },{
  1250. .subvendor = 0x1043,
  1251. .subdevice = 0x4823, /* with mpeg encoder */
  1252. .card = CX88_BOARD_ASUS_PVR_416,
  1253. },{
  1254. .subvendor = 0x17de,
  1255. .subdevice = 0x08a6,
  1256. .card = CX88_BOARD_KWORLD_DVB_T,
  1257. },{
  1258. .subvendor = 0x18ac,
  1259. .subdevice = 0xd810,
  1260. .card = CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q,
  1261. },{
  1262. .subvendor = 0x18ac,
  1263. .subdevice = 0xd820,
  1264. .card = CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_T,
  1265. },{
  1266. .subvendor = 0x18ac,
  1267. .subdevice = 0xdb00,
  1268. .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1,
  1269. },{
  1270. .subvendor = 0x0070,
  1271. .subdevice = 0x9002,
  1272. .card = CX88_BOARD_HAUPPAUGE_DVB_T1,
  1273. },{
  1274. .subvendor = 0x14f1,
  1275. .subdevice = 0x0187,
  1276. .card = CX88_BOARD_CONEXANT_DVB_T1,
  1277. },{
  1278. .subvendor = 0x1540,
  1279. .subdevice = 0x2580,
  1280. .card = CX88_BOARD_PROVIDEO_PV259,
  1281. },{
  1282. .subvendor = 0x18ac,
  1283. .subdevice = 0xdb10,
  1284. .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS,
  1285. },{
  1286. .subvendor = 0x1554,
  1287. .subdevice = 0x4811,
  1288. .card = CX88_BOARD_PIXELVIEW,
  1289. },{
  1290. .subvendor = 0x7063,
  1291. .subdevice = 0x3000, /* HD-3000 card */
  1292. .card = CX88_BOARD_PCHDTV_HD3000,
  1293. },{
  1294. .subvendor = 0x17de,
  1295. .subdevice = 0xa8a6,
  1296. .card = CX88_BOARD_DNTV_LIVE_DVB_T,
  1297. },{
  1298. .subvendor = 0x0070,
  1299. .subdevice = 0x2801,
  1300. .card = CX88_BOARD_HAUPPAUGE_ROSLYN,
  1301. },{
  1302. .subvendor = 0x14f1,
  1303. .subdevice = 0x0342,
  1304. .card = CX88_BOARD_DIGITALLOGIC_MEC,
  1305. },{
  1306. .subvendor = 0x10fc,
  1307. .subdevice = 0xd035,
  1308. .card = CX88_BOARD_IODATA_GVBCTV7E,
  1309. },{
  1310. .subvendor = 0x1421,
  1311. .subdevice = 0x0334,
  1312. .card = CX88_BOARD_ADSTECH_DVB_T_PCI,
  1313. },{
  1314. .subvendor = 0x153b,
  1315. .subdevice = 0x1166,
  1316. .card = CX88_BOARD_TERRATEC_CINERGY_1400_DVB_T1,
  1317. },{
  1318. .subvendor = 0x18ac,
  1319. .subdevice = 0xd500,
  1320. .card = CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD,
  1321. },{
  1322. .subvendor = 0x1461,
  1323. .subdevice = 0x8011,
  1324. .card = CX88_BOARD_AVERMEDIA_ULTRATV_MC_550,
  1325. },{
  1326. .subvendor = PCI_VENDOR_ID_ATI,
  1327. .subdevice = 0xa101,
  1328. .card = CX88_BOARD_ATI_HDTVWONDER,
  1329. },{
  1330. .subvendor = 0x107d,
  1331. .subdevice = 0x665f,
  1332. .card = CX88_BOARD_WINFAST_DTV1000,
  1333. },{
  1334. .subvendor = 0x1461,
  1335. .subdevice = 0x000a,
  1336. .card = CX88_BOARD_AVERTV_303,
  1337. },{
  1338. .subvendor = 0x0070,
  1339. .subdevice = 0x9200,
  1340. .card = CX88_BOARD_HAUPPAUGE_NOVASE2_S1,
  1341. },{
  1342. .subvendor = 0x0070,
  1343. .subdevice = 0x9201,
  1344. .card = CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1,
  1345. },{
  1346. .subvendor = 0x0070,
  1347. .subdevice = 0x9202,
  1348. .card = CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1,
  1349. },{
  1350. .subvendor = 0x17de,
  1351. .subdevice = 0x08b2,
  1352. .card = CX88_BOARD_KWORLD_DVBS_100,
  1353. },{
  1354. .subvendor = 0x0070,
  1355. .subdevice = 0x9400,
  1356. .card = CX88_BOARD_HAUPPAUGE_HVR1100,
  1357. },{
  1358. .subvendor = 0x0070,
  1359. .subdevice = 0x9402,
  1360. .card = CX88_BOARD_HAUPPAUGE_HVR1100,
  1361. },{
  1362. .subvendor = 0x0070,
  1363. .subdevice = 0x9800,
  1364. .card = CX88_BOARD_HAUPPAUGE_HVR1100LP,
  1365. },{
  1366. .subvendor = 0x0070,
  1367. .subdevice = 0x9802,
  1368. .card = CX88_BOARD_HAUPPAUGE_HVR1100LP,
  1369. },{
  1370. .subvendor = 0x0070,
  1371. .subdevice = 0x9001,
  1372. .card = CX88_BOARD_HAUPPAUGE_DVB_T1,
  1373. },{
  1374. .subvendor = 0x1822,
  1375. .subdevice = 0x0025,
  1376. .card = CX88_BOARD_DNTV_LIVE_DVB_T_PRO,
  1377. },{
  1378. .subvendor = 0x17de,
  1379. .subdevice = 0x08a1,
  1380. .card = CX88_BOARD_KWORLD_DVB_T_CX22702,
  1381. },{
  1382. .subvendor = 0x18ac,
  1383. .subdevice = 0xdb50,
  1384. .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL,
  1385. },{
  1386. .subvendor = 0x18ac,
  1387. .subdevice = 0xdb54,
  1388. .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL,
  1389. /* Re-branded DViCO: DigitalNow DVB-T Dual */
  1390. },{
  1391. .subvendor = 0x18ac,
  1392. .subdevice = 0xdb11,
  1393. .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS,
  1394. /* Re-branded DViCO: UltraView DVB-T Plus */
  1395. },{
  1396. .subvendor = 0x17de,
  1397. .subdevice = 0x0840,
  1398. .card = CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT,
  1399. },{
  1400. .subvendor = 0x18ac,
  1401. .subdevice = 0xdb40,
  1402. .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID,
  1403. },{
  1404. .subvendor = 0x18ac,
  1405. .subdevice = 0xdb44,
  1406. .card = CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID,
  1407. },{
  1408. .subvendor = 0x7063,
  1409. .subdevice = 0x5500,
  1410. .card = CX88_BOARD_PCHDTV_HD5500,
  1411. },{
  1412. .subvendor = 0x17de,
  1413. .subdevice = 0x0841,
  1414. .card = CX88_BOARD_KWORLD_MCE200_DELUXE,
  1415. },{
  1416. .subvendor = 0x1822,
  1417. .subdevice = 0x0019,
  1418. .card = CX88_BOARD_DNTV_LIVE_DVB_T_PRO,
  1419. },{
  1420. .subvendor = 0x1554,
  1421. .subdevice = 0x4813,
  1422. .card = CX88_BOARD_PIXELVIEW_PLAYTV_P7000,
  1423. },{
  1424. .subvendor = 0x14f1,
  1425. .subdevice = 0x0842,
  1426. .card = CX88_BOARD_NPGTECH_REALTV_TOP10FM,
  1427. },{
  1428. .subvendor = 0x107d,
  1429. .subdevice = 0x665e,
  1430. .card = CX88_BOARD_WINFAST_DTV2000H,
  1431. },
  1432. };
  1433. const unsigned int cx88_idcount = ARRAY_SIZE(cx88_subids);
  1434. /* ----------------------------------------------------------------------- */
  1435. /* some leadtek specific stuff */
  1436. static void __devinit leadtek_eeprom(struct cx88_core *core, u8 *eeprom_data)
  1437. {
  1438. /* This is just for the "Winfast 2000XP Expert" board ATM; I don't have data on
  1439. * any others.
  1440. *
  1441. * Byte 0 is 1 on the NTSC board.
  1442. */
  1443. if (eeprom_data[4] != 0x7d ||
  1444. eeprom_data[5] != 0x10 ||
  1445. eeprom_data[7] != 0x66) {
  1446. printk(KERN_WARNING "%s: Leadtek eeprom invalid.\n",
  1447. core->name);
  1448. return;
  1449. }
  1450. core->has_radio = 1;
  1451. core->tuner_type = (eeprom_data[6] == 0x13) ? 43 : 38;
  1452. printk(KERN_INFO "%s: Leadtek Winfast 2000XP Expert config: "
  1453. "tuner=%d, eeprom[0]=0x%02x\n",
  1454. core->name, core->tuner_type, eeprom_data[0]);
  1455. }
  1456. static void hauppauge_eeprom(struct cx88_core *core, u8 *eeprom_data)
  1457. {
  1458. struct tveeprom tv;
  1459. tveeprom_hauppauge_analog(&core->i2c_client, &tv, eeprom_data);
  1460. core->tuner_type = tv.tuner_type;
  1461. core->tuner_formats = tv.tuner_formats;
  1462. core->has_radio = tv.has_radio;
  1463. /* Make sure we support the board model */
  1464. switch (tv.model)
  1465. {
  1466. case 28552: /* WinTV-PVR 'Roslyn' (No IR) */
  1467. case 34519: /* WinTV-PCI-FM */
  1468. case 90002: /* Nova-T-PCI (9002) */
  1469. case 92001: /* Nova-S-Plus (Video and IR) */
  1470. case 92002: /* Nova-S-Plus (Video and IR) */
  1471. case 90003: /* Nova-T-PCI (9002 No RF out) */
  1472. case 90500: /* Nova-T-PCI (oem) */
  1473. case 90501: /* Nova-T-PCI (oem/IR) */
  1474. case 92000: /* Nova-SE2 (OEM, No Video or IR) */
  1475. case 94009: /* WinTV-HVR1100 (Video and IR Retail) */
  1476. case 94501: /* WinTV-HVR1100 (Video and IR OEM) */
  1477. case 98559: /* WinTV-HVR1100LP (Video no IR, Retail - Low Profile) */
  1478. /* known */
  1479. break;
  1480. default:
  1481. printk("%s: warning: unknown hauppauge model #%d\n",
  1482. core->name, tv.model);
  1483. break;
  1484. }
  1485. printk(KERN_INFO "%s: hauppauge eeprom: model=%d\n",
  1486. core->name, tv.model);
  1487. }
  1488. /* ----------------------------------------------------------------------- */
  1489. /* some GDI (was: Modular Technology) specific stuff */
  1490. static struct {
  1491. int id;
  1492. int fm;
  1493. char *name;
  1494. } gdi_tuner[] = {
  1495. [ 0x01 ] = { .id = TUNER_ABSENT,
  1496. .name = "NTSC_M" },
  1497. [ 0x02 ] = { .id = TUNER_ABSENT,
  1498. .name = "PAL_B" },
  1499. [ 0x03 ] = { .id = TUNER_ABSENT,
  1500. .name = "PAL_I" },
  1501. [ 0x04 ] = { .id = TUNER_ABSENT,
  1502. .name = "PAL_D" },
  1503. [ 0x05 ] = { .id = TUNER_ABSENT,
  1504. .name = "SECAM" },
  1505. [ 0x10 ] = { .id = TUNER_ABSENT,
  1506. .fm = 1,
  1507. .name = "TEMIC_4049" },
  1508. [ 0x11 ] = { .id = TUNER_TEMIC_4136FY5,
  1509. .name = "TEMIC_4136" },
  1510. [ 0x12 ] = { .id = TUNER_ABSENT,
  1511. .name = "TEMIC_4146" },
  1512. [ 0x20 ] = { .id = TUNER_PHILIPS_FQ1216ME,
  1513. .fm = 1,
  1514. .name = "PHILIPS_FQ1216_MK3" },
  1515. [ 0x21 ] = { .id = TUNER_ABSENT, .fm = 1,
  1516. .name = "PHILIPS_FQ1236_MK3" },
  1517. [ 0x22 ] = { .id = TUNER_ABSENT,
  1518. .name = "PHILIPS_FI1236_MK3" },
  1519. [ 0x23 ] = { .id = TUNER_ABSENT,
  1520. .name = "PHILIPS_FI1216_MK3" },
  1521. };
  1522. static void gdi_eeprom(struct cx88_core *core, u8 *eeprom_data)
  1523. {
  1524. char *name = (eeprom_data[0x0d] < ARRAY_SIZE(gdi_tuner))
  1525. ? gdi_tuner[eeprom_data[0x0d]].name : NULL;
  1526. printk(KERN_INFO "%s: GDI: tuner=%s\n", core->name,
  1527. name ? name : "unknown");
  1528. if (NULL == name)
  1529. return;
  1530. core->tuner_type = gdi_tuner[eeprom_data[0x0d]].id;
  1531. core->has_radio = gdi_tuner[eeprom_data[0x0d]].fm;
  1532. }
  1533. /* ----------------------------------------------------------------------- */
  1534. /* some DViCO specific stuff */
  1535. static void dvico_fusionhdtv_hybrid_init(struct cx88_core *core)
  1536. {
  1537. struct i2c_msg msg = { .addr = 0x45, .flags = 0 };
  1538. int i, err;
  1539. static u8 init_bufs[13][5] = {
  1540. { 0x10, 0x00, 0x20, 0x01, 0x03 },
  1541. { 0x10, 0x10, 0x01, 0x00, 0x21 },
  1542. { 0x10, 0x10, 0x10, 0x00, 0xCA },
  1543. { 0x10, 0x10, 0x12, 0x00, 0x08 },
  1544. { 0x10, 0x10, 0x13, 0x00, 0x0A },
  1545. { 0x10, 0x10, 0x16, 0x01, 0xC0 },
  1546. { 0x10, 0x10, 0x22, 0x01, 0x3D },
  1547. { 0x10, 0x10, 0x73, 0x01, 0x2E },
  1548. { 0x10, 0x10, 0x72, 0x00, 0xC5 },
  1549. { 0x10, 0x10, 0x71, 0x01, 0x97 },
  1550. { 0x10, 0x10, 0x70, 0x00, 0x0F },
  1551. { 0x10, 0x10, 0xB0, 0x00, 0x01 },
  1552. { 0x03, 0x0C },
  1553. };
  1554. for (i = 0; i < 13; i++) {
  1555. msg.buf = init_bufs[i];
  1556. msg.len = (i != 12 ? 5 : 2);
  1557. err = i2c_transfer(&core->i2c_adap, &msg, 1);
  1558. if (err != 1) {
  1559. printk("dvico_fusionhdtv_hybrid_init buf %d failed (err = %d)!\n", i, err);
  1560. return;
  1561. }
  1562. }
  1563. }
  1564. /* ----------------------------------------------------------------------- */
  1565. void cx88_card_list(struct cx88_core *core, struct pci_dev *pci)
  1566. {
  1567. int i;
  1568. if (0 == pci->subsystem_vendor &&
  1569. 0 == pci->subsystem_device) {
  1570. printk("%s: Your board has no valid PCI Subsystem ID and thus can't\n"
  1571. "%s: be autodetected. Please pass card=<n> insmod option to\n"
  1572. "%s: workaround that. Redirect complaints to the vendor of\n"
  1573. "%s: the TV card. Best regards,\n"
  1574. "%s: -- tux\n",
  1575. core->name,core->name,core->name,core->name,core->name);
  1576. } else {
  1577. printk("%s: Your board isn't known (yet) to the driver. You can\n"
  1578. "%s: try to pick one of the existing card configs via\n"
  1579. "%s: card=<n> insmod option. Updating to the latest\n"
  1580. "%s: version might help as well.\n",
  1581. core->name,core->name,core->name,core->name);
  1582. }
  1583. printk("%s: Here is a list of valid choices for the card=<n> insmod option:\n",
  1584. core->name);
  1585. for (i = 0; i < cx88_bcount; i++)
  1586. printk("%s: card=%d -> %s\n",
  1587. core->name, i, cx88_boards[i].name);
  1588. }
  1589. void cx88_card_setup(struct cx88_core *core)
  1590. {
  1591. static u8 eeprom[256];
  1592. if (0 == core->i2c_rc) {
  1593. core->i2c_client.addr = 0xa0 >> 1;
  1594. tveeprom_read(&core->i2c_client,eeprom,sizeof(eeprom));
  1595. }
  1596. switch (core->board) {
  1597. case CX88_BOARD_HAUPPAUGE:
  1598. case CX88_BOARD_HAUPPAUGE_ROSLYN:
  1599. if (0 == core->i2c_rc)
  1600. hauppauge_eeprom(core,eeprom+8);
  1601. break;
  1602. case CX88_BOARD_GDI:
  1603. if (0 == core->i2c_rc)
  1604. gdi_eeprom(core,eeprom);
  1605. break;
  1606. case CX88_BOARD_WINFAST2000XP_EXPERT:
  1607. if (0 == core->i2c_rc)
  1608. leadtek_eeprom(core,eeprom);
  1609. break;
  1610. case CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1:
  1611. case CX88_BOARD_HAUPPAUGE_NOVASE2_S1:
  1612. case CX88_BOARD_HAUPPAUGE_DVB_T1:
  1613. case CX88_BOARD_HAUPPAUGE_HVR1100:
  1614. case CX88_BOARD_HAUPPAUGE_HVR1100LP:
  1615. if (0 == core->i2c_rc)
  1616. hauppauge_eeprom(core,eeprom);
  1617. break;
  1618. case CX88_BOARD_KWORLD_DVBS_100:
  1619. cx_write(MO_GP0_IO, 0x000007f8);
  1620. cx_write(MO_GP1_IO, 0x00000001);
  1621. break;
  1622. case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1:
  1623. case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS:
  1624. case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL:
  1625. case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID:
  1626. /* GPIO0:0 is hooked to mt352 reset pin */
  1627. cx_set(MO_GP0_IO, 0x00000101);
  1628. cx_clear(MO_GP0_IO, 0x00000001);
  1629. msleep(1);
  1630. cx_set(MO_GP0_IO, 0x00000101);
  1631. if (0 == core->i2c_rc &&
  1632. core->board == CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID)
  1633. dvico_fusionhdtv_hybrid_init(core);
  1634. break;
  1635. case CX88_BOARD_KWORLD_DVB_T:
  1636. case CX88_BOARD_DNTV_LIVE_DVB_T:
  1637. cx_set(MO_GP0_IO, 0x00000707);
  1638. cx_set(MO_GP2_IO, 0x00000101);
  1639. cx_clear(MO_GP2_IO, 0x00000001);
  1640. msleep(1);
  1641. cx_clear(MO_GP0_IO, 0x00000007);
  1642. cx_set(MO_GP2_IO, 0x00000101);
  1643. break;
  1644. case CX88_BOARD_DNTV_LIVE_DVB_T_PRO:
  1645. cx_write(MO_GP0_IO, 0x00080808);
  1646. break;
  1647. case CX88_BOARD_ATI_HDTVWONDER:
  1648. if (0 == core->i2c_rc) {
  1649. /* enable tuner */
  1650. int i;
  1651. static const u8 buffer [] = { 0x10,0x12,0x13,0x04,0x16,0x00,0x14,0x04,0x017,0x00 };
  1652. core->i2c_client.addr = 0x0a;
  1653. for (i = 0; i < 5; i++)
  1654. if (2 != i2c_master_send(&core->i2c_client,&buffer[i*2],2))
  1655. printk(KERN_WARNING "%s: Unable to enable tuner(%i).\n",
  1656. core->name, i);
  1657. }
  1658. break;
  1659. }
  1660. if (cx88_boards[core->board].radio.type == CX88_RADIO)
  1661. core->has_radio = 1;
  1662. }
  1663. /* ------------------------------------------------------------------ */
  1664. EXPORT_SYMBOL(cx88_boards);
  1665. EXPORT_SYMBOL(cx88_bcount);
  1666. EXPORT_SYMBOL(cx88_subids);
  1667. EXPORT_SYMBOL(cx88_idcount);
  1668. EXPORT_SYMBOL(cx88_card_list);
  1669. EXPORT_SYMBOL(cx88_card_setup);
  1670. /*
  1671. * Local variables:
  1672. * c-basic-offset: 8
  1673. * End:
  1674. * 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
  1675. */