summaryrefslogtreecommitdiff
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
commit2ba82f9a10a76d3cddae3875427a3c2d4bf479ac (patch)
treed389e53d9fd68a82c5330ef92dadc1d7ed33b92c
parent790c433699404a8a00d92fb9a50ee22925e4fc3a (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
-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);