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:
Ram Mohan Korukonda 2012-08-22 21:16:23 +05:30
parent 68b3832b3e
commit abe0b77b6f
2 changed files with 26 additions and 1 deletions

View File

@ -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

View File

@ -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