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 | |
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')
-rw-r--r-- | include/dahdi/kernel.h | 4 | ||||
-rw-r--r-- | include/dahdi/user.h | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/include/dahdi/kernel.h b/include/dahdi/kernel.h index 738cb0f..47139e5 100644 --- a/include/dahdi/kernel.h +++ b/include/dahdi/kernel.h @@ -139,6 +139,10 @@ struct dahdi_chan { int do_ppp_error; struct sk_buff_head ppp_rq; #endif +#ifdef BUFFER_DEBUG + int statcount; + int lastnumbufs; +#endif spinlock_t lock; char name[40]; /* Specified by DAHDI */ 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 |