diff options
author | Shaun Ruffell <sruffell@digium.com> | 2008-07-09 21:27:07 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2008-07-09 21:27:07 +0000 |
commit | e08995ee066063a3db960046bc5b6c0543db0444 (patch) | |
tree | b443b0f1d59c3d24db6186938ffc042dbf6d4c06 /include | |
parent | 567a9becaa5e865726c9185c2eabfc14d902dc97 (diff) |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/dahdi/kernel.h | 7 |
1 files changed, 5 insertions, 2 deletions
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 */ |