diff options
author | 2015-01-26 16:17:20 -0700 | |
---|---|---|
committer | 2015-01-28 11:14:04 -0800 | |
commit | 1dc6e72903f6dbefd79ea2e9ce9c9e536e4e695b (patch) | |
tree | dbcd43b33090adc595dafcbde16fac26bd048fc8 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | staging: comedi: das16: use comedi_async 'scans_done' to detect EOA (diff) | |
download | linux-dev-1dc6e72903f6dbefd79ea2e9ce9c9e536e4e695b.tar.xz linux-dev-1dc6e72903f6dbefd79ea2e9ce9c9e536e4e695b.zip |
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/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions