summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2011-08-11 19:54:39 +0000
committerShaun Ruffell <sruffell@digium.com>2011-08-11 19:54:39 +0000
commit2bc0ae0d01ac2d028f0086ee9a1ed780c1f39dc5 (patch)
treea295fdeb8848e1d2a77896e75072116d41465c06
parenta3279d1155f3016d1880ca5101b36d6a864babac (diff)
oct612x: Increase the size of some of the instance variables.
Revision 9750 "wct4xxp: Reduce the memory footprint of the hardware echocanceler" reduced the number of bits used to store some structure members. Some of the new field lengths were unable to store all the possible values the API as used assigned to the fields, resulting in channels never entering power down mode when they were disabled like they were previously. The change for byEchoOperationMode was found in testing the operation of the VPMOCT032 which currently uses the same code. The others were done via a review of the API doc. This change represents negligable risk and contains no logic changes. It only increases the memory footprint of the API instance in the kernel. Signed-off-by: Doug Bailey <dbailey@digium.com> Acked-by: Shaun Ruffell <sruffell@digium.com> Acked-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com> Origin: http://svnview.digium.com/svn/dahdi?view=rev&rev=10060 git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/branches/2.4@10111 a0bf4364-ded3-4de4-8d8a-66a801d63aff
-rw-r--r--drivers/dahdi/oct612x/include/oct6100api/oct6100_channel_inst.h39
1 files changed, 20 insertions, 19 deletions
diff --git a/drivers/dahdi/oct612x/include/oct6100api/oct6100_channel_inst.h b/drivers/dahdi/oct612x/include/oct6100api/oct6100_channel_inst.h
index 4472b9c..c8bacd1 100644
--- a/drivers/dahdi/oct612x/include/oct6100api/oct6100_channel_inst.h
+++ b/drivers/dahdi/oct612x/include/oct6100api/oct6100_channel_inst.h
@@ -48,10 +48,10 @@ typedef struct _OCT6100_API_CHANNEL_TDM_
UINT8 byRoutPcmLaw : 1;
UINT8 bySoutPcmLaw : 1;
- UINT8 byRinNumTssts : 1;
- UINT8 bySinNumTssts : 1;
- UINT8 byRoutNumTssts : 1;
- UINT8 bySoutNumTssts : 1;
+ UINT8 byRinNumTssts : 2;
+ UINT8 bySinNumTssts : 2;
+ UINT8 byRoutNumTssts : 2;
+ UINT8 bySoutNumTssts : 2;
/* RIN port. */
UINT16 usRinTimeslot;
@@ -93,19 +93,20 @@ typedef struct _OCT6100_API_CHANNEL_VQE_
UINT8 fSoutAdaptiveNoiseReduction : 1;
UINT8 fDtmfToneRemoval : 1;
UINT8 fAcousticEcho : 1;
- UINT8 byComfortNoiseMode : 1;
+ UINT8 byComfortNoiseMode : 2;
UINT8 fSoutNaturalListenerEnhancement : 1;
UINT8 fRoutNoiseReduction : 1;
UINT8 fEnableMusicProtection : 1;
UINT8 fIdleCodeDetection : 1;
- UINT8 byAnrVoiceNoiseSegregation : 1;
+ UINT8 byAnrVoiceNoiseSegregation : 4;
UINT8 byDoubleTalkBehavior : 1;
UINT8 fSoutNoiseBleaching : 1;
UINT8 fSoutConferencingNoiseReduction : 1;
- UINT8 bySoutAutomaticListenerEnhancementGainDb : 1;
- UINT8 byNonLinearityBehaviorA : 1;
- UINT8 byNonLinearityBehaviorB : 1;
- UINT8 bySoutNaturalListenerEnhancementGainDb : 1;
+ UINT8 byNonLinearityBehaviorA : 4;
+ UINT8 byNonLinearityBehaviorB : 4;
+
+ UINT8 bySoutAutomaticListenerEnhancementGainDb;
+ UINT8 bySoutNaturalListenerEnhancementGainDb;
OCT_INT8 chRinAutomaticLevelControlTargetDb;
OCT_INT8 chSoutAutomaticLevelControlTargetDb;
@@ -134,15 +135,15 @@ typedef struct _OCT6100_API_CHANNEL_CODEC_
UINT8 byAdpcmNibblePosition : 1;
UINT8 fEnableSilenceSuppression : 1;
- UINT8 byEncoderPort : 1;
- UINT8 byEncodingRate : 1;
+ UINT8 byEncoderPort : 4;
+ UINT8 byDecoderPort : 4;
- UINT8 byDecoderPort : 1;
- UINT8 byDecodingRate : 1;
-
- UINT8 byPhase : 1;
- UINT8 byPhasingType : 1;
+ UINT8 byPhasingType : 2;
+ UINT8 byEncodingRate;
+ UINT8 byDecodingRate;
+
+ UINT16 byPhase;
} tOCT6100_API_CHANNEL_CODEC, *tPOCT6100_API_CHANNEL_CODEC;
typedef struct _OCT6100_API_CHANNEL_
@@ -163,7 +164,7 @@ typedef struct _OCT6100_API_CHANNEL_
UINT8 fEnableToneDisabler : 1;
/* Current echo operation mode. */
- UINT8 byEchoOperationMode : 1;
+ UINT8 byEchoOperationMode : 3;
UINT8 byToneDisablerStatus : 1;
@@ -359,7 +360,7 @@ typedef struct _OCT6100_API_BIDIR_CHANNEL_
/* Flag specifying whether the entry is used or not. */
UINT8 fReserved : 1;
/* Count used to manage entry handles allocated to user. */
- UINT8 byEntryOpenCnt : 1;
+ UINT8 byEntryOpenCnt;
} tOCT6100_API_BIDIR_CHANNEL, *tPOCT6100_API_BIDIR_CHANNEL;