summaryrefslogtreecommitdiff
path: root/drivers/dahdi
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2009-05-15 23:37:16 +0000
committerShaun Ruffell <sruffell@digium.com>2009-05-15 23:37:16 +0000
commit6de920133df94c9b211cf5b6b3852b228a083de9 (patch)
treed389e53d9fd68a82c5330ef92dadc1d7ed33b92c /drivers/dahdi
parentdd9391fccd34746ab3ea9be7727e872253474509 (diff)
voicebus: Use '&' not '|' when checking for a bit.
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6628 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi')
-rw-r--r--drivers/dahdi/voicebus/GpakCust.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dahdi/voicebus/GpakCust.c b/drivers/dahdi/voicebus/GpakCust.c
index 33ac2b0..dbce49b 100644
--- a/drivers/dahdi/voicebus/GpakCust.c
+++ b/drivers/dahdi/voicebus/GpakCust.c
@@ -225,7 +225,7 @@ static int vpmadt032_enable_ec(struct vpmadt032 *vpm, int channel)
} else {
control = EnableMuLawSwCompanding;
}
- if (vpm->options.debug | DEBUG_ECHOCAN) {
+ if (vpm->options.debug & DEBUG_ECHOCAN) {
const char *law;
law = (control == EnableMuLawSwCompanding) ? "MuLaw" : "ALaw";
printk(KERN_DEBUG "Enabling ecan on channel: %d (%s)\n",
@@ -245,7 +245,7 @@ static int vpmadt032_disable_ec(struct vpmadt032 *vpm, int channel)
int res;
GPAK_AlgControlStat_t pstatus;
- if (vpm->options.debug | DEBUG_ECHOCAN)
+ if (vpm->options.debug & DEBUG_ECHOCAN)
printk(KERN_DEBUG "Disabling ecan on channel: %d\n", channel);
res = gpakAlgControl(vpm->dspid, channel, BypassSwCompanding, &pstatus);