Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dc54e0c5 authored by WhaleChang's avatar WhaleChang
Browse files

Enable hfp offload if hfp software path is not enabled

Bug: 349136324
Test: atest bluetooth_test_gd
Test: offload_enabled=true if
bluetooth.hfp.software_datapath.enabled=false
Flag: EXEMPT desktop only

Change-Id: Idb8593338551450d22d2670529b88703e0772950
parent 121787ae
Loading
Loading
Loading
Loading
+7 −0
Original line number Original line Diff line number Diff line
@@ -294,6 +294,13 @@ void init() {
    bluetooth::log::info("Successfully queried SCO codec capabilities.");
    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);
  close(fd);
}
}