asterisk-tools:sruffells-dahdi-linux.git
9 years agoImporting files for 2.2.0-rc1 release v2.2.0-rc1
Shaun Ruffell [Mon, 2 Feb 2009 23:04:07 +0000 (23:04 +0000)]
Importing files for 2.2.0-rc1 release

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/tags/2.2.0-rc1@5946 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoCreating tag for the release of dahdi-linux-2.2.0-rc1
Shaun Ruffell [Mon, 2 Feb 2009 22:57:37 +0000 (22:57 +0000)]
Creating tag for the release of dahdi-linux-2.2.0-rc1

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/tags/2.2.0-rc1@5945 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoRaise the voltage threshhold for detecting when there is battery loss from 3V
Shaun Ruffell [Mon, 2 Feb 2009 22:48:53 +0000 (22:48 +0000)]
Raise the voltage threshhold for detecting when there is battery loss from 3V
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

9 years agoArray-style echo canceller updates first appeared in Zaptel, because HPEC only suppor...
Kevin P. Fleming [Mon, 2 Feb 2009 14:13:50 +0000 (14:13 +0000)]
Array-style echo canceller updates first appeared in Zaptel, because HPEC 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

9 years agoMake sure that we pass alarm notification up the stack whenever alarms occur on the...
Matthew Fredrickson [Fri, 30 Jan 2009 23:42:36 +0000 (23:42 +0000)]
Make sure that we pass alarm notification up the stack whenever alarms occur on the B410P

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5924 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoDo a stricter test for FXS modules. FXO modules will be hi-z during this time and...
Mike Spiceland [Fri, 30 Jan 2009 16:53:30 +0000 (16:53 +0000)]
Do a stricter test for FXS modules.  FXO modules will be hi-z during this 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

9 years agoMinor comment rearangement to avoid possible confusion.
Richard Mudgett [Wed, 28 Jan 2009 23:17:49 +0000 (23:17 +0000)]
Minor comment rearangement to avoid possible confusion.

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5895 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoEnsure the teignorered parameter is exposed as a module parameter.
Shaun Ruffell [Wed, 28 Jan 2009 04:41:45 +0000 (04:41 +0000)]
Ensure the teignorered parameter is exposed as a module parameter.
Related to issue #14031 .

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5870 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoAllow EXTRA_CFLAGS to propagate to builds in the subfolders for wct4xxp,
Shaun Ruffell [Wed, 28 Jan 2009 01:11:36 +0000 (01:11 +0000)]
Allow EXTRA_CFLAGS to propagate to builds in the subfolders for wct4xxp,
wctdm24xxp, wctc4xxp, wcb4xxp, and wcte12xp.

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5856 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoAnd once again I'm reminded why I should always compile before committing.
Shaun Ruffell [Tue, 27 Jan 2009 17:45:37 +0000 (17:45 +0000)]
And once again I'm reminded why I should always compile before committing.

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5850 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoSmall tweak to the alloc_netdev call again to use a less error-prone method of
Shaun Ruffell [Tue, 27 Jan 2009 17:29:22 +0000 (17:29 +0000)]
Small tweak to the alloc_netdev call again to use a less error-prone method of
getting the size.   Thanks kpfleming.

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5849 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoPassed wrong size to alloc_netdev.
Shaun Ruffell [Tue, 27 Jan 2009 17:23:21 +0000 (17:23 +0000)]
Passed wrong size to alloc_netdev.
Related to issue #14285 .

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5848 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoUpdated wctc4xxp for kernel version 2.6.29.
Shaun Ruffell [Tue, 27 Jan 2009 17:01:37 +0000 (17:01 +0000)]
Updated wctc4xxp for kernel version 2.6.29.
Closes issue #14285 .
Reported by: tzafrir

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5842 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years ago- When tearing down channels, use the channel's timeslot as the index into the
Shaun Ruffell [Tue, 27 Jan 2009 16:09:09 +0000 (16:09 +0000)]
- When tearing down channels, use the channel's timeslot as the index into the
  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

9 years agoBreak VMWI ioctl calls into two separate calls to maintain old revision compatibility
Doug Bailey [Tue, 27 Jan 2009 15:13:52 +0000 (15:13 +0000)]
Break VMWI ioctl calls into two separate calls to maintain old revision 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

9 years agoManipulate the REGISTERED flag with atomic bitops now since the bit is set
Shaun Ruffell [Mon, 26 Jan 2009 19:44:36 +0000 (19:44 +0000)]
Manipulate the REGISTERED flag with atomic bitops now since the bit is set
outside the protection of any locks.

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5819 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoIf an execution context has already disabled interrupts on the local
Shaun Ruffell [Mon, 26 Jan 2009 07:26:46 +0000 (07:26 +0000)]
If an execution context has already disabled interrupts on the local
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

9 years agoEnsure the channel is in a good state before placing it on the chans arrays.
Shaun Ruffell [Mon, 26 Jan 2009 07:19:47 +0000 (07:19 +0000)]
Ensure the channel is in a good state before placing it on the chans arrays.
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

9 years agoChange structure passed in DAHDI_VMWI ioctl call to make it so new VMWI types do...
Doug Bailey [Thu, 22 Jan 2009 15:42:38 +0000 (15:42 +0000)]
Change structure passed in DAHDI_VMWI ioctl call to make it so new VMWI 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

9 years agoIf we have the accessors, do not under any circumstance redefine them
Shaun Ruffell [Wed, 21 Jan 2009 18:24:59 +0000 (18:24 +0000)]
If we have the accessors, do not under any circumstance redefine them
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

9 years agoChange the DAHDI_VMWI ioctl call to pass data via structure.
Doug Bailey [Wed, 21 Jan 2009 15:39:46 +0000 (15:39 +0000)]
Change the DAHDI_VMWI ioctl call to pass data via structure.
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

9 years agoFix version in dahdi_dummy workaround.
Tzafrir Cohen [Wed, 21 Jan 2009 15:17:20 +0000 (15:17 +0000)]
Fix version in dahdi_dummy workaround.

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

9 years agoSome distributions have backported the hrtimer_get_expires and
Shaun Ruffell [Tue, 20 Jan 2009 21:23:34 +0000 (21:23 +0000)]
Some distributions have backported the hrtimer_get_expires and
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

9 years agoNewer FPGA firmwares: rev 6268
Tzafrir Cohen [Tue, 20 Jan 2009 08:40:51 +0000 (08:40 +0000)]
Newer FPGA firmwares: rev 6268

* 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

9 years agocorrect missing words and other typographical errors, and change wording to make...
Kevin P. Fleming [Mon, 19 Jan 2009 18:59:38 +0000 (18:59 +0000)]
correct missing words and other typographical errors, and change wording to 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

9 years agoAdd mask for portion of DAHDI_VMWI ioctl call that carries the number of messages...
Doug Bailey [Mon, 19 Jan 2009 18:18:12 +0000 (18:18 +0000)]
Add mask for portion of DAHDI_VMWI ioctl call that carries the number of messages pending.
Remove magic number from code.

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5746 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoDocument alarm types, based on jsmith's post on asterisk-users.
Tzafrir Cohen [Mon, 19 Jan 2009 17:17:38 +0000 (17:17 +0000)]
Document alarm types, based on jsmith's post on asterisk-users.

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5738 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoIncrease the number of messages specified in the DAHDI_VMWI ioctl call to 16 bits...
Doug Bailey [Mon, 19 Jan 2009 15:56:11 +0000 (15:56 +0000)]
Increase the number of messages specified in the DAHDI_VMWI ioctl call to 16 bits (up from 8 bits)

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5730 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoAdd line reversal MWI to wctdm and wctdm24xxp drivers
Doug Bailey [Mon, 19 Jan 2009 15:15:32 +0000 (15:15 +0000)]
Add line reversal MWI to wctdm and wctdm24xxp drivers
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

9 years agolive_dahdi: Only probe modules to load on 'load'
Tzafrir Cohen [Mon, 19 Jan 2009 14:09:29 +0000 (14:09 +0000)]
live_dahdi: Only probe modules to load on 'load'

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5711 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoBump xpp drivers version to trunk-6630.
Tzafrir Cohen [Mon, 19 Jan 2009 13:32:51 +0000 (13:32 +0000)]
Bump xpp drivers version to trunk-6630.

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5710 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoxpp: add driftinfo attributes; pcm sync bugfix
Tzafrir Cohen [Mon, 19 Jan 2009 13:22:38 +0000 (13:22 +0000)]
xpp: add driftinfo attributes; pcm sync bugfix

* Add an extra sysfs Astribank attribute for drift information
* PCM synchronization bugfix

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5709 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoxpp: allow a longer path for init_dir.
Tzafrir Cohen [Mon, 19 Jan 2009 13:19:15 +0000 (13:19 +0000)]
xpp: allow a longer path for init_dir.

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5708 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoNo oops. No panic.
Tzafrir Cohen [Mon, 19 Jan 2009 11:37:11 +0000 (11:37 +0000)]
No oops. No panic.

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5696 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoxpp: sysfs attribute arrays should be NULL-Terminated.
Tzafrir Cohen [Sun, 18 Jan 2009 19:17:46 +0000 (19:17 +0000)]
xpp: sysfs attribute arrays should be NULL-Terminated.

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5688 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoTemporarilly disabling building xpp/ while hunting a show-stopper on
Tzafrir Cohen [Sun, 18 Jan 2009 16:47:39 +0000 (16:47 +0000)]
Temporarilly disabling building xpp/ while hunting a show-stopper on
xpp.ko

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5680 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agolive_dahdi: reload on unloaded system, path to dahdi-linux
Tzafrir Cohen [Sun, 18 Jan 2009 15:44:59 +0000 (15:44 +0000)]
live_dahdi: reload on unloaded system, path to dahdi-linux

* Script runs with -e. But we should not fail if either:
  - Asterisk was not running
  - The module dahdi was not loaded.
* The configure script of dahdi-tools should get absolute path to
  dahdi-linux.

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5672 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoxpp.r6616: More sysfs migration, FXO enhancements, BRI fixes
Tzafrir Cohen [Sun, 18 Jan 2009 09:55:48 +0000 (09:55 +0000)]
xpp.r6616: More sysfs migration, FXO enhancements, BRI fixes
  * Fix cases where the command_queue overflowed during initialization.
  * 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
  * 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.

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5663 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoFix pathes in live_dahdi (it is run from the base dir by default)
Tzafrir Cohen [Fri, 9 Jan 2009 20:37:04 +0000 (20:37 +0000)]
Fix pathes in live_dahdi (it is run from the base dir by default)

Also acknowledge an warning I'm not sure how to fix for now.

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5646 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoEven on older kernels, do not redefine WARN_ON_ONCE if it is already defined.
Shaun Ruffell [Mon, 5 Jan 2009 22:49:18 +0000 (22:49 +0000)]
Even on older kernels, do not redefine WARN_ON_ONCE if it is already defined.

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5636 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agospin_is_lock always evalulates to 0 on SMP kernels. So since I still want to
Shaun Ruffell [Mon, 5 Jan 2009 22:32:07 +0000 (22:32 +0000)]
spin_is_lock always evalulates to 0 on SMP kernels.  So since I still want to
keep the check in there to avoid problems in the future (and since this code
path is only used when opening a new transcoder session) I made the check
conditional on running an SMP kernel.

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5635 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoPrint more information to the kernel log when the transcoder sends us a
Shaun Ruffell [Mon, 5 Jan 2009 19:21:24 +0000 (19:21 +0000)]
Print more information to the kernel log when the transcoder sends us a
diagnostic message.

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5627 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoDon't echo the echo. Echo.
Sean Bright [Mon, 29 Dec 2008 22:52:32 +0000 (22:52 +0000)]
Don't echo the echo.  Echo.

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5619 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoEnabling a module parameter that will allow the user to periodically print the
Shaun Ruffell [Tue, 23 Dec 2008 04:02:13 +0000 (04:02 +0000)]
Enabling a module parameter that will allow the user to periodically print the
battery voltage to the kernel log.  Used for troubleshooting.  Issue: DAHDI-34

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5612 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoRevert MAX_NUM_BUFS back to 32
Matthew Fredrickson [Fri, 19 Dec 2008 21:48:00 +0000 (21:48 +0000)]
Revert MAX_NUM_BUFS back to 32

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5604 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoAdd support for new half full buffer policy. This significantly improves performance...
Matthew Fredrickson [Fri, 19 Dec 2008 21:14:00 +0000 (21:14 +0000)]
Add support for new half full buffer policy.  This significantly improves performance in fax and data modem calls.

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5597 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoFix the safety check in tor2 to be for SPANS_PER_CARD
Tzafrir Cohen [Fri, 19 Dec 2008 12:39:31 +0000 (12:39 +0000)]
Fix the safety check in tor2 to be for SPANS_PER_CARD

Thanks to Eugene Teo, in a from issue #13954 .

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5590 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agowcb4xxp: Do not propogate received HDLC frames on channels that are not
Shaun Ruffell [Wed, 17 Dec 2008 15:57:56 +0000 (15:57 +0000)]
wcb4xxp: Do not propogate received HDLC frames on channels that are not
configured.  Issue: DAHDI-217

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5576 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agowcb4xxp: Use %p to print out pointer values.
Shaun Ruffell [Wed, 17 Dec 2008 04:39:26 +0000 (04:39 +0000)]
wcb4xxp: Use %p to print out pointer values.

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5568 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agowcb4xxp: Remove an endless while loop.
Shaun Ruffell [Wed, 17 Dec 2008 03:01:55 +0000 (03:01 +0000)]
wcb4xxp: Remove an endless while loop.

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5562 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agowcte12xp: Quiet some warnings about possible use of uninitialized variables.
Shaun Ruffell [Tue, 16 Dec 2008 16:35:43 +0000 (16:35 +0000)]
wcte12xp: Quiet some warnings about possible use of uninitialized variables.

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5549 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agolive_dahdi: Use the nonrelative path for the dahdi-tools folder in live_dahdi.
Shaun Ruffell [Mon, 15 Dec 2008 20:31:27 +0000 (20:31 +0000)]
live_dahdi: Use the nonrelative path for the dahdi-tools folder in live_dahdi.

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5535 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agowcte12xp: do not release a spinlock that we did not acquire.
Shaun Ruffell [Mon, 15 Dec 2008 20:30:26 +0000 (20:30 +0000)]
wcte12xp: do not release a spinlock that we did not acquire.

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5534 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agouse a format string for request_module, so the compiler will do the right thing
Kevin P. Fleming [Fri, 12 Dec 2008 14:32:10 +0000 (14:32 +0000)]
use a format string for request_module, so the compiler will do the right thing

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5523 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoAdd definition of dev_notice for kernels < 2.6.17.
Shaun Ruffell [Thu, 11 Dec 2008 21:46:09 +0000 (21:46 +0000)]
Add definition of dev_notice for kernels < 2.6.17.

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5509 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoOne more place whe old-but-not-ancient hotplug is used.
Tzafrir Cohen [Thu, 11 Dec 2008 21:03:59 +0000 (21:03 +0000)]
One more place whe old-but-not-ancient hotplug is used.

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5504 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoSend all samples to OSLEC, rather than just the first.
Tzafrir Cohen [Thu, 11 Dec 2008 20:51:15 +0000 (20:51 +0000)]
Send all samples to OSLEC, rather than just the first.

(closes issue #14036)
Reported by: marcotasto
Patches:
      dahdi_echocan_oslec.patch uploaded by marcotasto (license 635)

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5503 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoAdd a separate case for hotplug of kernels <= 2.6.9 .
Tzafrir Cohen [Thu, 11 Dec 2008 20:24:42 +0000 (20:24 +0000)]
Add a separate case for hotplug of kernels <= 2.6.9 .

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5498 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agodahdi_dummy: If we're using the system tick, don't use the hrtimer interface.
Shaun Ruffell [Thu, 11 Dec 2008 20:19:18 +0000 (20:19 +0000)]
dahdi_dummy:  If we're using the system tick, don't use the hrtimer interface.

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5497 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoFix the xpp OLD_HOTPLUG fix.
Tzafrir Cohen [Thu, 11 Dec 2008 18:57:14 +0000 (18:57 +0000)]
Fix the xpp OLD_HOTPLUG fix.

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5492 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoFix building dahdi_dummy for kernels 2.6.13, 2.6.14:
Tzafrir Cohen [Thu, 11 Dec 2008 16:53:18 +0000 (16:53 +0000)]
Fix building dahdi_dummy for kernels 2.6.13, 2.6.14:
Those kernels don't have RTC yet.

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5486 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoYet Another directory in which to ignore modules.order
Tzafrir Cohen [Thu, 11 Dec 2008 16:51:27 +0000 (16:51 +0000)]
Yet Another directory in which to ignore modules.order

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5485 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoRemove an include that is not available before 2.6.15 and is not needed
Tzafrir Cohen [Thu, 11 Dec 2008 16:48:48 +0000 (16:48 +0000)]
Remove an include that is not available before 2.6.15 and is not needed

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5484 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoA bit less maigc with OLD_HOTPLUG_SUPPORT
Tzafrir Cohen [Thu, 11 Dec 2008 16:46:36 +0000 (16:46 +0000)]
A bit less maigc with OLD_HOTPLUG_SUPPORT

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5483 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoFixed a typo that broke building dahdi-base with kernels < 2.6.13
Tzafrir Cohen [Thu, 11 Dec 2008 16:44:19 +0000 (16:44 +0000)]
Fixed a typo that broke building dahdi-base with kernels < 2.6.13

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5482 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agowctc4xxp: Fix compilation issues on 2.6.15 and below kernels. Thanks
Shaun Ruffell [Thu, 11 Dec 2008 16:43:53 +0000 (16:43 +0000)]
wctc4xxp:  Fix compilation issues on 2.6.15 and below kernels.  Thanks
tzafrir.

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5481 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoNeeded to go up one more level for dahdi_tools.
Shaun Ruffell [Tue, 9 Dec 2008 19:37:48 +0000 (19:37 +0000)]
Needed to go up one more level for dahdi_tools.

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5460 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoMoving live_dahdi into the build_tools dir.
Shaun Ruffell [Tue, 9 Dec 2008 19:34:23 +0000 (19:34 +0000)]
Moving live_dahdi into the build_tools dir.

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5459 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agolive_dahdi - test dahdi without fully installing it.
Tzafrir Cohen [Tue, 9 Dec 2008 18:49:34 +0000 (18:49 +0000)]
live_dahdi - test dahdi without fully installing it.

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5453 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoIgnore modules.order in modules directories.
Tzafrir Cohen [Sat, 6 Dec 2008 22:23:37 +0000 (22:23 +0000)]
Ignore modules.order in modules directories.

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5444 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoFix an erroneous warning and ensure that the sample size is set correctly when
Shaun Ruffell [Thu, 4 Dec 2008 20:57:28 +0000 (20:57 +0000)]
Fix an erroneous warning and ensure that the sample size is set correctly when
decoding G723 packets.
Issue: DAHDI-198

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5434 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoDo not use an already built channel if the source and destination formats do
Shaun Ruffell [Thu, 4 Dec 2008 20:55:25 +0000 (20:55 +0000)]
Do not use an already built channel if the source and destination formats do
not match the formats we want. This fixes a regression introduced by the new
transcoder interface where a translation path from one complex codec to
another can result in garbled audio.

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5433 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoFix issue with cut and paste that was preventing compilation.
Shaun Ruffell [Mon, 1 Dec 2008 17:58:02 +0000 (17:58 +0000)]
Fix issue with cut and paste that was preventing compilation.

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5420 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoService the transmit descriptor ring before the receive descriptor ring so
Shaun Ruffell [Mon, 1 Dec 2008 15:59:14 +0000 (15:59 +0000)]
Service the transmit descriptor ring before the receive descriptor ring so
that commands that are still sitting on the transmit descriptor ring are not
completed twice.

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5413 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agodahdi-linux: Remove README.Astribank.html generation.
Tzafrir Cohen [Thu, 27 Nov 2008 09:59:31 +0000 (09:59 +0000)]
dahdi-linux: Remove README.Astribank.html generation.

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5403 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoMoving README.Astribank to dahdi-tools .
Tzafrir Cohen [Thu, 27 Nov 2008 09:54:59 +0000 (09:54 +0000)]
Moving README.Astribank to dahdi-tools .

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5402 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoFixes and some owrk in progress on DAHDI Astribank README.
Tzafrir Cohen [Thu, 27 Nov 2008 09:53:03 +0000 (09:53 +0000)]
Fixes and some owrk in progress on DAHDI Astribank README.

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5397 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoValidate the timing priority on the wcte11xp and wct1xxp driver.
Shaun Ruffell [Tue, 25 Nov 2008 20:00:51 +0000 (20:00 +0000)]
Validate the timing priority on the wcte11xp and wct1xxp driver.

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5384 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoValidate that the span priority is valid in the tor2 driver.
Shaun Ruffell [Tue, 25 Nov 2008 19:59:15 +0000 (19:59 +0000)]
Validate that the span priority is valid in the tor2 driver.

Patch provided by tzafrir.

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5383 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoAdditional debugging code.
Shaun Ruffell [Mon, 24 Nov 2008 05:32:47 +0000 (05:32 +0000)]
Additional debugging code.
Patch provided by akohlsmith. Issue DAHDI-173.

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5374 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoAdd a 'spanfilter' module parameter in order to isolate debugging information
Shaun Ruffell [Mon, 24 Nov 2008 04:16:56 +0000 (04:16 +0000)]
Add a 'spanfilter' module parameter in order to isolate debugging information
to just the spans of interest.

Patch provided by akohlsmith. Issue DAHDI-173.

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5369 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoUse counter of pending HDLC frames in order to eliminate the need to send a
Shaun Ruffell [Mon, 24 Nov 2008 04:14:37 +0000 (04:14 +0000)]
Use counter of pending HDLC frames in order to eliminate the need to send a
zero-byte frame to kick start the transmission process.

Patch provided by akohlsmith. Issue DAHDI-173.

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5368 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoDo not make assumptions about the number of ready HDLC frames on HDLC RX
Shaun Ruffell [Mon, 24 Nov 2008 04:09:56 +0000 (04:09 +0000)]
Do not make assumptions about the number of ready HDLC frames on HDLC RX
interrupt.  This prevents libpri from becoming confused when many HDLC frames
arrive before the driver can service them or a false RX interrupt is received.

Patch provided by akolsmith. Issue DAHDI-173.

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5367 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoFix a think-o in numeric comparison. Swap order to make it more clear.
Jason Parker [Fri, 21 Nov 2008 20:15:47 +0000 (20:15 +0000)]
Fix a think-o in numeric comparison.  Swap order to make it more clear.

(closes issue #13813)
Reported by: ys

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5360 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoConvert some uses of sprintf to snprintf in dahdi_proc_read in order to
Shaun Ruffell [Fri, 21 Nov 2008 04:42:21 +0000 (04:42 +0000)]
Convert some uses of sprintf to snprintf in dahdi_proc_read in order to
eliminate a buffer overrun.

Issue: DAHDI-209

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5355 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoForce the FIFO to reset when the file handle is closed.
Shaun Ruffell [Thu, 20 Nov 2008 16:03:50 +0000 (16:03 +0000)]
Force the FIFO to reset when the file handle is closed.

Patch provided by akohlsmith.
Issue: DAHDI-178

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5350 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoMake tor2 load properly. Seems to fix #13487.
Tzafrir Cohen [Thu, 20 Nov 2008 12:31:59 +0000 (12:31 +0000)]
Make tor2 load properly. Seems to fix #13487.

Thanks to heyuqi for the testing.

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5345 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years ago* Some extrra Zap->DAHDI (and Dahdi->DAHDI) fixes in the Astribank
Tzafrir Cohen [Thu, 20 Nov 2008 09:23:29 +0000 (09:23 +0000)]
* Some extrra Zap->DAHDI (and Dahdi->DAHDI) fixes in the Astribank
  README.
* Some extra asciidoc formatting fixes.

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5340 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agosupport wcb4xxp build on kernels that don't directly use Kbuild
Kevin P. Fleming [Wed, 19 Nov 2008 21:25:01 +0000 (21:25 +0000)]
support wcb4xxp build on kernels that don't directly use Kbuild

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5335 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years ago- Fix for race condition of encoder and decoder are allocated at the same time
Shaun Ruffell [Mon, 17 Nov 2008 18:17:35 +0000 (18:17 +0000)]
- Fix for race condition of encoder and decoder are allocated at the same time
  in the driver.  This would result in -EBUSY returns from the
  DAHDI_TC_ALLOCATE ioctl.
- Increase the length of the receive descriptor ring from 8 to 32 to reduce
  the probability of running out of receive descriptors.

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5321 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoxpp_pri: Fix T1 CRC initialization
Tzafrir Cohen [Mon, 17 Nov 2008 18:01:47 +0000 (18:01 +0000)]
xpp_pri: Fix T1 CRC initialization
         Clock synchronization when sync is not from first port.

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5320 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoA fix for an issue with corruption on the D-Channels.
Shaun Ruffell [Mon, 17 Nov 2008 17:44:10 +0000 (17:44 +0000)]
A fix for an issue with corruption on the D-Channels.

Patch provided by akohlsmith.
Issue: DAHDI-173.

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5315 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoFixed USB firmware that caused some bad bioses to hang on boot.
Tzafrir Cohen [Sun, 16 Nov 2008 19:30:23 +0000 (19:30 +0000)]
Fixed USB firmware that caused some bad bioses to hang on boot.

The BIOSes included in a number of motherboards could hang from an
Astribank firmware newer than 1.2.20.1 / 1.4.5.1 . This was due to an
some incorrect USB information in the firmware. This firmware fixes it.

Merged Zaptel revisions 4580 via svnmerge from
http://svn.digium.com/svn/zaptel/branches/1.2

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5310 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoMake a message about the host cacheline size being unsupported a debug only
Shaun Ruffell [Thu, 13 Nov 2008 22:10:51 +0000 (22:10 +0000)]
Make a message about the host cacheline size being unsupported a debug only
message.  The voicebus interface still works whether the cacheline size is
supported or not, but the message is confusing to users.

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5303 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoxpp init_card_2_30: no need to check environment in verify mode.
Tzafrir Cohen [Mon, 10 Nov 2008 20:37:52 +0000 (20:37 +0000)]
xpp init_card_2_30: no need to check environment in verify mode.

Fixes #13832 in Zaptel.

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5288 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years ago- Do not hold any locks while calling close_channel, which can result in calls
Shaun Ruffell [Mon, 10 Nov 2008 19:48:22 +0000 (19:48 +0000)]
- Do not hold any locks while calling close_channel, which can result in calls
  to the echocan modules which do not necesarrily assume they are being called
  in atomic context.
- Remove the bigzaplock around calls to psuedo_alloc and pseudo_free.  The
  structures protected by this lock are already protected by the chan_lock in
  these two cases.
- Remove calls to in_atomic() that were previously added to work around this,
  but did not cover all the cases.

Issue: DAHDI-195, DAHDI-170

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5275 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoWe only use print_debug_writebuf when CONFIG_DAHDI_NET or CONFIG_DAHDI_PPP are define...
Sean Bright [Sun, 9 Nov 2008 00:33:16 +0000 (00:33 +0000)]
We only use print_debug_writebuf when CONFIG_DAHDI_NET or CONFIG_DAHDI_PPP are defined, so only define it in those cases as well.

Reported & Tested by: KP7 via #asterisk-dev

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5270 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoAdd missing semi-colon.
Sean Bright [Sun, 9 Nov 2008 00:31:07 +0000 (00:31 +0000)]
Add missing semi-colon.

Reported & Tested by: KP7 via #asterisk-dev

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5269 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agoWhitespace changes for the coding standard.
Shaun Ruffell [Wed, 5 Nov 2008 23:45:09 +0000 (23:45 +0000)]
Whitespace changes for the coding standard.

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5257 a0bf4364-ded3-4de4-8d8a-66a801d63aff

9 years agorate limiting a diagnostic printk.
Shaun Ruffell [Wed, 5 Nov 2008 21:06:31 +0000 (21:06 +0000)]
rate limiting a diagnostic printk.

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5249 a0bf4364-ded3-4de4-8d8a-66a801d63aff