summaryrefslogtreecommitdiff
path: root/zaptel.h
diff options
context:
space:
mode:
authordbailey <dbailey@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-12-04 20:56:14 +0000
committerdbailey <dbailey@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-12-04 20:56:14 +0000
commit28fd0f04a9e54af4c2f8d58c9562c93ab617e82b (patch)
tree9e374997626147a7643ebe8aa4b523792d1ce062 /zaptel.h
parent3a685bb90b83ebf4aabf0aa0a974a2d65e38375e (diff)
Add ioctl call to set hw gain from CLI.
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3298 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'zaptel.h')
-rw-r--r--zaptel.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/zaptel.h b/zaptel.h
index 003a4f7..d0011ce 100644
--- a/zaptel.h
+++ b/zaptel.h
@@ -386,6 +386,11 @@ struct zt_versioninfo {
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'
@@ -693,6 +698,11 @@ struct zt_versioninfo {
#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
* 80-85 are reserved for dynamic span stuff
*/