summaryrefslogtreecommitdiff
path: root/kernel/zaptel-base.c
AgeCommit message (Collapse)Author
2009-11-19zaptel-base,xpp,wcte12xp,wctdm24xxp,wctdm,pciradio: Compilation updates.HEADsvn_1.4masterShaun Ruffell
Adding some header files to the different drivers in order to enable them to compile against 2.6.32. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4692 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2009-07-21dahdi-base: Add support for core timing.sruffell
This essentially moves the function of dahdi_dummy into the core of Zaptel. It ensures that if Zaptel 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 ztreceive, then the behavior will be like it is normally. This functionality is off by default, uncomment CONFIG_ZAPTEL_CORE_TIMER in include/dahdi/config_dahdi.h in order to enable it. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4666 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2009-01-05Quieting a compiler warning.sruffell
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4608 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-11-21Fix a think-o in numeric comparison. Swap order to make it more clear.qwell
(closes issue #13813) Reported by: ys git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4586 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-10-30Use correct length for the Zaptel transcoder device name.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4573 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-10-15Fixing typo...there is not a rebufpolicy.sruffell
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4569 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-10-15Zaptel should always notify user mode whenever it has received buffers tosruffell
process. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4567 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-09-03Before creating a device, register the major number.tzafrir
Otherwise we need to clean-up those devices in case of failure, and we don't. This fixes the case of accidentally loading zaptel after loading dahdi (Already fixed in DAHDI). Merged revisions 4509 via svnmerge from http://svn.digium.com/svn/zaptel/branches/1.2 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4511 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-08-20improve compatibility with 2.6.26 and 2.6.27 kernelskpfleming
(closes issue #13277) Reported by: smurfix Patches: zap-dev.patch uploaded by smurfix (license 547) zap-sema.patch uploaded by smurfix (license 547) git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4496 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-08-03Fix build on kernels 2.6.2-2.6.13: class_simple_device_removetzafrir
This function only needs the device as its parameter. (Note that r4448 has already been fixed in 1.4) Merged revisions 4447 via svnmerge from http://svn.digium.com/svn/zaptel/branches/1.2 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4449 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-07-21Fix building zaptel with kernel 2.6.26. Taken from DAHDI-linux rev.tzafrir
4522. For issue #12944 . Merged revisions 4424 via svnmerge from http://svn.digium.com/svn/zaptel/branches/1.2 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4426 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-06-05Fixes a potential panic in Xorcom Astribanks devices if disconnectedtzafrir
when a userspace program still holds a channel open. Regression from changeset 4250 . git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4348 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-05-16git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4301 ↵mattf
5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-05-16git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4300 ↵mattf
5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-05-11Merge in kernel level MTP2 branch.mattf
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4250 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-05-02Merge stack cleanup branch into 1.4. Also merge firmware load time fix for ↵mattf
wct4xxp driver. The stack cleanup branch reduces the amound of stack used by zaptel, nice for systems with 4K stacks enabled and where potential stack overflow is found git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4221 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-04-25Since MF R2 tones are generated continuously, we need to not set the dialing ↵qwell
status. (closes issue #12526) Reported by: moy Patches: zaptel-mf-dialing-rev4195.patch uploaded by moy (license 222) git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4196 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-04-25Based on a comment made by moy in #asterisk-dev, and the surrounding code in ↵qwell
these functions, I believe that this is what was actually intended in r4130. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4195 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-04-19Fix compiler from complainingmattf
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4185 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-04-19Partial fix for #9379. Fixes potential race condition in open and close ↵mattf
routines for zaptel devices git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4183 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-04-18Fixed monitoring of zap pseudo channelsjdixon
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4176 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-04-17when processing ZT_SET_DIALPARAMS, don't return an error for out-of-range ↵kpfleming
tone durations, just ignore them (so that applications that don't initialize the entire zt_dialparams structure won't fail to set the ones they do initialize) (closes issue #12456) Reported by: fnordian Tested by: fnordian git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4173 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-04-11Make sure that we disable the echo canceller on the old style echocan() ↵mattf
function even if parameters are passed in. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4169 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-04-10Correct problem where drivers implementing echocan_with_params was not ↵dbailey
getting called to disable the echo canceller git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4168 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-04-04Allow continuous MFR2 transmission continuouslymarkster
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4141 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-04-03Have to use 'O' since 'F' is reserved (MFR2 fOrward)markster
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4130 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-03-27- Updated wctdm24xxp and wcte12xp driver which are now more tolerant ofsruffell
systems which do not exhibit good real-time characteristics. - Bringing in improvements to battery alarm generation that was on kpflemings battery_alarms branch. (Issue #12099) git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4096 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-03-21add MF R2 tone generation, and along the way do a lot of cleanup of the tone ↵kpfleming
building and playback code git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4063 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-03-07Fix compilation when using devfsqwell
(closes issue #12156) Reported by: zandbelt Patches: zaptel-1.4.9.2-devfs-mode.patch uploaded by zandbelt (license 33) git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3964 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-03-07Also print channel alarms in /proc/zaptel files.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3958 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-03-04don't add an unnecessary delayed battery transition on FXS ports when we ↵kpfleming
know the other end is already on-hook (closes issue #9660) Reported by: mmacvicar Patches: zaptel-base-c_patch_1_4_rev3121 uploaded by meneault (license 260) Tested by: jmhunter git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3932 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-02-27Set the default tone zone to to the first loaded zone by default.sruffell
Should prevent the crash reported in issue 0012053. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3885 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-02-18Closes issue #11471. Replaced instances of strncpy with zap_copy_string ↵jpeeler
(added to zaptel.h) to fix any off by one errors and ensure destination string is NULL terminated. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3846 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-02-16Make the kerenl parameters of zaptel.ko world-readable.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3835 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