summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-01-08voicebus: Remove framesize, buffer_cache, and cache_line members from struct.Shaun Ruffell
Framesize is the same on all the clients, so it can be removed from the 'struct voicebus' (and changed back again if needed). Since the framesize is the same, each board doesn't need it's own buffer_cache, and cache_line is only used during startup and can be read directly from pci configuration space, so we don't need to keep it around in our context. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7779 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-01-08voicebus: Make 'struct voicebus' embeddable by the client driver strutures.Shaun Ruffell
In addition to making 'struct voicebus' embeddable, also add an 'voicebus_operations' structure. This was done so that a) remove the "context" pointer from struct voicebus, and also to show that handle_recieve/transmit are to be managed together. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7778 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-01-06Use unlocked_ioctl and compat_ioctl instead of ioctl.Tzafrir Cohen
* dahdi-base needs compat_ioctl in order to allow 32-bit userspace applications to call the DAHDI ioctls in a 64-bit kernel. * add a separate dahdi_ioctl_compat() to handle functions whose parameters will need some tweaks (currently: only reject DAHDI_SFCONFIG). (closes issue #14808) * 0002-dahdi-base-Use-unlocked_ioctl-and-compat_ioctl-inste.patch uploaded by sruffell (license 456) * 0003-add-a-separate-dahdi_ioctl_compat.patch uploaded by tzafrir (license 46) Tested by: sruffell, tzafrir git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7769 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-01-06Remove some unused 'struct inode *' function parameters.Tzafrir Cohen
Patch 0001 from issue #14808 (initial cleanup) 0001-dahdi-base-Remove-some-unused-struct-inode-function-.patch uploaded by sruffell (license 456) git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7768 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-01-04Fix udev rules to work with more recent kernels.Tzafrir Cohen
Note that this change will not work on most older systems (e.g.: Centos5, with its udev 0.95) if the matching change of xpp_fxloader in tools (r7752) is not applied. * Replace deprecated 'BUS' with 'SUBSYSTEM' * Sysfs{} should be replaced with ATTR{}. Sadly the former is not supported in recent udev, and the latter is not supported in udev 0.95. Workaround: use PRODUCT from the environment. * Use a single rule. * While we're at it, add the missing comma to the astribank_hook line (which surprisingly worked without it). git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7753 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-12-28autoconf.h is inlcuded by Kbuild at the command-line.Tzafrir Cohen
No need to explicitly include it. Also note that <linux/autoconf.h> is invalid as of 2.6.33 . It is now <generated/autoconf.h> (but anyway, should not be #include-d directly). git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7732 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-12-28xpp: Fix a typo in card_fxo.Tzafrir Cohen
xpp rev: 7595 git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7731 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-12-22voicebus, wcte12xp: Only define SLAB_STORE_USER when CONFIG_SLUB is defined.Shaun Ruffell
On 2.6.22, there is was a bug in the SLUB allocator that required defining SLAB_STORE_USER, however this setting is only valid when CONFIG_SLUB is defined and not when using the previous slab allocator. DAHDI-424. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7722 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-12-20Another dump of documentation.Tzafrir Cohen
Extended the documentation of the "Internals" section. Hopefully it is correct. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7711 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-12-18A standard license header for the firmware Makefile.Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7708 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-12-16kernel-cp: a local wrapper to the kernel's checkpatch script.Tzafrir Cohen
checkpatch.pl is a script intended to check style of code (normally: before submitting kernel patches). As using this script simplifies testing new code for coding style, this commit officially closes issue #16191 . git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7702 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-12-14DAHDI_AUDIO_NOTIFY: Also pass DAHDI_AUDIOMODE to channel driverTzafrir Cohen
Adds a new compile-time option DAHDI_AUDIO_NOTIFY. With it there's a new span hook, audio_notify, that gets called (if not NULL) whenever the ioctl DAHDI_AUDIOMODE is called for a channel. This can be useful to tell (in most cases) if an ISDN channel is active or not and thus allow the low-level driver to optimize traffic when channels are not active. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7691 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-12-14xpp: replace i with j to avoid overridingTzafrir Cohen
Fix a place where an inner declaration of a local 'i' shadows the declaration of an outer one. Just rename the inner one to 'j'. Reported by sparse. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7690 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-12-11dahdi-base: Do not wait for impulse when echotraining.Shaun Ruffell
Waiting here for the impulse on the transmit can cause the echotraining logic to stick the channel into muted state. This is especially apparent on systems that regularly do not service the interrupts every millisecond. DAHDI-387. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7682 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-12-11dahdi-base: Reduce the max allocation size in dahdi_reallocbufs.Shaun Ruffell
Lower the maximum contiguous chunk that DAHDI asks for from DAHDI_MAX_BUFFER_SIZE*2 to DAHDI_MAX_BUFFER_SIZE. With 4K pages, this can allow the kernel to try a little harder to find the memory it needs since the request goes from order 4 to order 3. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7681 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-23Commit fix for problem frames being received for WCB4XXP_HDLC_BUF_LEN ↵Matthew Fredrickson
multiple sized frames. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7640 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-23git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7639 ↵Matthew Fredrickson
a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-23Commit fix for problem frames being received for WCB4XXP_HDLC_BUF_LEN ↵Matthew Fredrickson
multiple sized frames. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7638 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-23Even if we are debouncing the LOS declaration, we still expect the LED toMike Spiceland
turn red as soon as we unplug the physical cable. This impliments this on the wcte12xp just as it already does on the wct4xxp. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7632 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-22xpp: Improved inter-Astribank drift calculation.Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7625 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-22xpp: statify and line length in card_bri.cTzafrir Cohen
* checkpatch.pl nudged about line lengthes. * sparse nudged about non-static functions. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7622 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-22xpp firmware: USB firmware with support of MPP 1.4Tzafrir Cohen
xpp rev: 7419 git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7615 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-22xpp firmware: fix FXS indirect register reading.Tzafrir Cohen
xpp rev: 7498 git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7614 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-19wctdm24xxp: Honor the alawoverride parameter when using the VPMADT032.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7601 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-19xpp: rules for loading USB firmware into 1163 devices as wellTzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7595 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-15xpp: card_pri: force remote refresh on CASTzafrir Cohen
Send different values on alarm to make the remote party re-read state. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7591 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-15xpp: refactor card_pri access to CAS registersTzafrir Cohen
Provide some functions to access the CAS registers for E1, T1/ESF and T1/D4. Mostly, relatively few changes. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7590 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-15xpp: No need for an osolete .version fileTzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7587 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-12wcte12xp, voicebus: Set the companding mode correctly on E1.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7582 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-12wcb4xxp: Add missing commaShaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7579 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-12wcb4xxp: More hw ids for HFC-4S & HFC-8SShaun Ruffell
Solves a typo in Junghanns 8 ports card hw id & adds more hardware ids (Beronet mainly). All tested ok in asterisk-es group. (issue #15446) Reported by: Odicha Patches: wcb4xxp dahdi-linux.patch uploaded by Odicha (license 700) git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7576 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-12kernel.h: Define 'list_replace' for kernels < 2.6.18Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7571 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-12wcte12xp: Change serial port configuration setting for hw echocan.Shaun Ruffell
The wcte12xp, like the wctdm24xpp, should have the PcmOutPortA set to SerialPortNull. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7570 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-12voicebus: Use dev_xxx macro when printing vpm messages.Shaun Ruffell
We also do not need the unused context member of the vpmadt032 structure. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7569 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-12voicebus: Remove redundant MAX_CHANNELS_FROM_SPANShaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7568 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-12voicebus: Remove unused curtone from 'struct vpmadt032'Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7567 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-12wctdm24xxp, wcte12xp: We no longer have any DTMF events to check for.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7566 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-12voicebus: Fix race when enabling/disabling hardware echocan.Shaun Ruffell
This closes a race condition where it was possible for the driver to believe it has enabled the VPMADT032 when in fact, it really has not. This fixes a regression introduced in dahdi-linux 2.2.0. (issue #15724) git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7565 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-10wcte12xp: Export features and operations for VPMADT032.Shaun Ruffell
Fixes a regression in dahdi-linux 2.2.0 where it was impossible for userspace to reset the state of a channel in the VPM. (issue #15724) Patches: mantis-15724-2.patch uploaded by sruffell (license 456) Tested by: alecdavis git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7549 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-09wcte12xp: use the dev_xxx macro for the debounce messages.Shaun Ruffell
We want to know which device is reporting the debounce when there are more than one card in the system. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7536 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-09wcte12xp: Only print the new debounce messages when debug is set.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7535 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-09wct4xxp: Only print the new debounce messages when debug is set.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7534 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-07wct4xxp: Fix up some continued strings.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7528 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-07wcte12xp: Fix up some continued strings.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7527 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-07voicebus: Be just a little more graceful if we cannot grab our interrupt line.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7524 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-07voicebus: Remove 'assert' macros and use BUG_ON/WARN_ON directly.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7523 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-07voicebus: Add optional sysfs entry for reading a boards current latency.Shaun Ruffell
This is off by default since it hasn't been tested on a full range of kernels, but can be useful for quickly seeing differences for latencies on different cards installed in the system. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7522 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-07voicebus, wctdm24xxp, wcte12xp: Move a print out of the interrupt handler.Shaun Ruffell
This can be handled just as well in process context and printing to a serial console from the interrupt handler has the potential to cause long latencies. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7521 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-07wctdm24xxp: Lock latency when loadingShaun Ruffell
We no longer need to retry board initialization if the latency would have increased during the initialization. DAHDI-278 git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7520 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-07wcte12xp: Lock latency when loadingShaun Ruffell
No longer need to restart board initialization if the latency would have increased during initialization. DAHDI-278. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7519 a0bf4364-ded3-4de4-8d8a-66a801d63aff