Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 56060
b: refs/heads/master
c: 4d84517
h: refs/heads/master
v: v3
  • Loading branch information
holger@muscate-magnussen.de authored and Mauro Carvalho Chehab committed May 9, 2007
1 parent 8a58242 commit 56cea65
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ba70d59bb987110c4394e896b299f9726609aa33
refs/heads/master: 4d8451700171d6bbc254191880f86bfdeec2f74f
8 changes: 8 additions & 0 deletions trunk/drivers/media/dvb/pluto2/pluto2.c
Original file line number Diff line number Diff line change
Expand Up @@ -293,12 +293,20 @@ static void pluto_dma_end(struct pluto *pluto, unsigned int nbpackets)
* but no packets have been transfered.
* [2] Sometimes (actually very often) NBPACKETS stays at zero
* although one packet has been transfered.
* [3] Sometimes (actually rarely), the card gets into an erroneous
* mode where it continuously generates interrupts, claiming it
* has recieved nbpackets>TS_DMA_PACKETS packets, but no packet
* has been transfered. Only a reset seems to solve this
*/
if ((nbpackets == 0) || (nbpackets > TS_DMA_PACKETS)) {
unsigned int i = 0;
while (pluto->dma_buf[i] == 0x47)
i += 188;
nbpackets = i / 188;
if (i == 0) {
pluto_reset_ts(pluto, 1);
dev_printk(KERN_DEBUG, &pluto->pdev->dev, "resetting TS because of invalid packet counter\n");
}
}

dvb_dmx_swfilter_packets(&pluto->demux, pluto->dma_buf, nbpackets);
Expand Down

0 comments on commit 56cea65

Please sign in to comment.