summaryrefslogtreecommitdiff
path: root/xpp/card_fxo.c
AgeCommit message (Collapse)Author
2006-09-06Cleanup the unused non-RBS code:tzafrir
* remove all non WITH_RBS code. No need for the define. * unused recv_errors and seq_errors. * CID_START_TICKS, CID_STOP_TICKS cid_timer from trunk/ git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1411 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-09-06Begin merging a small set of clean-ups:tzafrir
* __do_sethook() was gone and merged into do_sethook(). * Use DAA_RING_REGISTER constant instead of a number. git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1408 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-09-04FXO caller-id now works.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1393 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-09-04Workaround spurious rings described in ticket:102 .tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1392 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-09-04Rename the bitmask xpd->hookstate into xpd->offhook (for readability).tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1391 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-09-04Finally not using SOFT_RING.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1389 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-09-04Send ring signalling to zaptel directly from card_fxo.c:tzafrir
no need to xpp_ring_generate() git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1388 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-09-04Fix FXO polling (separate poll_counter for each unit)tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1387 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-09-04Minor code cleanup: No more SETHOOK method. It's only used in FXO, sotzafrir
now it's an internal function: __do_sethook() git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1383 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-09-04Experimenting with SOFT_RING again:tzafrir
* Poll R5 every 2 milliseconds; thresholds adjusted accordingly. * experimenting a reduced noring_threshhold (20ms) * Unset ring_sig[] for the FXO channel that is no longer being ringed. * Added ring_sig[] to the fxo struct: set when we need to check for reg 5 (instead of abusing the value of ring_thresh[]) * Don't increment ring_thresh/noring_thresh once they reached their threshold. git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1382 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-09-02Fix problems with battery voltage fluctuations:tzafrir
- Use a higher voltage. - Add a software debounce counter. git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1381 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-09-02Show in /proc/xpp/XBUS-?/XPD-?/fxo_info also the noring_thresh[]tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1379 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-08-10Show SOFT_RING compile status when xpd_fxo module is loaded.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1292 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-08-10Fix ring detection logic in FXO:tzafrir
Detect ring stop only when register 0x05 shows no ring voltage for enough samples. This is done via noring_thresh[]. git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1291 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-08-10card_fxo.c: Fix a potential bug: battery voltage is a 2's complement value.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1288 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-08-10* New SOFT_RING detection in FXO:tzafrir
- Poll register 0x05 on each DAA - When enough energy (value of 0x20|0x40 occurs enough times), raise the ringing[] flag. - When the value show no energy, lower the ringing[] flag. - When we get SIG_CHANGED of stop ringing -- stop polling. * More debugging messages for proc files git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1285 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-08-10Better LED handling for fxo (copied from fxs):tzafrir
- Fix both branches/RELEASE-1.1.0 and trunk/ - Use a ledcontrol bitmask to mark led on/off - Actuall led commands are send only from handle_fxo_leds() git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1280 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-08-10- In SIG_CHANGED only sig_toggles bits are interesting (was good in FXS,tzafrir
now fixed in FXO). - Better DBG messages for SIG_CHANGED (FXS and FXO). - Start work on new RING logic (for FXO caller id). git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1279 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-07-16Merged revisions 1235 via svnmerge from kpfleming
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r1235 | kpfleming | 2006-07-15 19:12:55 -0500 (Sat, 15 Jul 2006) | 2 lines eliminate compiler warning ........ git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1238 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-07-14NULLify pointers to /proc files after removing them (so anyone who tries to tzafrir
access them afterwards causes iimmediate Oops instead of unknown behaviour). git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1225 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-07-06Tons of updates to the Astribank (xpp) driver:tzafrir
* xpd_fxo.ko (FXO span) is now operational * Remove obsolete .inc initialization files (we use user-space init) * Added an install target to the utils dir. * Updated README.Astribank accordingly. * Using RBS signalling, as caller ID did not work well otherwise. * Better handling of USB protocol errors. * Fixed some procfs-related races. * per-card-module ioctls. * fxotune support. * opermode support (set through /etc/default/zaptel for now) * Userspace initialization script can also read registers. * Power calibration works (and implemented in perl) * some fine-tuning to the regster initialization parameters. * Leds turn on before registration and turn off after it. git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1204 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-06-17* Echo canceller not disablerdtzafrir
* card_fxo.c: Fixed an unreleased spinlock * utils/Makefile: No more C++ flags * utils/Makefile: An install target * fpga_load: usb1 support * genzaptelconf: Support for more cards (Any Sangoma A20x testers?) * xpp_fxloder: The new USB ID, even for manual loads... * xpp_zap.c: Print module fetures in a better format at load time. git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1114 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-05-22* Now possible to load FPGA (second stage) firmware with USB1tzafrir
* fixed locking of xpd-lock * slightly newer FPGA firmware: slight improvements. git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1078 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-05-03xpp driver release 1.1.0 (first part of commit)tzafrir
* FPGA firmware now loaded from PC (for newer models) * Driver for the FXO module * Moved most userspace files to the subdirectory utils (see also next commit) * Explicit license for firmware files * Optionally avoid auto-registration * Initializations parameters to chips given from userspace * And did I mention bugfixes? git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1021 5390a7c7-147a-4af0-8ec9-7488f05a26cb