diff options
-rw-r--r-- | system/stack/btm/btm_sco_hfp_hal_linux.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/system/stack/btm/btm_sco_hfp_hal_linux.cc b/system/stack/btm/btm_sco_hfp_hal_linux.cc index 1488b6899e..018ba1fd65 100644 --- a/system/stack/btm/btm_sco_hfp_hal_linux.cc +++ b/system/stack/btm/btm_sco_hfp_hal_linux.cc @@ -294,6 +294,13 @@ void init() { bluetooth::log::info("Successfully queried SCO codec capabilities."); } +#ifndef TARGET_FLOSS + // If hfp software path is not enabled, fallback to offload path. + if (!osi_property_get_bool("bluetooth.hfp.software_datapath.enabled", false)) { + enable_offload(true); + } +#endif + close(fd); } |