summaryrefslogtreecommitdiff
path: root/drivers
AgeCommit message (Collapse)Author
2008-12-01Fix issue with cut and paste that was preventing compilation.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5420 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-12-01Service the transmit descriptor ring before the receive descriptor ring soShaun Ruffell
that commands that are still sitting on the transmit descriptor ring are not completed twice. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5413 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-11-27Moving README.Astribank to dahdi-tools .Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5402 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-11-27Fixes and some owrk in progress on DAHDI Astribank README.Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5397 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-11-25Validate the timing priority on the wcte11xp and wct1xxp driver.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5384 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-11-25Validate that the span priority is valid in the tor2 driver.Shaun Ruffell
Patch provided by tzafrir. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5383 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-11-24Additional debugging code.Shaun Ruffell
Patch provided by akohlsmith. Issue DAHDI-173. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5374 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-11-24Add a 'spanfilter' module parameter in order to isolate debugging informationShaun Ruffell
to just the spans of interest. Patch provided by akohlsmith. Issue DAHDI-173. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5369 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-11-24Use counter of pending HDLC frames in order to eliminate the need to send aShaun Ruffell
zero-byte frame to kick start the transmission process. Patch provided by akohlsmith. Issue DAHDI-173. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5368 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-11-24Do not make assumptions about the number of ready HDLC frames on HDLC RXShaun Ruffell
interrupt. This prevents libpri from becoming confused when many HDLC frames arrive before the driver can service them or a false RX interrupt is received. Patch provided by akolsmith. Issue DAHDI-173. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5367 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-11-21Fix a think-o in numeric comparison. Swap order to make it more clear.Jason Parker
(closes issue #13813) Reported by: ys git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5360 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-11-21Convert some uses of sprintf to snprintf in dahdi_proc_read in order toShaun Ruffell
eliminate a buffer overrun. Issue: DAHDI-209 git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5355 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-11-20Force the FIFO to reset when the file handle is closed.Shaun Ruffell
Patch provided by akohlsmith. Issue: DAHDI-178 git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5350 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-11-20Make tor2 load properly. Seems to fix #13487.Tzafrir Cohen
Thanks to heyuqi for the testing. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5345 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-11-20* Some extrra Zap->DAHDI (and Dahdi->DAHDI) fixes in the AstribankTzafrir Cohen
README. * Some extra asciidoc formatting fixes. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5340 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-11-19support wcb4xxp build on kernels that don't directly use KbuildKevin P. Fleming
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5335 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-11-17- Fix for race condition of encoder and decoder are allocated at the same timeShaun Ruffell
in the driver. This would result in -EBUSY returns from the DAHDI_TC_ALLOCATE ioctl. - Increase the length of the receive descriptor ring from 8 to 32 to reduce the probability of running out of receive descriptors. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5321 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-11-17xpp_pri: Fix T1 CRC initializationTzafrir Cohen
Clock synchronization when sync is not from first port. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5320 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-11-17A fix for an issue with corruption on the D-Channels.Shaun Ruffell
Patch provided by akohlsmith. Issue: DAHDI-173. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5315 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-11-16Fixed USB firmware that caused some bad bioses to hang on boot.Tzafrir Cohen
The BIOSes included in a number of motherboards could hang from an Astribank firmware newer than 1.2.20.1 / 1.4.5.1 . This was due to an some incorrect USB information in the firmware. This firmware fixes it. Merged Zaptel revisions 4580 via svnmerge from http://svn.digium.com/svn/zaptel/branches/1.2 git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5310 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-11-13Make a message about the host cacheline size being unsupported a debug onlyShaun Ruffell
message. The voicebus interface still works whether the cacheline size is supported or not, but the message is confusing to users. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5303 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-11-10xpp init_card_2_30: no need to check environment in verify mode.Tzafrir Cohen
Fixes #13832 in Zaptel. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5288 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-11-10- Do not hold any locks while calling close_channel, which can result in callsShaun Ruffell
to the echocan modules which do not necesarrily assume they are being called in atomic context. - Remove the bigzaplock around calls to psuedo_alloc and pseudo_free. The structures protected by this lock are already protected by the chan_lock in these two cases. - Remove calls to in_atomic() that were previously added to work around this, but did not cover all the cases. Issue: DAHDI-195, DAHDI-170 git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5275 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-11-09We only use print_debug_writebuf when CONFIG_DAHDI_NET or CONFIG_DAHDI_PPP ↵Sean Bright
are defined, so only define it in those cases as well. Reported & Tested by: KP7 via #asterisk-dev git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5270 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-11-09Add missing semi-colon.Sean Bright
Reported & Tested by: KP7 via #asterisk-dev git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5269 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-11-05Whitespace changes for the coding standard.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5257 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-11-05rate limiting a diagnostic printk.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5249 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-11-05Fix warning messages in order to build on 2.6.27.Shaun Ruffell
(Closes issue #13757) Patch provided by tzafrir. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5237 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-11-05Check the return value of the down_interruptible call in order to quiet aShaun Ruffell
warning. This semaphore does not protect any host data structures, but only accesses to the VPMADT032 module. The worse thing that could happen is that the internal state of the VPM module is corrupted, and then would only happen on module loading because otherwise access because that is the only time this function is called in the context of a user process. In this case, the module would need to be reloaded again anyway. (Closes issue #13742) Reported by smurfix git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5236 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-11-05Remove the loopback module parameter since it's not implemented yet.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5232 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-11-05Allow the wcb4xxp to take all the signalling types.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5230 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-11-03Adjust DAHDI to the new timers interface of kernel 2.6.28Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5211 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-11-02dahdi-base: hw_echocancel_off: return 0 if no hardware ECTzafrir Cohen
If the span has no hardware EC, return 0, rather than a random uninitialized value (which was no harm, as that return value is always ignored anyway). git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5207 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-10-31Changing the spantype to indicate whether it is a TE or NT BRI port.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5196 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-10-31Fix the FIFO configuration to use the data from the EC correctlyMatthew Fredrickson
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5195 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-10-31wcb4xxp: Set the spantype to "BRI" (to show e.g. in dahdi_scan)Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5191 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-10-31wcb4xxp: Claim to provide DACS for dahdi_scanTzafrir Cohen
dahdi_scan can tell that a span is digital if its first channel has DACS signalling capability. While this is probably not supported by the current driver, it is also harmless. Without this, dahdi_scan shows the spans of this card as analog. (Done after consulting with sruffel) git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5190 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-10-31Fix for a case where a span might not always come back up after a disconnect.Shaun Ruffell
Patch provided by akohlsmith. Issue: DAHDI-174 git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5186 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-10-30Use correct length for the, well, dahdi transcoder device name.Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5180 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-10-30Use ! to hint udev about directory separator.Tzafrir Cohen
Udev knows how to convert a '!' in the device name to a directory separator. Thus the name 'dahdi!ctl' will create the device /dev/dahdi/ctl . We still keep older udev rules in this release for compatibility, but eventually we'll only need them to set permissions. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5179 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-10-29The /proc/wcb4xxp should not be created once for each card but rather once forShaun Ruffell
all cards. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5175 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-10-29By default, do not create the procfs entry for the wcb4xxp driver.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5171 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-10-29xpp: Increase the maximal size of the command queue to 500 .Tzafrir Cohen
Temporarily increase the maximal size of the command queue from 300 to 500 as a workaround of an issue at initialization time (mainly of BRI+FXS). git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5167 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-10-28fix a large number of warnings found by sparse, the kernel code sanity ↵Kevin P. Fleming
checking tool. some of these fixes are non-optimal (casting 'unsigned long' to '__user void *'), but are unavoidable in many cases. started from tzafrir's patch, did most of the work myself. (closes issue #13763) Reported by: tzafrir Patches: sparse_fixes_1.diff uploaded by tzafrir (license 46) git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5162 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-10-28Adding the wcb4xxp driver, a native dahdi driver for the B410P module.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5150 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-10-28Undoing commit r5148. Copying directly from a private branch causes problemsShaun Ruffell
when trying to view the history of a file. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5149 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-10-28Adding the wcb4xxp driver, a native dahdi driver for the B410P module.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5148 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-10-27xpp fxo: Add sysfs battery attribute.Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5133 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-10-27xpp: remove an unused manual reference count field.Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5132 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-10-27xpp: Make some definitions static, as per sparse.Tzafrir Cohen
Fixes the xpp warnings of #13763 (except some false alarms). git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5131 a0bf4364-ded3-4de4-8d8a-66a801d63aff