[dahdi-commits] rmeyerriecks: branch linux/mspiceland/dahdi-qfalc31 r7776 - /linux/team/mspic...

SVN commits to the DAHDI project dahdi-commits at lists.digium.com
Fri Jan 8 09:41:34 CST 2010


Author: rmeyerriecks
Date: Fri Jan  8 09:41:30 2010
New Revision: 7776

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=7776
Log:
wct4xxp: Added some verbosity to the SCLK selection code.


Modified:
    linux/team/mspiceland/dahdi-qfalc31/drivers/dahdi/wct4xxp/base.c

Modified: linux/team/mspiceland/dahdi-qfalc31/drivers/dahdi/wct4xxp/base.c
URL: http://svnview.digium.com/svn/dahdi/linux/team/mspiceland/dahdi-qfalc31/drivers/dahdi/wct4xxp/base.c?view=diff&rev=7776&r1=7775&r2=7776
==============================================================================
--- linux/team/mspiceland/dahdi-qfalc31/drivers/dahdi/wct4xxp/base.c (original)
+++ linux/team/mspiceland/dahdi-qfalc31/drivers/dahdi/wct4xxp/base.c Fri Jan  8 09:41:30 2010
@@ -1787,14 +1787,19 @@
 
 static void __t4_set_sclk_src(struct t4 *wc, int mode, int master, int slave)
 {
-	if (slave)
+	if (slave) {
 		wc->dmactrl |= (1 << 25);
-	else
+		dev_info(&wc->dev->dev, "SCLK is slaved to timing cable\n");
+	} else {
 		wc->dmactrl &= ~(1 << 25);
-	if (master)
+	}
+
+	if (master) {
 		wc->dmactrl |= (1 << 24);
-	else
+		dev_info(&wc->dev->dev, "SCLK is master to timing cable\n");
+	} else {
 		wc->dmactrl &= ~(1 << 24);
+	}
 
 	if (mode == WC_RECOVER)
 		wc->dmactrl |= (1 << 29); /* Recover timing from RCLK */
@@ -1803,7 +1808,6 @@
 		wc->dmactrl &= ~(1 << 29);/* Provide timing from MCLK */
 
 	__t4_pci_out(wc, WC_DMACTRL, wc->dmactrl);
-	dev_info(&wc->dev->dev, "SCLK source (dmactrl) %#o\n", wc->dmactrl);
 }
 
 static inline void __t4_update_timing(struct t4 *wc)




More information about the dahdi-commits mailing list