Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 186670
b: refs/heads/master
c: 7edfa10
h: refs/heads/master
v: v3
  • Loading branch information
Ian Abbott authored and Greg Kroah-Hartman committed Mar 4, 2010
1 parent e97c59c commit 8c3f7de
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6c381c5775ea5eb799bdc790dd6d6d43fe966134
refs/heads/master: 7edfa10689615255e65909bb893fd8f8620cff92
8 changes: 6 additions & 2 deletions trunk/drivers/staging/comedi/drivers/pcl812.c
Original file line number Diff line number Diff line change
Expand Up @@ -995,7 +995,9 @@ static irqreturn_t interrupt_pcl812_ai_int(int irq, void *d)

outb(0, dev->iobase + PCL812_CLRINT); /* clear INT request */

if (s->async->cur_chan == 0) { /* one scan done */
s->async->cur_chan++;
if (s->async->cur_chan >= devpriv->ai_n_chan) { /* one scan done */
s->async->cur_chan = 0;
devpriv->ai_act_scan++;
if (!(devpriv->ai_neverending))
if (devpriv->ai_act_scan >= devpriv->ai_scans) { /* all data sampled */
Expand All @@ -1021,7 +1023,9 @@ static void transfer_from_dma_buf(struct comedi_device *dev,
for (i = len; i; i--) {
comedi_buf_put(s->async, ptr[bufptr++]); /* get one sample */

if (s->async->cur_chan == 0) {
s->async->cur_chan++;
if (s->async->cur_chan >= devpriv->ai_n_chan) {
s->async->cur_chan = 0;
devpriv->ai_act_scan++;
if (!devpriv->ai_neverending)
if (devpriv->ai_act_scan >= devpriv->ai_scans) { /* all data sampled */
Expand Down

0 comments on commit 8c3f7de

Please sign in to comment.