summaryrefslogtreecommitdiff
path: root/drivers/dahdi
AgeCommit message (Collapse)Author
2009-11-05xpp: Add sysfs xpd attribute 'timing_priority'Tzafrir Cohen
Merged revisions 7237 via svnmerge from http://svn.digium.com/svn/dahdi/linux/trunk git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/branches/2.2@7491 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-04T1 CAS support in the xpp "pri" moduleTzafrir Cohen
Merged revisions 7244-7245,7266,7276,7457 via svnmerge from http://svn.digium.com/svn/dahdi/linux/trunk ........ r7244 | tzafrir | 2009-09-29 18:23:13 +0200 (Tue, 29 Sep 2009) | 5 lines xpp: make card_hooksig an optional card method. Done in preperation for T1 CAS support, as the PRI module will use RBS instead. ........ r7245 | tzafrir | 2009-09-29 18:45:15 +0200 (Tue, 29 Sep 2009) | 2 lines xpp: refactor pcm mask handling. ........ r7266 | tzafrir | 2009-09-30 00:43:05 +0200 (Wed, 30 Sep 2009) | 2 lines xpp: T1 CAS support ........ r7276 | tzafrir | 2009-09-30 15:49:48 +0200 (Wed, 30 Sep 2009) | 2 lines xpp: PRI PIC firmware: T1-CAS fixes ........ r7457 | tzafrir | 2009-11-03 22:24:13 +0200 (Tue, 03 Nov 2009) | 4 lines xpp: More E1/T1 CAS fixes. Mostly connect/disconnect xpp revs: mostly 7458, 7466 ........ git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/branches/2.2@7485 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-08-19Merged revisions 7038 via svnmerge from Kevin P. Fleming
https://origsvn.digium.com/svn/dahdi/linux/trunk ........ r7038 | kpfleming | 2009-08-19 11:40:13 -0500 (Wed, 19 Aug 2009) | 9 lines Ensure that dahdi_scan correctly reports VPM presence. The wct4xxp driver (for the dual/quad span T1/E1 cards) and the wcte12xp driver (for the single span VoiceBus-based T1/E1 cards) did not properly update the 'devicetype' field reported by dahdi_scan when a VPM was found during the card startup process. As a result, dahdi_scan did not show that a VPM was present on the card, even if it was. ........ git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/branches/2.2@7039 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-08-13xpp firmware: Fixes PCM issue with FXO that is not a timing sourceTzafrir Cohen
Fixes PCM issue with an Astribank2 (116x) FXO module that is installed alongside a PRI/BRI module. xpp: FPGA_1161.hex r7276 . Merged revisions 6938,6966 via svnmerge from http://svn.digium.com/svn/dahdi/linux/trunk git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/branches/2.2@7001 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-08-06Merged revisions 6890-6891 via svnmerge from Shaun Ruffell
https://origsvn.digium.com/svn/dahdi/linux/trunk ........ r6890 | sruffell | 2009-07-23 17:01:04 -0500 (Thu, 23 Jul 2009) | 1 line dahdi-base: Reduce the stack usage of ioctl_load_zone. ........ r6891 | sruffell | 2009-07-23 17:26:25 -0500 (Thu, 23 Jul 2009) | 3 lines dahdi-base: Update formatting in ioctl_load_zone. Fixes checkpatch.pl formatting errors from the previous commit. ........ git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/branches/2.2@6950 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-08-04Merged revisions 6717,6760 via svnmerge from Shaun Ruffell
https://origsvn.digium.com/svn/dahdi/linux/trunk ........ r6717 | sruffell | 2009-06-24 21:30:19 -0500 (Wed, 24 Jun 2009) | 3 lines wctc4xxp: Update to use struct net_device_ops. Accomodates a change in the linux kernel network device interface. ........ r6760 | sruffell | 2009-06-25 17:16:34 -0500 (Thu, 25 Jun 2009) | 1 line wctc4xxp: Make the wctc4xxp_netdev_ops structure static. ........ git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/branches/2.2@6937 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-08-04Merged revisions 6933 via svnmerge from Shaun Ruffell
https://origsvn.digium.com/svn/dahdi/linux/trunk ........ r6933 | sruffell | 2009-08-04 11:22:39 -0500 (Tue, 04 Aug 2009) | 10 lines dahdi_dummy: Do not allow jumps in system time to lock up the system. Since dahdi_dummy uses the number of milliseconds that has actually passed to determine how many times to call dahdi_receive, it is possible that if the system time shifts after dahdi is started, that the system can appear to lock up while dahdi_dummy attempts to catch up. This change prevents soft lock ups under these conditions. (closes issue #15647) Reported by: missnebun ........ git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/branches/2.2@6934 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-07-21Merged revisions 6844,6852,6862-6863 via svnmerge from Shaun Ruffell
https://origsvn.digium.com/svn/dahdi/linux/trunk ........ r6844 | sruffell | 2009-07-16 12:29:53 -0500 (Thu, 16 Jul 2009) | 10 lines wcte12xp: Disable vpmadt032 companding by default. This fixes a regression in 2.2.0 where certain configurations will fail patloop test or have repeated HDLC aborts because the VPMADT032 is modifying the clear channel or d channel data streams. This restores the behavior to how it was in dahdi-linux 2.1.0.4. (closes issue #15498) Reported by: alecdavis Tested by: alecdavis ........ r6852 | tzafrir | 2009-07-19 10:45:40 -0500 (Sun, 19 Jul 2009) | 12 lines tor2: allow using port4 as timing source Fix a silly regression introduced when strict check on the timing parameter was added (sync-1 is the array index, not sync itself. And 0 is a special case). (closes issue #15408) Reported by: dferrer Patches: tor2-4th_sync.patch uploaded by dferrer (license 525) ........ r6862 | sruffell | 2009-07-21 12:52:59 -0500 (Tue, 21 Jul 2009) | 4 lines Revert "wct4xxp, wcte11xp: Use the default configuration by default at startup." This reverts the change introduced by revision 6712. This change can cause problems when there is a VPM module installed on the quad-span digital cards. ........ r6863 | sruffell | 2009-07-21 12:53:02 -0500 (Tue, 21 Jul 2009) | 12 lines dahdi-base: Add support for core timing. This essentially moves the function of dahdi_dummy into the core of DAHDI. It ensures that if DAHDI is loaded, it will always be able to provide timing, regardless of whether there are board drivers loaded, or if the board drivers are properly calling dahdi_receive. If there is a master span loaded which is calling dahdi_receive, then the behavior will be like it is normally. This functionality is off by default, uncomment CONFIG_DAHDI_CORE_TIMER in include/dahdi/config_dahdi.h in order to enable it. ........ git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/branches/2.2@6864 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-07-21Merged revisions 6712,6776,6799,6801,6803 via svnmerge from Shaun Ruffell
https://origsvn.digium.com/svn/dahdi/linux/trunk ........ r6712 | sruffell | 2009-06-24 14:13:35 -0500 (Wed, 24 Jun 2009) | 4 lines wct4xxp, wcte11xp: Use the default configuration by default at startup. This change allows hardware to provide timing to asterisk before normal configuration. DAHDI-275. ........ r6776 | sruffell | 2009-06-26 16:24:34 -0500 (Fri, 26 Jun 2009) | 4 lines voicebus: Limit the string length of the vpm workqueue name. On older kernels, it is possible to cause a kernel panic if the lenght of the workqueue name is greater than 10. DAHDI-276. ........ r6799 | sruffell | 2009-06-30 10:45:06 -0500 (Tue, 30 Jun 2009) | 5 lines wcb4xxp: Start the first span with default settings on load. 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. ........ r6801 | sruffell | 2009-06-30 12:17:09 -0500 (Tue, 30 Jun 2009) | 5 lines echocan: Do not call through NULL 'echocan_traintap' pointer. 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. ........ r6803 | sruffell | 2009-06-30 12:27:34 -0500 (Tue, 30 Jun 2009) | 1 line echocan: Do not go into PRETRAINING mode if not supported by the echocan. ........ git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/branches/2.2@6860 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
2009-05-01wcb4xxp: Define mmiowb if not already defined.Shaun Ruffell
Linux kernel 2.6.9 does not define mmiowb. DAHDI-253 git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6552 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-05-01wctc4xxp: spin_trylock_irqsave is not defined on some kernels.Shaun Ruffell
DAHDI-253 git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6551 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-05-01wctc4xxp: Defined gfp_t for earlier kernels.Shaun Ruffell
This definition was just copied from the xpp driver. DAHDI-253 git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6550 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-05-01wctc4xxp: Fix inclusion of linux/io.h on 2.6.9 kernels.Shaun Ruffell
DAHDI-253 git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6549 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-04-30Ensure that vpmsupport=0 module parameter takes proper effectKevin P. Fleming
For these drivers, when the vpmsupport module parameter is set to zero, don't even register the span as supporting echo cancellation. DAHDI-250 git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6544 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-04-30xpp: A new FPGA firmware to hopefully help with BRI/FXO.Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6542 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-04-29echocan: Improve interface for echo cancelers.Shaun Ruffell
Echo cancelers are now able to report if they are able to automatically disable their NLP portions in the presence of tones in the audio stream. Also, the interface is changed to allow user space to just disable the NLP portion of the echo canceler. These changes improve fax and modem handling in DAHDI. This commit merges in the changes on http://svn.digium.com/svn/dahdi/linux/team/kpfleming/echocan_work Patch by: kpfleming Also contains improvements to CED tone detection. (closes issue #13286) Reported by: viniciusfontes git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6529 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-04-29wct4xxp: Fix problem when timing source is via external cable.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6528 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-04-29voicebus: Move common vpmadt032 interface into voicebus module.Shaun Ruffell
The voicebus library was previously linked into both the wcte12xp and wctdm24xxp drivers. It is now broken out into it's own module and the common parts of the vpmadt032 interface are now located in that module to reduce duplication between the wcte12xp and wctdm24xxp drivers. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6527 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-04-29wctc4xxp: Change netif_rx_xxx to napi_xxxShaun Ruffell
The netif_rx_xxx functions were dropped from the linux kernel source on 2009-01-21 in commit 288379f050284087578b77e04f040b57db3db3f8. (closes issue #14963) Reported by: tzafrir git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6526 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-04-29wcte12xp: Update cmdqueue processing.Shaun Ruffell
The command queue for reading from the registers on the framer is now stored in a linked_list instead of an array. Allows for the locks to protect this structure to be held for shorter periods of time and reduces the need to cycle through all the elements in the array to decide if there is a command in the queue to process. Remove the usecount and dead members from struct t1 since the module reference count will allow us to know when it's safe to free up the memory. This change also moves alarm processing out of the interrupt handler and removes the need for special interrupt handling of commands. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6525 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-04-29dahdi_dummy: Remove real-time clock support.Shaun Ruffell
This removes support for using the real-time clock as a timing source in dahdi_dummy. Instead, the normal kernel timers method is now more accurate since it keeps track of how much real time has passed to determine how many times to call dahdi_receive and dahdi_transmit. This method was originally suggested by bmd. (closes issue #13930) (closes issue #14884) Reported by: tzafrir Tested by: dbackeberg, ask git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6524 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-04-29voicebus: Removing unused code blocks and space in flag definitions.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6523 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-04-27xpp: hard_hdlc support for the BRI module.Tzafrir Cohen
The BRI module will now use hardhdlc unless the DAHDI tree has been patched with the bri_dchan patch, in which case the old "bristuffed" code will be used. Thus it is now built by default. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6513 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-04-23Revert r6302 - there was no need to upload themTzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6466 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-04-23Don't set the Id keyword on firmwares; restore original IDTzafrir Cohen
The Id SVN keyword is set locally in Xorcom and used as an identifier. That Id should not be overriden by this SVN repository. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6465 a0bf4364-ded3-4de4-8d8a-66a801d63aff