iopsys-feed/voice-client/files/lib/voice/broadcom.sh
Yalu Zhang e5f389aab6 Change line/channel names from tapi/1 and tapi/2 to tapi/0 and tapi1
Unsupported lines/channes like TAPI/[2-6], BRCM/6 are also removed.

This change has the following benefits.
- To simplify the line/channel name handling in /etc/init.d/voice_client
- To have the consistent implementation both on Intel and on Broadcom platforms

(cherry picked from commit 40c426ca09)
2019-12-10 16:19:00 +01:00

74 lines
1.1 KiB
Bash
Executable file

#! /bin/sh
# Voice library for Broadcom boards
getChipVendor() {
echo brcm
}
getChannelName() {
echo BRCM
}
getLineName() {
echo brcm
}
getSerial() {
echo $(cat /proc/nvram/SerialNumber)
}
getBaseMAC() {
echo $(cat /proc/nvram/BaseMacAddr | sed 's/ //g')
}
getAllLines() {
echo "BRCM/0&BRCM/1&BRCM/2&BRCM/3&BRCM/4&BRCM/5"
}
getLineIdx() {
echo $1
}
getEchoCancellingValue() {
case $1 in
0)
echo '0'
;;
1)
echo '1'
;;
*)
# Unknown value
echo ''
;;
esac
}
supportedCountries() {
echo "Australia:AUS"
echo "Belgium:BEL"
echo "Brazil:BRA"
echo "Chile:CHL"
echo "China:CHN"
echo "Czech:CZE"
echo "Denmark:DNK"
echo "ETSI:ETS"
echo "Finland:FIN"
echo "France:FRA"
echo "Germany:DEU"
echo "Hungary:HUN"
echo "India:IND"
echo "Italy:ITA"
echo "Japan:JPN"
echo "Netherlands:NLD"
echo "New Zealand:NZL"
echo "North America:USA"
echo "Spain:ESP"
echo "Sweden:SWE"
echo "Switzerland:CHE"
echo "Norway:NOR"
echo "Taiwan:TWN"
echo "United Kingdoms:GRB"
echo "United Arab Emirates:ARE"
echo "CFG TR57:T57"
}