mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
iio: adc: ti-ads112c14: add support for buffered read
Add support for buffered reads using a triggered buffer. The device has a continuous conversion mode, but that can only be used with one channel at a time since there is nothing like a sequencer to support that in hardware. Instead, we use single-shot reads like we do for direct reads to be able to read multiple channels. Since CRC is always enabled, buffered reads include the CRC byte along with the raw data without verifying it. This allows userspace to perform it's own CRC verification per-sample and drop bad samples rather than failing the entire buffered read for one bad sample. Support for continuous conversion mode could be added in the future if needed. Signed-off-by: David Lechner (TI) <dlechner@baylibre.com> Signed-off-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
This commit is contained in:
parent
c6955f7de5
commit
31640de34d
1 changed files with 104 additions and 4 deletions
Loading…
Add table
Add a link
Reference in a new issue