summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/cx88/cx88-mpeg.c
diff options
context:
space:
mode:
authorGerd Knorr <devnull@localhost>2004-07-30 15:26:01 +0000
committerGerd Knorr <devnull@localhost>2004-07-30 15:26:01 +0000
commit12994bfc905a0bb9f5ba354f7d11278d39dbc26b (patch)
treeb7d7759f48f2cdb9043b34a55be47e0afd6f250e /linux/drivers/media/video/cx88/cx88-mpeg.c
parent4df008f985ce28551d586721818b7a7a00b8b1dd (diff)
downloadmediapointer-dvb-s2-12994bfc905a0bb9f5ba354f7d11278d39dbc26b.tar.gz
mediapointer-dvb-s2-12994bfc905a0bb9f5ba354f7d11278d39dbc26b.tar.bz2
- cx88: started going over the blackbird code.
Diffstat (limited to 'linux/drivers/media/video/cx88/cx88-mpeg.c')
-rw-r--r--linux/drivers/media/video/cx88/cx88-mpeg.c22
1 files changed, 20 insertions, 2 deletions
diff --git a/linux/drivers/media/video/cx88/cx88-mpeg.c b/linux/drivers/media/video/cx88/cx88-mpeg.c
index d05e925c4..9d92fce36 100644
--- a/linux/drivers/media/video/cx88/cx88-mpeg.c
+++ b/linux/drivers/media/video/cx88/cx88-mpeg.c
@@ -1,5 +1,5 @@
/*
- * $Id: cx88-mpeg.c,v 1.3 2004/07/30 13:43:39 kraxel Exp $
+ * $Id: cx88-mpeg.c,v 1.4 2004/07/30 15:26:01 kraxel Exp $
*
* Support for the mpeg transport stream transfers
* PCI function #2 of the cx2388x.
@@ -68,7 +68,7 @@ int cx8802_start_dma(struct cx8802_dev *dev,
cx88_sram_channel_setup(core, &cx88_sram_channels[SRAM_CH28],
PACKET_SIZE, buf->risc.dma);
-#if 0 /* from DVB -- for transport streams only? */
+#if 0 /* config stuff from DVB */
/* Setup TS portion of chip */
cx_write(TS_GEN_CNTRL, 0x0c);
@@ -76,6 +76,24 @@ int cx8802_start_dma(struct cx8802_dev *dev,
cx_write(MO_TS_LNGTH, buf->bpl);
#endif
+#if 0 /* config stuff for from blackbird ... */
+ cx_write(MO_PINMUX_IO, 0x88); /* enable MPEG parallel IO */
+
+
+ cx_write(TS_F2_CMD_STAT_MM, 0x2900106); /* F2_CMD_STAT_MM defaults + master + memory space */
+ cx_write(TS_GEN_CNTRL, 0x46); /* punctured clock TS & posedge driven & software reset */
+ cx_write(MO_TS_LNGTH, MD_TS_LNGHT_VAL);
+
+ udelay(100);
+
+ cx_write(TS_HW_SOP_CNTRL, 0x408); /* mpeg start byte */
+ //cx_write(TS_HW_SOP_CNTRL, 0x2F0BC0); /* mpeg start byte ts: 0x2F0BC0 ? */
+ cx_write(TS_VALERR_CNTRL, 0x2000);
+
+ cx_write(TS_GEN_CNTRL, 0x06); /* punctured clock TS & posedge driven */
+ udelay(100);
+#endif
+
/* reset counter */
cx_write(MO_TS_GPCNTRL, GP_COUNT_CONTROL_RESET);
q->count = 1;