[svn-commits] dbailey: trunk r3299 - /trunk/zaptel.h
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Tue Dec 4 15:01:06 CST 2007
Author: dbailey
Date: Tue Dec 4 15:01:05 2007
New Revision: 3299
URL: http://svn.digium.com/view/zaptel?view=rev&rev=3299
Log:
add ioctl call for setting hardware gains at the port interface IC
Modified:
trunk/zaptel.h
Modified: trunk/zaptel.h
URL: http://svn.digium.com/view/zaptel/trunk/zaptel.h?view=diff&rev=3299&r1=3298&r2=3299
==============================================================================
--- trunk/zaptel.h (original)
+++ trunk/zaptel.h Tue Dec 4 15:01:05 2007
@@ -326,6 +326,10 @@
char echo_canceller[80];
};
+struct zt_hwgain{
+ int newgain; /* desired gain in dB but x10. -3.5dB would be -35 */
+ int tx:1; /* 0=rx; 1=tx */
+};
/* ioctl definitions */
#define ZT_CODE 'J'
@@ -629,6 +633,11 @@
* transmitted back on the interface)
*/
#define ZT_LOOPBACK _IOW(ZT_CODE, 58, int)
+
+/*
+ * Set the HW gain for a device
+ */
+#define ZT_SET_HWGAIN _IOW (ZT_CODE, 86, struct zt_hwgain)
/*
* 60-80 are reserved for private drivers
More information about the svn-commits
mailing list