added a do_become_nonbusy() when all the data is marked as being read (presumably...
authorFrank Mori Hess <fmhess@speakeasy.net>
Mon, 28 May 2001 03:58:36 +0000 (03:58 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Mon, 28 May 2001 03:58:36 +0000 (03:58 +0000)
being read in the conventional way

comedi/comedi_fops.c

index 76227cfe1db1bf8d9fd61fd2ebfb1bee3652a4f9..24e65adba4cf0f855b1d0e95d978e3de3cb1927d 100644 (file)
@@ -516,6 +516,9 @@ static int do_bufinfo_ioctl(comedi_device *dev,void *arg)
                        DPRINTK("buffer overrun\n");
                        return -EIO;
                }
+               if(!(s->subdev_flags&SDF_RUNNING) && async->buf_int_count==async->buf_user_count){
+                       do_become_nonbusy(dev,s);
+               }
        }
 
        comedi_spin_lock_irqsave(&bufinfo_lock, irq_flags);