Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 289218
b: refs/heads/master
c: 3ee0206
h: refs/heads/master
v: v3
  • Loading branch information
Alexandru Guduleasa authored and Greg Kroah-Hartman committed Mar 9, 2012
1 parent 5cdbf13 commit 5c49d53
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 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: fb281c2d6910b56223bcfa78e140689273727eca
refs/heads/master: 3ee0206b5e359aed4dd4f31834bac1d6ac657b5f
42 changes: 21 additions & 21 deletions trunk/drivers/staging/comedi/drivers/usbduxsigma.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Status: testing
*
*
* Revision history:
* 0.1: inital version
* 0.1: initial version
* 0.2: all basic functions implemented, digital I/O only for one port
* 0.3: proper vendor ID and driver name
* 0.4: fixed D/A voltage range
Expand Down Expand Up @@ -235,16 +235,16 @@ struct usbduxsub {
short int ao_cmd_running;
/* pwm is running */
short int pwm_cmd_running;
/* continous aquisition */
short int ai_continous;
short int ao_continous;
/* continuous acquisition */
short int ai_continuous;
short int ao_continuous;
/* number of samples to acquire */
int ai_sample_count;
int ao_sample_count;
/* time between samples in units of the timer */
unsigned int ai_timer;
unsigned int ao_timer;
/* counter between aquisitions */
/* counter between acquisitions */
unsigned int ai_counter;
unsigned int ao_counter;
/* interval in frames/uframes */
Expand Down Expand Up @@ -455,8 +455,8 @@ static void usbduxsub_ai_IsocIrq(struct urb *urb)
this_usbduxsub->ai_counter = this_usbduxsub->ai_timer;

/* test, if we transmit only a fixed number of samples */
if (!(this_usbduxsub->ai_continous)) {
/* not continous, fixed number of samples */
if (!(this_usbduxsub->ai_continuous)) {
/* not continuous, fixed number of samples */
this_usbduxsub->ai_sample_count--;
/* all samples received? */
if (this_usbduxsub->ai_sample_count < 0) {
Expand Down Expand Up @@ -607,8 +607,8 @@ static void usbduxsub_ao_IsocIrq(struct urb *urb)
/* timer zero */
this_usbduxsub->ao_counter = this_usbduxsub->ao_timer;

/* handle non continous aquisition */
if (!(this_usbduxsub->ao_continous)) {
/* handle non continuous acquisition */
if (!(this_usbduxsub->ao_continuous)) {
/* fixed number of samples */
this_usbduxsub->ao_sample_count--;
if (this_usbduxsub->ao_sample_count < 0) {
Expand Down Expand Up @@ -925,7 +925,7 @@ static int usbdux_ai_cmdtest(struct comedi_device *dev,
if (!cmd->scan_begin_src || tmp != cmd->scan_begin_src)
err++;

/* scanning is continous */
/* scanning is continuous */
tmp = cmd->convert_src;
cmd->convert_src &= TRIG_NOW;
if (!cmd->convert_src || tmp != cmd->convert_src)
Expand Down Expand Up @@ -1193,7 +1193,7 @@ static int usbdux_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s)
up(&this_usbduxsub->sem);
return -EBUSY;
}
/* set current channel of the running aquisition to zero */
/* set current channel of the running acquisition to zero */
s->async->cur_chan = 0;

/* first the number of channels per time step */
Expand Down Expand Up @@ -1261,10 +1261,10 @@ static int usbdux_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s)
if (cmd->stop_src == TRIG_COUNT) {
/* data arrives as one packet */
this_usbduxsub->ai_sample_count = cmd->stop_arg;
this_usbduxsub->ai_continous = 0;
this_usbduxsub->ai_continuous = 0;
} else {
/* continous aquisition */
this_usbduxsub->ai_continous = 1;
/* continuous acquisition */
this_usbduxsub->ai_continuous = 1;
this_usbduxsub->ai_sample_count = 0;
}

Expand Down Expand Up @@ -1586,7 +1586,7 @@ static int usbdux_ao_cmdtest(struct comedi_device *dev,
/* just now we scan also in the high speed mode every frame */
/* this is due to ehci driver limitations */
if (0) { /* (this_usbduxsub->high_speed) */
/* start immidiately a new scan */
/* start immediately a new scan */
/* the sampling rate is set by the coversion rate */
cmd->scan_begin_src &= TRIG_FOLLOW;
} else {
Expand All @@ -1596,7 +1596,7 @@ static int usbdux_ao_cmdtest(struct comedi_device *dev,
if (!cmd->scan_begin_src || tmp != cmd->scan_begin_src)
err++;

/* scanning is continous */
/* scanning is continuous */
tmp = cmd->convert_src;

/* all conversion events happen simultaneously */
Expand Down Expand Up @@ -1710,7 +1710,7 @@ static int usbdux_ao_cmd(struct comedi_device *dev, struct comedi_subdevice *s)
dev_dbg(&this_usbduxsub->interface->dev,
"comedi%d: %s\n", dev->minor, __func__);

/* set current channel of the running aquisition to zero */
/* set current channel of the running acquisition to zero */
s->async->cur_chan = 0;
for (i = 0; i < cmd->chanlist_len; ++i) {
chan = CR_CHAN(cmd->chanlist[i]);
Expand Down Expand Up @@ -1759,7 +1759,7 @@ static int usbdux_ao_cmd(struct comedi_device *dev, struct comedi_subdevice *s)
this_usbduxsub->ao_counter = this_usbduxsub->ao_timer;

if (cmd->stop_src == TRIG_COUNT) {
/* not continous */
/* not continuous */
/* counter */
/* high speed also scans everything at once */
if (0) { /* (this_usbduxsub->high_speed) */
Expand All @@ -1771,10 +1771,10 @@ static int usbdux_ao_cmd(struct comedi_device *dev, struct comedi_subdevice *s)
/* data arrives as one packet */
this_usbduxsub->ao_sample_count = cmd->stop_arg;
}
this_usbduxsub->ao_continous = 0;
this_usbduxsub->ao_continuous = 0;
} else {
/* continous aquisition */
this_usbduxsub->ao_continous = 1;
/* continuous acquisition */
this_usbduxsub->ao_continuous = 1;
this_usbduxsub->ao_sample_count = 0;
}

Expand Down

0 comments on commit 5c49d53

Please sign in to comment.