summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormartinp <martinp@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2003-07-03 15:19:16 +0000
committermartinp <martinp@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2003-07-03 15:19:16 +0000
commit1415cc3356fe350ffe8078fb3aa1b27b491336e6 (patch)
tree043daedb7ffdf2574932fe20956ef0e5e6bb11d0
parent084c0bbe666e6bcc9079b729f086a2b07226de33 (diff)
Allow to choose not to calibrate the TDM400P in the Makefile (fix for the "ProSlic died on Calibration" error)
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@208 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rwxr-xr-xMakefile3
-rwxr-xr-xwcfxs.c2
-rwxr-xr-xwctdm.c2
3 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 28af362..aaf77e5 100755
--- a/Makefile
+++ b/Makefile
@@ -25,6 +25,9 @@ KFLAGS+=$(shell if uname -m | grep -q ppc; then echo "-msoft-float -fsigned-char
#
# Features
#
+# Take out calibration
+#KFLAGS+=-DNO_CALIBRATION
+#KFLAGS+=-DNO_DCDC
#
# Define CONFIG_CALC_XLAW if you have a small number of channels and/or
# a small level 2 cache, to optimize for few channels
diff --git a/wcfxs.c b/wcfxs.c
index 1d924ac..8df338a 100755
--- a/wcfxs.c
+++ b/wcfxs.c
@@ -720,7 +720,7 @@ static int wcfxs_init_proslic(struct wcfxs *wc, int card)
printk("Unable to do FINAL ProSLIC powerup on module %d\n", card);
return -1;
}
-#if 1
+#ifndef NO_CALIBRATION
/* Perform calibration */
if (wcfxs_calibrate(wc, card)) {
printk("ProSlic died on Calibration.\n");
diff --git a/wctdm.c b/wctdm.c
index 1d924ac..8df338a 100755
--- a/wctdm.c
+++ b/wctdm.c
@@ -720,7 +720,7 @@ static int wcfxs_init_proslic(struct wcfxs *wc, int card)
printk("Unable to do FINAL ProSLIC powerup on module %d\n", card);
return -1;
}
-#if 1
+#ifndef NO_CALIBRATION
/* Perform calibration */
if (wcfxs_calibrate(wc, card)) {
printk("ProSlic died on Calibration.\n");