Commit cf1ef174 authored by md's avatar md

Unify kernel buffer size to 4 kB and introduce patch for cx88-based DVB cards.


git-svn-id: svn://svn.videolan.org/dvblast/trunk@149 55d3f8b6-4a41-4d2d-a900-313d1436a5b8
parent f76400cc
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
port->ts_packet_size = 188 * 4; port->ts_packet_size = 188 * 4;
- port->ts_packet_count = 32; - port->ts_packet_count = 32;
+ port->ts_packet_count = 4; + port->ts_packet_count = 5;
*size = port->ts_packet_size * port->ts_packet_count; *size = port->ts_packet_size * port->ts_packet_count;
*count = 32; *count = 32;
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
} }
saa7146_write(dev, PROT_ADDR3, budget->buffer_size); saa7146_write(dev, PROT_ADDR3, budget->buffer_size);
- saa7146_write(dev, BASE_PAGE3, budget->pt.dma | ME1 | 0x90); - saa7146_write(dev, BASE_PAGE3, budget->pt.dma | ME1 | 0x90);
+ saa7146_write(dev, BASE_PAGE3, budget->pt.dma | ME1 | 0x60); + saa7146_write(dev, BASE_PAGE3, budget->pt.dma | ME1 | 0x50);
saa7146_write(dev, PITCH3, budget->buffer_width); saa7146_write(dev, PITCH3, budget->buffer_width);
saa7146_write(dev, NUM_LINE_BYTE3, saa7146_write(dev, NUM_LINE_BYTE3,
--- linux/drivers/media/video/cx88/cx88-dvb.c.orig 2010-02-22 14:58:43.000000000 +0100
+++ linux/drivers/media/video/cx88/cx88-dvb.c 2010-07-09 11:15:12.000000000 +0200
@@ -80,7 +80,7 @@
struct cx8802_dev *dev = q->priv_data;
dev->ts_packet_size = 188 * 4;
- dev->ts_packet_count = 32;
+ dev->ts_packet_count = 5;
*size = dev->ts_packet_size * dev->ts_packet_count;
*count = 32;
...@@ -5,5 +5,5 @@ These kernel patches are designed to dramatically improve the latency ...@@ -5,5 +5,5 @@ These kernel patches are designed to dramatically improve the latency
between the DVB card and DVBlast's output, especially on low symbol rate between the DVB card and DVBlast's output, especially on low symbol rate
transponders, at the expense of a slightly higher CPU consumption. transponders, at the expense of a slightly higher CPU consumption.
Basically they decrease the size of the transmission buffers from the card, Basically they decrease the size of the transmission buffers from the card
so that TS packets are handled more frequently. to 4 kB, so that TS packets are handled more frequently.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment