diff options
author | Matthew Fredrickson <creslin@digium.com> | 2008-12-19 21:14:00 +0000 |
---|---|---|
committer | Matthew Fredrickson <creslin@digium.com> | 2008-12-19 21:14:00 +0000 |
commit | dda189e53d42ea8e1cc6396eeefdb95f67eb759a (patch) | |
tree | 63b892e59814ac5e38e5827f0eb983370574ecb2 /include/dahdi/user.h | |
parent | 34860cc9bf9af24623341dd51e3bcbbf0486815b (diff) |
Add support for new half full buffer policy. This significantly improves performance in fax and data modem calls.
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5597 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'include/dahdi/user.h')
-rw-r--r-- | include/dahdi/user.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/dahdi/user.h b/include/dahdi/user.h index ff86589..2e4615e 100644 --- a/include/dahdi/user.h +++ b/include/dahdi/user.h @@ -110,7 +110,7 @@ #define DAHDI_MAX_BLOCKSIZE 8192 #define DAHDI_DEFAULT_NUM_BUFS 2 -#define DAHDI_MAX_NUM_BUFS 32 +#define DAHDI_MAX_NUM_BUFS 128 #define DAHDI_MAX_BUF_SPACE 32768 #define DAHDI_DEFAULT_BLOCKSIZE 1024 @@ -118,6 +118,8 @@ #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 /* Start play/record when buffer is half full. + Note -- This policy only works on tx buffers */ #define DAHDI_GET_PARAMS_RETURN_MASTER 0x40000000 |