[Pkg-voip-commits] [dahdi-tools] 122/285: xpp_fxloader: support loading AB with ID > 201

tzafrir at debian.org tzafrir at debian.org
Thu Jul 7 19:18:42 UTC 2016


This is an automated email from the git hooks/post-receive script.

tzafrir pushed a commit to branch master
in repository dahdi-tools.

commit b123bc87ddb6a8d12b6357387653528fa963b5a1
Author: Tzafrir Cohen <tzafrir.cohen at xorcom.com>
Date:   Mon Oct 21 15:16:14 2013 +0300

    xpp_fxloader: support loading AB with ID > 201
    
    Support loading firmware for Astribanks with bcdDevice > 2.01, as we'll
    have 2.02 soon.
    
    Signed-off-by: Tzafrir Cohen <tzafrir.cohen at xorcom.com>
---
 xpp/xpp_fxloader | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/xpp/xpp_fxloader b/xpp/xpp_fxloader
index 01be192..076f0ec 100644
--- a/xpp/xpp_fxloader
+++ b/xpp/xpp_fxloader
@@ -217,12 +217,14 @@ usb_firmware_device() {
 	id_str="$1"
 	devpath="$2"
 
+	bcd_device=`echo "$id_str" | cut -d/ -f3`
+
 	case "$id_str" in
 	e4e4/11[3456]0/101|e4e4/1163/101)
 		fw="USB_FW.hex"
 		;;
-	e4e4/116[03]/201)
-		fw="USB_FW.201.hex"
+	e4e4/116[03]/20?)
+		fw="USB_FW.${bcd_device}.hex"
 		;;
 	e4e4/*)
 		debug "No USB firmware for device $devpath ($id_str)"
@@ -332,7 +334,7 @@ fpga_firmware_device() {
 	e4e4/11[456]1/101)
 		fw="FPGA_${id_product}.hex"
 		;;
-	e4e4/1161/201)
+	e4e4/1161/20?)
 		fw="FPGA_${id_product}.${bcd_device}.hex"
 		;;
 	e4e4/*)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/dahdi-tools.git



More information about the Pkg-voip-commits mailing list