From 36d944cbddbf9403ea04246cc65599a8b8bf7f76 Mon Sep 17 00:00:00 2001 From: dbailey Date: Tue, 4 Dec 2007 21:01:05 +0000 Subject: add ioctl call for setting hardware gains at the port interface IC git-svn-id: http://svn.digium.com/svn/zaptel/trunk@3299 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- zaptel.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/zaptel.h b/zaptel.h index c33c6ad..c63bc23 100644 --- a/zaptel.h +++ b/zaptel.h @@ -326,6 +326,10 @@ 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' @@ -630,6 +634,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 -- cgit v1.2.3