summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2008-08-03Use the wrapper CLASS_DEV_DESTROY rather than class_device_destroytzafrir
explicitly. Should help with kernels < 2.6.13 and kernels >= 2.6.26 . git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4448 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. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4447 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-08-01Fix detection of ringing on FXO ports. This change was made to wctdm in 1.4russell
in revision 4096, but when that code got backported to 1.2 in rev 4132, the change was not made. I found it just by comparing the differences in the drivers between 1.2 and 1.4. (closes issue #13188) Reported by: pyves Patches: 20080731__issue13188_revert4123z12.diff uploaded by bbryant (license 36) issue13188.patch1.txt uploaded by russell (license 2) Tested by: russell, bbryant git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4442 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-07-21Fix building zaptel 1.2 with kernel 2.6.26. Taken from DAHDI-linux rev.tzafrir
4522. For issue #12944 . git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4424 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-07-10PCM: A bugfix that was reintroduced in r4352: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. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4407 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. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4394 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.2@4390 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-06-28Fixes building with the kernel of RHEL 5.2. Closes issue #12889 .tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4367 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-06-15Muted DTMF PCM (from FXS modules) could "leak" to the next channel.tzafrir
(From xpp r5796). git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4352 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-06-05Fixed type of flags parameter to spin_lock_irqsave functions. Fixessruffell
compilation issues on platforms where int and long do not have the same size. Closes issue #12787 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4345 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-05-22blink_mode was a boolean and changed to a channels bitmask. Now actuallytzafrir
changing the type from bool to unsigned long. (xpp r5756). git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4314 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-05-20* Document Zaptel::Spantzafrir
* Minor changes to Zaptel::Xpp as well. (Documentation-only changes. xpp r5746,r5747) git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4308 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-05-19* Zaptel-1.2.x does not have zt_alarm_channel(). Move up the backwardtzafrir
compatibility kludge so it actually affect code (failed compilation on zaptel-1.2 from Digium without (Closes issue #12654 ). * Cleanup a compile warning in xpp/card_global.c . * Fix regression in PRI init script (case of less than 4 modules). * Update changelog and bump version. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4304 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-05-14Wrong version number.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4286 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-05-14XPP documentation fixes.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4271 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-05-14The parameter print_dbg of xpp has chnaged to "debug".tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4269 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-05-13xpp r5723: Includes, among others:tzafrir
* New firmware protocol version: 3.0 . * New numbers for the device types: (e.g. in card_init* scripts) - FXS: 1 (was: 3) - FXO: 2 (was: 4) - BRI: 3 (was: 6 for TE, 7 for NT) - PRI: 4 (was: 9) * Init scripts of FXS and FXO modules are now written in Perl as well (be sure to have File::Basename, e.g: perl-modules in Debian). * calibrate_slics merged into init_card_1_30 . * Module parameter print_dbg replaced with debug . Same meaning. * init_fxo_modes removed: content moved into init_card_2_30, verified at build time. * Code tested with sparse. Most warnings were fixed. * Set ZT_SIG_DACS for the bchans in the PRI and BRI modules to not get ignored by ztscan. * Handle null config_desc we get from some crazy USB controllers. * genzaptelconf: Fix reporting of empty slots in list mode. * xpp_blink can now blink a single analog port. * "slics" has been renamed "chipregs". * Fixed a small typo in fpga_load(8). * Fixed bashism in xpp_fxloader. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4264 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-05-04* Allow initialization of T1-s (r5665) .tzafrir
* Remove some false alarms on T1-s (r5669) . git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4234 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-05-04A test for a specific #define in zconfig.h was done by invoking cpp .tzafrir
Sadly the change of CFLAGS handling in kernel 2.6.24 meant that it is no longer as easy to invoke cpp on our own. Impact: On kernel >= 2.6.24, xpd_bri never got built, even if the bri_dchan patch was applied. Fix: use a simpler grep instead. Hopefully noone passes it through other means. This should fix issue #12426 . (Backport of r4193 from branches/1.4) git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4233 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-04-24Fixes a regression in versions 1.2.25 and 1.4.19 identified by korihor wheresruffell
the wctdm driver was no longer properly recognizing polarity reversals. (closes issue #12419) git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4194 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-04-17ztdynamic_chanfree.diff from bug #12406 .tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4174 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-04-10Officially bumping xpp version (xpp/.version) to 5566 .tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4164 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-04-09The rest of the backport.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4158 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-04-09Backport some fxo_modes changes from 1.4 to make xpp/utils build again.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4157 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-04-04Zaptel::Hardware - Add support for AEX410.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4138 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-04-04Add support for AEX410mattf
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4136 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-04-04git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4133 ↵mattf
5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-04-04svn merge -c4096 ↵sruffell
https://origsvn.digium.com/svn/zaptel/branches/1.4/kernel/wctdm.c . git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4132 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-04-03svn merge -c4096 ↵sruffell
https://origsvn.digium.com/svn/zaptel/branches/1.4/kernel/wctdm24xxp wctdm24xxp svn merge -c4096 https://origsvn.digium.com/svn/zaptel/branches/1.4/kernel/wcte12xp wcte12xp svn cp https://origsvn.digium.com/svn/zaptel/branches/1.4/kernel/voicebus.c . svn cp https://origsvn.digium.com/svn/zaptel/branches/1.4/kernel/voicebus.h . svn cp https://origsvn.digium.com/svn/zaptel/branches/1.4/kernel/fxo_modes.h . git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4129 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-04-03svn merge -c3012 https://origsvn.digium.com/svn/zaptel/branches/1.4 .sruffell
svn merge -c3701 https://origsvn.digium.com/svn/zaptel/branches/1.4 . svn merge -c3703 https://origsvn.digium.com/svn/zaptel/branches/1.4 . svn merge -c4050 https://origsvn.digium.com/svn/zaptel/branches/1.4/kernel . git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4128 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-04-03Moving a macro to quiet a compiler warning.sruffell
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4127 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-04-03svn merge -r 3010:3011 https://origsvn.digium.com/svn/zaptel/branches/1.4sruffell
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4126 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-04-01Err.... re-fix make clean for kernel 2.4.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4118 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-03-31Fix 'make clean' when there's no kernel tree. Partial backport of r4082tzafrir
from 1.4. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4117 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-03-31Document when "D-Chan RX Bad checksum" is not a problem.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4109 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-03-26Don't easily fail for missing udevinfo. tzafrir
Nobody has that older udev version (or otherwise we might have recieved a bug report about a bogus == rule). TODO: fix the UDEVRULES test in Makefile. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4085 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-03-24Add in new parameters added for 1.16 version of the firmware for the TE120 ↵mattf
which should have already been merged in. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4072 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-03-21* Get hdlcstress and hdlctest to build.tzafrir
* Make sure everything's initialized in hdlctest.c . git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4038 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-03-21Revert accidental changes to hdlcstress.ctzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4037 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-03-21* Earleier initialization of PRI module's register.tzafrir
* Fix zaptel-perl reporting of battery after procfs changes. * Documentation updates. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4036 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-03-19Add support for new VPMADT032 fw for the TE120mattf
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4028 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-03-19Make sure this check is made in 1.2 as wellmattf
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4025 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-03-18* We need to silence the echo-canceller buffers as well.tzafrir
* But no need to cancel echo on channels without PCM. * Switch to FXS hardware DTMF detection again. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4012 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-03-14Update wctdm24xxp's VPMADT032 firmware to version 1.16mattf
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@3988 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-03-09More asciidoc polishes and small sample file fixes.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@3972 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-03-09Integrating sample / reference configuration file into the referencetzafrir
documentation. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@3968 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-03-06xpp.r5512:tzafrir
* Build: - Zaptel >= 1.4.9 is migrating to storing kernel stuff in zaptel/kernel/* - We conditionally use old/new directory scheme: In xpp/Kbuild and xpp/utils/Makefile use ZAP_KERNEL variable, so it's not confused with ZAPTEL_DIR (which appears in zaptel/Makefile as well). - Fix compile warnings on 64 bit systems. - Compile fixes for kernel-2.6.24 * UDEV: - /etc/udev/rules.d/xpp.rules now uses XPP_INIT_DIR to find astribank_hook. - astribank_hook: Modify to do nothing. Add some documentation. * Autoconfiguration -- zapconf: - Don't fail zapconf et.al. if no config file was found. - Skip the 'IRQ Missing:' line in /proc/zaptel/nnn for wcte1xp(?). - Add some newer Digium cards to our hardware inventory. - Partially handle cases where the /proc/zaptel strings does not contain info about E1/T1/J1 or NT/TE. * Better SYNC: - Finer tuning of PLL (New firmware). - Change calculation algorithm of sync offset. It now copes better with the variance in USB frame reception timing. - Statistics: . The view of results was moved from /proc/xpp/XBUS-*/summary to a new /sys/bus/astribanks/devices/xbus-*/timing and enhanced. . A new xpp_timing script shows all astribanks. . A new write only /sys/bus/astribanks/devices/xbus-*/cls is used to clear statistics. Eventually, clearing of XBUS related statistics should be done here. One that was migrated is the clearing of 'PCM [TR]X:' numbers currently appearing in /proc/xpp/XBUS-*/summary (they should be moved too later). - Shorten the strings representation sync_mode ("SYNC_MODE_AB" -> "AB") adapted their use in printk and /proc so the text is clear. - Added a command line parameter xpp.disable_pll_sync to stop all adjustments command to AB (calculations still continue as usual). * PRI: - 4 port support - set clocking master span via ztcfg, like other zaptel devices. * FXO: - Fix false hangups in some countries (voltage fluctuations). - Some countries send caller-id before first ring. Added code to handle caller-id PCM pass through according to a new command line parameter (xpd_fxo.caller_id_style). - No longer sends an event on zt_open. See #12160 . * Misc: - Adapt to zaptel-1.4.8 and above ztscan: added fields returend by new ZT_SPANSTAT_V2 ioctl() - Document sysfs and waitfor_xpds. - Miscelaneous optimizations and bugfixes. - Remove deprecated pcm_tasklet parameter. The rx_tasklet parameter has replaced it a long time ago. - Add RX_CMD counter to /proc/xpp/XBUS-*/summary - Unclutter some of the usb disconnect messages. - xpp_usb: minor preformance improvements in receive. Expose the number of pending receive URB's in /proc/xpp/XBUS-*/xpp_usb git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@3952 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-03-06Also don't clean wctdm24xxp/ from userspace Makefile. See issue #12118 .tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@3951 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-03-03No need for userspace 'make clean' here. Kbuild takes care of it.tzafrir
Closes issue #12118 . git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@3917 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-02-18added some forgotten includes for zap_copy_stringjpeeler
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@3847 5390a7c7-147a-4af0-8ec9-7488f05a26cb