Thread: [Linux1394-cvslog] rev 838 - trunk
Brought to you by:
aeb,
bencollins
From: SVN U. <dm...@li...> - 2003-03-14 06:41:05
|
Author: dmaas Date: 2003-03-14 01:40:24 -0500 (Fri, 14 Mar 2003) New Revision: 838 Modified: trunk/ohci1394.c Log: ohci1394 rawiso: fix calculation of block_irq_interval Thanks to Alberto Perez and Steve Kinneberg. Modified: trunk/ohci1394.c ============================================================================== --- trunk/ohci1394.c (original) +++ trunk/ohci1394.c 2003-03-14 01:40:25.000000000 -0500 @@ -1190,10 +1190,11 @@ /* iso->irq_interval is in packets - translate that to blocks */ /* (err, sort of... 1 is always the safest value) */ recv->block_irq_interval = iso->irq_interval / recv->nblocks; + if(recv->block_irq_interval*4 > recv->nblocks) + recv->block_irq_interval = recv->nblocks/4; if(recv->block_irq_interval < 1) recv->block_irq_interval = 1; - else if(recv->block_irq_interval*4 > recv->nblocks) - recv->block_irq_interval = recv->nblocks/4; + } else { int max_packet_size; |