asterisk-tools:sruffells-dahdi-linux.git
8 years agoImporting files for 2.2.0.2 release. v2.2.0.2
Shaun Ruffell [Tue, 21 Jul 2009 18:20:18 +0000 (18:20 +0000)]
Importing files for 2.2.0.2 release.

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

8 years agoCreating tag for the release of dahdi-linux-2.2.0.2
Shaun Ruffell [Tue, 21 Jul 2009 18:13:51 +0000 (18:13 +0000)]
Creating tag for the release of dahdi-linux-2.2.0.2

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

8 years agoMerged revisions 6844,6852,6862-6863 via svnmerge from
Shaun Ruffell [Tue, 21 Jul 2009 18:11:53 +0000 (18:11 +0000)]
Merged revisions 6844,6852,6862-6863 via svnmerge from
https://origsvn.digium.com/svn/dahdi/linux/trunk

........
  r6844 | sruffell | 2009-07-16 12:29:53 -0500 (Thu, 16 Jul 2009) | 10 lines

  wcte12xp: Disable vpmadt032 companding by default.

  This fixes a regression in 2.2.0 where certain configurations will fail
  patloop test or have repeated HDLC aborts because the VPMADT032 is modifying
  the clear channel or d channel data streams.  This restores the behavior to
  how it was in dahdi-linux 2.1.0.4.

  (closes issue #15498)
  Reported by: alecdavis
  Tested by: alecdavis
........
  r6852 | tzafrir | 2009-07-19 10:45:40 -0500 (Sun, 19 Jul 2009) | 12 lines

  tor2: allow using port4 as timing source

  Fix a silly regression introduced when strict check on the timing
  parameter was added (sync-1 is the array index, not sync itself. And 0
  is a special case).

  (closes issue #15408)
  Reported by: dferrer
  Patches:
        tor2-4th_sync.patch uploaded by dferrer (license 525)
........
  r6862 | sruffell | 2009-07-21 12:52:59 -0500 (Tue, 21 Jul 2009) | 4 lines

  Revert "wct4xxp, wcte11xp: Use the default configuration by default at startup."

  This reverts the change introduced by revision 6712.  This change can cause
  problems when there is a VPM module installed on the quad-span digital cards.
........
  r6863 | sruffell | 2009-07-21 12:53:02 -0500 (Tue, 21 Jul 2009) | 12 lines

  dahdi-base: Add support for core timing.

  This essentially moves the function of dahdi_dummy into the core of DAHDI.  It
  ensures that if DAHDI is loaded, it will always be able to provide timing,
  regardless of whether there are board drivers loaded, or if the board drivers
  are properly calling dahdi_receive.

  If there is a master span loaded which is calling dahdi_receive, then the
  behavior will be like it is normally.

  This functionality is off by default, uncomment CONFIG_DAHDI_CORE_TIMER in
  include/dahdi/config_dahdi.h in order to enable it.
........

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

8 years agoMerged revisions 6712,6776,6799,6801,6803 via svnmerge from
Shaun Ruffell [Tue, 21 Jul 2009 14:56:49 +0000 (14:56 +0000)]
Merged revisions 6712,6776,6799,6801,6803 via svnmerge from
https://origsvn.digium.com/svn/dahdi/linux/trunk

........
  r6712 | sruffell | 2009-06-24 14:13:35 -0500 (Wed, 24 Jun 2009) | 4 lines

  wct4xxp, wcte11xp: Use the default configuration by default at startup.

  This change allows hardware to provide timing to asterisk before normal
  configuration.  DAHDI-275.
........
  r6776 | sruffell | 2009-06-26 16:24:34 -0500 (Fri, 26 Jun 2009) | 4 lines

  voicebus: Limit the string length of the vpm workqueue name.

  On older kernels, it is possible to cause a kernel panic if the lenght of the
  workqueue name is greater than 10. DAHDI-276.
........
  r6799 | sruffell | 2009-06-30 10:45:06 -0500 (Tue, 30 Jun 2009) | 5 lines

  wcb4xxp: Start the first span with default settings on load.

  One of the spans of the B410P is now started at driver load time in order to
  allow it to provide early timing to asterisk, before the card has been
  properly configured.
........
  r6801 | sruffell | 2009-06-30 12:17:09 -0500 (Tue, 30 Jun 2009) | 5 lines

  echocan: Do not call through NULL 'echocan_traintap' pointer.

  This resolves an issue with a kernel panic if echotraining is enabled in the
  Asterisk configuration file, but the echocan on the channel (which may be a
  hardware echocanceller) has not defined that operation. DAHDI-272.
........
  r6803 | sruffell | 2009-06-30 12:27:34 -0500 (Tue, 30 Jun 2009) | 1 line

  echocan: Do not go into PRETRAINING mode if not supported by the echocan.
........

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

8 years agoenable merge tracking
Shaun Ruffell [Tue, 21 Jul 2009 14:54:23 +0000 (14:54 +0000)]
enable merge tracking

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

8 years agoCreating dahdi-linux-2.2 branch
Shaun Ruffell [Tue, 21 Jul 2009 14:53:05 +0000 (14:53 +0000)]
Creating dahdi-linux-2.2 branch

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

8 years agoREADME: Adding a known issues section to the README files.
Shaun Ruffell [Tue, 23 Jun 2009 15:44:41 +0000 (15:44 +0000)]
README: Adding a known issues section to the README files.

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

8 years agowctdm, wctdm24xxp, wcfxo: Fix calls to dahdi_hooksig.
Shaun Ruffell [Thu, 18 Jun 2009 18:03:26 +0000 (18:03 +0000)]
wctdm, wctdm24xxp, wcfxo: Fix calls to dahdi_hooksig.

When JAPAN, AUDIO_RINGCHECK, or ZERO_BATT_RING compile time options are
selected it is possible to get a kernel panic due to an invalid pointer passed
to the dahdi_hooksig function.

(closes issue #15350)
Patch by: alecdavis

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

8 years agoMake complex conditionals work with GNU make 3.80. Much uglier, but it works on...
Jason Parker [Fri, 12 Jun 2009 22:30:02 +0000 (22:30 +0000)]
Make complex conditionals work with GNU make 3.80.  Much uglier, but it works on RHEL4.

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

8 years agodahdi-base: Fix bug in procfs handling.
Shaun Ruffell [Thu, 4 Jun 2009 21:14:53 +0000 (21:14 +0000)]
dahdi-base: Fix bug in procfs handling.

Fix bug in procfs handling where it was possible to get a warning in
lib/vsprintf.c when reading from /proc/dahdi/x.

Patch by: biohumanoid
(closes issue #15252)

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

8 years agoxpp: Fix more 'owner' for 2.6.30 to be happy.
Tzafrir Cohen [Wed, 27 May 2009 12:48:09 +0000 (12:48 +0000)]
xpp: Fix more 'owner' for 2.6.30 to be happy.

Finishing the work of r6642. Complitly shut issue #14964.

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

8 years agoxpp firmwares: fixes sync issues of FXO module in a BRI/PRI Astribank
Tzafrir Cohen [Mon, 25 May 2009 08:23:29 +0000 (08:23 +0000)]
xpp firmwares: fixes sync issues of FXO module in a BRI/PRI Astribank

* Also fixes LED blinking issues in PRI modules
* Various bugfixes in the PICs.

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

8 years agoUSB_FW.hex: Allow setting caps. even when FPGA is loaded.
Tzafrir Cohen [Mon, 25 May 2009 08:12:36 +0000 (08:12 +0000)]
USB_FW.hex: Allow setting caps. even when FPGA is loaded.

Note that They will only take effect after a reset.

Firmware rev. 7071.

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

8 years agoxpp: 'owner' property of procfs was dropped in 2.6.30.
Tzafrir Cohen [Tue, 19 May 2009 16:09:06 +0000 (16:09 +0000)]
xpp: 'owner' property of procfs was dropped in 2.6.30.

This adds a compatibility macro for older versions that is a noop for
kernels >= 2.6.30.

(closes issue #14964)

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

8 years agoxpp: fix the Astribank state machine
Tzafrir Cohen [Tue, 19 May 2009 16:01:27 +0000 (16:01 +0000)]
xpp: fix the Astribank state machine

This generally is a case that would not happen in the wild, though.

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

8 years agoxpp: report in sysfs if bri module uses hardhdlc support
Tzafrir Cohen [Tue, 19 May 2009 15:58:14 +0000 (15:58 +0000)]
xpp: report in sysfs if bri module uses hardhdlc support

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

8 years agoxpp: remove obsolete script calibrate_slics
Tzafrir Cohen [Tue, 19 May 2009 15:56:58 +0000 (15:56 +0000)]
xpp: remove obsolete script calibrate_slics

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

8 years agoReplaece member bus_id with dev_name() and set_dev_name()
Tzafrir Cohen [Tue, 19 May 2009 14:12:15 +0000 (14:12 +0000)]
Replaece member bus_id with dev_name() and set_dev_name()

As of 2.6.26 the macros dev_name() and set_dev_name() are used to read
and set (respectively) the bus_id member in sysfs. As of 2.6.30 bus_id
is gone. This patch provides comaptiobility macros for older kernel
versions and removes direct usage of bus_id.

(closes issue #14965)
Patches:
      xpp_2630_dev_name.diff uploaded by tzafrir (license 46)

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

8 years agoignore generated files in voicebus and vpmadt032_loader
Tzafrir Cohen [Mon, 18 May 2009 18:17:35 +0000 (18:17 +0000)]
ignore generated files in voicebus and vpmadt032_loader

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

8 years agovoicebus: Use '&' not '|' when checking for a bit.
Shaun Ruffell [Fri, 15 May 2009 23:37:16 +0000 (23:37 +0000)]
voicebus: Use '&' not '|' when checking for a bit.

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

8 years agovoicebus: Make the enable/disable echocan messages debug again.
Shaun Ruffell [Fri, 15 May 2009 21:40:15 +0000 (21:40 +0000)]
voicebus:  Make the enable/disable echocan messages debug again.

I accidentally changed to print everytime.  They should only be printed if
DEBUG_ECHOCAN is specified in the debug module parameter.

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

8 years agowcte12xp: Set the syncsrc in the span appropriately.
Shaun Ruffell [Thu, 14 May 2009 14:49:11 +0000 (14:49 +0000)]
wcte12xp: Set the syncsrc in the span appropriately.

Before this commit, dahdi_tool would report "Internally clocked" for boards
supported by the wcte12xp driver both when receiving timing from the span and
providing it to the span.  Now it reports "Internally clocked" if providing
timeing to the span, and the card if receiving timeing from the span.
DAHDI-65.

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

8 years agouse proper case for variable name :-)
Kevin P. Fleming [Tue, 12 May 2009 22:30:50 +0000 (22:30 +0000)]
use proper case for variable name :-)

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

8 years agoAllow VPMADT032 and HPEC binary modules to be used on platforms where ARCH is set...
Kevin P. Fleming [Tue, 12 May 2009 22:28:58 +0000 (22:28 +0000)]
Allow VPMADT032 and HPEC binary modules to be used on platforms where ARCH is set to the new 'generic' x86 flavor available in recent Linux kernel releases

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

8 years agoemit warning messages when DAHDI is being built on a CPU architecture that does not...
Kevin P. Fleming [Tue, 12 May 2009 22:03:33 +0000 (22:03 +0000)]
emit warning messages when DAHDI is being built on a CPU architecture that does not support HPEC or the VPMADT032 firmware loader, so the user will know why they are not included

clean up the conditional logic for these items in the Kbuild file

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

8 years agoremove another unused variable
Kevin P. Fleming [Tue, 12 May 2009 21:57:44 +0000 (21:57 +0000)]
remove another unused variable

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

8 years agowcte12xp: Expose vpm parameters as module parameters.
Shaun Ruffell [Mon, 11 May 2009 17:48:45 +0000 (17:48 +0000)]
wcte12xp: Expose vpm parameters as module parameters.

Expose the vpmnlptype, vpmnlpthresh, and vpmnlpmaxsupp as module parameters
like for the wctdm24xxp.

DAHDI-261

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

8 years agovoicebus: Update the default vpmadt032 parameters.
Shaun Ruffell [Mon, 11 May 2009 17:48:43 +0000 (17:48 +0000)]
voicebus: Update the default vpmadt032 parameters.

Move the echo can channel parameters into a common location for both the
wcte12xp and wctdm24xxp drivers that use the voicebus module. This is intended
to make it clearer which differences are required between the clients.
Additionally, update the default parameters to the new recommended values.
VPMADT032-37

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

8 years agovoicebus: Create workqueue for each vpmadt032 instance.
Shaun Ruffell [Thu, 7 May 2009 19:42:00 +0000 (19:42 +0000)]
voicebus: Create workqueue for each vpmadt032 instance.

Depending on the system latency, the deferred work for the vpmadt032 can take
up to 200ms.  This change allows each vpmadt032 to use its own workqueue, and
not the global system workqueue.  This prevents vpm operations from blocking
the main system workqueue for extended periods.

This restores the behavior to the way it was before the common vpmadt032 code
was moved out of the wctdm24xxp and wcte12xp drivers.

DAHDI-260

voicebus-squash:  Adding the wq name.

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

8 years agovoicebus: Changing default NLP type to 'suppression'.
Shaun Ruffell [Thu, 7 May 2009 16:53:32 +0000 (16:53 +0000)]
voicebus:  Changing default NLP type to 'suppression'.

The 'suppression' default for the NLP provides better echo canceling
performance.  Also ensures that the wctdm24xxp and wcte12xp driver use the
same default values.

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

8 years agovoicebus: Use the companding type on the span when enabling echocan.
Shaun Ruffell [Tue, 5 May 2009 17:32:29 +0000 (17:32 +0000)]
voicebus: Use the companding type on the span when enabling echocan.

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

8 years agoInsure that vpmnlptype, vpmnlpmaxsupp, and vpmnlpthresh are set back to module
Doug Bailey [Mon, 4 May 2009 20:36:36 +0000 (20:36 +0000)]
Insure that vpmnlptype, vpmnlpmaxsupp, and vpmnlpthresh are set back to module
level defaults when echo can is freed. (Previously they were zero'd out)

DAHDI-257

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

8 years agoRemove explicit passing of ARCH to kernel build system
Kevin P. Fleming [Sat, 2 May 2009 07:53:48 +0000 (07:53 +0000)]
Remove explicit passing of ARCH to kernel build system

There is no value in setting a value for ARCH and passing it to the kernel
build system; the configured kernel headers/sources already have an architecture
specified and can't be used for any other architecture anyway.

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

8 years agodahdi-base: define __RW_LOCK_UNLOCKED()
Shaun Ruffell [Fri, 1 May 2009 16:43:18 +0000 (16:43 +0000)]
dahdi-base: define __RW_LOCK_UNLOCKED()

Linux 2.6.9 does not contain that definition, but the older definition is
deprecated since it defeats lock state checking. DAHDI-253

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

8 years agovoicebus: Need Makefile to build on 2.6.9
Shaun Ruffell [Fri, 1 May 2009 16:43:02 +0000 (16:43 +0000)]
voicebus:  Need Makefile to build on 2.6.9

DAHDI-253

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

8 years agowcb4xxp: Define mmiowb if not already defined.
Shaun Ruffell [Fri, 1 May 2009 16:42:54 +0000 (16:42 +0000)]
wcb4xxp: Define mmiowb if not already defined.

Linux kernel 2.6.9 does not define mmiowb. DAHDI-253

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

8 years agowctc4xxp: spin_trylock_irqsave is not defined on some kernels.
Shaun Ruffell [Fri, 1 May 2009 16:42:45 +0000 (16:42 +0000)]
wctc4xxp: spin_trylock_irqsave is not defined on some kernels.

DAHDI-253

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

8 years agowctc4xxp: Defined gfp_t for earlier kernels.
Shaun Ruffell [Fri, 1 May 2009 16:42:35 +0000 (16:42 +0000)]
wctc4xxp: Defined gfp_t for earlier kernels.

This definition was just copied from the xpp driver.
DAHDI-253

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

8 years agowctc4xxp: Fix inclusion of linux/io.h on 2.6.9 kernels.
Shaun Ruffell [Fri, 1 May 2009 16:42:23 +0000 (16:42 +0000)]
wctc4xxp: Fix inclusion of linux/io.h on 2.6.9 kernels.

DAHDI-253

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

8 years agoFix compilation of applications that use DAHDI ioctls
Kevin P. Fleming [Thu, 30 Apr 2009 20:59:20 +0000 (20:59 +0000)]
Fix compilation of applications that use DAHDI ioctls

Defining ioctl codes in this file requires that linux/ioctl.h be included first.

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

8 years agoEnsure that vpmsupport=0 module parameter takes proper effect
Kevin P. Fleming [Thu, 30 Apr 2009 19:49:36 +0000 (19:49 +0000)]
Ensure that vpmsupport=0 module parameter takes proper effect

For these drivers, when the vpmsupport module parameter is set to zero, don't
even register the span as supporting echo cancellation.

DAHDI-250

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

8 years agoxpp: A new FPGA firmware to hopefully help with BRI/FXO.
Tzafrir Cohen [Thu, 30 Apr 2009 13:59:19 +0000 (13:59 +0000)]
xpp: A new FPGA firmware to hopefully help with BRI/FXO.

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

8 years agoechocan: Improve interface for echo cancelers.
Shaun Ruffell [Wed, 29 Apr 2009 18:24:04 +0000 (18:24 +0000)]
echocan: Improve interface for echo cancelers.

Echo cancelers are now able to report if they are able to automatically disable
their NLP portions in the presence of tones in the audio stream.   Also, the
interface is changed to allow user space to just disable the NLP portion of the
echo canceler.  These changes improve fax and modem handling in DAHDI.

This commit merges in the changes on
http://svn.digium.com/svn/dahdi/linux/team/kpfleming/echocan_work

Patch by: kpfleming

Also contains improvements to CED tone detection.
(closes issue #13286)
Reported by: viniciusfontes

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

8 years agowct4xxp: Fix problem when timing source is via external cable.
Shaun Ruffell [Wed, 29 Apr 2009 18:09:41 +0000 (18:09 +0000)]
wct4xxp: Fix problem when timing source is via external cable.

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

8 years agovoicebus: Move common vpmadt032 interface into voicebus module.
Shaun Ruffell [Wed, 29 Apr 2009 17:48:39 +0000 (17:48 +0000)]
voicebus: Move common vpmadt032 interface into voicebus module.

The voicebus library was previously linked into both the wcte12xp and wctdm24xxp
drivers.  It is now broken out into it's own module and the common parts of the
vpmadt032 interface are now located in that module to reduce duplication between
the wcte12xp and wctdm24xxp drivers.

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

8 years agowctc4xxp: Change netif_rx_xxx to napi_xxx
Shaun Ruffell [Wed, 29 Apr 2009 17:48:32 +0000 (17:48 +0000)]
wctc4xxp: Change netif_rx_xxx to napi_xxx

The netif_rx_xxx functions were dropped from the linux kernel source on
2009-01-21 in commit 288379f050284087578b77e04f040b57db3db3f8.

(closes issue #14963)
Reported by: tzafrir

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

8 years agowcte12xp: Update cmdqueue processing.
Shaun Ruffell [Wed, 29 Apr 2009 17:48:29 +0000 (17:48 +0000)]
wcte12xp: Update cmdqueue processing.

The command queue for reading from the registers on the framer is now stored in
a linked_list instead of an array.  Allows for the locks to protect this
structure to be held for shorter periods of time and reduces the need to cycle
through all the elements in the array to decide if there is a command in the
queue to process. Remove the usecount and dead members from struct t1 since the
module reference count will allow us to know when it's safe to free up the
memory. This change also moves alarm processing out of the interrupt handler and
removes the need for special interrupt handling of commands.

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

8 years agodahdi_dummy: Remove real-time clock support.
Shaun Ruffell [Wed, 29 Apr 2009 17:48:27 +0000 (17:48 +0000)]
dahdi_dummy: Remove real-time clock support.

This removes support for using the real-time clock as a timing source in
dahdi_dummy.  Instead, the normal kernel timers method is now more accurate
since it keeps track of how much real time has passed to determine how many
times to call dahdi_receive and dahdi_transmit.  This method was originally
suggested by bmd.

(closes issue #13930)
(closes issue #14884)
Reported by: tzafrir
Tested by: dbackeberg, ask

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

8 years agovoicebus: Removing unused code blocks and space in flag definitions.
Shaun Ruffell [Wed, 29 Apr 2009 17:48:25 +0000 (17:48 +0000)]
voicebus: Removing unused code blocks and space in flag definitions.

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

8 years agoxpp: hard_hdlc support for the BRI module.
Tzafrir Cohen [Mon, 27 Apr 2009 20:03:15 +0000 (20:03 +0000)]
xpp: hard_hdlc support for the BRI module.

The BRI module will now use hardhdlc unless the DAHDI tree has been
patched with the bri_dchan patch, in which case the old "bristuffed"
code will be used.

Thus it is now built by default.

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

8 years agoadapt live_dahdi to current xpp tools
Tzafrir Cohen [Sat, 25 Apr 2009 16:35:33 +0000 (16:35 +0000)]
adapt live_dahdi to current xpp tools

* More varibles to set through the environment
* Different way to list drivers

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

9 years agoRevert r6302 - there was no need to upload them
Tzafrir Cohen [Thu, 23 Apr 2009 15:11:12 +0000 (15:11 +0000)]
Revert r6302 - there was no need to upload them

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

9 years agoDon't set the Id keyword on firmwares; restore original ID
Tzafrir Cohen [Thu, 23 Apr 2009 14:48:18 +0000 (14:48 +0000)]
Don't set the Id keyword on firmwares; restore original ID

The Id SVN keyword is set locally in Xorcom and used as an identifier.
That Id should not be overriden by this SVN repository.

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

9 years agoxpp: FPGA_1161.hex: fix FXO PCM issues (new boards only)
Tzafrir Cohen [Thu, 23 Apr 2009 13:57:40 +0000 (13:57 +0000)]
xpp: FPGA_1161.hex: fix FXO PCM issues (new boards only)

FPGA_1161.hex rev. 7024.

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

9 years agodon't refer to macros from dahdi_config.h until after it has been included
Kevin P. Fleming [Wed, 22 Apr 2009 12:53:49 +0000 (12:53 +0000)]
don't refer to macros from dahdi_config.h until after it has been included

use the proper type for the flags variable in dahdi_ppp_xmit()

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

9 years agoMove DAHDI_DEFAULT_MTU_MRU from kernel.h to user.h
Tzafrir Cohen [Tue, 21 Apr 2009 22:16:15 +0000 (22:16 +0000)]
Move DAHDI_DEFAULT_MTU_MRU from kernel.h to user.h

The macro DAHDI_DEFAULT_MTU_MRU needs to be exposed to userspace to
build tools/ppp/dahdi.c .

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

9 years agoxpp firmware: stability fixes for firmwares of new Astribanks
Tzafrir Cohen [Mon, 20 Apr 2009 10:49:54 +0000 (10:49 +0000)]
xpp firmware: stability fixes for firmwares of new Astribanks

FPGA_1161.hex:  xpp rev 7007
PIC_TYPE_*.hex: xpp rev 7000

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

9 years agoxpp: Do use information about number of ports the Astribank provides
Tzafrir Cohen [Mon, 20 Apr 2009 10:26:35 +0000 (10:26 +0000)]
xpp: Do use information about number of ports the Astribank provides

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

9 years agoxpp: Fix FXS calibration (dec rather than hex)
Tzafrir Cohen [Mon, 20 Apr 2009 10:21:40 +0000 (10:21 +0000)]
xpp: Fix FXS calibration (dec rather than hex)

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

9 years agoxpp fxs/fxo: PCM and DTMF fixes
Tzafrir Cohen [Thu, 16 Apr 2009 19:35:48 +0000 (19:35 +0000)]
xpp fxs/fxo: PCM and DTMF fixes

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

9 years agoxpp fxs: Notify the user just one about wrong VMWI config
Tzafrir Cohen [Thu, 16 Apr 2009 19:08:53 +0000 (19:08 +0000)]
xpp fxs: Notify the user just one about wrong VMWI config

From xpp rev. 6974.

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

9 years agoxpp fxs: Ignore registers of disabled SLICs
Tzafrir Cohen [Thu, 16 Apr 2009 18:16:29 +0000 (18:16 +0000)]
xpp fxs: Ignore registers of disabled SLICs

From xpp rev. 6979

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

9 years agoxpp bri: explicitly turn off leds on startup
Tzafrir Cohen [Thu, 16 Apr 2009 18:10:41 +0000 (18:10 +0000)]
xpp bri: explicitly turn off leds on startup

If NT/TE was changed (e.g: happened because of firmware bug)
We would be left with a lit led we don't know about.

From xpp rev. 6990

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

9 years agoMove astribank_hook from linux to tools. Install it by default
Tzafrir Cohen [Fri, 10 Apr 2009 09:53:40 +0000 (09:53 +0000)]
Move astribank_hook from linux to tools. Install it by default

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

9 years agoAlso install dahdi_config.h to /usr/include/dahdi
Tzafrir Cohen [Sat, 4 Apr 2009 14:22:46 +0000 (14:22 +0000)]
Also install dahdi_config.h to /usr/include/dahdi

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

9 years agoUpdate the sample udev astribank_hook for TwinStar
Tzafrir Cohen [Thu, 2 Apr 2009 20:34:34 +0000 (20:34 +0000)]
Update the sample udev astribank_hook for TwinStar

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

9 years agoXPP: support for 116x Astribanks.
Tzafrir Cohen [Thu, 2 Apr 2009 20:27:42 +0000 (20:27 +0000)]
XPP: support for 116x Astribanks.

 * New software to load in the udev rules
 * New control protocol ("MPP")
 * More modular FPGA firmware

From Xorcom rev. 6963.

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

9 years agoXPP FPGA Firmware updates: firmware rev. 6943.
Tzafrir Cohen [Thu, 2 Apr 2009 20:02:28 +0000 (20:02 +0000)]
XPP FPGA Firmware updates: firmware rev. 6943.

Minor bug fixes

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

9 years agoReduce the rate for a potentially annoying message
Tzafrir Cohen [Thu, 2 Apr 2009 19:36:36 +0000 (19:36 +0000)]
Reduce the rate for a potentially annoying message

This message is used when an xpp span is a DAHDI sync master but also
set to take timing from the DAHDI master. This means wrong settings:
user is wasting CPU cycles.

However notifying the user about it every second is still too much.

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

9 years agoensure that the structure being returned by DAHDI_GET_BUFINFO is completely initialized
Kevin P. Fleming [Thu, 2 Apr 2009 17:27:02 +0000 (17:27 +0000)]
ensure that the structure being returned by DAHDI_GET_BUFINFO is completely initialized

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

9 years agocorrect minor spacing issue
Kevin P. Fleming [Thu, 2 Apr 2009 13:34:35 +0000 (13:34 +0000)]
correct minor spacing issue

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

9 years agoFixes DAHDI-214 crash on driver unload. Affects wcte12xp and wctdm24xxp modules.
Wendell Thompson [Thu, 26 Mar 2009 18:33:28 +0000 (18:33 +0000)]
Fixes DAHDI-214 crash on driver unload. Affects wcte12xp and wctdm24xxp modules.

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

9 years agoEliminate unnecessary checks for NULL before freeing memory.
Shaun Ruffell [Tue, 24 Mar 2009 19:08:17 +0000 (19:08 +0000)]
Eliminate unnecessary checks for NULL before freeing memory.

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

9 years agoDo not allocate more memory than is needed when sending packets.
Shaun Ruffell [Tue, 24 Mar 2009 19:08:12 +0000 (19:08 +0000)]
Do not allocate more memory than is needed when sending packets.

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

9 years agoBlock runt packets from the transcoder.
Shaun Ruffell [Tue, 24 Mar 2009 19:08:06 +0000 (19:08 +0000)]
Block runt packets from the transcoder.

Tested by: Walter Klomp

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

9 years agoDo not define the debug flags if CONFIG_SLUB is not set.
Shaun Ruffell [Tue, 24 Mar 2009 15:59:55 +0000 (15:59 +0000)]
Do not define the debug flags if CONFIG_SLUB is not set.

Some versions of the kernel (2.6.18-92.1.22.el5) have patches in them to panic
if a slab cache is created with unsupported flags.

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

9 years agoMake sure the requested echo canceller name is NULL-terminated.
Tzafrir Cohen [Tue, 24 Mar 2009 15:59:32 +0000 (15:59 +0000)]
Make sure the requested echo canceller name is NULL-terminated.

Make sure that the that the name of the echo canceller requested in the
DAHDI ioctl DAHDI_ATTACH_ECHOCAN is NULL-terminated.

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

9 years agoMake some messages debug messages and minor formatting adjustment.
Shaun Ruffell [Mon, 23 Mar 2009 23:49:12 +0000 (23:49 +0000)]
Make some messages debug messages and minor formatting adjustment.

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

9 years agoVerify checksum on the RTP IP header before queueing.
Shaun Ruffell [Mon, 23 Mar 2009 23:49:06 +0000 (23:49 +0000)]
Verify checksum on the RTP IP header before queueing.

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

9 years agoPoll the card in a kernel timer when several channels are open.
Shaun Ruffell [Mon, 23 Mar 2009 23:49:03 +0000 (23:49 +0000)]
Poll the card in a kernel timer when several channels are open.

Polling the driver increases overall system throughput when there are several
transcoding channels open by reducing the number of interrupts the the TC400M
generates.

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

9 years agoOptionally show total number of packets dropped when channel is closed.
Shaun Ruffell [Mon, 23 Mar 2009 23:48:59 +0000 (23:48 +0000)]
Optionally show total number of packets dropped when channel is closed.

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

9 years agoDo not handle duplicate reponses.
Shaun Ruffell [Mon, 23 Mar 2009 23:48:54 +0000 (23:48 +0000)]
Do not handle duplicate reponses.

It is possible for system activity to prevent the wctc4xxp driver from
responding the the firmware on the TC400M for a period of time.  If this occurs,
the TC400M will resend a response to a command that we sent.  This duplicate
reponse will then sometimes confuse the driver.  Normally this would manifest
as an attempt to connect the same channel together in a transcoding session.

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

9 years agoCreate our own free list for commands instead of using kmem_cache.
Shaun Ruffell [Mon, 23 Mar 2009 23:48:49 +0000 (23:48 +0000)]
Create our own free list for commands instead of using kmem_cache.

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

9 years agoSet TX_COMPLETE atomically with changes to the waiting_for_response_list.
Shaun Ruffell [Mon, 23 Mar 2009 23:48:43 +0000 (23:48 +0000)]
Set TX_COMPLETE atomically with changes to the waiting_for_response_list.

This change is to catch a condition where it is possible, for whatever reason,
for a response to come in before the request is marked tx complete.
If this happened, it was possible to leak the response packet and double complete
the command.

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

9 years agosplit send_trans_connect into a connect / disconnect pair.
Shaun Ruffell [Mon, 23 Mar 2009 23:48:38 +0000 (23:48 +0000)]
split send_trans_connect into a connect / disconnect pair.

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

9 years agoIf the driver fails to register, make sure we cleanup the command cache.
Shaun Ruffell [Mon, 23 Mar 2009 23:48:33 +0000 (23:48 +0000)]
If the driver fails to register, make sure we cleanup the command cache.

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

9 years agoSetup the TC400M to poll the own bit on the descriptor ring.
Shaun Ruffell [Mon, 23 Mar 2009 23:48:27 +0000 (23:48 +0000)]
Setup the TC400M to poll the own bit on the descriptor ring.

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

9 years agoMake sure that messages sitting in the outbound queue cause the timer to
Shaun Ruffell [Mon, 23 Mar 2009 23:48:22 +0000 (23:48 +0000)]
Make sure that messages sitting in the outbound queue cause the timer to
reschedule.

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

9 years agoRefactor channel command handling.
Shaun Ruffell [Mon, 23 Mar 2009 23:48:16 +0000 (23:48 +0000)]
Refactor channel command handling.

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

9 years agoFix a typo
Jason Parker [Wed, 18 Mar 2009 18:48:41 +0000 (18:48 +0000)]
Fix a typo

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

9 years agoxpp USB_FW.hex rev 6885: fixes reading label from USB
Tzafrir Cohen [Tue, 17 Mar 2009 17:59:18 +0000 (17:59 +0000)]
xpp USB_FW.hex rev 6885: fixes reading label from USB

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

9 years agoMove dahdi_config.h to be under include/dahdi/
Tzafrir Cohen [Mon, 16 Mar 2009 19:29:10 +0000 (19:29 +0000)]
Move dahdi_config.h to be under include/dahdi/

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

9 years agoMake ecdis.h used by dahdi-base.h alone
Tzafrir Cohen [Mon, 16 Mar 2009 17:45:46 +0000 (17:45 +0000)]
Make ecdis.h used by dahdi-base.h alone

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

9 years agoFix handling of 'w' in a pulse dial string
Tzafrir Cohen [Fri, 13 Mar 2009 10:21:16 +0000 (10:21 +0000)]
Fix handling of 'w' in a pulse dial string

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

9 years agoA better sample xpp.conf
Tzafrir Cohen [Thu, 12 Mar 2009 15:15:18 +0000 (15:15 +0000)]
A better sample xpp.conf

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

9 years agoxpp init_card_* scripts now less verbose
Tzafrir Cohen [Thu, 12 Mar 2009 15:12:50 +0000 (15:12 +0000)]
xpp init_card_* scripts now less verbose

* 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

9 years agoFix handling of DAHDI_GETGAINS_V1 missing from r6124 .
Tzafrir Cohen [Thu, 12 Mar 2009 14:50:58 +0000 (14:50 +0000)]
Fix handling of DAHDI_GETGAINS_V1 missing from r6124 .

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

9 years agoAllow 10ms for voicebus hardware to settle after reset.
Shaun Ruffell [Wed, 11 Mar 2009 14:51:11 +0000 (14:51 +0000)]
Allow 10ms for voicebus hardware to settle after reset.

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

9 years agoRelax ident wheel requirements.
Shaun Ruffell [Wed, 11 Mar 2009 14:51:04 +0000 (14:51 +0000)]
Relax ident wheel requirements.

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

9 years agoFix direction bits on several ioctls.
Shaun Ruffell [Wed, 11 Mar 2009 14:50:58 +0000 (14:50 +0000)]
Fix direction bits on several ioctls.

(related to issue #14499)
Reported by: ys

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