cx23885-cards.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533
  1. /*
  2. * Driver for the Conexant CX23885 PCIe bridge
  3. *
  4. * Copyright (c) 2006 Steven Toth <stoth@hauppauge.com>
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; either version 2 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. *
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20. */
  21. #include <linux/init.h>
  22. #include <linux/module.h>
  23. #include <linux/pci.h>
  24. #include <linux/delay.h>
  25. #include <media/cx25840.h>
  26. #include "cx23885.h"
  27. /* ------------------------------------------------------------------ */
  28. /* board config info */
  29. struct cx23885_board cx23885_boards[] = {
  30. [CX23885_BOARD_UNKNOWN] = {
  31. .name = "UNKNOWN/GENERIC",
  32. /* Ensure safe default for unknown boards */
  33. .clk_freq = 0,
  34. .input = {{
  35. .type = CX23885_VMUX_COMPOSITE1,
  36. .vmux = 0,
  37. },{
  38. .type = CX23885_VMUX_COMPOSITE2,
  39. .vmux = 1,
  40. },{
  41. .type = CX23885_VMUX_COMPOSITE3,
  42. .vmux = 2,
  43. },{
  44. .type = CX23885_VMUX_COMPOSITE4,
  45. .vmux = 3,
  46. }},
  47. },
  48. [CX23885_BOARD_HAUPPAUGE_HVR1800lp] = {
  49. .name = "Hauppauge WinTV-HVR1800lp",
  50. .portc = CX23885_MPEG_DVB,
  51. .input = {{
  52. .type = CX23885_VMUX_TELEVISION,
  53. .vmux = 0,
  54. .gpio0 = 0xff00,
  55. },{
  56. .type = CX23885_VMUX_DEBUG,
  57. .vmux = 0,
  58. .gpio0 = 0xff01,
  59. },{
  60. .type = CX23885_VMUX_COMPOSITE1,
  61. .vmux = 1,
  62. .gpio0 = 0xff02,
  63. },{
  64. .type = CX23885_VMUX_SVIDEO,
  65. .vmux = 2,
  66. .gpio0 = 0xff02,
  67. }},
  68. },
  69. [CX23885_BOARD_HAUPPAUGE_HVR1800] = {
  70. .name = "Hauppauge WinTV-HVR1800",
  71. .porta = CX23885_ANALOG_VIDEO,
  72. .portb = CX23885_MPEG_ENCODER,
  73. .portc = CX23885_MPEG_DVB,
  74. .tuner_type = TUNER_PHILIPS_TDA8290,
  75. .tuner_addr = 0x42, /* 0x84 >> 1 */
  76. .input = {{
  77. .type = CX23885_VMUX_TELEVISION,
  78. .vmux = CX25840_VIN7_CH3 |
  79. CX25840_VIN5_CH2 |
  80. CX25840_VIN2_CH1,
  81. .gpio0 = 0,
  82. },{
  83. .type = CX23885_VMUX_COMPOSITE1,
  84. .vmux = CX25840_VIN7_CH3 |
  85. CX25840_VIN4_CH2 |
  86. CX25840_VIN6_CH1,
  87. .gpio0 = 0,
  88. },{
  89. .type = CX23885_VMUX_SVIDEO,
  90. .vmux = CX25840_VIN7_CH3 |
  91. CX25840_VIN4_CH2 |
  92. CX25840_VIN8_CH1 |
  93. CX25840_SVIDEO_ON,
  94. .gpio0 = 0,
  95. }},
  96. },
  97. [CX23885_BOARD_HAUPPAUGE_HVR1250] = {
  98. .name = "Hauppauge WinTV-HVR1250",
  99. .portc = CX23885_MPEG_DVB,
  100. .input = {{
  101. .type = CX23885_VMUX_TELEVISION,
  102. .vmux = 0,
  103. .gpio0 = 0xff00,
  104. },{
  105. .type = CX23885_VMUX_DEBUG,
  106. .vmux = 0,
  107. .gpio0 = 0xff01,
  108. },{
  109. .type = CX23885_VMUX_COMPOSITE1,
  110. .vmux = 1,
  111. .gpio0 = 0xff02,
  112. },{
  113. .type = CX23885_VMUX_SVIDEO,
  114. .vmux = 2,
  115. .gpio0 = 0xff02,
  116. }},
  117. },
  118. [CX23885_BOARD_DVICO_FUSIONHDTV_5_EXP] = {
  119. .name = "DViCO FusionHDTV5 Express",
  120. .portb = CX23885_MPEG_DVB,
  121. },
  122. [CX23885_BOARD_HAUPPAUGE_HVR1500Q] = {
  123. .name = "Hauppauge WinTV-HVR1500Q",
  124. .portc = CX23885_MPEG_DVB,
  125. },
  126. [CX23885_BOARD_HAUPPAUGE_HVR1500] = {
  127. .name = "Hauppauge WinTV-HVR1500",
  128. .portc = CX23885_MPEG_DVB,
  129. },
  130. [CX23885_BOARD_HAUPPAUGE_HVR1200] = {
  131. .name = "Hauppauge WinTV-HVR1200",
  132. .portc = CX23885_MPEG_DVB,
  133. },
  134. [CX23885_BOARD_HAUPPAUGE_HVR1700] = {
  135. .name = "Hauppauge WinTV-HVR1700",
  136. .portc = CX23885_MPEG_DVB,
  137. },
  138. [CX23885_BOARD_HAUPPAUGE_HVR1400] = {
  139. .name = "Hauppauge WinTV-HVR1400",
  140. .portc = CX23885_MPEG_DVB,
  141. },
  142. };
  143. const unsigned int cx23885_bcount = ARRAY_SIZE(cx23885_boards);
  144. /* ------------------------------------------------------------------ */
  145. /* PCI subsystem IDs */
  146. struct cx23885_subid cx23885_subids[] = {
  147. {
  148. .subvendor = 0x0070,
  149. .subdevice = 0x3400,
  150. .card = CX23885_BOARD_UNKNOWN,
  151. },{
  152. .subvendor = 0x0070,
  153. .subdevice = 0x7600,
  154. .card = CX23885_BOARD_HAUPPAUGE_HVR1800lp,
  155. },{
  156. .subvendor = 0x0070,
  157. .subdevice = 0x7800,
  158. .card = CX23885_BOARD_HAUPPAUGE_HVR1800,
  159. },{
  160. .subvendor = 0x0070,
  161. .subdevice = 0x7801,
  162. .card = CX23885_BOARD_HAUPPAUGE_HVR1800,
  163. },{
  164. .subvendor = 0x0070,
  165. .subdevice = 0x7809,
  166. .card = CX23885_BOARD_HAUPPAUGE_HVR1800,
  167. },{
  168. .subvendor = 0x0070,
  169. .subdevice = 0x7911,
  170. .card = CX23885_BOARD_HAUPPAUGE_HVR1250,
  171. },{
  172. .subvendor = 0x18ac,
  173. .subdevice = 0xd500,
  174. .card = CX23885_BOARD_DVICO_FUSIONHDTV_5_EXP,
  175. },{
  176. .subvendor = 0x0070,
  177. .subdevice = 0x7790,
  178. .card = CX23885_BOARD_HAUPPAUGE_HVR1500Q,
  179. },{
  180. .subvendor = 0x0070,
  181. .subdevice = 0x7797,
  182. .card = CX23885_BOARD_HAUPPAUGE_HVR1500Q,
  183. },{
  184. .subvendor = 0x0070,
  185. .subdevice = 0x7710,
  186. .card = CX23885_BOARD_HAUPPAUGE_HVR1500,
  187. },{
  188. .subvendor = 0x0070,
  189. .subdevice = 0x7717,
  190. .card = CX23885_BOARD_HAUPPAUGE_HVR1500,
  191. }, {
  192. .subvendor = 0x0070,
  193. .subdevice = 0x71d1,
  194. .card = CX23885_BOARD_HAUPPAUGE_HVR1200,
  195. }, {
  196. .subvendor = 0x0070,
  197. .subdevice = 0x71d3,
  198. .card = CX23885_BOARD_HAUPPAUGE_HVR1200,
  199. }, {
  200. .subvendor = 0x0070,
  201. .subdevice = 0x8101,
  202. .card = CX23885_BOARD_HAUPPAUGE_HVR1700,
  203. }, {
  204. .subvendor = 0x0070,
  205. .subdevice = 0x8010,
  206. .card = CX23885_BOARD_HAUPPAUGE_HVR1400,
  207. },
  208. };
  209. const unsigned int cx23885_idcount = ARRAY_SIZE(cx23885_subids);
  210. void cx23885_card_list(struct cx23885_dev *dev)
  211. {
  212. int i;
  213. if (0 == dev->pci->subsystem_vendor &&
  214. 0 == dev->pci->subsystem_device) {
  215. printk("%s: Your board has no valid PCIe Subsystem ID and thus can't\n"
  216. "%s: be autodetected. Please pass card=<n> insmod option to\n"
  217. "%s: workaround that. Redirect complaints to the vendor of\n"
  218. "%s: the TV card. Best regards,\n"
  219. "%s: -- tux\n",
  220. dev->name, dev->name, dev->name, dev->name, dev->name);
  221. } else {
  222. printk("%s: Your board isn't known (yet) to the driver. You can\n"
  223. "%s: try to pick one of the existing card configs via\n"
  224. "%s: card=<n> insmod option. Updating to the latest\n"
  225. "%s: version might help as well.\n",
  226. dev->name, dev->name, dev->name, dev->name);
  227. }
  228. printk("%s: Here is a list of valid choices for the card=<n> insmod option:\n",
  229. dev->name);
  230. for (i = 0; i < cx23885_bcount; i++)
  231. printk("%s: card=%d -> %s\n",
  232. dev->name, i, cx23885_boards[i].name);
  233. }
  234. static void hauppauge_eeprom(struct cx23885_dev *dev, u8 *eeprom_data)
  235. {
  236. struct tveeprom tv;
  237. tveeprom_hauppauge_analog(&dev->i2c_bus[0].i2c_client, &tv, eeprom_data);
  238. /* Make sure we support the board model */
  239. switch (tv.model)
  240. {
  241. case 71009:
  242. /* WinTV-HVR1200 (PCIe, Retail, full height)
  243. * DVB-T and basic analog */
  244. case 71359:
  245. /* WinTV-HVR1200 (PCIe, OEM, half height)
  246. * DVB-T and basic analog */
  247. case 71439:
  248. /* WinTV-HVR1200 (PCIe, OEM, half height)
  249. * DVB-T and basic analog */
  250. case 71449:
  251. /* WinTV-HVR1200 (PCIe, OEM, full height)
  252. * DVB-T and basic analog */
  253. case 71939:
  254. /* WinTV-HVR1200 (PCIe, OEM, half height)
  255. * DVB-T and basic analog */
  256. case 71949:
  257. /* WinTV-HVR1200 (PCIe, OEM, full height)
  258. * DVB-T and basic analog */
  259. case 71959:
  260. /* WinTV-HVR1200 (PCIe, OEM, full height)
  261. * DVB-T and basic analog */
  262. case 71979:
  263. /* WinTV-HVR1200 (PCIe, OEM, half height)
  264. * DVB-T and basic analog */
  265. case 71999:
  266. /* WinTV-HVR1200 (PCIe, OEM, full height)
  267. * DVB-T and basic analog */
  268. case 76601: /* WinTV-HVR1800lp (PCIe, Retail, No IR, Dual channel ATSC and MPEG2 HW Encoder */
  269. case 77001: /* WinTV-HVR1500 (Express Card, OEM, No IR, ATSC and Basic analog */
  270. case 77011: /* WinTV-HVR1500 (Express Card, Retail, No IR, ATSC and Basic analog */
  271. case 77041: /* WinTV-HVR1500Q (Express Card, OEM, No IR, ATSC/QAM and Basic analog */
  272. case 77051: /* WinTV-HVR1500Q (Express Card, Retail, No IR, ATSC/QAM and Basic analog */
  273. case 78011: /* WinTV-HVR1800 (PCIe, Retail, 3.5mm in, IR, No FM, Dual channel ATSC and MPEG2 HW Encoder */
  274. case 78501: /* WinTV-HVR1800 (PCIe, OEM, RCA in, No IR, FM, Dual channel ATSC and MPEG2 HW Encoder */
  275. case 78521: /* WinTV-HVR1800 (PCIe, OEM, RCA in, No IR, FM, Dual channel ATSC and MPEG2 HW Encoder */
  276. case 78531: /* WinTV-HVR1800 (PCIe, OEM, RCA in, No IR, No FM, Dual channel ATSC and MPEG2 HW Encoder */
  277. case 78631: /* WinTV-HVR1800 (PCIe, OEM, No IR, No FM, Dual channel ATSC and MPEG2 HW Encoder */
  278. case 79001: /* WinTV-HVR1250 (PCIe, Retail, IR, full height, ATSC and Basic analog */
  279. case 79101: /* WinTV-HVR1250 (PCIe, Retail, IR, half height, ATSC and Basic analog */
  280. case 79561: /* WinTV-HVR1250 (PCIe, OEM, No IR, half height, ATSC and Basic analog */
  281. case 79571: /* WinTV-HVR1250 (PCIe, OEM, No IR, full height, ATSC and Basic analog */
  282. case 79671: /* WinTV-HVR1250 (PCIe, OEM, No IR, half height, ATSC and Basic analog */
  283. case 80019:
  284. /* WinTV-HVR1400 (Express Card, Retail, IR,
  285. * DVB-T and Basic analog */
  286. case 81509:
  287. /* WinTV-HVR1700 (PCIe, OEM, No IR, half height)
  288. * DVB-T and MPEG2 HW Encoder */
  289. case 81519:
  290. /* WinTV-HVR1700 (PCIe, OEM, No IR, full height)
  291. * DVB-T and MPEG2 HW Encoder */
  292. break;
  293. default:
  294. printk("%s: warning: unknown hauppauge model #%d\n", dev->name, tv.model);
  295. break;
  296. }
  297. printk(KERN_INFO "%s: hauppauge eeprom: model=%d\n",
  298. dev->name, tv.model);
  299. }
  300. /* Tuner callback function for cx23885 boards. Currently only needed
  301. * for HVR1500Q, which has an xc5000 tuner.
  302. */
  303. int cx23885_tuner_callback(void *priv, int command, int arg)
  304. {
  305. struct cx23885_i2c *bus = priv;
  306. struct cx23885_dev *dev = bus->dev;
  307. switch(dev->board) {
  308. case CX23885_BOARD_HAUPPAUGE_HVR1500Q:
  309. if(command == 0) { /* Tuner Reset Command from xc5000 */
  310. /* Drive the tuner into reset and out */
  311. cx_clear(GP0_IO, 0x00000004);
  312. mdelay(200);
  313. cx_set(GP0_IO, 0x00000004);
  314. return 0;
  315. }
  316. else {
  317. printk(KERN_ERR
  318. "%s(): Unknow command.\n", __func__);
  319. return -EINVAL;
  320. }
  321. break;
  322. }
  323. return 0; /* Should never be here */
  324. }
  325. void cx23885_gpio_setup(struct cx23885_dev *dev)
  326. {
  327. switch(dev->board) {
  328. case CX23885_BOARD_HAUPPAUGE_HVR1250:
  329. /* GPIO-0 cx24227 demodulator reset */
  330. cx_set(GP0_IO, 0x00010001); /* Bring the part out of reset */
  331. break;
  332. case CX23885_BOARD_HAUPPAUGE_HVR1500:
  333. /* GPIO-0 cx24227 demodulator */
  334. /* GPIO-2 xc3028 tuner */
  335. /* Put the parts into reset */
  336. cx_set(GP0_IO, 0x00050000);
  337. cx_clear(GP0_IO, 0x00000005);
  338. msleep(5);
  339. /* Bring the parts out of reset */
  340. cx_set(GP0_IO, 0x00050005);
  341. break;
  342. case CX23885_BOARD_HAUPPAUGE_HVR1500Q:
  343. /* GPIO-0 cx24227 demodulator reset */
  344. /* GPIO-2 xc5000 tuner reset */
  345. cx_set(GP0_IO, 0x00050005); /* Bring the part out of reset */
  346. break;
  347. case CX23885_BOARD_HAUPPAUGE_HVR1800:
  348. /* GPIO-0 656_CLK */
  349. /* GPIO-1 656_D0 */
  350. /* GPIO-2 8295A Reset */
  351. /* GPIO-3-10 cx23417 data0-7 */
  352. /* GPIO-11-14 cx23417 addr0-3 */
  353. /* GPIO-15-18 cx23417 READY, CS, RD, WR */
  354. /* GPIO-19 IR_RX */
  355. /* CX23417 GPIO's */
  356. /* EIO15 Zilog Reset */
  357. /* EIO14 S5H1409/CX24227 Reset */
  358. /* Force the TDA8295A into reset and back */
  359. cx_set(GP0_IO, 0x00040004);
  360. mdelay(20);
  361. cx_clear(GP0_IO, 0x00000004);
  362. mdelay(20);
  363. cx_set(GP0_IO, 0x00040004);
  364. mdelay(20);
  365. break;
  366. case CX23885_BOARD_HAUPPAUGE_HVR1200:
  367. /* GPIO-0 tda10048 demodulator reset */
  368. /* GPIO-2 tda18271 tuner reset */
  369. /* Put the parts into reset and back */
  370. cx_set(GP0_IO, 0x00050000);
  371. mdelay(20);
  372. cx_clear(GP0_IO, 0x00000005);
  373. mdelay(20);
  374. cx_set(GP0_IO, 0x00050005);
  375. break;
  376. case CX23885_BOARD_HAUPPAUGE_HVR1700:
  377. /* GPIO-0 TDA10048 demodulator reset */
  378. /* GPIO-2 TDA8295A Reset */
  379. /* GPIO-3-10 cx23417 data0-7 */
  380. /* GPIO-11-14 cx23417 addr0-3 */
  381. /* GPIO-15-18 cx23417 READY, CS, RD, WR */
  382. /* The following GPIO's are on the interna AVCore (cx25840) */
  383. /* GPIO-19 IR_RX */
  384. /* GPIO-20 IR_TX 416/DVBT Select */
  385. /* GPIO-21 IIS DAT */
  386. /* GPIO-22 IIS WCLK */
  387. /* GPIO-23 IIS BCLK */
  388. /* Put the parts into reset and back */
  389. cx_set(GP0_IO, 0x00050000);
  390. mdelay(20);
  391. cx_clear(GP0_IO, 0x00000005);
  392. mdelay(20);
  393. cx_set(GP0_IO, 0x00050005);
  394. break;
  395. case CX23885_BOARD_HAUPPAUGE_HVR1400:
  396. /* GPIO-0 Dibcom7000p demodulator reset */
  397. /* GPIO-2 xc3028L tuner reset */
  398. /* GPIO-13 LED */
  399. /* Put the parts into reset and back */
  400. cx_set(GP0_IO, 0x00050000);
  401. mdelay(20);
  402. cx_clear(GP0_IO, 0x00000005);
  403. mdelay(20);
  404. cx_set(GP0_IO, 0x00050005);
  405. break;
  406. }
  407. }
  408. int cx23885_ir_init(struct cx23885_dev *dev)
  409. {
  410. switch (dev->board) {
  411. case CX23885_BOARD_HAUPPAUGE_HVR1250:
  412. case CX23885_BOARD_HAUPPAUGE_HVR1500:
  413. case CX23885_BOARD_HAUPPAUGE_HVR1500Q:
  414. case CX23885_BOARD_HAUPPAUGE_HVR1800:
  415. case CX23885_BOARD_HAUPPAUGE_HVR1200:
  416. case CX23885_BOARD_HAUPPAUGE_HVR1400:
  417. /* FIXME: Implement me */
  418. break;
  419. }
  420. return 0;
  421. }
  422. void cx23885_card_setup(struct cx23885_dev *dev)
  423. {
  424. struct cx23885_tsport *ts1 = &dev->ts1;
  425. struct cx23885_tsport *ts2 = &dev->ts2;
  426. static u8 eeprom[256];
  427. if (dev->i2c_bus[0].i2c_rc == 0) {
  428. dev->i2c_bus[0].i2c_client.addr = 0xa0 >> 1;
  429. tveeprom_read(&dev->i2c_bus[0].i2c_client,
  430. eeprom, sizeof(eeprom));
  431. }
  432. switch (dev->board) {
  433. case CX23885_BOARD_HAUPPAUGE_HVR1250:
  434. case CX23885_BOARD_HAUPPAUGE_HVR1500:
  435. case CX23885_BOARD_HAUPPAUGE_HVR1500Q:
  436. case CX23885_BOARD_HAUPPAUGE_HVR1400:
  437. if (dev->i2c_bus[0].i2c_rc == 0)
  438. hauppauge_eeprom(dev, eeprom+0x80);
  439. break;
  440. case CX23885_BOARD_HAUPPAUGE_HVR1800:
  441. case CX23885_BOARD_HAUPPAUGE_HVR1800lp:
  442. case CX23885_BOARD_HAUPPAUGE_HVR1200:
  443. case CX23885_BOARD_HAUPPAUGE_HVR1700:
  444. if (dev->i2c_bus[0].i2c_rc == 0)
  445. hauppauge_eeprom(dev, eeprom+0xc0);
  446. break;
  447. }
  448. switch (dev->board) {
  449. case CX23885_BOARD_DVICO_FUSIONHDTV_5_EXP:
  450. ts1->gen_ctrl_val = 0xc; /* Serial bus + punctured clock */
  451. ts1->ts_clk_en_val = 0x1; /* Enable TS_CLK */
  452. ts1->src_sel_val = CX23885_SRC_SEL_PARALLEL_MPEG_VIDEO;
  453. break;
  454. case CX23885_BOARD_HAUPPAUGE_HVR1800:
  455. /* Defaults for VID B - Analog encoder */
  456. /* DREQ_POL, SMODE, PUNC_CLK, MCLK_POL Serial bus + punc clk */
  457. ts1->gen_ctrl_val = 0x10e;
  458. ts1->ts_clk_en_val = 0x1; /* Enable TS_CLK */
  459. ts1->src_sel_val = CX23885_SRC_SEL_PARALLEL_MPEG_VIDEO;
  460. /* APB_TSVALERR_POL (active low)*/
  461. ts1->vld_misc_val = 0x2000;
  462. ts1->hw_sop_ctrl_val = (0x47 << 16 | 188 << 4 | 0xc);
  463. /* Defaults for VID C */
  464. ts2->gen_ctrl_val = 0xc; /* Serial bus + punctured clock */
  465. ts2->ts_clk_en_val = 0x1; /* Enable TS_CLK */
  466. ts2->src_sel_val = CX23885_SRC_SEL_PARALLEL_MPEG_VIDEO;
  467. break;
  468. case CX23885_BOARD_HAUPPAUGE_HVR1250:
  469. case CX23885_BOARD_HAUPPAUGE_HVR1500:
  470. case CX23885_BOARD_HAUPPAUGE_HVR1500Q:
  471. case CX23885_BOARD_HAUPPAUGE_HVR1800lp:
  472. case CX23885_BOARD_HAUPPAUGE_HVR1200:
  473. case CX23885_BOARD_HAUPPAUGE_HVR1700:
  474. case CX23885_BOARD_HAUPPAUGE_HVR1400:
  475. default:
  476. ts2->gen_ctrl_val = 0xc; /* Serial bus + punctured clock */
  477. ts2->ts_clk_en_val = 0x1; /* Enable TS_CLK */
  478. ts2->src_sel_val = CX23885_SRC_SEL_PARALLEL_MPEG_VIDEO;
  479. }
  480. /* Certain boards support analog, or require the avcore to be
  481. * loaded, ensure this happens.
  482. */
  483. switch (dev->board) {
  484. case CX23885_BOARD_HAUPPAUGE_HVR1800:
  485. case CX23885_BOARD_HAUPPAUGE_HVR1800lp:
  486. case CX23885_BOARD_HAUPPAUGE_HVR1700:
  487. request_module("cx25840");
  488. break;
  489. }
  490. }
  491. /* ------------------------------------------------------------------ */
  492. /*
  493. * Local variables:
  494. * c-basic-offset: 8
  495. * End:
  496. * 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
  497. */