summaryrefslogtreecommitdiff
path: root/kernel
AgeCommit message (Collapse)Author
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
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-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
2008-11-21Fix a think-o in numeric comparison. Swap order to make it more clear.qwell
(closes issue #13813) Reported by: ys git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4586 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-11-18Fix typo that was preventing compilation of wctc4xxp.sruffell
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4585 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-11-18xpp_pri: Fix T1 CRC initializationtzafrir
Clock synchronization when sync is not from first port. Merged revisions 4583 via svnmerge from http://svn.digium.com/svn/zaptel/branches/1.2 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4584 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-11-17- Fix for race condition of encoder and decoder are allocated at the same timesruffell
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.digium.com/svn/zaptel/branches/1.4@4582 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-11-16Fixed USB firmware that caused some bad bioses to hang on boot.tzafrir
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 revisions 4580 via svnmerge from http://svn.digium.com/svn/zaptel/branches/1.2 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4581 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-11-13Make a message about the host cacheline size being unsupported a debug onlysruffell
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.digium.com/svn/zaptel/branches/1.4@4579 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-11-10xpp init_card_2_30: no need to check environment in verify mode.tzafrir
Fixes #13832 in Zaptel. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4578 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-10-30Use correct length for the Zaptel transcoder device name.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4573 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-10-22xpp FXS init script: Do use high-pass filter.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4572 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-10-20zapconf: Fix number in error message in case of unknown channel type.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4571 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-10-15Fixing typo...there is not a rebufpolicy.sruffell
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4569 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-10-15Zaptel should always notify user mode whenever it has received buffers tosruffell
process. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4567 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-10-10- Ensure that the source format is considered when selecting a transcoder.sruffell
- When a command is to be retried, turn off the TX_COMPLETE flag before resubmitting it to the hardware. This should elimate some of the warnings printed to the kernel log in the wctc4xxp_transmit_cmd function. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4564 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-10-06Embed room for the complete packet to the DTE in the transcoder buffersruffell
structure. Simplifies alignment management at the cost of a little wasted memory, but the end results is that operation is more reliable on more systems. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4560 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-10-03There are two possible valid statues when booting the TC400M.sruffell
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4556 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-10-02Keep hold of the channel lock when setting the data_ready flag for the channelsruffell
after writing to the receive queue. Prevents a warning that data was on the recieve queue but the data ready flag was not set. Issue: DAHDI-42 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4554 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-10-02wctc4xxp_cleanup_channel_private needs a pointer to the zt_transcoder_channelsruffell
and not just the private portion now in order to manage the data ready flag state. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4553 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-10-02Mark that there is not any data waiting whenever we cleanup the privatesruffell
channel structures. Issue: DAHDI-42 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4551 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-09-30Removing reference to setup_timer on kernels before 2.6.18.sruffell
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4549 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-09-28mprove reliablity of UK caller ID for the TDM400P by not allowing thesruffell
ringdebounce to be decremented when it is at 0 already. Related to issue #12531. Reported mattbrown, fix suggested by benbrown. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4547 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-09-25XPP firmware: Only send out CAS D-channel messages when in CAS mode.tzafrir
Only updates FPGA_1151.hex. Id: rev 6152. From xpp rev 6163. Merged revisions 4544 via svnmerge from http://svn.digium.com/svn/zaptel/branches/1.2 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4545 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-09-24Adding back in the mode module parameter for the wctc4xxp driver. This issruffell
primarily used to increase the number of channels available when only transcoding to/from g729 by setting it to 'g729'. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4540 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-09-09Zaptel.pm: Fix sample program (perldoc-only fix).tzafrir
Merged revisions 4533 via svnmerge from http://svn.digium.com/svn/zaptel/branches/1.2 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4534 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-09-09xpp-zaptel: Bugfix: Display data_high in /proc/xpp/*/chipregs:tzafrir
* This byte wasn't shown even if do_datah bit was set. * Also converged all terminology to "sub-register" and not "indirect" * Changed accordingly '[WR]I' to [WR]S' in code. * Still allow usage of '[WR]I' but with deprecation NOTICE() * Convert init_card_* scripts * Adapt show_regs and write_regs script accordingly. * Leave FXS internal macros with ...INDIRECT... because that's the terminology of the SLIC. * You should use both the newer driver and init script. Specifically: newer init script will fail to work with older BRI and FXS xpp driver loaded. From xpp rev. 6117. Merged revisions 4520 via svnmerge from http://svn.digium.com/svn/zaptel/branches/1.2 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4531 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-09-09xpp-zaptel: FXO: Add caller-id workaround for ESTI-DTMF (for #9096)tzafrir
* Also rename the CID_STYLE_* constants to formal names. From Xorcom Rev. 6115. Merged revisions 4519 via svnmerge from http://svn.digium.com/svn/zaptel/branches/1.2 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4529 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-09-09xpp-zaptel: FXO: fix init_card_2_30 opermode verificationtzafrir
* In case of any diff, exit with non-zero status so the build fails. * Print filename:lineno of missing or changed lines. * Fix two countries (typos fixed in COLOMBIA and CYPRUS). * xpp-zaptel: FXO: cleanup opermode verification code (from DAHDI): - Add proper '-v' option to init_card_2_30 and use it in xortel/Makefile - Use $mismatches as in DAHDI (minimize diffs). From xpp rev. 6107,6108 Merged revisions 4517-4518 via svnmerge from https://origsvn.digium.com/svn/zaptel/branches/1.2 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4524 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-09-09Fix another path to an uninitialized SUB config provided to us from thetzafrir
controller. From xpp rev. 6071. Merged revisions 4516 via svnmerge from http://svn.digium.com/svn/zaptel/branches/1.2 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4523 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-09-08Minor FXS/FXO type fixes in case probe was not done.tzafrir
Merged revisions 4512 via svnmerge from http://svn.digium.com/svn/zaptel/branches/1.2 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4514 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-09-03Before creating a device, register the major number.tzafrir
Otherwise we need to clean-up those devices in case of failure, and we don't. This fixes the case of accidentally loading zaptel after loading dahdi (Already fixed in DAHDI). Merged revisions 4509 via svnmerge from http://svn.digium.com/svn/zaptel/branches/1.2 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4511 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-08-25Remove this warning, which could occur if the driver is loaded on a systemsruffell
without a wctc4xxp, and then subsequently unloaded. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4506 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-08-20resolve some compile warningskpfleming
(closes issue #13278) Reported by: smurfix Patches: zap-string.patch uploaded by smurfix (license 547) git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4497 5390a7c7-147a-4af0-8ec9-7488f05a26cb