chan_dahdi: Add config support for hwgain settings.

* Add hwtxgain and hwrxgain config options to chan_dahdi.conf with
documentation in chan_dahdi.conf.sample.

(closes issue ASTERISK-22429)
Reported by: Jaco Kroon
Patches:
      jira_asterisk_22429_hwgain_trunk.patch (license #5621) patch uploaded by rmudgett


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@400950 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Richard Mudgett
2013-10-14 22:52:42 +00:00
parent edb437ee6c
commit 2127848d6c
3 changed files with 117 additions and 32 deletions

View File

@@ -147,6 +147,10 @@ struct dahdi_pvt {
int outsigmod; /*!< Outbound Signalling style (modifier) */
int oprmode; /*!< "Operator Services" mode */
struct dahdi_pvt *oprpeer; /*!< "Operator Services" peer tech_pvt ptr */
/*! \brief Hardware Rx gain set by chan_dahdi.conf */
float hwrxgain;
/*! \brief Hardware Tx gain set by chan_dahdi.conf */
float hwtxgain;
/*! \brief Amount of gain to increase during caller id */
float cid_rxgain;
/*! \brief Software Rx gain set by chan_dahdi.conf */
@@ -402,6 +406,10 @@ struct dahdi_pvt {
* \note Applies to all channels
*/
unsigned int manages_span_alarms:1;
/*! \brief TRUE if hardware Rx gain set by Asterisk */
unsigned int hwrxgain_enabled;
/*! \brief TRUE if hardware Tx gain set by Asterisk */
unsigned int hwtxgain_enabled;
#if defined(HAVE_PRI)
struct sig_pri_span *pri;