[dahdi-commits] sruffell: branch linux/sruffell/wctdm24xxp-updates r10124 - /linux/team/sruff...
    SVN commits to the DAHDI project 
    dahdi-commits at lists.digium.com
       
    Fri Aug 12 19:35:58 CDT 2011
    
    
  
Author: sruffell
Date: Fri Aug 12 19:35:55 2011
New Revision: 10124
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=10124
Log:
wctdm24xxp: Reset the polarity debounce setting when battery is lost.
Wait until we have de-bounced the presence of battery before moving on the
check for changes in polarity. This removes the sometimes random
polarity messages generated on an FXO port when the far side drops
battery from a supervisor disconnect.
Signed-off-by: Shaun Ruffell <sruffell at digium.com>
Modified:
    linux/team/sruffell/wctdm24xxp-updates/drivers/dahdi/wctdm24xxp/base.c
Modified: linux/team/sruffell/wctdm24xxp-updates/drivers/dahdi/wctdm24xxp/base.c
URL: http://svnview.digium.com/svn/dahdi/linux/team/sruffell/wctdm24xxp-updates/drivers/dahdi/wctdm24xxp/base.c?view=diff&rev=10124&r1=10123&r2=10124
==============================================================================
--- linux/team/sruffell/wctdm24xxp-updates/drivers/dahdi/wctdm24xxp/base.c (original)
+++ linux/team/sruffell/wctdm24xxp-updates/drivers/dahdi/wctdm24xxp/base.c Fri Aug 12 19:35:55 2011
@@ -1958,6 +1958,9 @@
 		   battery present or unknown, no debounce timer
 		   battery present or unknown, debounce timer (going to battery lost)
 		*/
+
+		fxo->lastpol = fxo->polarity;
+		fxo->polaritydebounce = 0;
 
 		if (fxo->battery == BATTERY_LOST) {
 			if (fxo->battdebounce) {
    
    
More information about the dahdi-commits
mailing list