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

Commit 40c2704d authored by Jakub Rotkiewicz's avatar Jakub Rotkiewicz Committed by Gerrit Code Review
Browse files

Merge "BluetoothAudioHal fix misleading log type and msg" into main

parents 1302b0e1 35a901cb
Loading
Loading
Loading
Loading
+12 −1
Original line number Original line Diff line number Diff line
@@ -336,7 +336,18 @@ bool BluetoothAudioClientInterface::UpdateAudioConfig(


  auto aidl_retval = provider_->updateAudioConfiguration(audio_config);
  auto aidl_retval = provider_->updateAudioConfiguration(audio_config);
  if (!aidl_retval.isOk()) {
  if (!aidl_retval.isOk()) {
    log::error("BluetoothAudioHal failure: {}", aidl_retval.getDescription());
    if (audio_config.getTag() != transport_->GetAudioConfiguration().getTag()) {
      log::warn(
          "BluetoothAudioHal audio config type: {} doesn't "
          "match provider's audio config type: {}",
          ::aidl::android::hardware::bluetooth::audio::toString(
              audio_config.getTag()),
          ::aidl::android::hardware::bluetooth::audio::toString(
              transport_->GetAudioConfiguration().getTag()));
    } else {
      log::warn("BluetoothAudioHal is not ready: {} ",
                aidl_retval.getDescription());
    }
  }
  }
  return true;
  return true;
}
}