]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
staging: comedi: addi_apci_3120: switch DMA buffers after writing samples
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 4 Nov 2014 17:55:30 +0000 (10:55 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Nov 2014 17:34:05 +0000 (09:34 -0800)
commitf50205f0478c35d9d6f3cc3e315ccdfcdaba17e4
tree1aa874c777b9b488176ed0d71b5ecc34fd5431d5
parenta93a0e9a30e7702229f68e516dc270507159f23b
staging: comedi: addi_apci_3120: switch DMA buffers after writing samples

Currently the DMA buffers are switched before writing the current samples to
the async buffer. This works but when the EOA event happens we end up with an
outstanding DMA operation in progress that gets terminated by the (*cancel).

Avoid the outstanding DMA operation by switching the DMA buffers after writing
the samples. The driver will detect the EOA event and not retart the DMA.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/addi_apci_3120.c