[PATCH v2 00/18] staging: comedi: make core track the number of scans

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The comedi drivers that support async commands with a cmd->stop_src of TRIG_COUNT
currently have a private data member that is used to count the number of scans
completed in order to detect the end of acquisition for the command.

This series addes a new member, 'scans_done', to comedi_async and makes the core
automatically count the completed scans. The comedi drivers that do simple scan
counting are then converted to use the new member.

v2: update series per suggestions from Ian Abbott
    PATCH 01/18 - clamp scans_done to UINT_MAX
    PATCH 12/18 - clear devpriv->ai_cmd_running flag correctly

H Hartley Sweeten (18):
  staging: comedi: comedidev.h: add 'scans_done' member to comedi_async
  staging: comedi: addi_apci_2032: use comedi_async 'scans_done' to detect EOA
  staging: comedi: amplc_dio200_common: use comedi_async 'scans_done' to detect EOA
  staging: comedi: pcl711: use comedi_async 'scans_done' to detect EOA
  staging: comedi: pcl812: use comedi_async 'scans_done' to detect EOA
  staging: comedi: pcl816: use comedi_async 'scans_done' to detect EOA
  staging: comedi: pcl818: remove private data member 'ai_act_chan'
  staging: comedi: pcl818: use comedi_async 'scans_done' to detect EOA
  staging: comedi: adv_pci1710: use comedi_async 'scans_done' to detect EOA
  staging: comedi: pcmmio: use comedi_async 'scans_done' to detect EOA
  staging: comedi: pcmuio: use comedi_async 'scans_done' to detect EOA
  staging: comedi: s626: use comedi_async 'scans_done' to detect EOA
  staging: comedi: usbdux: use comedi_async 'scans_done' to detect AO EOA
  staging: comedi: usbdux: use comedi_async 'scans_done' to detect AI EOA
  staging: comedi: usbduxsigma: use comedi_async 'scans_done' to detect AO EOA
  staging: comedi: usbduxsigma: use comedi_async 'scans_done' to detect AI EOA
  staging: comedi: addi_apci_3120: use comedi_async 'scans_done' to detect EOA
  staging: comedi: das800: use comedi_async 'scans_done' to detect EOA

 drivers/staging/comedi/comedi_buf.c                |  1 +
 drivers/staging/comedi/comedidev.h                 |  2 +
 drivers/staging/comedi/drivers.c                   |  7 +++
 .../comedi/drivers/addi-data/hwdrv_apci3120.c      | 34 +++-----------
 drivers/staging/comedi/drivers/addi_apci_2032.c    | 17 +++----
 drivers/staging/comedi/drivers/addi_apci_3120.c    |  1 -
 drivers/staging/comedi/drivers/adv_pci1710.c       | 26 +++--------
 .../staging/comedi/drivers/amplc_dio200_common.c   | 14 ++----
 drivers/staging/comedi/drivers/das800.c            | 31 +++++--------
 drivers/staging/comedi/drivers/pcl711.c            | 16 +++----
 drivers/staging/comedi/drivers/pcl812.c            |  9 +---
 drivers/staging/comedi/drivers/pcl816.c            |  9 +---
 drivers/staging/comedi/drivers/pcl818.c            | 17 +++----
 drivers/staging/comedi/drivers/pcmmio.c            | 12 ++---
 drivers/staging/comedi/drivers/pcmuio.c            | 14 ++----
 drivers/staging/comedi/drivers/s626.c              | 16 ++-----
 drivers/staging/comedi/drivers/usbdux.c            | 51 ++++-----------------
 drivers/staging/comedi/drivers/usbduxsigma.c       | 52 ++++------------------
 18 files changed, 81 insertions(+), 248 deletions(-)

-- 
2.0.3

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel




[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux