common: Dynamically enable Bluetooth profiles
Enable bluetooth profiles support dynamically based on the bluetooth SoC detected. Disable MAP and HFP 1.6 version as Atheros solution doesn't support those profiles. CRs-fixed: 380033 Change-Id: I528350432ca4676a8579397bc9e9e673e26afb18
This commit is contained in:
parent
68b3832b3e
commit
abe0b77b6f
|
@ -257,3 +257,20 @@ case "$target" in
|
|||
init_DMM
|
||||
;;
|
||||
esac
|
||||
|
||||
#Enable Bluetooth Profiles Dynamically
|
||||
btsoc=`getprop qcom.bluetooth.soc`
|
||||
case $target in
|
||||
"msm8960")
|
||||
case $btsoc in
|
||||
"ath3k")
|
||||
setprop ro.bluetooth.hfp.ver 1.5
|
||||
;;
|
||||
*)
|
||||
setprop ro.bluetooth.hfp.ver 1.6
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
|
|
|
@ -63,6 +63,7 @@ esac
|
|||
#
|
||||
# enable bluetooth profiles dynamically
|
||||
#
|
||||
btsoc=`getprop qcom.bluetooth.soc`
|
||||
case $baseband in
|
||||
"apq")
|
||||
setprop ro.qualcomm.bluetooth.opp true
|
||||
|
@ -92,10 +93,17 @@ case $baseband in
|
|||
setprop ro.qualcomm.bluetooth.hsp true
|
||||
setprop ro.qualcomm.bluetooth.pbap true
|
||||
setprop ro.qualcomm.bluetooth.ftp true
|
||||
setprop ro.qualcomm.bluetooth.map true
|
||||
setprop ro.qualcomm.bluetooth.nap true
|
||||
setprop ro.qualcomm.bluetooth.sap true
|
||||
setprop ro.qualcomm.bluetooth.dun true
|
||||
case $btsoc in
|
||||
"ath3k")
|
||||
setprop ro.qualcomm.bluetooth.map false
|
||||
;;
|
||||
*)
|
||||
setprop ro.qualcomm.bluetooth.map true
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
"mpq")
|
||||
setprop ro.qualcomm.bluetooth.opp false
|
||||
|
|
Loading…
Reference in New Issue