summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2009-09-21live_dahdi: Better handling of a non-existing TOOLS_DIRTzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7172 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-09-21Mark some userspace parameters with __user . No functional change.Tzafrir Cohen
Mark parameters for some system calls as __user . This handles some of the cases, but still leaves copy_from_user / copy_to_user that are currently always used with an explicit cast. A minor patch from issue #14808 . git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7164 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-09-21dahdi-base: dahdi_ioctl_[get|set]gains should return the res value.Shaun Ruffell
In function dahdi_ioctl_getgains() and dahdi_ioctl_setgains() return value assigned to res variable, but these function always return 0 which is an error. (closes issue #15916.) Patch by: ys git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7155 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-09-16wct4xxp: Check the alarm state if we're debouncing a red alarm.Shaun Ruffell
This fixes a problem where if you set the alarmdebounce module parameter on gen2+ cards, you never detect when you go into red alarm. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7147 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-09-15Change WCTDM SPI clock off state polarity and read timingDoug Bailey
Change the off state of the SPI clock to high and provide more time for data to settle out on SPI reads. (closes issue #15261) Reported by: alecdavis Patches: wctdm_spi_clocking.diff2.txt uploaded by alecdavis (license 585) Tested by: alecdavis, dbailey git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7140 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-09-15dahdi-base: Minor syntax change to meet style guidelinesRuss Meyerriecks
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7125 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-09-14Change zap -> dahdi.Sean Bright
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7118 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-09-14Race condition in handling writes to proslic LINEFEED register (64)Doug Bailey
The wctdm24xxp driver has a problem where a VMWI IOCTL call followed immediately by a ONHOOKTRANSFER IOCTL call will cause the ONHOOK transfer request to be dropped. This occurs if the write to the proslic's LINEFEED register for the VMWI ICTL call is not completed when the ONHOOK transfer request IOCTL is processed. I also cleaned out some magic numbers used in setting the linefeed register. (closes issue #15875) Reported by: dbailey Patches: 15875-wctdm24xxp.diff uploaded by dbailey (license 819) Tested by: dbailey git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7117 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-09-14Fixed issue where the clear channel flags were not being set at the ↵Russ Meyerriecks
appropriate time causing a channel re-configure to mis-set the last channel in each span git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7110 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-09-07dahdi-base: Fix flag check in dahdi_rbs_sethook.Shaun Ruffell
As long as any of the flags were set, this check would have always passed. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7097 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-09-07dahdi-base: Prevent compilation if both EMPULSE and EMFLASH are defined.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7096 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-09-07dahdi-base: Reduce the stack usage of dahdi_common_ioctl.Shaun Ruffell
Split the DAHDI_GETGAINS and DAHDI_SETGAINS ioctls into their own functions and dynamically allocate the 'struct dahdi_gains' structure to reduce the pressure on the stack. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7095 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-09-07wctdm24xxp: Remove a few more unneeded 'volatile' keywords.Shaun Ruffell
The writechunk and readchunk parameters are never accessed by hardware at the same time that the software is accessing them anymore. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7094 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-08-24Don't dereference the span after a channel was closed.Tzafrir Cohen
Releasing the channel may trigger releasing a span in certain cases (e.g. the last channel on a xpp (Astribank). This gives a niec panic on closing of Asterisk under the right flow. As the span was only dereferenced to access the owner field, we can save it locally. Issue has been present since r6794 . git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7066 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-08-21Remove duplicate-ish code that has existed since r40 (committed 8 years ago).Jason Parker
After a long discussion, it was decided that this was the best action since there was no apparent issue caused by it. The alternative suggestion was to change the extra BBIT to an ABIT as FXSLS uses. Because of the nature of this code, it was deemed to be a bit (you see what I did there?) too risky. Who would've expected such a small change to be so complex? (closes issue #15178) Reported by: KrisV git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7057 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-08-19Ensure that dahdi_scan correctly reports VPM presence.Kevin P. Fleming
The wct4xxp driver (for the dual/quad span T1/E1 cards) and the wcte12xp driver (for the single span VoiceBus-based T1/E1 cards) did not properly update the 'devicetype' field reported by dahdi_scan when a VPM was found during the card startup process. As a result, dahdi_scan did not show that a VPM was present on the card, even if it was. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7038 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-08-17Silence spurious warnings when trying to remove Zaptel directories during ↵Sean Bright
install. (closes issue #15479) Reported by: pprindeville Patches: dahdi-linux-rm.patch uploaded by pprindeville (license 347) git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7027 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-08-17README: Update known issues section.Shaun Ruffell
Remove note about echocanceler reference counts, since that is fixed, and add a note about issue with KB1 when configured with more than 128 taps. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7023 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-08-14wcfxo: Reset the DAA on module initialization.Shaun Ruffell
The X100p and clones will sometimes work and sometimes not depending on wether the DAA powers up in running state- this seems to be related to the power supply. This problem is caused by the driver not reseting the DAA and may be the source of a great many intermittent problems with this card. (closes issue #14232) Reported by: tallen8840 Patch by: tallen8840 Tested by: explidous, Flavio git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7008 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-08-14dahdi-base: Add comment to explain why rxhooksig is reset on span start.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7004 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-08-14wctdm24xxp, wctdm: Detect if our hookstate has been set back to the initial ↵Shaun Ruffell
state. Check if our hookstate has been set back to the initial state, typically the result of a chanconfig, and if so, if we're an FXO port, forget our current battery state. This allows the driver to determine and report again what the hook state of the port is. (related to issue #14577) (closes issue #15429) git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7003 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-08-13xpp: Only define SLAB_STORE_USER on 2.6.22 if CONFIG_SLUB is set.Shaun Ruffell
Prevents a crash on 2.6.22 when CONFIG_SLAB is set and CONFIG_SLAB_DEBUG is not. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6995 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-08-13wctdm24xxp: Use the ARRAY_SIZE macro where appropriate.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6982 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-08-13wctc4xxp: Remove flag member that is not used.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6981 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-08-12live_dahdi: more drivers in subdirs; voicebusTzafrir Cohen
* wcb4xxp and wcte12xp should also be loaded from a subdirectory with their name. * wctdm24xxp and wcte12xp depend on the voicebus driver. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6971 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-08-12xpp: Don't check for the 'owner' field too soonTzafrir Cohen
The owner field should only tested after the low-level driver pre-registration method is called. xpp rev: 7287 git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6967 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-08-12xpp: FPGA_1161.hex r7276 . Minor PRI bugfixes.Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6966 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-08-11wct4xxp-diag: Fixes to allow it to compile once more.Shaun Ruffell
This is just a debugging tool and wouldn't have affected any operational systems. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6961 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-08-11wctdm24xxp: Remove unused members related to hardware DTMF detection.Shaun Ruffell
Not used anymore, so they are gone. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6952 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-08-11wcte12xp: Removing a few macros that are no longer used.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6951 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-08-05dahdi_dummy: Remove some trailing whitespace.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6946 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-08-05wctdm24xxp, wctdm: Formatting changes.Shaun Ruffell
Update the lines affected by revision 6941. I'm taking every opportunity to move DAHDI closer to the kernel coding conventions short of just reformatting for the sake of reformatting. The majority of these changes are to bring the line lengths under 80 chars. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6945 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-08-05Change proslic linefeed register settingDoug Bailey
Insure that proslic linefeed register is not transitioned from Active to On-Hook Transmission while the channel is off-hook. Replaced magic numbers assigned to linefeed associated variables with more descriptive constants. (issue #15352) Reported by: alecdavis Patches: wctdm_prevent_ohttimer_click.diff3.txt uploaded by dbailey (license 819) Tested by: alecdavis, dbailey, vmikhelson git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6941 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-08-04xpp firmware: Fixes PCM issue with FXO that is not a timing sourceTzafrir Cohen
Fixes PCM issue with an Astribank2 (116x) FXO module that is installed alongside a PRI/BRI module. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6938 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-08-04dahdi_dummy: Do not allow jumps in system time to lock up the system.Shaun Ruffell
Since dahdi_dummy uses the number of milliseconds that has actually passed to determine how many times to call dahdi_receive, it is possible that if the system time shifts after dahdi is started, that the system can appear to lock up while dahdi_dummy attempts to catch up. This change prevents soft lock ups under these conditions. (closes issue #15647) Reported by: missnebun git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6933 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-08-04wctdm24xxp: txints and rxints duplicate intcount. Remove them.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6932 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-08-04wcte12xp: Remove unnecessary usage of keyword volatile.Shaun Ruffell
The buffers are not being accessed by the hardware at this point, and therefore do not need to be volatile. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6931 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-08-04wcte12xp: Remove the vpm_num from 'struct command'Shaun Ruffell
This member wasn't necessary anymore since the VPM commands are kept on a separate queue now. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6930 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-08-04wctdm24xxp: Eliminate 'variety' and 'type' members from 'struct wctdm'.Shaun Ruffell
struct wctdm can hold a pointer to struct wctdm_desc directly, and eliminate the need to copy members of wctdm_desc into wctdm. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6929 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-08-04wcte12xp: Remove unused 'schluffen' declaration in wcte12xp.hShaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6928 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-08-04wctdm24xxp: Remove some unused members from struct wctdm.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6927 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-08-04wctdm24xxp: We no longer need to keep our own reference count.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6926 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-07-27Replace typos "recieved" with "received".David Brooks
(closes issue #15571) Reported by: alecdavis git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6897 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-07-23dahdi-base: Update formatting in ioctl_load_zone.Shaun Ruffell
Fixes checkpatch.pl formatting errors from the previous commit. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6891 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-07-23dahdi-base: Reduce the stack usage of ioctl_load_zone.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6890 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-07-21dahdi-base: Add support for core timing.Shaun Ruffell
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/trunk@6863 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-07-21Revert "wct4xxp, wcte11xp: Use the default configuration by default at startup."Shaun Ruffell
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. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6862 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-07-19tor2: allow using port4 as timing sourceTzafrir Cohen
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) git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6852 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-07-16wcte12xp: Disable vpmadt032 companding by default.Shaun Ruffell
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 git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6844 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-07-13wctc4xxp: Remove deprecated DMA_xxBIT_MASK usage.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6838 a0bf4364-ded3-4de4-8d8a-66a801d63aff