From 87963845a1bdb22e2ae6a74465a5a6408b1c0b0d Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Mon, 1 Mar 2010 23:15:49 +0000 Subject: 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 --- include/dahdi/kernel.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/dahdi') 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 -- cgit v1.2.3