diff options
author | Shaun Ruffell <sruffell@digium.com> | 2011-09-30 19:23:22 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2011-09-30 19:23:22 +0000 |
commit | e62aa5a1d1e862ed5a0c69a3618782f89803af23 (patch) | |
tree | fb1cd64f6e44ae413d26c0581a43948cde2a1302 | |
parent | 657b2574170b585cbd98b4159609bd30976a899b (diff) |
wctc4xxp: Allow G723 SID frames to pass to the hardware decoder.
The driver has, until now, dropped G723 SID frames even though the
firmware on the TC400/TCE400 can handle them. Now let them on
through.
Reported-and-Tested-by: Angel Carhuas <acarhuas@colinanet.com>
Signed-off-by: Shaun Ruffell <sruffell@digium.com>
Origin: http://svnview.digium.com/svn/dahdi?view=rev&rev=10218
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/branches/2.5@10219 a0bf4364-ded3-4de4-8d8a-66a801d63aff
-rw-r--r-- | drivers/dahdi/wctc4xxp/base.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/dahdi/wctc4xxp/base.c b/drivers/dahdi/wctc4xxp/base.c index 35d24a0..78bd09a 100644 --- a/drivers/dahdi/wctc4xxp/base.c +++ b/drivers/dahdi/wctc4xxp/base.c @@ -2158,12 +2158,13 @@ wctc4xxp_write(struct file *file, const char __user *frame, } if (DAHDI_FORMAT_G723_1 == dtc->srcfmt) { - if ((G723_5K_BYTES != count) && (G723_6K_BYTES != count)) { + if ((G723_5K_BYTES != count) && (G723_6K_BYTES != count) && + (G723_SID_BYTES != count)) { DTE_DEBUG(DTE_DEBUG_GENERAL, "Trying to transcode packet into G723 format " \ "that is %Zu bytes instead of the expected " \ - "%d/%d bytes.\n", count, G723_5K_BYTES, - G723_6K_BYTES); + "%d/%d/%d bytes.\n", count, G723_5K_BYTES, + G723_6K_BYTES, G723_SID_BYTES); return -EINVAL; } cpvt->timestamp += G723_SAMPLES; |