summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2009-03-23split send_trans_connect into a connect / disconnect pair.Shaun Ruffell
Trivial change that makes the code read more naturally. Also changes the order of members in the channel_pvt structure. For more natural alignment. Both non-functional changes. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6221 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-03-23If the driver fails to register, make sure we cleanup the command cache.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6220 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-03-23Setup the TC400M to poll the own bit on the descriptor ring.Shaun Ruffell
On certain systems having the hardware poll the descriptor ring provides more reliable operation that strobbing the transmit demand poll and receive demand poll register. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6219 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-03-23Make sure that messages sitting in the outbound queue cause the timer toShaun Ruffell
reschedule. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6218 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-03-23Refactor channel command handling.Shaun Ruffell
Makes commands and reponses clearer and easier to trouble shoot, reduces pressure on the stack, and brings driver closer to kernel coding standards. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6217 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-03-18Fix a typoJason Parker
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6201 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-03-17xpp USB_FW.hex rev 6885: fixes reading label from USBTzafrir Cohen
Previous USB_FW.hex, 6770, has failed to properly read the USB iSerial field ("Label" in xpp terms). This is fixed here. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6191 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-03-16Move dahdi_config.h to be under include/dahdi/Tzafrir Cohen
This makes dahdi_config.h part of the "offcial" interface to external modules. Practically most of its configuration items are internal to dahdi-base. But some are intended for other drivers. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6177 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-03-16Make ecdis.h used by dahdi-base.h aloneTzafrir Cohen
ecdis.h is no longer #include-d in kernel.h . it was there because of decleration of some structs that are part of struct dahdi_chan. The declerations of those structs were moved into kernel.h directly. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6170 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-03-13Fix handling of 'w' in a pulse dial stringTzafrir Cohen
Make the special "digit" 'w' work in pulse dialing as it works with tone dialing (a delay of 0.5 second till the next digit). Note that the digit gets uppercased before it gets to this function. (closes issue #13999) Reported by: IgorG Patches: dahdi-base.c.pulse2.diff uploaded by tzafrir (license 46) Tested by: litnimax git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6147 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-03-12A better sample xpp.confTzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6136 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-03-12xpp init_card_* scripts now less verboseTzafrir Cohen
* Demote some messages to be debug messages. * Rephrase the message about defaults for the PRI module (the driver's defaults are used, which is OK) git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6135 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-03-12Fix handling of DAHDI_GETGAINS_V1 missing from r6124 .Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6134 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-03-11Allow 10ms for voicebus hardware to settle after reset.Shaun Ruffell
The voicebus hardware needs more time to settle after a reset. The short settle time explains why there was frequently one IRQ miss reported in the proc file for the spans. Reported by: jsloan git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6126 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-03-11Relax ident wheel requirements.Shaun Ruffell
Do not require the first card to be set to 0 and allow skips in the ident wheel numbers. The ident wheel allows a user to determine the order that cards register there spans with DAHDI. (closes issue #13078) Reported by: opticron Patch by: opticron git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6125 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-03-11Fix direction bits on several ioctls.Shaun Ruffell
(related to issue #14499) Reported by: ys git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6124 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-03-11Adding spaces around some other operators and moving 'inline' keyword.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6123 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-03-11No need to assign 0 to static variables.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6122 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-03-11Removing assignement in condition.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6121 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-03-11Removed braces around single line statements in accordance with kernel codingShaun Ruffell
standards. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6120 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-03-11Adding required spaces after semicolons.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6119 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-03-11Moving the pointer specifier away from the type.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6118 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-03-11Fixed up spacing around parenthesis.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6117 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-03-11Remove trailing whitespace.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6116 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-03-11Adding spaces after commas.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6115 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-03-11Keep transcoders on a list in registration order.Shaun Ruffell
This fixes a bug where it was possible for there to be a transcoder in position "1" but not in position "0" if a transcoder hardware driver was loaded, unloaded, and reloaded again without also reloading dahdi_transcode. The result is that codec_dahdi fails to enumerate all the transcoders in the system. (closes issue #14627) Reported by: xblurone git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6114 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-03-11Eliminating an unused parameter to dahdi_specchan_open.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6113 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-03-06Workarounds for SLUB sysfs problems in kernel 2.6.22 with CONFIG_SLUB and ↵Wendell Thompson
CONFIG_SLUB_DEBUG, as in Fedora Core 6. Fixes kernel oops when loading/unloading dahdi modules. DAHDI-226 git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6096 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-03-05xpp: FPGA firmwares 6799Tzafrir Cohen
New FPGA firmware with a number of bug fixes. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6079 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-03-01New XPP code: xpp rev 6795:Tzafrir Cohen
* Fix cases where the command_queue overflowed during initialization. - Also add a 'command_queue_length' parameter to xpp.ko * More migrations to sysfs: - Add a 'transport' attribute to our astribank devices which points to the usb device we use. E.g: /sys/bus/astribanks/devices/xbus-00/transport is symlinked to ../../../../../../devices/pci0000:00/0000:00:10.4/usb5/5-4 - Move /proc/xpp/XBUS-??/XPD-??/span to /sys/bus/xpds/devices/??:?:?/span - Migrate from /proc/xpp/sync to: /sys/bus/astribanks/drivers/xppdrv/sync - New 'offhook' attribute in: /sys/bus/xpds/devices/??:?:?/offhook * PRI: change the "timing" priority to match the convention used by other PRI cards -- I.e: lower numbers (not 0) have higher priority. * FXO: - Power denial: create two module parameters instead of hard-coded constants (power_denial_safezone, power_denial_minlen). For sites that get non-standard power-denial signals from central office on offhook. - Don't hangup on power-denial, just notify Dahdi and wait for - Fix caller-id detection for the case central office sends it before first ring without any indication before. Asterisk's desicion. * USB_FW.hex: - Fixes cases where firmware loading would fail. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6046 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-02-11Use the proper pci_device when handling dma buffers.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6005 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-02-10Set default alarm debounce time to 500ms to debounce NT L1 deactivationsMatthew Fredrickson
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5997 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-02-09Fix building DAHDI with module unloading disabledTzafrir Cohen
As moduel_refcount is only used for debugging, disable it in this non-common case. (Closes issue #14402) git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5987 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-02-04Undoing commit for revision 5944. This still needs more testing beforeShaun Ruffell
going into trunk. It appears that changing the battthresh reveals other potential issues with determining the battery / alarm state of FXO ports. Issue: DAHDI-166 git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5970 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-02-02Raise the voltage threshhold for detecting when there is battery loss from 3VShaun Ruffell
to 40V. Patch provided by angler Issue: DAHDI-166 git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5944 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-02-02Array-style echo canceller updates first appeared in Zaptel, because HPEC ↵Kevin P. Fleming
only supports that mode. However, when the function for doing array-style updates was written, the argument names were reversed. In Zaptel this did no harm, because HPEC was the only module that used array-style updates. When DAHDI was created, non-array-style updates were removed, and the existing modules were converted to using array-style updates. Unfortunately the new code was written based on the argument names, which were incorrect. This caused all the echo cancellers to be broken (except HPEC, although we did not know that at the time), and it was corrected by reversing the order of the arguments passed when the array-style update function was called (leading to a confusing mismatch). This fixed all the non-HPEC modules, but left HPEC broken, which was just discovered. This commit corrects all these problems, so that the argument names and the data passed actually make sense, and all the modules work properly. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5936 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-01-30Make sure that we pass alarm notification up the stack whenever alarms occur ↵Matthew Fredrickson
on the B410P git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5924 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-01-30Do a stricter test for FXS modules. FXO modules will be hi-z during this ↵Mike Spiceland
time and the value will be undefined. This test ensures that FXO modules will not falsely trigger during FXS probes. The value of 0x88 from register 1 has been confirmed during this stage on quad and single port modules. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5916 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-01-28Minor comment rearangement to avoid possible confusion.Richard Mudgett
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5895 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-01-28Ensure the teignorered parameter is exposed as a module parameter.Shaun Ruffell
Related to issue #14031 . git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5870 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-01-28Allow EXTRA_CFLAGS to propagate to builds in the subfolders for wct4xxp,Shaun Ruffell
wctdm24xxp, wctc4xxp, wcb4xxp, and wcte12xp. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5856 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-01-27And once again I'm reminded why I should always compile before committing.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5850 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-01-27Small tweak to the alloc_netdev call again to use a less error-prone method ofShaun Ruffell
getting the size. Thanks kpfleming. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5849 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-01-27Passed wrong size to alloc_netdev.Shaun Ruffell
Related to issue #14285 . git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5848 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-01-27Updated wctc4xxp for kernel version 2.6.29.Shaun Ruffell
Closes issue #14285 . Reported by: tzafrir git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5842 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-01-27- When tearing down channels, use the channel's timeslot as the index into theShaun Ruffell
encoder and decoder arrays, and not the channel which is returned from the DTE. Issue: DAHDI-231. - Instead of completely servicing the receive descriptor ring in the workqueue, have the interrupt handler queue them up for the workqueue. - No need to interrupt on both transmit and receive since we expect a response to every packet we send. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5835 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-01-27Break VMWI ioctl calls into two separate calls to maintain old revision ↵Doug Bailey
compatibility (issue #14104) Reported by: alecdavis Tested by: dbailey git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5826 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-01-26Manipulate the REGISTERED flag with atomic bitops now since the bit is setShaun Ruffell
outside the protection of any locks. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5819 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-01-26If an execution context has already disabled interrupts on the localShaun Ruffell
processor we do not need to disable them again when grabbing another spin_lock from the same context. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5812 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-01-26Ensure the channel is in a good state before placing it on the chans arrays.Shaun Ruffell
Also ensure that dahdi_receive holds the chan_lock while iterating over the chans array to prevent channels from entering or leaving the array while the interrupt handler is running. Related to issue #14183 . git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5811 a0bf4364-ded3-4de4-8d8a-66a801d63aff