summaryrefslogtreecommitdiff
path: root/drivers/dahdi/wctdm24xxp/base.c
diff options
context:
space:
mode:
authorMatthew Fredrickson <creslin@digium.com>2009-10-07 21:26:08 +0000
committerMatthew Fredrickson <creslin@digium.com>2009-10-07 21:26:08 +0000
commitfda3ba342eddab8f9e359ff233fa79887a70bc79 (patch)
treebf56bca2e3cf1aa37645c764619bb657d253be32 /drivers/dahdi/wctdm24xxp/base.c
parent09c99f157a336871df01bd5c3f8258aaaaa6b507 (diff)
Fix a logic error in the companding check. Duh....
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7348 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/wctdm24xxp/base.c')
-rw-r--r--drivers/dahdi/wctdm24xxp/base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dahdi/wctdm24xxp/base.c b/drivers/dahdi/wctdm24xxp/base.c
index 57a4f5c..eb6898e 100644
--- a/drivers/dahdi/wctdm24xxp/base.c
+++ b/drivers/dahdi/wctdm24xxp/base.c
@@ -311,7 +311,7 @@ void setchanconfig_from_state(struct vpmadt032 *vpm, int channel, GpakChannelCon
chanconfig->MuteToneB = Disabled;
chanconfig->FaxCngDetB = Disabled;
- chanconfig->SoftwareCompand = (vpm->desiredecstate[channel].companding = ADT_COMP_ALAW) ? cmpPCMA : cmpPCMU;
+ chanconfig->SoftwareCompand = (vpm->desiredecstate[channel].companding == ADT_COMP_ALAW) ? cmpPCMA : cmpPCMU;
chanconfig->FrameRate = rate2ms;
p = &chanconfig->EcanParametersA;