summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ddennedy 2005-07-04 04:04:22 +0000
committerGravatar ddennedy 2005-07-04 04:04:22 +0000
commita51052f41b164c285f91f4b48724e1fc2d125637 (patch)
tree129fc4cf5ce3c7eae2ab786877e7eab0b2ae56e3
parentadd sanity check to queuing of packets in rawiso xmit (diff)
Fix raw1394_iso_xmit_write() to work with recent kernel change to raw1394
to fix bug with stalling on buffer underrun. git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@160 53a565d1-3bb7-0310-b661-cf11e63c67ab
-rw-r--r--src/iso.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/iso.c b/src/iso.c
index 914b3ec..76ba13a 100644
--- a/src/iso.c
+++ b/src/iso.c
@@ -363,7 +363,7 @@ int raw1394_iso_xmit_write(raw1394handle_t handle, unsigned char *data, unsigned
}
/* wait until buffer space is available */
- while(handle->iso_status.n_packets == 0) {
+ while(handle->iso_status.n_packets <= 1) {
/* if the file descriptor has been set non-blocking,
return immediately */
if(fcntl(handle->fd, F_GETFL) & O_NONBLOCK) {
ar.com/avatar/2fce9f8dd90949315d789a6546dfacd0?s=13&d=retro' width='13' height='13' alt='Gravatar' /> bencollins 3-37/+125 2003-01-15add iso_xmit_sync() and iso_xmit_write(); clean up iso handling a bitGravatar dmaas 5-39/+161 2003-01-15implement tag matching for rawiso receptionGravatar dmaas 3-4/+12 2003-01-06back out previous commit - don't drop the legacy API just yetGravatar dmaas 6-173/+130 2003-01-05emulate legacy ISO reception API on top of new rawiso APIGravatar dmaas 7-131/+174 2002-12-24update iso API for multi-channel reception and new packet buffer layoutGravatar dmaas 4-123/+236 2002-12-20oops, irq_interval needs to be signedGravatar anonymous 1-1/+1 2002-12-20dmaas - renamed exported arm definitions into the raw1394_ namespace; brought...Gravatar anonymous 3-124/+48 2002-12-16rawiso updates:Gravatar dmaas 3-18/+25 2002-11-18fix cplusplus extern C blockGravatar ddennedy 1-4/+4 2002-11-18merged rawiso branchGravatar ddennedy 7-6/+488