UBUNTU: SAUCE: staging: comedi: Add kernel config for default buffer sizes
[linux-flexiantxendom0.git] / drivers / staging / comedi / Kconfig
index 4c77e50..661f520 100644 (file)
@@ -14,6 +14,26 @@ config COMEDI_DEBUG
          This is an option for use by developers; most people should
          say N here. This enables comedi core and driver debugging.
 
+config COMEDI_DEFAULT_BUF_SIZE_KB
+       int "Comedi default initial asynchronous buffer size in KiB"
+       default "2048"
+       depends on COMEDI != n
+       ---help---
+         This is the default asynchronous buffer size which is used for
+         commands running in the background in kernel space.  This
+         defaults to 2048 KiB of memory so that a 16 channel card
+         running at 10 kHz has of 2-4 seconds of buffer.
+
+config COMEDI_DEFAULT_BUF_MAXSIZE_KB
+       int "Comedi default maximum asynchronous buffer size in KiB"
+       default "20480"
+       depends on COMEDI != n
+       ---help---
+         This is the default maximum asynchronous buffer size which can
+         be requested by a userspace program without root privileges.
+         This is set to 20480 KiB so that a fast I/O card with 16
+         channels running at 100 kHz has 2-4 seconds of buffer.
+
 menuconfig COMEDI_MISC_DRIVERS
        tristate "Comedi misc drivers"
        depends on COMEDI