summaryrefslogtreecommitdiff
path: root/drivers/dahdi
AgeCommit message (Collapse)Author
2009-07-13wctc4xxp: Remove deprecated DMA_xxBIT_MASK usage.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6838 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-07-02wcb4xxp: Remove the now unused WCB4XXP_MAGIC definition.Shaun Ruffell
Removing stale debug code. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6825 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-07-02wcb4xxp: Remove 'magic' debug member from b4xxp structure.Shaun Ruffell
Remove some stale debug code. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6824 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-07-02wcb4xxp: Fix LED handling in OpenVox cards (maybe also others)Tzafrir Cohen
This commit adds extra functions to handle LEDs in the non-B410P cards. Only tested on OpenVox cards. OpenVox cards are known to have slightly different LEDs so this is likely to be slightly broken for others. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6821 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-07-02wcb4xxp: Fix PCM handling for various cards.Tzafrir Cohen
HFC-8S cards behave quite differently than HFC-4S cards here. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6818 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-07-02More B410P differences: Clock and NT/TE.Tzafrir Cohen
* The B410P reads the NT/TE switches the other way around from other cards. * Its clock is also 1/2 of that of other cards, which causes wierd PCM on an unmodified driver. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6817 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-07-02The B410P differs from other HFC-xS cards with respect to the EC unitTzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6816 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-07-02wcb4xxp: support for other HFC-xS cards (info, not code)Tzafrir Cohen
This commit includes skeleton for the support of other HFC-[248]S-based cards. It still does not include all the different cases for different cards. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6815 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-07-02wcb4xxp: Adjust debug filter code to number of ports.Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6814 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-07-02wcb4xxp: Extra bit macros that a needed for kernels < 2.6.24Tzafrir Cohen
Macros borrowed from xpp/ . git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6813 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-07-02wcb4xxp: Don't assume we have 4 spans (ports).Tzafrir Cohen
First part of extra hfcmulti drivers: the number of ports is still hardwired to 4, but just in a single place. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6812 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-06-30echocan: Do not go into PRETRAINING mode if not supported by the echocan.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6803 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-06-30echocan: Do not call through NULL 'echocan_traintap' pointer.Shaun Ruffell
This resolves an issue with a kernel panic if echotraining is enabled in the Asterisk configuration file, but the echocan on the channel (which may be a hardware echocanceller) has not defined that operation. DAHDI-272. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6801 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-06-30wcb4xxp: Start the first span with default settings on load.Shaun Ruffell
One of the spans of the B410P is now started at driver load time in order to allow it to provide early timing to asterisk, before the card has been properly configured. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6799 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-06-29wcte11xp: Set the owner field of the dahdi_span before registration.Shaun Ruffell
(related to issue #10601) git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6797 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-06-29dahdi-base: Enable DAHDI to manage the reference counts for the board drivers.Shaun Ruffell
Adds a struct module 'owner' member to the dahdi_span structure and updates all the board drivers to set this member before registering the span. This allows the core of dahdi to maintain the reference counts on the channels itself. (closes issue #10601) Reported by: Matti git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6794 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-06-29Improve MMX safety for DAHDI echo cancellers on 32-bit x86 systems.Kevin P. Fleming
Replaces the standard kernel FPU save/restore operations with custom written versions for 32-bit x86 CPUs, which have been tested to be reliable and safe to use. (closes issue #13500) Reported by: tzafrir Patches: dahdi_mmx_fix.diff uploaded by tzafrir (license 46) git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6791 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-06-29echocan: Properly keep the reference counts for the echocan modules.Shaun Ruffell
(closes issue #13504) (closes issue #15327) Reported by: sruffell, tzafrir git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6785 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-06-26voicebus: Limit the string length of the vpm workqueue name.Shaun Ruffell
On older kernels, it is possible to cause a kernel panic if the lenght of the workqueue name is greater than 10. DAHDI-276. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6776 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-06-26dahdi_dynamic: Release the dlock before calling accross modules.Shaun Ruffell
Resolves a hard lock due to a recursive spinlock grab at startup. Reported by: mapacheco (closes issue #15210) git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6771 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-06-26wct4xxp: Unmap the same size DMA window that was mapped.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6768 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-06-25wctc4xxp: Make the wctc4xxp_netdev_ops structure static.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6760 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-06-25wctc4xxp: Update to use struct net_device_ops.Shaun Ruffell
Accomodates a change in the linux kernel network device interface. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6717 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-06-24wct4xxp, wcte11xp: Use the default configuration by default at startup.Shaun Ruffell
This change allows hardware to provide timing to asterisk before normal configuration. DAHDI-275. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6712 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-06-23Use the same mutex lock for channel allocation and license checking in ↵Kevin P. Fleming
dahdi_echocan_hpec, so that channel allocation won't happen while the license is being checked (or rechecked) git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6699 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-06-18wctdm, wctdm24xxp, wcfxo: Fix calls to dahdi_hooksig.Shaun Ruffell
When JAPAN, AUDIO_RINGCHECK, or ZERO_BATT_RING compile time options are selected it is possible to get a kernel panic due to an invalid pointer passed to the dahdi_hooksig function. (closes issue #15350) Patch by: alecdavis git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6692 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-06-12Make complex conditionals work with GNU make 3.80. Much uglier, but it ↵Jason Parker
works on RHEL4. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6688 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-06-04dahdi-base: Fix bug in procfs handling.Shaun Ruffell
Fix bug in procfs handling where it was possible to get a warning in lib/vsprintf.c when reading from /proc/dahdi/x. Patch by: biohumanoid (closes issue #15252) git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6675 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-05-27xpp: Fix more 'owner' for 2.6.30 to be happy.Tzafrir Cohen
Finishing the work of r6642. Complitly shut issue #14964. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6659 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-05-25xpp firmwares: fixes sync issues of FXO module in a BRI/PRI AstribankTzafrir Cohen
* Also fixes LED blinking issues in PRI modules * Various bugfixes in the PICs. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6653 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-05-25USB_FW.hex: Allow setting caps. even when FPGA is loaded.Tzafrir Cohen
Note that They will only take effect after a reset. Firmware rev. 7071. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6651 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-05-19xpp: 'owner' property of procfs was dropped in 2.6.30.Tzafrir Cohen
This adds a compatibility macro for older versions that is a noop for kernels >= 2.6.30. (closes issue #14964) git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6642 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-05-19xpp: fix the Astribank state machineTzafrir Cohen
This generally is a case that would not happen in the wild, though. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6641 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-05-19xpp: report in sysfs if bri module uses hardhdlc supportTzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6640 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-05-19xpp: remove obsolete script calibrate_slicsTzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6639 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-05-19Replaece member bus_id with dev_name() and set_dev_name()Tzafrir Cohen
As of 2.6.26 the macros dev_name() and set_dev_name() are used to read and set (respectively) the bus_id member in sysfs. As of 2.6.30 bus_id is gone. This patch provides comaptiobility macros for older kernel versions and removes direct usage of bus_id. (closes issue #14965) Patches: xpp_2630_dev_name.diff uploaded by tzafrir (license 46) git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6637 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-05-15voicebus: Use '&' not '|' when checking for a bit.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6628 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-05-15voicebus: Make the enable/disable echocan messages debug again.Shaun Ruffell
I accidentally changed to print everytime. They should only be printed if DEBUG_ECHOCAN is specified in the debug module parameter. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6625 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-05-14wcte12xp: Set the syncsrc in the span appropriately.Shaun Ruffell
Before this commit, dahdi_tool would report "Internally clocked" for boards supported by the wcte12xp driver both when receiving timing from the span and providing it to the span. Now it reports "Internally clocked" if providing timeing to the span, and the card if receiving timeing from the span. DAHDI-65. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6621 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-05-12use proper case for variable name :-)Kevin P. Fleming
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6610 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-05-12Allow VPMADT032 and HPEC binary modules to be used on platforms where ARCH ↵Kevin P. Fleming
is set to the new 'generic' x86 flavor available in recent Linux kernel releases git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6609 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-05-12emit warning messages when DAHDI is being built on a CPU architecture that ↵Kevin P. Fleming
does not support HPEC or the VPMADT032 firmware loader, so the user will know why they are not included clean up the conditional logic for these items in the Kbuild file git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6607 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-05-11wcte12xp: Expose vpm parameters as module parameters.Shaun Ruffell
Expose the vpmnlptype, vpmnlpthresh, and vpmnlpmaxsupp as module parameters like for the wctdm24xxp. DAHDI-261 git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6590 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-05-11voicebus: Update the default vpmadt032 parameters.Shaun Ruffell
Move the echo can channel parameters into a common location for both the wcte12xp and wctdm24xxp drivers that use the voicebus module. This is intended to make it clearer which differences are required between the clients. Additionally, update the default parameters to the new recommended values. VPMADT032-37 git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6589 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-05-07voicebus: Create workqueue for each vpmadt032 instance.Shaun Ruffell
Depending on the system latency, the deferred work for the vpmadt032 can take up to 200ms. This change allows each vpmadt032 to use its own workqueue, and not the global system workqueue. This prevents vpm operations from blocking the main system workqueue for extended periods. This restores the behavior to the way it was before the common vpmadt032 code was moved out of the wctdm24xxp and wcte12xp drivers. DAHDI-260 voicebus-squash: Adding the wq name. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6572 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-05-07voicebus: Changing default NLP type to 'suppression'.Shaun Ruffell
The 'suppression' default for the NLP provides better echo canceling performance. Also ensures that the wctdm24xxp and wcte12xp driver use the same default values. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6568 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-05-05voicebus: Use the companding type on the span when enabling echocan.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6564 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-05-04Insure that vpmnlptype, vpmnlpmaxsupp, and vpmnlpthresh are set back to moduleDoug Bailey
level defaults when echo can is freed. (Previously they were zero'd out) DAHDI-257 git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6562 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-05-01dahdi-base: define __RW_LOCK_UNLOCKED()Shaun Ruffell
Linux 2.6.9 does not contain that definition, but the older definition is deprecated since it defeats lock state checking. DAHDI-253 git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6554 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-05-01voicebus: Need Makefile to build on 2.6.9Shaun Ruffell
DAHDI-253 git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6553 a0bf4364-ded3-4de4-8d8a-66a801d63aff