[zaptel-commits] tzafrir: branch 1.2 r3230 - in /branches/1.2/xpp: ./ utils/

SVN commits to the Zaptel project zaptel-commits at lists.digium.com
Wed Nov 14 08:55:43 CST 2007


Author: tzafrir
Date: Wed Nov 14 08:55:43 2007
New Revision: 3230

URL: http://svn.digium.com/view/zaptel?view=rev&rev=3230
Log:
Improve (reduce) signal attenuation on FXO ports.

Modified:
    branches/1.2/xpp/init_card_4_29
    branches/1.2/xpp/utils/print_modes.c

Modified: branches/1.2/xpp/init_card_4_29
URL: http://svn.digium.com/view/zaptel/branches/1.2/xpp/init_card_4_29?view=diff&rev=3230&r1=3229&r2=3230
==============================================================================
--- branches/1.2/xpp/init_card_4_29 (original)
+++ branches/1.2/xpp/init_card_4_29 Wed Nov 14 08:55:43 2007
@@ -141,8 +141,8 @@
 	echo "$i WD 20 A0"
 done
 
-# based on fxo_modes from wctdm.c . TODO: more decent calculation?
-reg16=00; reg26=00; reg30=00; reg31=A3; ring_osc=; ring_x=;
+# based on fxo_modes from wctdm.c . 
+reg16=00; reg26=00; reg30=00; reg31=20; ring_osc=; ring_x=;
 mode="$opermode"
 if [ -r $INIT_DIR/init_fxo_modes ]; then
 	. $INIT_DIR/init_fxo_modes

Modified: branches/1.2/xpp/utils/print_modes.c
URL: http://svn.digium.com/view/zaptel/branches/1.2/xpp/utils/print_modes.c?view=diff&rev=3230&r1=3229&r2=3230
==============================================================================
--- branches/1.2/xpp/utils/print_modes.c (original)
+++ branches/1.2/xpp/utils/print_modes.c Wed Nov 14 08:55:43 2007
@@ -8,7 +8,7 @@
 	printf("case \"$mode\" in\n");
 	for (i=0; i<(sizeof(fxo_modes)/sizeof(struct fxo_mode)); i++) {
 		if (fxo_modes[i].name == NULL) break;
-		int reg16=0, reg26=0, reg30=0, reg31=0xa3;
+		int reg16=0, reg26=0, reg30=0, reg31=0x20;
 		char ring_osc[BUFSIZ]="", ring_x[BUFSIZ] = "";
 		
 		reg16 |= (fxo_modes[i].ohs << 6);




More information about the zaptel-commits mailing list