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

Commit 3ba5f045 authored by Jakub Rotkiewicz's avatar Jakub Rotkiewicz Committed by Automerger Merge Worker
Browse files

Merge "BluetoothAudioHal fix misleading log type and msg" into main am: 40c2704d

parents c12d8ad0 40c2704d
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -336,7 +336,18 @@ bool BluetoothAudioClientInterface::UpdateAudioConfig(

  auto aidl_retval = provider_->updateAudioConfiguration(audio_config);
  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;
}