[zaptel-commits] kpfleming: branch 1.2 r1535 - /branches/1.2/wctdm24xxp.c

zaptel-commits at lists.digium.com zaptel-commits at lists.digium.com
Wed Oct 25 17:00:31 MST 2006


Author: kpfleming
Date: Wed Oct 25 19:00:31 2006
New Revision: 1535

URL: http://svn.digium.com/view/zaptel?rev=1535&view=rev
Log:
do ProSLIC 3215 check properly in this driver too

Modified:
    branches/1.2/wctdm24xxp.c

Modified: branches/1.2/wctdm24xxp.c
URL: http://svn.digium.com/view/zaptel/branches/1.2/wctdm24xxp.c?rev=1535&r1=1534&r2=1535&view=diff
==============================================================================
--- branches/1.2/wctdm24xxp.c (original)
+++ branches/1.2/wctdm24xxp.c Wed Oct 25 19:00:31 2006
@@ -1498,10 +1498,10 @@
 		printk("ProSLIC 3210 version %d is too old\n", blah & 0xf);
 		return -1;
 	}
-	if ((blah & 0xf) == 2) {
+	if (wctdm_getreg(wc, card, 1) & 0x80)
 		/* ProSLIC 3215, not a 3210 */
 		wc->flags[card] |= FLAG_3215;
-	}
+
 	blah = wctdm_getreg(wc, card, 8);
 	if (blah != 0x2) {
 		printk("ProSLIC on module %d insane (1) %d should be 2\n", card, blah);



More information about the zaptel-commits mailing list