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

Commit 5504dd36 authored by Yun-Hao Chung's avatar Yun-Hao Chung
Browse files

Only use DSP codec when offloading

For the devices only use software path, the esco parameters should not
be changed to the DSP codec.

Bug: 358375314
Test: mmm packages/modules/Bluetooth
Test: manually test swb
Change-Id: Ief666dd7a2a965bd4034e6a206c6ec6f46875993
parent 2dd0f6ca
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -367,7 +367,7 @@ enh_esco_params_t esco_parameters_for_codec(esco_codec_t codec, bool offload) {
  auto controller = bluetooth::shim::GetController();
  if (controller == nullptr) {
    log::warn("controller is null");
  } else {
  } else if (offload) {
    codecIds = controller->GetLocalSupportedBrEdrCodecIds();
    if (std::find(codecIds.begin(), codecIds.end(), ESCO_CODING_FORMAT_LC3) == codecIds.end()) {
      if (codec == ESCO_CODEC_LC3_T1 || codec == ESCO_CODEC_LC3_T2) {