summaryrefslogtreecommitdiff
path: root/kernel/wctc4xxp
AgeCommit message (Collapse)Author
2009-01-07- When tearing down channels, use the channel's timeslot as the index into thesruffell
encoder and decoder arrays, and not the channel which is returned from the DTE. Issue: DAHDI-231. - Instead of completely servicing the receive descriptor ring in the workqueue, have the interrupt handler queue them up for the workqueue. - No need to interrupt on both transmit and receive since we expect a response to every packet we send. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4613 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2009-01-05Even on older kernels, do not redefine WARN_ON_ONCE if it is already defined.sruffell
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4609 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2009-01-05Print more information to the kernel log when the transcoder sends us asruffell
diagnostic message. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4605 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-12-19WARN is defined in newer kernels. Use WARN_ALWAYS like in DAHDI.sruffell
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4598 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-12-04Service the transmit descriptor ring before the receive descriptor ring sosruffell
that commands that are still sitting on the transmit descriptor ring are not completed twice. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4593 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-12-04- Ensure that the sample size is set correctly when decoding G723 packets.sruffell
- Do not use an already built channel if the source and destination formats do not match the formats we want. This fixes a regression introduced by the new transcoder interface where a translation path from one complex codec to another can result in garbled audio. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4592 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-11-18Fix typo that was preventing compilation of wctc4xxp.sruffell
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4585 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-11-17- Fix for race condition of encoder and decoder are allocated at the same timesruffell
in the driver. This would result in -EBUSY returns from the DAHDI_TC_ALLOCATE ioctl. - Increase the length of the receive descriptor ring from 8 to 32 to reduce the probability of running out of receive descriptors. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4582 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-10-10- Ensure that the source format is considered when selecting a transcoder.sruffell
- When a command is to be retried, turn off the TX_COMPLETE flag before resubmitting it to the hardware. This should elimate some of the warnings printed to the kernel log in the wctc4xxp_transmit_cmd function. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4564 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-10-06Embed room for the complete packet to the DTE in the transcoder buffersruffell
structure. Simplifies alignment management at the cost of a little wasted memory, but the end results is that operation is more reliable on more systems. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4560 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-10-03There are two possible valid statues when booting the TC400M.sruffell
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4556 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-10-02Keep hold of the channel lock when setting the data_ready flag for the channelsruffell
after writing to the receive queue. Prevents a warning that data was on the recieve queue but the data ready flag was not set. Issue: DAHDI-42 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4554 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-10-02wctc4xxp_cleanup_channel_private needs a pointer to the zt_transcoder_channelsruffell
and not just the private portion now in order to manage the data ready flag state. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4553 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-10-02Mark that there is not any data waiting whenever we cleanup the privatesruffell
channel structures. Issue: DAHDI-42 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4551 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-09-30Removing reference to setup_timer on kernels before 2.6.18.sruffell
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4549 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-09-24Adding back in the mode module parameter for the wctc4xxp driver. This issruffell
primarily used to increase the number of channels available when only transcoding to/from g729 by setting it to 'g729'. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4540 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-08-25Remove this warning, which could occur if the driver is loaded on a systemsruffell
without a wctc4xxp, and then subsequently unloaded. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4506 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-08-20Change to support both 5.3kbps and 6.3kbps bit rates when using the G723.1sruffell
codec. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4495 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-08-19Fix bug where all transcoders are named tc400b0.sruffell
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4492 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-08-14backport new transcoder interface and driver from DAHDIkpfleming
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4483 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-08-14more license header updateskpfleming
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4482 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-08-12bring back the transcoder interface... it will be upgraded to the new ↵kpfleming
improved version here too git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4477 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-08-07remove support for the Digium TC400 transcoder card; the interace to this ↵kpfleming
card has been completely redesigned, and the new interface will only be present in DAHDI; TC400 users will need to upgrade to DAHDI 2.0.0 to continue using their transcoder cards git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4469 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-02-13remove some STANDALONE_ZAPATA stuff that is not neededkpfleming
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3823 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-02-04Move kernel stuff to under kernel/ tzafrir
(merged branch /zaptel/team/tzafrir/move ) Closes issue #7117. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3793 5390a7c7-147a-4af0-8ec9-7488f05a26cb