diff options
author | Shaun Ruffell <sruffell@digium.com> | 2010-03-01 23:15:49 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2010-03-01 23:15:49 +0000 |
commit | 87963845a1bdb22e2ae6a74465a5a6408b1c0b0d (patch) | |
tree | 8f3e19d8845634cd308830f413a610d63e9d84cc /include | |
parent | 1c41783269827f7bbbd65d62f96037eefda9398e (diff) |
wctdm24xxp, wcte12xp: Add optional module parameter to set the maximum latency.
Setting the maximum latency can be useful if you have a system event that
normally causes a latency increase, but you would rather have a break in the
audio or frame slip, then let the latency grow to the current default maximum
which is 25ms. DAHDI-278.
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@8198 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'include')
-rw-r--r-- | include/dahdi/kernel.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/dahdi/kernel.h b/include/dahdi/kernel.h index 3f1bc54..0e98819 100644 --- a/include/dahdi/kernel.h +++ b/include/dahdi/kernel.h @@ -1185,6 +1185,8 @@ static inline short dahdi_txtone_nextsample(struct dahdi_chan *ss) #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 31) #define KERN_CONT "" +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 26) +#define clamp(x, low, high) min (max (low, x), high) #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 25) /* Some distributions backported fatal_signal_pending so we'll use a macro to @@ -1222,6 +1224,7 @@ wait_for_completion_timeout(struct completion *x, unsigned long timeout) #endif /* 2.6.14 */ #endif /* 2.6.18 */ #endif /* 2.6.25 */ +#endif /* 2.6.26 */ #endif /* 2.6.31 */ #ifndef DMA_BIT_MASK |