diff options
author | Shaun Ruffell <sruffell@digium.com> | 2010-10-20 12:22:54 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2010-10-20 12:22:54 +0000 |
commit | e9fafad0304c9f7a7f26a0d779a7014c4293f9cc (patch) | |
tree | 59c3ca75726e5a057f657e0a42704c7d046c3f06 /drivers | |
parent | 2afa887a004129cc7ef0e76dfcb6b9aaa5eb23ce (diff) |
wctc4xxp: Cannot print the encoder/decoder channels before we know them.
Signed-off-by: Shaun Ruffell <sruffell@digium.com>
Acked-by: Kinsey Moore <kmoore@digium.com>
Acked-by: Russ Meyerriecks <rmeyerriecks@digium.com>
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9438 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/dahdi/wctc4xxp/base.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/dahdi/wctc4xxp/base.c b/drivers/dahdi/wctc4xxp/base.c index 8e35a36..575f45a 100644 --- a/drivers/dahdi/wctc4xxp/base.c +++ b/drivers/dahdi/wctc4xxp/base.c @@ -3018,10 +3018,6 @@ wctc4xxp_create_channel_pair(struct wcdte *wc, struct channel_pvt *cpvt, complicated = temp; } - DTE_DEBUG(DTE_DEBUG_CHANNEL_SETUP, - "DTE is using the following channels encoder_channel: " \ - "%d decoder_channel: %d\n", encoder_channel, decoder_channel); - BUG_ON(encoder_timeslot/2 >= wc->numchannels); BUG_ON(decoder_timeslot/2 >= wc->numchannels); encoder_pvt = wc->uencode->channels[encoder_timeslot/2].pvt; @@ -3040,6 +3036,10 @@ wctc4xxp_create_channel_pair(struct wcdte *wc, struct channel_pvt *cpvt, &decoder_channel)) goto error_exit; + DTE_DEBUG(DTE_DEBUG_CHANNEL_SETUP, + "DTE is using the following channels encoder_channel: " \ + "%d decoder_channel: %d\n", encoder_channel, decoder_channel); + length = (DTE_FORMAT_G729A == complicated) ? G729_LENGTH : (DTE_FORMAT_G723_1 == complicated) ? G723_LENGTH : 0; |