summaryrefslogtreecommitdiff
path: root/wctdm24xxp/base.c
AgeCommit message (Collapse)Author
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
2008-01-31Fix bug so that echo cancellation actually will be disabledmattf
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3775 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-01-28Allow echo canceller parameters to be updated dynamicallymattf
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3754 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-01-23Merged revisions 3730 via svnmerge from mattf
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r3730 | mattf | 2008-01-23 15:34:07 -0600 (Wed, 23 Jan 2008) | 1 line Make some echo canceller related parameters adjustable via module parameter ........ git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3731 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-01-23Revert part of previous commit which wasn't supposed to be merged yetmattf
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3727 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-01-23Let an echocan parameter be a signed value. Also, for convenience, add a ↵mattf
place for echocan parameters in the zt_echocanparams structure git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3726 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-01-21Report battery loss on FXO ports of analog cards as a 'red alarm' on the ↵kpfleming
respective channel. (closes issue #8290) Reported by: tmarkov Patches: 8290-alarm-total_1_4_rev3705 uploaded by meneault Tested by: flefoll git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3718 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-01-17Added modified patch so that the ring detect method can be set using a ↵dbailey
module parameter. Setting fwringdetect=1 enables the method submitted by this user. (closes issue #9264) Reported by: mjagdis Tested by: benbrown git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3701 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-01-14revert this change from issue #9264 for now, as it needs more testing before ↵kpfleming
being put into a release branch git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3688 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-01-11Improve ring detection when polarity reversals are present.kpfleming
(closes issue #9264) Reported by: mjagdis Patches: zaptel-ring.diff uploaded by mjagdis (modified by me to add support in wctdm24xxp as well) Tested by: benbrown git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3674 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-01-11finish updating to support echocan params ioctl, even though the parameters ↵kpfleming
are currently ignored git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3672 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-01-11restore ability of this driver to compile... will finish echo can params ↵kpfleming
code later git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3670 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-01-11remove some macros that are no longer neededkpfleming
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3665 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-01-09Merged revisions 3638 via svnmerge from mattf
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r3638 | mattf | 2008-01-09 16:46:47 -0600 (Wed, 09 Jan 2008) | 1 line Make sure G.165 EC disable tone detection is enabled ........ git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3639 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-01-04various minor cleanupskpfleming
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3609 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-01-02VPMADT032 stability changes for wctdm24xxp and wcte12xp:sruffell
- Remove double reads. - Wait for writes to complete before starting reads. - Optimize reads of multi-word register. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3592 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-01-02Move the release of VPMADT032 resources to after the interrupt handler has ↵sruffell
been freed. Closes a small window of opportunity for NULL pointer access at driver unload time. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3586 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-12-11Merged revisions 3430 via svnmerge from kpfleming
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r3430 | kpfleming | 2007-12-11 11:27:00 -0600 (Tue, 11 Dec 2007) | 4 lines coding guidelines cleanup report results of failure to initialize a VPMADT032 module all the way up the process, so that a card with a failed VPM won't be left in a partially-operational state clean up early exits from wctdm_init_one() to undo all previously completed steps ........ git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3431 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-12-11Merged revisions 3407 via svnmerge from mattf
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r3407 | mattf | 2007-12-10 18:21:56 -0600 (Mon, 10 Dec 2007) | 1 line Make sure we wait long enough for the VPMADT032 to boot before we interact with it again ........ git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3408 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-12-10fix firmware object names for non-hotplug firmware for wctc4xxp, wcte12xp ↵kpfleming
and wctdm24xxp add VPM reporting in 'devicetype' to wcte12xp fix VPM reporting in 'devicetype' for wctdm24xxp so it actually works git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3388 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-12-10for broken analog ports, retain the signaling type that would have been ↵kpfleming
supported if the port wasn't broken in ztscan, report the port types of analog ports instead of the signaling type git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3383 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-12-08Merged revisions 3365 via svnmerge from kpfleming
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r3365 | kpfleming | 2007-12-08 11:04:11 -0600 (Sat, 08 Dec 2007) | 5 lines clean up firmware handling across wct4xxp, wctc4xxp, wctdm24xxp and wcte12xp drivers to use consistent methods add non-hotplug firmware loading support to wctdm24xxp and wcte12xp add license and copyright headers to various files that did not have them clean up header inclusion in some files ........ git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3366 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-12-07Add ability to adjust fxo gains on wctdm driversdbailey
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3350 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-12-06Merged revisions 3321 via svnmerge from mattf
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r3321 | mattf | 2007-12-06 10:40:22 -0600 (Thu, 06 Dec 2007) | 1 line Don't mangle old value of this register. Just set it without the reset bit set ........ git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3322 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-12-04the analog card drivers can now mark failed modules as 'broken', and ztscan ↵kpfleming
can output that information git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3294 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-12-04when reporting devicetype for all cards supported by the wctdm24xxp, ↵kpfleming
including the presence of a VPM in the result git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3285 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-12-04use a buffer for the span's device type instead of a string pointer, so each ↵kpfleming
spans can have dynamically set device types instead of constant strings also fix up some string creation and copying to be safe against buffer overflows git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3281 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-12-04add a new Zaptel scanning tool, primarily for use by the Asterisk GUI, ↵kpfleming
called 'ztscan'. this tool outputs an Asterisk-style configuration file containing one context for each Zaptel span with all the details that can be learned about that span. to enable this tool, the ZT_SPANSTAT ioctl gained a number of new elements to report information about the spans: - linecompat (available signaling modes for digital spans) - spantype (T1, E1 or J1 for digital spans) - location (PCI/PCI-Express location) - manufacturer - devicetype Along the way I also found that the digital span drivers always set T1-style signaling bits in 'linecompat' even for E1 spans, and that the ZT_SPANCONFIG ioctl did not properly check these bits when configuring E1 spans. The result of this is that it was possible to configure T1-only coding/framing (AMI/B8Zs, D4/ESF) on E1 spans (but not the reverse); this has been corrected and any attempt to use T1-only coding/framing on E1 spans will now result in an error from ztcfg. Also did some minor simplification of the Makefile rules that build the userspace tools. (the basics of ztscan were written by Brandon Kruse then reworked and fleshed out by me) git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3278 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-11-30populate the 'irq' member of the span structure since it is therekpfleming
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3267 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-11-21Merged revisions 3243 via svnmerge from mattf
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r3243 | mattf | 2007-11-21 17:51:48 -0600 (Wed, 21 Nov 2007) | 1 line Add new product support ........ git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3244 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-11-06Merged revisions 3215 via svnmerge from mattf
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r3215 | mattf | 2007-11-06 15:13:09 -0600 (Tue, 06 Nov 2007) | 1 line Cross port fxo line voltage monitoring patch from wctdm to wctdm24xxp ........ git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3216 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-10-26If you depend on anything that is not in /usr/include/zaptel , you must tzafrir
build with the local zaptel.h . Otherwise you may mix two versions of Zaptel . git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3190 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-10-26Merged revisions 3188 via svnmerge from mattf
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r3188 | mattf | 2007-10-26 10:08:37 -0500 (Fri, 26 Oct 2007) | 1 line Another clock polarity update. To fix garbage audio on some systems with the wctdm24xxp driver and VPMADT032 ........ git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3189 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-10-12Merged revisions 3132 via svnmerge from mattf
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r3132 | mattf | 2007-10-12 17:19:58 -0500 (Fri, 12 Oct 2007) | 1 line Fix for false power alarms, as well as a clock polarity issue ........ git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3133 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-09-20Disable native bridging pending resolving of some issuesmattf
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3064 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-09-11After committing the patch to make ringdebounce a module parameter in wctdm, Irussell
went ahead and made the same change to wctdm24xxp. *** Note that there is a discrepancy here. wctdm uses 64 ms as the default ring debounce value while this module uses 128 ms. I'm not sure which one is more appropriate, but they should certainly default to the same thing. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3012 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-08-30remove an unnecessary memset of the global ifaces array on module initrussell
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@2980 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-08-23Merged revisions 2940 via svnmerge from mattf
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r2940 | mattf | 2007-08-23 11:41:36 -0500 (Thu, 23 Aug 2007) | 1 line Increase CWCID reliability on analog modules significantly. (although if you have problems with pulse dialing on high REN loads, see the comment to revert the value back to its previous value). Thanks Kinsey and Rick. ........ git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@2941 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-08-21Merged revisions 2923 via svnmerge from mattf
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r2923 | mattf | 2007-08-21 13:40:23 -0500 (Tue, 21 Aug 2007) | 1 line Allow wctdm24xxp to compile on a 2.4 based kernel ........ git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@2924 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-08-16Merged revisions 2857 via svnmerge from mattf
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r2857 | mattf | 2007-08-16 15:02:58 -0500 (Thu, 16 Aug 2007) | 1 line Fix for when voicebus based cards stop taking interrupts on some systems ........ git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@2858 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-08-16Merged revisions 2852 via svnmerge from mattf
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r2852 | mattf | 2007-08-16 12:01:18 -0500 (Thu, 16 Aug 2007) | 1 line Make sure the gain adjustment is only done if the VPM100M is present ........ git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@2853 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-08-10Merged revisions 2829 via svnmerge from mattf
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r2829 | mattf | 2007-08-10 16:54:56 -0500 (Fri, 10 Aug 2007) | 1 line Make sure we permit MRM commands ........ git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@2830 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-07-27Merged revisions 2781 via svnmerge from mattf
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r2781 | mattf | 2007-07-27 14:02:28 -0500 (Fri, 27 Jul 2007) | 1 line Minor message removal ........ git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@2782 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-07-20Make sure we use the new firmware interfacemattf
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@2769 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-07-20Merged revisions 2765 via svnmerge from mattf
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r2765 | mattf | 2007-07-20 14:17:25 -0500 (Fri, 20 Jul 2007) | 1 line Add new 2.6.22 api updates ........ git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@2766 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-07-20Merged revisions 2761 via svnmerge from mattf
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r2761 | mattf | 2007-07-20 11:19:47 -0500 (Fri, 20 Jul 2007) | 1 line New product support, new echo canceler and new boards ........ git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@2762 5390a7c7-147a-4af0-8ec9-7488f05a26cb