summaryrefslogtreecommitdiff
path: root/drivers/dahdi
AgeCommit message (Collapse)Author
2010-08-13wctdm24xxp: Set the 'spantype' for the digital spans.Shaun Ruffell
Defaults to "TE" but can be set by software to "NT" by dahdi_cfg. Signed-off-by: Shaun Ruffell <sruffell@digium.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9132 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-08-13wctdm24xxp: 'is_span_digital' -> 'dahdi_is_span_digital'Shaun Ruffell
Signed-off-by: Shaun Ruffell <sruffell@digium.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9131 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-08-12Timing fix where handling math in find_sync_src() would return -2 instead of ↵Matthew Fredrickson
-1 in cases where automatic timing sync was specified. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9127 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-08-11dahdi: Do not error when uncrossing a channel if there is no 'dacs' callback.Shaun Ruffell
The previous commit was making all chan configs fail on a span that did not have a dacs callback. Also add some documentation for 'dahdi_chan_dacs' and make it more explicit when we're disabling cross connect. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9124 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-08-10dahdi: "Unable" -> "Unable to".Shaun Ruffell
Proper sentences are always preferred. Thanks kpfleming :) git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9121 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-08-10dahdi: Fix oops when trying to dacs channels with a null dacs function.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9120 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-08-06wct4xxp: minor checkpatch changesRuss Meyerriecks
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9105 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-08-06wct4xxp: Added card level timing information in sysfsRuss Meyerriecks
For kernels >= 2.6.18, each individual card has it's local timing hung off the pci device in the sysfs tree. dahdi-626 git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9102 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-08-06wctdm24xxp: Added "auto" companding optionRuss Meyerriecks
Added the "auto" option for the module parameter "companding". In auto mode its left up to each card to decide what companding mode it should be in. If a BRI module is installed, it set everything to alaw; ulaw is selected if no BRI module is installed. Also fixed a bug where forcing companding one way or the other wasn't affecting the BRI modules. dahdi-673 git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9101 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-08-06wctdm24xp: Replaced alawoverride with compandingRuss Meyerriecks
Added the module parameter "companding" to eventually replace the current alawoverride parameter. Added some deprecated messages so current users will know to move over before we remove it entirely. dahdi-673 git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9100 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-08-06wcb4xxp: Renamed module parameter "alawoverride" to "companding"Russ Meyerriecks
Renamed the module parameter "alawoverride" to "companding". The valid values for "companding" are now the strings "alaw" or "ulaw", instead of integers. dahdi-673 git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9099 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-08-06wct4xxp: module param "extendedreset" now a compile optionRuss Meyerriecks
Due to the very small number of affected customers we have removed the module parameter "extendedreset" in favor of a compile time option "CONFIG_EXTENDED_RESET". dahdi-673 git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9098 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-08-06dahdi: Trivial spelling change.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9094 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-08-05don't crash on disconnecting of ABTzafrir Cohen
This is a regression from r8985 . The temporary 'module' was there because the pointer 'chan' may become invalid after the close function. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9090 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-08-04wctdm24xxp: 'struct dahdi_span' is already embedded in the 'struct wctdm_span'.Shaun Ruffell
We cannot also embed it in struct b400m_span structure and expect container_of to work. This fixes a regression introduced in r8984. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9087 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-07-31wctdm: Prevent FXS Proslic staying in "Forward/Reverse OnHookTransfer" ↵Alec L Davis
during call Since the 3 second click after answering the call on an FXS port has been fixed issue# 15352, the side effect is that the Proslic during a call, still has the audio signal paths still powered on. Reading the Si3215 specs it reads that an extra ~20mA is consumed while in OHT mode. (issue #17764) Reported by: alecdavis Patches: wctdm_fxs_offhook.diff.txt uploaded by alecdavis (license 585) Tested by: alecdavis git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9073 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-07-30wctdm24xxp: Prevent FXS Proslic staying in "Forward/Reverse OnHookTransfer" ↵Alec L Davis
during call [One-liner summary of changes] Now that the 3 second click after answering the call on an FXS port has been fixed, the side effect is that the Proslic during a call, still has the audio signal paths still powered on. Reading the Si3215 specs it reads that an extra ~20mA is consumed while in OHT mode. (closes issue #17764) Reported by: alecdavis Patches: wctdm24xxp_fxs_offhook.diff.txt uploaded by alecdavis (license 585) Tested by: alecdavis git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9070 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-07-29SLIC_LF_OPPENDING confict between wctdm_proslic_recheck_sanity() and ↵Alec L Davis
set_lasttxhook_interruptible() Problem: 'wctdm_proslic_recheck_sanity()' is executed (4 times??) every ~256ms which monitors and clears the SLIC_LF_OPPENDING on fxs->lasttxhook when the LF state has been reached. 'set_lasttxhook_interruptible()' times out after 100ms waiting from the previous write to the SLIC_LF register, by waiting for SLIC_LF_OPPENDING to be cleared, thus the write will fail. Solution: adds wctdm_proslic_check_oppending which does the monitoring and clearing of SLIC_LF_OPPENDING, which is execute every 1ms. It also if the correct state is not reached within 100ms, resends the lasttxhook state. (closes issue #17724) Reported by: alecdavis Patches: wctdm24xxp_fxs_answer.diff4.txt uploaded by alecdavis (license 585) Tested by: alecdavis, sruffell git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9063 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-07-29reverting: add curly braces to _write_8bitsAlec L Davis
Against Kernel Coding Guidelines git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9060 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-07-29add curly braces to _write_8bitsAlec L Davis
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9059 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-07-29wct4xxp, wcte12xp: restrict signaling and line combinations to what actually ↵Kinsey Moore
works git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9056 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-07-29wctdm24xxp: reference B400Ms as BRI, correct a module alias, make the module ↵Kinsey Moore
description more accurate git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9055 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-07-29wctdm24xxp: only allow B400M modules on hybrid cardsKinsey Moore
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9054 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-07-29wctdm24xxp: correct references to "wildcard" and display the number of BRI ↵Kinsey Moore
spans and analog channels after detection git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9053 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-07-29dahdi-base: display Reserved when a channel is unusable (has a sigcap of 0)Kinsey Moore
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9052 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-07-29wct4xxp, wcte12xp: remove loobpack parameter, functionality provided by ↵Kinsey Moore
dahdi_maint git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9051 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-07-29wctdm24xxp: don't report about VPM100s if none are present and warn the user ↵Kinsey Moore
when flashing firmware git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9050 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-07-29wct4xxp: increase consistency and decrease verbosity of kernel loggingKinsey Moore
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9049 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-07-28wcte12xp, wctdm24xxp: Minor cleanup 0 -> NULLShaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9046 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-07-28tor2: Do not directly dereference I/O memory.Shaun Ruffell
Mainly to quiet a sparse warning, but this could be a real problem on some non x86 platforms. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9045 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-07-28wctdm: Fix signed one-bit fields.Shaun Ruffell
Thanks sparse. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9044 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-07-28wcte12xp: Add __user annotation in copy_to_user call.Shaun Ruffell
Quiets sparse. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9043 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-07-28wct4xxp: Several minor changes to make sparse/checkpatch.pl happy.Shaun Ruffell
Make setup_chunks static, eliminate a dynamic array in the interrupt handler, don't cast away a memory region specifier, and don't initialize statics to 0. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9042 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-07-28wcb4xxp: Trivial removal of some whitespace at the end of a line.Shaun Ruffell
Fixing formatting errors that have snuck in since the 2.3.0 release. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9041 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-07-28wcte12xp: Trival formatting changes.Shaun Ruffell
Fixing up some of the formatting errors that crept in since the 2.3.0 release. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9040 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-07-28dahdi: Unlock the dahdi_span.lock when passed an invalid DAHDI_MAINT command.Shaun Ruffell
Fixes the following sparse warning "warning: context imbalance in 'dahdi_ctl_ioctl' - different lock contexts for basic block". Thank you sparse! git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9038 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-07-28wctc4xxp: Add compile-time option to always poll the interface.Shaun Ruffell
Added as a workaround for a system which was not routing interrupts properly and therefore is off by default. Candidate for reversion in a couple of years. DAHDI-627. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9037 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-07-28wctc4xxp: Move from I/O space to memory-mapped registers.Shaun Ruffell
Certain platforms have trouble with the registers mapped from I/O space. DAHDI-627. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9036 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-07-28wctc4xxp: Do not ACK response packets without a corresponding request.Shaun Ruffell
Closes a small window of opportunity where system conditions prevent the driver from servicing it's receive ring within the timeout period of a request, and then in the middle of retrying the request (after the request was already removed from the "waiting_for_response" list) the driver process the response, it's possible for the driver to ACK the response without ever pairing it up with the original request. The result being that the DTE will then ignore our attempts to retry the original request. DAHDI-430. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9035 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-07-28wctc4xxp: Allow read to return more than one packet of data.Shaun Ruffell
As of this writing codec_dahdi (Asterisk module) will not call 'read' on a transcoder channel more often than it calls 'write'. When a translation path is setup that will transcode from g723 to g729, write is called every 30ms and each 'read' returns only 20ms of data. The end result is audio that slowly becomes increasing delayed. Since codec_dahdi calls the system read function with a buffer large enough to hold more than one packet this can prevents packets from backing up on the channel. DAHDI-582 git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9034 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-07-28Ignore Reg. 0x70 messages at E1.Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9028 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-07-28demote a notice that will happen at registrationTzafrir Cohen
We might as well ignore this, as we will get this at span registration time anyway. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9025 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-07-27wct4xxp: Enabled network facing looping for E1Russ Meyerriecks
Added the abililty to loop the line back towards the network for E1 modes. This supports both network loop and network payload loop. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9019 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-07-27wct4xxp: Fixed error injection bugRuss Meyerriecks
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9016 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-07-26wct4xxp: Error counter injection for E1 modeRuss Meyerriecks
Added support for error counter injection for E1 mode git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9013 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-07-26wct4xxp: Removed card level event handlerRuss Meyerriecks
Upon review the event introduced in r8998 seemed to be redundant, as the same information was already available. Performance issues were also a concern. This reverts r8998. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9010 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-07-26Added hardware transformer checkRuss Meyerriecks
QuadFalc has the ability to test if the transformer is performing correctly. If the components between the framer and the physical span interface are shorted out or opened for any reason we can now detect it. Possible causes for tripping this error could be a broken transformer from an electrical spike or a board manufacturing error. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@8999 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-07-26Added card level event handlerRuss Meyerriecks
When a loss of syncronization signal occurs on one of the spans, it affects all spans on that card. Since we do not have a span or card level event system, we have to queue up a global event on all channels for that card The new event is DAHDI_EVENT_SYNC git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@8998 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-07-26Added the ability to trigger alarm simulation states in theRuss Meyerriecks
qfalc framer. Added some more verbose red alarm states in the upper byte of the alarm member of the dahdi_span structure Removed some unnecessary instrumentation regarding the enabling of the errored second and 1 second counters for performance collecting. Also added a couple comments. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@8997 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-07-26dahdi: Move the 'owner' field from dahdi_span to dahdi_span_ops.Shaun Ruffell
One more thing that can be moved out of the per-span structure. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@8986 a0bf4364-ded3-4de4-8d8a-66a801d63aff