From 1d074e65787208c9ea60db89b3ee505dfb70eb04 Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Wed, 9 Jul 2008 21:27:07 +0000 Subject: Saving off some work in progress on half-full buffering. Still needs a method for dumping half the buffer on tx overrun from the user side. Also, the behavior of half-full on the rx side has not been checked. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4589 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- include/dahdi/kernel.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'include/dahdi') diff --git a/include/dahdi/kernel.h b/include/dahdi/kernel.h index b2ac0ff..d76ab32 100644 --- a/include/dahdi/kernel.h +++ b/include/dahdi/kernel.h @@ -157,8 +157,11 @@ #define DAHDI_DEFAULT_BLOCKSIZE 1024 #define DAHDI_DEFAULT_MTR_MRU 2048 -#define DAHDI_POLICY_IMMEDIATE 0 /* Start play/record immediately */ -#define DAHDI_POLICY_WHEN_FULL 1 /* Start play/record when buffer is full */ +#define DAHDI_POLICY_IMMEDIATE 0 /* Start play/record immediately */ +#define DAHDI_POLICY_WHEN_FULL 1 /* Start play/record when buffer is full */ +#define DAHDI_POLICY_HALF_FULL 2 /* ...and when buffer is half full. */ + +#define DAHDI_POLICY_DEFAULT DAHDI_POLICY_HALF_FULL #define RING_DEBOUNCE_TIME 2000 /* 2000 ms ring debounce time */ -- cgit v1.2.3