]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: ni_mio_common: adds finite regeneration to AO output
authorSpencer E. Olson <olsonse@umich.edu>
Wed, 27 Jan 2016 21:28:28 +0000 (14:28 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Feb 2016 02:38:08 +0000 (18:38 -0800)
commite5604aaa0f795d05149d15d91c8d042bdc8cd3f9
treeff4ec8063c672aa4b377e1eadb84ad6ddd0ac256
parent66b70b8ca2ad8e4e6183022c086d09934d3111a4
staging: comedi: ni_mio_common: adds finite regeneration to AO output

This patch implements for analog output the reinterpretation of stop_arg
when stop_src == TRIG_NONE to allow the user to specify the length of the
buffer that should be repeated.  The intent is to allow a user to have a
specific buffer repeated as-is indefinitely.  The contents of the DMA
buffer can be left static or changed by the user via mmap access to the DMA
buffer.  If the contents are changed by the user, additional munging is not
performed by the driver and only a single call to
comedi_mark_buffer_written should be done.

Signed-off-by: Spencer E. Olson <olsonse@umich.edu>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/ni_mio_common.c