summaryrefslogtreecommitdiff
path: root/drivers
AgeCommit message (Collapse)Author
2008-08-20use the new separate allocation method for channel structures here tooKevin P. Fleming
replace "ZTD" references in channel/span names with "DYN" (closes issue #13302) Reported by: KNK git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4805 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-20update code to match version in ZaptelKevin P. Fleming
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4804 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-20improve compatibility with 2.6.26 and 2.6.27 kernelsKevin P. Fleming
(closes issue #13253) Reported by: raiden Patches: zap-dev.patch uploaded by smurfix on issue #13277 (license 547) zap-sema.patch uploaded by smurfix on issue #13277 (license 547) git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4801 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-20Change to support both 5.3kbps and 6.3kbps bit rates when using the G723.1Shaun Ruffell
codec. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4798 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-19port over improvements to firmware Makefile from ZaptelKevin P. Fleming
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4795 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-19Fixed calculation of the timestamp.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4794 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-19Couple of fixes for the transcoder:Shaun Ruffell
- In dahdi_transcode.c, Embed the identifiation number, assigned sequentially when the transcoders are registered, in the transcoder structure. This allows DAHDI_TC_GETINFO to work as expected even though the transcoders are rotated on the list in order to spread the load. - In wctc4xxp, fix bug where all transcoders are named tc400b0. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4791 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-14Set xpp version to 6056 and reset XPP changelog.Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4784 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-14Also install Astribank firmwares and init scripts to /usr/share/dahdi .Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4781 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-14xpp: FXO: display signed voltage values (from xpp r6055)Tzafrir Cohen
This is only an issue with the displayed value. In case you wondered why you have battery voltage of more than 220V. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4776 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-14remove devfs support, and use consistent include file pathKevin P. Fleming
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4773 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-13import the neon mwi detectionDoug Bailey
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4770 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-11xpp: CAS/E1 support in the PRI module, and minor fixes.Tzafrir Cohen
* Add support for CAS in the PRI module. Use firmware rev. 5975. * Debugging parameter pcmtx_chan now accepts a dahdi channel number. * Do initialize a reserved protocol field (card_global). * The name DAHDI as used in proc/xpp/sync has 5 (not 6) letters. * Fix DTMF "channel leak" regression in the FXS module. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4761 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-11xpp: fxo: Fix support for CID_STYLE_PASS_ALWAYSTzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4760 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-11A more robust test for bri_dchan support.Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4759 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-11xpp_blink is a bit mask of ports, and not boolean anymore.Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4758 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-07Make sure types are same size on 64-bit machines.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4742 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-06last round of license header updates hereKevin P. Fleming
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4721 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-06fix a compiler warning by using the proper format string for a size_t variableKevin P. Fleming
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4720 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-06A significant change to the DAHDI transcoder interface and the wctc4xxpShaun Ruffell
driver which breaks backwards compatibility. Basically, I've replaced the memory mapped interface with a read/write interface that allows codec_dahdi to communicate with the hardware transcoder the exact size of the packet to be transcoded. This eliminates issues with remote devices that send G729.B CNG packets even though asterisk does not support them. From a user standpoint: - The transcoder drivers are much more robust in light of system / external conditions. From a developer standpoint: - DAHDI_TRANSCODE_OP is no longer supported, instead use DAHDI_TC_ALLOCATE, DAHDI_TC_GETINFO, and write/read. - Memory and stack usage is reduced (stack usage could still be reduced some more by continuing the process of getting rid of the users of wctc4xxp_send_cmd and wctc4xxp_create_cmd). - If more than one card is in the system channels will be allocated in a round-robin fashion from all available cards, reducing contention for the supervisor channel. - There is no longer a tc400b workqueue created that will not show up in the process list. - Commands and their responses are now explicitly matched up which elimated certain errors caused by unsolicited messages from the transcoder confusing the driver. - There is now an option to export a network interface for capturing traffic to/from the hardware transcoder. - codec_test has been removed from the dadhi/linux package. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4717 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-06more license header updatesKevin P. Fleming
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4712 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-05first pass at licensing cleanup here... put dahdi/user.h under LGPL instead ↵Kevin P. Fleming
of GPL git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4709 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-05Fix a small regression from r4667: Please don't NULL a good pointer.Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4705 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-05In the function start_digit(), the same logic was replicated 3 times; one timeRussell Bryant
for dtmf, one for mfr2_fwd, and one for mfr2_rev. So, I created a new function which handles all three cases in a way that is (IMO) easier to read. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4699 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-04 - Tweak some formatting to match coding guidelinesRussell Bryant
- Localize a couple of variables - Use snprintf instead of sprintf git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4697 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-04Firmware update: 5959 (FTMF and BRI ID)Tzafrir Cohen
* Fix some cases of double digits. * Fix some rare cases of a BRI unit providing incorrect directionality. * Extra debugging code in card_fxs.c to trace future DTMF issues. * Properly note Zaptel (as opposed to DAHDI) ioctls. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4695 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-04Fix small regression from r4690: do use channo for printing channelTzafrir Cohen
numbers. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4694 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-04Tweak spacing and reduce indentationRussell Bryant
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4692 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-03Re-work a for loop in proc_read. This loop traversed the array of all DAHDIRussell Bryant
channels and determined whether they belonged to the span being printed or not. This has been simplified by simply traversing the array of channels on the span structure, itself. Thanks to tzafrir for the idea in #asterisk-dev. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4690 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-03Do use printk-s without a priority when continuing previous printk.Tzafrir Cohen
Also remove a small duplication in dahdi-base.c, as I'm too lazy to fix in two separate places. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4688 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-03Strip trailing whitespaceRussell Bryant
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4686 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-03Change all instances of printk in DAHDI to include a priorityRussell Bryant
(closes issue #11504) Reported by: tzafrir Patches: 20080717__issue11504_dahdi_printk_without_priority.diff uploaded by bbryant (license 36) git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4685 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-03reduce indentation and tweak formatting of a for loop in proc_readRussell Bryant
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4684 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-03Get rid of dahdi_rxsig_t typedefRussell Bryant
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4682 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-03Get rid of another typedef, sf_detect_state_t, and fix referencesRussell Bryant
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4681 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-03Fix a couple last references to dahdi_txsig_t.Russell Bryant
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4680 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-03Rework the table of signalling bits for signalling types and hook statesRussell Bryant
in dahdi_rbs_sethook() to a much more readable and less error prone format. In passing, get rid of the dahdi_txsig_t typedef, and fix uses of it throughout the tree. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4679 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-03 - Formatting changes to better conform to guidelinesRussell Bryant
- tweak hw_echocan_on to reduce indentation and use an initializer instead of memset git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4677 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-02Convert dahdi timers to a kernel list instead of an open coded listRussell Bryant
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4675 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-02Rework free_tone_zone a bit to avoid a potential memory leak in a weird ↵Russell Bryant
scenario. It was theoretically possible that a zone was registered after we removed a zone, but before we tried to put it back after determining that it was busy. If this occurred, then when putting the zone back, we would overwrite the reference to the newly created zone, leaking the associated memory. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4673 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-02 - use C99 instead of GNU initializersRussell Bryant
- adding spaces and braces according to guidelines - use for loop instead of a while loop for open coded list traversal - reduce some indentation git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4672 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-02Use C99 instead of GNU style initializersRussell Bryant
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4671 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-02 - simplify some code using ARRAY_SIZERussell Bryant
- don't put multiple statements on the same line git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4669 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-02Update copyright, and fix a typo in some HDLC code that I wasn't buildingRussell Bryant
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4668 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-02 - Define kzalloc() for kernel versions that don't have itRussell Bryant
- Use kzalloc instead of kmalloc+memset - formatting tweaks to better conform to coding guidelines git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4667 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-02kzalloc was introduced in later versions of 2.6, so use kcalloc insteadRussell Bryant
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4665 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-02- align case with switchRussell Bryant
- constify return of sigstr() - rework implementation of fill_alarm_string to only use one call to snprintf() and avoid more complicated string building logic git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4664 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-02- use kzalloc instead of kmalloc+memsetRussell Bryant
- reformat dahdi_q_sig to match proper coding guidelines git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4662 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-02convert a list of defines to an enumRussell Bryant
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4657 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-02Space out the definition of an enum, and remove an unused typedefRussell Bryant
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4655 a0bf4364-ded3-4de4-8d8a-66a801d63aff