[svn-commits] sruffell: branch linux/2.4 r10111 - /linux/branches/2.4/drivers/dahdi/oct612x...
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Thu Aug 11 14:54:43 CDT 2011
Author: sruffell
Date: Thu Aug 11 14:54:39 2011
New Revision: 10111
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=10111
Log:
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 at digium.com>
Acked-by: Shaun Ruffell <sruffell at digium.com>
Acked-by: Tzafrir Cohen <tzafrir.cohen at xorcom.com>
Origin: http://svnview.digium.com/svn/dahdi?view=rev&rev=10060
Modified:
linux/branches/2.4/drivers/dahdi/oct612x/include/oct6100api/oct6100_channel_inst.h
Modified: linux/branches/2.4/drivers/dahdi/oct612x/include/oct6100api/oct6100_channel_inst.h
URL: http://svnview.digium.com/svn/dahdi/linux/branches/2.4/drivers/dahdi/oct612x/include/oct6100api/oct6100_channel_inst.h?view=diff&rev=10111&r1=10110&r2=10111
==============================================================================
--- linux/branches/2.4/drivers/dahdi/oct612x/include/oct6100api/oct6100_channel_inst.h (original)
+++ linux/branches/2.4/drivers/dahdi/oct612x/include/oct6100api/oct6100_channel_inst.h Thu Aug 11 14:54:39 2011
@@ -48,10 +48,10 @@
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 @@
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 @@
UINT8 byAdpcmNibblePosition : 1;
UINT8 fEnableSilenceSuppression : 1;
- UINT8 byEncoderPort : 1;
- UINT8 byEncodingRate : 1;
-
- UINT8 byDecoderPort : 1;
- UINT8 byDecodingRate : 1;
-
- UINT8 byPhase : 1;
- UINT8 byPhasingType : 1;
-
+ UINT8 byEncoderPort : 4;
+ UINT8 byDecoderPort : 4;
+
+ 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 @@
UINT8 fEnableToneDisabler : 1;
/* Current echo operation mode. */
- UINT8 byEchoOperationMode : 1;
+ UINT8 byEchoOperationMode : 3;
UINT8 byToneDisablerStatus : 1;
@@ -359,7 +360,7 @@
/* 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;
More information about the svn-commits
mailing list