summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2009-11-19zaptel-base,xpp,wcte12xp,wctdm24xxp,wctdm,pciradio: Compilation updates.HEADsvn_1.4masterShaun Ruffell
Adding some header files to the different drivers in order to enable them to compile against 2.6.32. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4692 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2009-10-04xpp: Use proper get/set for device->driver_datasruffell
2.6.32-rc1 broke direct access to the member 'driver_data' of 'struct device'. However direct access to wasn't proper in the first place. This commit replaces direct access to dev->driver_data with dev_get_drvdata() and dev_set_drvdata(). This is a backport from https://origsvn.digium.com/svn/dahdi/linux/trunk@7226. From: tzafrir <tzafrir@22b186d9-ae4d-0410-a2cf-b1b22c4d6fbd> git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4687 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2009-10-04wctc4xxp: Update to use struct net_device_ops.sruffell
Accomodates a change in the linux kernel network device interface. This is a backport from https://origsvn.digium.com/svn/dahdi/linux/trunk@6717 From: sruffell <sruffell@22b186d9-ae4d-0410-a2cf-b1b22c4d6fbd> git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4686 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2009-09-25xpp firmware: Fixes PCM issue with FXO that is not a timing sourcetzafrir
Fixes PCM issue with an Astribank2 (116x) FXO module that is installed alongside a PRI/BRI module. xpp rev: 7276 From DAHDI rev: 6938 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4684 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2009-08-13voicebus: Define CONFIG_STORE_USER on 2.6.22 when CONFIG_SLUB is defined.sruffell
This is to work around a known issue with linux 2.6.22. For more information see http://thread.gmane.org/gmane.linux.kernel/618031 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4677 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2009-08-13xpp: On 2.6.22 only define CONFIG_STORE_USER when CONFIG_SLUB is defined.sruffell
When CONFIG_SLAB is defined, but CONFIG_SLAB_DEBUG is not, you will get a kernel oops when loading the driver if CONFIG_STORE_USER is defined. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4676 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2009-08-03ztmonitor: -f alone is a good enough reason to continuetzafrir
Bugfix: With ztmonitor NN -f file.raw ztmonitor would quit and claim it has nothing to do. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4672 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2009-07-21dahdi-base: Add support for core timing.sruffell
This essentially moves the function of dahdi_dummy into the core of Zaptel. It ensures that if Zaptel 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 ztreceive, then the behavior will be like it is normally. This functionality is off by default, uncomment CONFIG_ZAPTEL_CORE_TIMER in include/dahdi/config_dahdi.h in order to enable it. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4666 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2009-07-21Revert "wct4xxp, wcte11xp: Use the default configuration by default at startup."sruffell
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4665 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2009-06-24wct4xxp, wcte11xp: Use the default configuration by default at startup.sruffell
This change allows the hardware to provide timeing to asterisk before they have been properly configured. DAHDI-275. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4662 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2009-06-23live_zap: adjust to recent changes in Zapteltzafrir
* Adjust to changes in Zaptel. * Detect OSLEC if it happens to be in our tree. * Don't bomb-out on some legitimate errors. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4660 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2009-06-18Revert "wctdm24xxp, voicebus: Enable the watchdog for the wctdm24xxp driver."sruffell
This reverts revision 4655, which was mistakenly committed. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4658 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2009-06-18wctc4xxp: Load the zaptel, not the DAHDI firmware image.sruffell
This change also updates the sysconfig script to load the wctc4xxp kernel module for the TC400M card. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4656 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2009-06-18wctdm24xxp, voicebus: Enable the watchdog for the wctdm24xxp driver.sruffell
Allows the wctdm24xxp driver to use the default dahdi watchdog facility to kickstart the board in case it stops generating interrupts. DAHDI-254. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4655 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2009-06-12astribank_tool: Support 'reset' of old protocol as fallbacktzafrir
If astribank_tool fails to open a device when running a reset command, try to reset the device with the command from the old (pre-MPP) protocol (A single 0x20 byte). No support whatsoever for any other feature of the old protocol. This was accidentally left out of previous commits. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4653 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2009-06-04Fix documentation of parameter brint_overlaptzafrir
(Documentation-only change) git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4651 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2009-05-27xpp: Replaece member bus_id with dev_name() and set_dev_name()tzafrir
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. From dahdi-linux r6637. Regarding issue #14965 . git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4649 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2009-05-27xpp: 'owner' property of procfs was dropped in 2.6.30.tzafrir
This adds a compatibility macro for older versions that is a noop for kernels >= 2.6.30. From dahdi-linux r6642, r6659 , regarding issue #14964 . git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4648 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2009-05-27Ignoring a bunch of other poor generated filestzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4646 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2009-05-27wctc4xxp: Change netif_rx_xxx to napi_xxxtzafrir
The netif_rx_xxx functions were dropped from the linux kernel source on 2009-01-21 in commit 288379f050284087578b77e04f040b57db3db3f8. From dahdi-linux r6526. Issue: https://issues.asterisk.org/view.php?id=14963 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4644 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2009-05-27* Actually install astribank_allowtzafrir
* Which requires a man page * And ignore some extra generated files while we're at it. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4643 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2009-05-27Big dump of newer xpp code.tzafrir
For finer details and separate commits, you are advised to look into the commit log of dahdi-{linux,tools}. xpp.r7150 * 116x Astribanks: - Support for the TwinStar capability and for FXO and (BRI|PRI) on same device. - New control protocol ("MPP"). - astribank_hextool - a low-level firmware loading tool instead of fpga_load . - astribank_tool - Other MPP activities . - Can still reset (but just that) through older protocol. - astribank_hexload is required for loading FPGA firmware for USB_FW.hex rev > 6885. - USB_FW rev. 7071 . - More modular FPGA firmware (1161 only). - FPGA_1161.hex rev. 7131. PIC_TYPE_* rev. 7107. - software-settings of some capabilities with astribank_allow . * XPP: - init_card_* script are less verbose. - Reduced rate of "Is a DAHDI sync master" message. - Replace member bus_id with dev_name() and set_dev_name() for building with 2.6.30. - Conditionally remove 'owner' property of procfs was dropped in 2.6.30. - astribank_hook now enabled by default. - Has an optional hook for TwinStar. * BRI: - hardhdlc support: The bri_dchan patch is no longer needed. - If bri_dchan patch applied: old code is used, and "dchan" is used. - If not: new code and "hardhdlc" is used. - zapconf will generate the right configuration, depending on the new sysfs driver attribute bri_hardhdlc, but default to "dchan" as before if not explicitly told. - Bugfix: explicitly turn off leds on startup. * FXS: - Initialization and calibration fixes. - Notify the user just one about wrong VMWI config * Dahdi-perl: - Fix detection of empty slots in wctdm. - Fix working with ethmf's extra file in /proc/zaptel - Improved detection of Rhino cards. - dahdi_genconf's generated text better explains files are generated. - /etc/xpp_order - allow specifiying an explicit order for Astribanks to register with Zaptel. - Dahdi::Xpp::Mpp - A wrapper around astribank_tool . * dahdi.init: - A separate waitfor_xpds script. May now have a wait-loop in some cases. - xpp_sync needs to only be called after dahdi_cfg . (for the PRI module). git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4641 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2009-05-26zaptel_svn_tarball: a poor-mans's ChangeLog generator.tzafrir
svn2log from repotools has too many dependencies for my target usage (Feel free to patch the script to use it if available, though). git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4639 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2009-03-29zapconf: Set contexts same as groupstzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4635 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2009-03-24Backporting changes to the transcoder from dahdi.sruffell
- Fix bug where asterisk could not find a loaded transcoder. - Do not allow bad packets to corrupt memory. - Eliminate race condition that could cause asterisk to hang. - General cleanup and whitespace changes. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4633 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2009-03-19xpp: a massive backport from DAHDI. From Xorcom branch-rel-6839-r6908 .tzafrir
Sun Mar 1 2009 Oron Peled <oron@actcom.co.il> - xpp.r6795 * Fix cases where the command_queue overflowed during initialization. - Also add a 'command_queue_length' parameter to xpp.ko * More migrations to sysfs: - Add a 'transport' attribute to our astribank devices which points to the usb device we use. E.g: /sys/bus/astribanks/devices/xbus-00/transport is symlinked to ../../../../../../devices/pci0000:00/0000:00:10.4/usb5/5-4 - Move /proc/xpp/XBUS-??/XPD-??/span to /sys/bus/xpds/devices/??:?:?/span - Migrate from /proc/xpp/sync to: /sys/bus/astribanks/drivers/xppdrv/sync - New 'offhook' attribute in: /sys/bus/xpds/devices/??:?:?/offhook * PRI: change the "timing" priority to match the convention used by other PRI cards -- I.e: lower numbers (not 0) have higher priority. * FXO: - Power denial: create two module parameters instead of hard-coded constants (power_denial_safezone, power_denial_minlen). For sites that get non-standard power-denial signals from central office on offhook. - Don't hangup on power-denial, just notify Dahdi and wait for - Fix caller-id detection for the case central office sends it before first ring without any indication before. Asterisk's desicion. Mon, Dec 8 2008 Oron Peled <oron@actcom.co.il> - xpp.r6430 * PRI: - Match our span clocking priorities (in system.conf) to Digium -- this is a reversal of the previous state. Now lower numbers (greater than 0) are better. - Synchronization fixes for PRI ports other than 0. - Fix T1 CRC for some countries (e.g: China). * FXS: fix bug in VMWI detection if using old asterisk which does not provide ZT_VMWI ioctl(). * FXO: - Improve caller_id_style module parameter. This provide a workaround for countries that send this information without any notification (reverse polarity, ring, etc.) - Don't force on-hook upon power-denial. So, loopstart devices would ignore these as expected. * Implement a flow-control to prevent user space (init_card_* scripts) from pressuring our command queue. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4631 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2009-03-18zaptel.init: call xpp_sync a bit latertzafrir
xpp_sync needs to only be called after ztcfg was run, because the application of zaptel.conf may change the priority of a PRI module span (If it is a sync provider, "NT", priority is lower). (From DAHDI rev 6167) git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4629 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2009-02-11Use the proper pci_device when handling dma buffers.sruffell
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4627 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2009-02-09Fix building Zaptel with module unloading disabledtzafrir
As moduel_refcount is only used for debugging, disable it in this non-common case. (Issue #14402) git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4625 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2009-02-02correct a minor mistake... the hpec_channel_update function actually accepts ↵kpfleming
the 'received' audio (isig) as its first argument, and the 'transmitted' audio (iref) as its second argument. in spite of the prototype and function argument names being reversed, zaptel-base.c passed the data in the correct order, and the HPEC binary modules processed the data properly. this commit changes the definition of the argument order, but causes no functional change. (a similar change will be made in DAHDI shortly) git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4622 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2009-01-28xpp_sync: Fix an NT/TE mixup (in automatic syncers order)tzafrir
The respective code in DAHDI has already been fixed by rewriting. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4620 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2009-01-20Fix building ztdummy for kernels 2.6.13, 2.6.14: tzafrir
Those kernels don't have RTC yet. From DAHDI rev. 5486. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4618 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2009-01-20Adjust ztdummy to the new timers interface of kernel 2.6.28tzafrir
(From DAHDI rev. 5211) git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4617 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2009-01-07- When tearing down channels, use the channel's timeslot as the index into thesruffell
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.digium.com/svn/zaptel/branches/1.4@4613 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2009-01-07Set that the channel is busy even when it is already built. This is alreadysruffell
done in DAHDI and was an error when back porting. Issue: DAHDI-231 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4612 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2009-01-05Even on older kernels, do not redefine WARN_ON_ONCE if it is already defined.sruffell
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4609 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2009-01-05Quieting a compiler warning.sruffell
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4608 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2009-01-05spin_is_lock always evalulates to 0 on SMP kernels. So since I still want tosruffell
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.digium.com/svn/zaptel/branches/1.4@4607 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2009-01-05Print more information to the kernel log when the transcoder sends us asruffell
diagnostic message. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4605 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2009-01-01A slightly different version number for compatibility with other scriptstzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4603 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-12-19Quiet a compilation warning. Related to issue #0013275 and #0013742.sruffell
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4600 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-12-19* Quiet a few new compilation warnings.sruffell
* Do not release a spin_lock that we did not acquire. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4599 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-12-19WARN is defined in newer kernels. Use WARN_ALWAYS like in DAHDI.sruffell
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4598 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-12-19Compilation fix for kernels copied from DAHDI.sruffell
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4597 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-12-04Service the transmit descriptor ring before the receive descriptor ring sosruffell
that commands that are still sitting on the transmit descriptor ring are not completed twice. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4593 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-12-04- Ensure that the sample size is set correctly when decoding G723 packets.sruffell
- 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.digium.com/svn/zaptel/branches/1.4@4592 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-11-30cvt_zapdahdi: convert source files between Zaptel and DAHDItzafrir
Helps showing the real changes git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4591 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-11-30xpp: PCM changes and related bugfixes.tzafrir
* Power-denial signalling is now sent to Zaptel to decide if we're LS or KS (and not hang up ourselves always). * Fix card_fxo's caller_id_style=1 (FSK). * Macro XPD_CHAN: s/xpd->chans[i]/XPD_CHAN(xpd, i)/ to reduce diff from DAHDI. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4590 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-11-30xpp/firmwares/README: firmwares is no longer a separate distribution.tzafrir
Fix README (better late than never). xpp rev. 6403. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4589 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-11-25Fix handling of an invalid timing (sync) parameter in DAHDI_SPANCONFIG.tzafrir
Fixing issue #13954 in zaptel 1.4 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4588 5390a7c7-147a-4af0-8ec9-7488f05a26cb