summaryrefslogtreecommitdiff
path: root/kernel
AgeCommit message (Collapse)Author
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-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-28mprove reliablity of UK caller ID for the TDM400P by not allowing thesruffell
ringdebounce to be decremented when it is at 0 already. Related to issue #12531. Reported mattbrown, fix suggested by benbrown. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4547 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-09-25XPP firmware: Only send out CAS D-channel messages when in CAS mode.tzafrir
Only updates FPGA_1151.hex. Id: rev 6152. From xpp rev 6163. Merged revisions 4544 via svnmerge from http://svn.digium.com/svn/zaptel/branches/1.2 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4545 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-09-09Zaptel.pm: Fix sample program (perldoc-only fix).tzafrir
Merged revisions 4533 via svnmerge from http://svn.digium.com/svn/zaptel/branches/1.2 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4534 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-09-09xpp-zaptel: Bugfix: Display data_high in /proc/xpp/*/chipregs:tzafrir
* This byte wasn't shown even if do_datah bit was set. * Also converged all terminology to "sub-register" and not "indirect" * Changed accordingly '[WR]I' to [WR]S' in code. * Still allow usage of '[WR]I' but with deprecation NOTICE() * Convert init_card_* scripts * Adapt show_regs and write_regs script accordingly. * Leave FXS internal macros with ...INDIRECT... because that's the terminology of the SLIC. * You should use both the newer driver and init script. Specifically: newer init script will fail to work with older BRI and FXS xpp driver loaded. From xpp rev. 6117. Merged revisions 4520 via svnmerge from http://svn.digium.com/svn/zaptel/branches/1.2 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4531 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-09-09xpp-zaptel: FXO: Add caller-id workaround for ESTI-DTMF (for #9096)tzafrir
* Also rename the CID_STYLE_* constants to formal names. From Xorcom Rev. 6115. Merged revisions 4519 via svnmerge from http://svn.digium.com/svn/zaptel/branches/1.2 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4529 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-09-09xpp-zaptel: FXO: fix init_card_2_30 opermode verificationtzafrir
* In case of any diff, exit with non-zero status so the build fails. * Print filename:lineno of missing or changed lines. * Fix two countries (typos fixed in COLOMBIA and CYPRUS). * xpp-zaptel: FXO: cleanup opermode verification code (from DAHDI): - Add proper '-v' option to init_card_2_30 and use it in xortel/Makefile - Use $mismatches as in DAHDI (minimize diffs). From xpp rev. 6107,6108 Merged revisions 4517-4518 via svnmerge from https://origsvn.digium.com/svn/zaptel/branches/1.2 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4524 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-09-09Fix another path to an uninitialized SUB config provided to us from thetzafrir
controller. From xpp rev. 6071. Merged revisions 4516 via svnmerge from http://svn.digium.com/svn/zaptel/branches/1.2 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4523 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-09-08Minor FXS/FXO type fixes in case probe was not done.tzafrir
Merged revisions 4512 via svnmerge from http://svn.digium.com/svn/zaptel/branches/1.2 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4514 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-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-20resolve some compile warningskpfleming
(closes issue #13278) Reported by: smurfix Patches: zap-string.patch uploaded by smurfix (license 547) git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4497 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-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-20Mark xpp_fxloader as executable.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4494 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-19Couple of fixes for the transcoder:sruffell
- In dahdi_transcode.c, Embed the identifiation number, assigned sequentially when the transcoders are registered, in the transcoder structure. This allows DAHDI_TC_GETINFO to work as expected even though the transcoders are rotated on the list in order to spread the load. - In wctc4xxp, fix bug where all transcoders are named tc400b0. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4491 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-08-17Zaptel-perl: fix leftovers from r4475 (handling of spaces)tzafrir
While r4476 solved some parsing problems of channels with "strange" encoding names, it introduced a new problem (e.g.: "RED" after "(In use)" which is fixed here. Merged revisions 4488 via svnmerge from http://svn.digium.com/svn/zaptel/branches/1.2 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4489 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-08-14Update changelog for xpp rev. 6055.tzafrir
Merged revisions 4486 via svnmerge from http://svn.digium.com/svn/zaptel/branches/1.2 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4487 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-08-14xpp: FXO: display signed voltage values (from xpp r6055)tzafrir
This is only an issue with the displayed value. In case you wondered why you have battery voltage of more than 220V. Merged revisions 4484 via svnmerge from http://svn.digium.com/svn/zaptel/branches/1.2 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4485 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-13README updates and license updates for header fileskpfleming
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4481 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-08-13clean up a timing issue on debounce of neon mwi detectdbailey
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4480 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-08-13Port in the NEON MWI detection from the AA50 into the wctdm24xxp driverdbailey
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4479 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-12Zaptel-perl: more robust parsing of channel signalling types.tzafrir
Parse them from a list rather thna fusing a regex of a "word". Merged revisions 4475 via svnmerge from http://svn.digium.com/svn/zaptel/branches/1.2 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4476 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-08-11* pcmtx_chan debugging parameter now refers to a zaptel channel number.tzafrir
* Do initialize xsp. Closes issue #13276 . * xbus_core_shutdown can't be __exit as it is used in initilization as well. Merged revisions 4473 via svnmerge from http://svn.digium.com/svn/zaptel/branches/1.2 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4474 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-08-11xpp: fxo: fix caller-id CID_STYLE_PASS_ALWAYS.tzafrir
Merged revisions 4468 via svnmerge from http://svn.digium.com/svn/zaptel/branches/1.2 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4472 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-07xpp: preliminary CAS support.tzafrir
Uses newer firmware (5975) for the 1151 alone. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4463 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-08-07xpp: reset a reserved protocol field.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4462 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-08-07xpp: debuggging parameter pcmtx_chan now refers to a zap channel number.tzafrir
Also fix a typo in card_fxs. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4461 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-08-04Remove obsolete calibrate_slics. Clean more in utils Makefile.tzafrir
Merged revisions 4458 via svnmerge from http://svn.digium.com/svn/zaptel/branches/1.2 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4459 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-08-04Merged revisions 4451-4455 via svnmerge from tzafrir
http://svn.digium.com/svn/zaptel/branches/1.2 ........ r4451 | tzafrir | 2008-08-04 18:11:01 +0300 (Mon, 04 Aug 2008) | 9 lines Firmware update: 5959 (DTMF and BRI ID) (From DAHDI rev. 4695) * Fix some cases of double digits. * Fix some rare cases of a BRI unit providing incorrect directionality. * Extra debugging code in card_fxs.c to trace future DTMF issues. * Properly note DAHDI (as opposed to Zaptel) ioctls. ........ r4452 | tzafrir | 2008-08-04 18:36:19 +0300 (Mon, 04 Aug 2008) | 2 lines Make it formally bashism. ........ r4453 | tzafrir | 2008-08-04 18:38:10 +0300 (Mon, 04 Aug 2008) | 2 lines Kbuild: A more robust check for the bri_dchan patch. ........ r4454 | tzafrir | 2008-08-04 18:39:01 +0300 (Mon, 04 Aug 2008) | 2 lines Minor BRI initlization improvements. ........ r4455 | tzafrir | 2008-08-04 18:43:32 +0300 (Mon, 04 Aug 2008) | 7 lines Add channel alarms in Zaptel-perl and lszaptel specifically. * Zaptel::Chans now provides a method alarms() for a list (or number of) alarms. * lszaptel uses it for a more correct display of channel status. * Also update PCI hardware list. ........ git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4456 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-22make battery loss to red alarm translation actually work for these driverskpfleming
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4429 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-07-10PCM: A bugfix that was reintroduced in r4353:tzafrir
After this change, the echo-canceler buffers were not cleared in some cases. As a result when one FXS is put ONHOOK, the other side could hear noise for a second or two until full disconnect is done. Merged revisions 4407 via svnmerge from http://svn.digium.com/svn/zaptel/branches/1.2 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4408 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-07-08A case where we didn't switch to low power at the end of a ring.tzafrir
Issue may prevents ONHOOK detection. Merged revisions 4394 via svnmerge from http://svn.digium.com/svn/zaptel/branches/1.2 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4395 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-07-07Default ring debounce timer should be higher to properly catch calleridmattf
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4391 5390a7c7-147a-4af0-8ec9-7488f05a26cb