summaryrefslogtreecommitdiff
path: root/xpp/perl_modules/Dahdi/Xpp/Xpd.pm
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2011-07-10 16:25:18 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2011-07-10 16:25:18 +0000
commitb3d32705799cdab58feadbe4a606002ea8e2e98e (patch)
tree230fa1501b539a6a9e36c5976c135f1ba47391be /xpp/perl_modules/Dahdi/Xpp/Xpd.pm
parent94f5ca620248b21b13763d4d1838c6a45e2e9165 (diff)
xpp: support loading Octasic EC firmware
Echo Cancellation firmware is loaded by xpp/stribank_hexload (Using the oct612x code). * astribank_hexload: options -O/-o/-A for handling the Octasic echo cancellation firmware. * astribank_tool: report that. * xpp_fxloader: Run astribank_hexload, if needed. * dahdi_perl: The EC module is an extra XPD, but not a "telephony device" and hence not a span. Deal with that. * waitfor_xpds: may need to wait a bit longer for firmware loading. Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@10032 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'xpp/perl_modules/Dahdi/Xpp/Xpd.pm')
-rw-r--r--xpp/perl_modules/Dahdi/Xpp/Xpd.pm8
1 files changed, 8 insertions, 0 deletions
diff --git a/xpp/perl_modules/Dahdi/Xpp/Xpd.pm b/xpp/perl_modules/Dahdi/Xpp/Xpd.pm
index 6cd49a7..197d969 100644
--- a/xpp/perl_modules/Dahdi/Xpp/Xpd.pm
+++ b/xpp/perl_modules/Dahdi/Xpp/Xpd.pm
@@ -327,6 +327,14 @@ sub new($$$$$) {
# static xpd related helper functions
#------------------------------------
+# Returns only the telephony XPD's from a list
+# of one or more XPD's.
+# I.e: Filters-out ECHO cancelers
+sub telephony_devs {
+ my @devs = grep { $_->channels } @_;
+ return @devs;
+}
+
sub format_rank($$) {
my ($rank, $prio) = @_;
my $width = 2;