summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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
2009-01-22Change structure passed in DAHDI_VMWI ioctl call to make it so new VMWI ↵Doug Bailey
types do not break the ioctl call Remove FSK and RPAS from the VMWI types as no driver implemented them and the functionality is in chan_dahdi. (issue #14104) Reported by: alecdavis Patches: mwiioctl_structure_dahdi.diff4.txt uploaded by dbailey (license ) Tested by: alecdavis, dbailey git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5799 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-01-21If we have the accessors, do not under any circumstance redefine themShaun Ruffell
regardless of the kernel version. Another followup to #14166 . git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5792 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-01-21Change the DAHDI_VMWI ioctl call to pass data via structure. Doug Bailey
Changed wctdm and wctdm24xxp to handle these calls. (issue #14104) Reported by: alecdavis Patches: mwiioctl_structure_dahdi.diff2.txt uploaded by dbailey (license ) Tested by: alecdavis, dbailey git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5785 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-01-21Fix version in dahdi_dummy workaround. Tzafrir Cohen
Followup to #14166 . Also note that this is specific to some Fedora versions. See e.g. http://cvs.fedoraproject.org/viewvc/rpms/kernel/F-10/kernel.spec?r1=1.1206.2.2&r2=1.1206.2.3 git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5778 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-01-20Some distributions have backported the hrtimer_get_expires andShaun Ruffell
hrtimer_set_expires functions from 2.6.28. Therefore, dahdi-linux cannot use the linux version code to determine if these functions are present or not. This patch actively checks for those functions. Closes Issue: #14166 Thanks to bergolth for the patch. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5770 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-01-20Newer FPGA firmwares: rev 6268Tzafrir Cohen
* FPGA_1141.hex 6268 2008-10-27 * FPGA_1151.hex 6268 2008-10-27 * FPGA_1131.hex 6177 2008-09-26 git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5759 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-01-19correct missing words and other typographical errors, and change wording to ↵Kevin P. Fleming
make sense in this file instead of a mailing list post git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5749 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-01-19Add mask for portion of DAHDI_VMWI ioctl call that carries the number of ↵Doug Bailey
messages pending. Remove magic number from code. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5746 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-01-19Document alarm types, based on jsmith's post on asterisk-users.Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5738 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-01-19Increase the number of messages specified in the DAHDI_VMWI ioctl call to 16 ↵Doug Bailey
bits (up from 8 bits) git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5730 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-01-19Add line reversal MWI to wctdm and wctdm24xxp drivers Doug Bailey
Add global and per channel polarity control to the wctdm24xxp driver Add per channel polarity control to the wctdm driver Reported by: alecdavis Patches: dahdidriver-14104.diff2.txt uploaded by dbailey (license ) Tested by: alecdavis git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5720 a0bf4364-ded3-4de4-8d8a-66a801d63aff