diff options
| author | H Hartley Sweeten <hsweeten@visionengravers.com> | 2015-01-26 16:17:20 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-01-28 11:14:04 -0800 |
| commit | 1dc6e72903f6dbefd79ea2e9ce9c9e536e4e695b (patch) | |
| tree | dbcd43b33090adc595dafcbde16fac26bd048fc8 /tools/perf/scripts/python | |
| parent | 42c44682a59a6ea38a301c20a4ec807c6fabdd02 (diff) | |
staging: comedi: das16: fix DMA size for short transfers
Currently this driver alwasy programs the DMA transfer to be the allocated
size of the DMA buffer. When the async command 'stop_src' is TRIG_COUNT its
possible (likely) for the last transfer to be less than the buffer size.
Introduce a helper function, das16_ai_setup_dma(), to calculate the actual
size of the DMA transfer based on the number of samples remaining and the
number of unread samples.
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>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
