H Hartley Sweeten
ceb41be712
staging: comedi: pcl816: fix short DMA transactions
...
When the cmd->stop_src == TRIG_COUNT the last DMA transfer might be smaller
than the buffer size. This results in invalid data being added to the async
buffer.
Add a 'size' member to the DMA descriptor and initialize it with the
actual size of the DMA transfer. Use that in interrupt and ai subdevice
(*poll) function to return the proper number of samples. Use the
comedi_bytes_to_samples() helper to convert the byte size to comedi
samples in the interrupt handler.
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 >
2015-01-17 14:25:21 -08:00
..
2014-12-19 14:02:02 -08:00
2014-12-14 16:43:47 -08:00
2014-12-18 20:28:33 -08:00
2014-12-14 16:10:09 -08:00
2014-12-18 20:28:33 -08:00
2014-12-11 17:56:37 -08:00
2014-12-17 16:03:12 -08:00
2014-12-15 13:23:09 -05:00
2014-12-14 16:10:09 -08:00
2014-12-25 16:04:15 -08:00
2014-12-20 16:42:36 -08:00
2014-12-11 17:56:37 -08:00
2014-12-19 12:56:15 -08:00
2014-12-19 12:57:45 -08:00
2014-12-14 16:10:09 -08:00
2014-12-14 16:10:09 -08:00
2014-12-14 16:10:09 -08:00
2014-12-14 16:43:47 -08:00
2014-12-10 20:53:21 +01:00
2014-12-14 16:10:09 -08:00
2014-12-14 16:10:09 -08:00
2014-12-24 13:13:22 +10:00
2014-12-12 10:26:47 -08:00
2014-12-15 17:33:47 -08:00
2014-12-14 16:43:47 -08:00
2014-12-17 10:16:27 -08:00
2014-12-20 13:52:52 -08:00
2014-12-14 16:10:09 -08:00
2014-12-15 18:06:13 -08:00
2014-12-20 13:42:57 -08:00
2014-12-17 10:06:02 -08:00
2014-12-19 14:02:02 -08:00
2014-12-15 17:30:09 -08:00
2014-12-12 10:08:06 -08:00
2014-12-18 20:28:33 -08:00
2014-12-09 16:32:32 +02:00
2014-12-19 19:32:47 +01:00
2014-12-14 16:10:09 -08:00
2014-12-17 12:31:13 -05:00
2014-12-18 20:28:33 -08:00
2014-12-17 09:59:26 -08:00
2014-12-14 16:10:09 -08:00
2014-12-19 12:57:45 -08:00
2014-12-18 20:28:33 -08:00
2014-12-17 09:59:26 -08:00
2014-12-18 20:10:44 -08:00
2014-12-18 20:28:33 -08:00
2014-12-16 14:53:01 -08:00
2014-12-14 16:43:47 -08:00
2014-12-19 14:02:02 -08:00
2014-12-14 16:43:47 -08:00
2014-12-18 20:28:33 -08:00
2014-12-14 16:10:09 -08:00
2014-12-18 20:24:55 -08:00
2014-12-18 20:28:33 -08:00
2014-12-17 10:10:51 -08:00
2014-12-14 16:10:09 -08:00
2014-12-14 16:10:09 -08:00
2014-12-14 16:10:09 -08:00
2014-12-14 16:10:09 -08:00
2014-12-14 16:10:09 -08:00
2014-12-20 13:42:57 -08:00
2014-12-05 03:08:24 +01:00
2014-12-15 15:52:01 -08:00
2014-12-19 15:25:31 +01:00
2014-12-11 17:56:37 -08:00
2015-01-17 14:25:21 -08:00
2014-12-20 13:42:57 -08:00
2014-12-19 13:29:20 -08:00
2014-12-19 15:27:58 +01:00
2014-12-14 16:43:47 -08:00
2014-12-20 13:42:57 -08:00
2014-12-17 10:44:22 -08:00
2014-12-18 20:50:30 -08:00
2014-12-18 20:28:33 -08:00
2014-12-18 20:50:30 -08:00
2014-12-14 16:43:47 -08:00
2014-12-18 16:01:20 +01:00
2014-12-18 05:56:29 -08:00
2014-12-15 18:06:13 -08:00
2014-12-15 18:06:13 -08:00