Age | Commit message (Collapse) | Author |
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
(Documentation-only change)
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4651 5390a7c7-147a-4af0-8ec9-7488f05a26cb
|
|
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
|
|
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
|
|
* 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
|
|
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
|
|
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4635 5390a7c7-147a-4af0-8ec9-7488f05a26cb
|
|
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
|
|
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
|
|
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
|
|
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4597 5390a7c7-147a-4af0-8ec9-7488f05a26cb
|
|
* 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
|
|
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
|
|
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
|
|
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
|
|
Fixes #13832 in Zaptel.
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4578 5390a7c7-147a-4af0-8ec9-7488f05a26cb
|
|
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4572 5390a7c7-147a-4af0-8ec9-7488f05a26cb
|
|
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4571 5390a7c7-147a-4af0-8ec9-7488f05a26cb
|
|
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
|
|
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
|
|
* 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
|
|
* 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
|
|
* 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
|
|
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
|
|
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
|
|
(closes issue #13277)
Reported by: smurfix
Patches:
zap-dev.patch uploaded by smurfix (license 547)
zap-sema.patch uploaded by smurfix (license 547)
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4496 5390a7c7-147a-4af0-8ec9-7488f05a26cb
|
|
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4494 5390a7c7-147a-4af0-8ec9-7488f05a26cb
|
|
While r4476 solved some parsing problems of channels with "strange"
encoding names, it introduced a new problem (e.g.: "RED" after "(In
use)" which is fixed here.
Merged revisions 4488 via svnmerge from
http://svn.digium.com/svn/zaptel/branches/1.2
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4489 5390a7c7-147a-4af0-8ec9-7488f05a26cb
|
|
Merged revisions 4486 via svnmerge from
http://svn.digium.com/svn/zaptel/branches/1.2
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4487 5390a7c7-147a-4af0-8ec9-7488f05a26cb
|
|
This is only an issue with the displayed value. In case you wondered why
you have battery voltage of more than 220V.
Merged revisions 4484 via svnmerge from
http://svn.digium.com/svn/zaptel/branches/1.2
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4485 5390a7c7-147a-4af0-8ec9-7488f05a26cb
|
|
improved version here too
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4477 5390a7c7-147a-4af0-8ec9-7488f05a26cb
|
|
Parse them from a list rather thna fusing a regex of a "word".
Merged revisions 4475 via svnmerge from
http://svn.digium.com/svn/zaptel/branches/1.2
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4476 5390a7c7-147a-4af0-8ec9-7488f05a26cb
|
|
* Do initialize xsp. Closes issue #13276 .
* xbus_core_shutdown can't be __exit as it is used in initilization as
well.
Merged revisions 4473 via svnmerge from
http://svn.digium.com/svn/zaptel/branches/1.2
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4474 5390a7c7-147a-4af0-8ec9-7488f05a26cb
|
|
Merged revisions 4468 via svnmerge from
http://svn.digium.com/svn/zaptel/branches/1.2
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4472 5390a7c7-147a-4af0-8ec9-7488f05a26cb
|
|
card has been completely redesigned, and the new interface will only be present in DAHDI; TC400 users will need to upgrade to DAHDI 2.0.0 to continue using their transcoder cards
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4469 5390a7c7-147a-4af0-8ec9-7488f05a26cb
|
|
Uses newer firmware (5975) for the 1151 alone.
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4463 5390a7c7-147a-4af0-8ec9-7488f05a26cb
|
|
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4462 5390a7c7-147a-4af0-8ec9-7488f05a26cb
|
|
Also fix a typo in card_fxs.
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4461 5390a7c7-147a-4af0-8ec9-7488f05a26cb
|
|
Merged revisions 4458 via svnmerge from
http://svn.digium.com/svn/zaptel/branches/1.2
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4459 5390a7c7-147a-4af0-8ec9-7488f05a26cb
|
|
http://svn.digium.com/svn/zaptel/branches/1.2
........
r4451 | tzafrir | 2008-08-04 18:11:01 +0300 (Mon, 04 Aug 2008) | 9 lines
Firmware update: 5959 (DTMF and BRI ID)
(From DAHDI rev. 4695)
* 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 DAHDI (as opposed to Zaptel) ioctls.
........
r4452 | tzafrir | 2008-08-04 18:36:19 +0300 (Mon, 04 Aug 2008) | 2 lines
Make it formally bashism.
........
r4453 | tzafrir | 2008-08-04 18:38:10 +0300 (Mon, 04 Aug 2008) | 2 lines
Kbuild: A more robust check for the bri_dchan patch.
........
r4454 | tzafrir | 2008-08-04 18:39:01 +0300 (Mon, 04 Aug 2008) | 2 lines
Minor BRI initlization improvements.
........
r4455 | tzafrir | 2008-08-04 18:43:32 +0300 (Mon, 04 Aug 2008) | 7 lines
Add channel alarms in Zaptel-perl and lszaptel specifically.
* Zaptel::Chans now provides a method alarms() for a list (or number of)
alarms.
* lszaptel uses it for a more correct display of channel status.
* Also update PCI hardware list.
........
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4456 5390a7c7-147a-4af0-8ec9-7488f05a26cb
|
|
After this change, the echo-canceler buffers were not cleared
in some cases. As a result when one FXS is put ONHOOK, the other side
could hear noise for a second or two until full disconnect is done.
Merged revisions 4407 via svnmerge from
http://svn.digium.com/svn/zaptel/branches/1.2
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4408 5390a7c7-147a-4af0-8ec9-7488f05a26cb
|
|
Issue may prevents ONHOOK detection.
Merged revisions 4394 via svnmerge from
http://svn.digium.com/svn/zaptel/branches/1.2
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4395 5390a7c7-147a-4af0-8ec9-7488f05a26cb
|
|
Merged revisions 4367 via svnmerge from
http://svn.digium.com/svn/zaptel/branches/1.2
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4368 5390a7c7-147a-4af0-8ec9-7488f05a26cb
|
|
(From xpp r5796).
Merged revisions 4352 via svnmerge from
http://svn.digium.com/svn/zaptel/branches/1.2
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4353 5390a7c7-147a-4af0-8ec9-7488f05a26cb
|
|
changing the type from bool to unsigned long. (xpp r5756).
Merged revisions 4314 via svnmerge from
http://svn.digium.com/svn/zaptel/branches/1.2
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4315 5390a7c7-147a-4af0-8ec9-7488f05a26cb
|
|
* Minor changes to Zaptel::Xpp as well.
(Documentation-only changes. xpp r5746,r5747)
Merged revisions 4308 via svnmerge from
http://svn.digium.com/svn/zaptel/branches/1.2
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4309 5390a7c7-147a-4af0-8ec9-7488f05a26cb
|