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

Commit 89db0ee5 authored by Zach Johnson's avatar Zach Johnson Committed by Automerger Merge Worker
Browse files

Merge "HAL: Avoid FATAL log on expected transaction status" into tm-dev am:...

Merge "HAL: Avoid FATAL log on expected transaction status" into tm-dev am: e880d219 am: 8137c6df

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/19000753



Change-Id: Ia6eeb9f50f45c66e833575ee2e13bb35346a626b
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents e0f376cf 8137c6df
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -279,8 +279,14 @@ int BluetoothAudioClientInterface::StartSession() {
  auto aidl_retval = provider_->startSession(
      stack_if, transport_->GetAudioConfiguration(), latency_modes, &mq_desc);
  if (!aidl_retval.isOk()) {
    if (aidl_retval.getExceptionCode() == EX_ILLEGAL_ARGUMENT) {
      LOG(ERROR) << __func__ << ": BluetoothAudioHal Error: "
                 << aidl_retval.getDescription() << ", audioConfig="
                 << transport_->GetAudioConfiguration().toString();
    } else {
      LOG(FATAL) << __func__ << ": BluetoothAudioHal failure: "
                 << aidl_retval.getDescription();
    }
    return -EPROTO;
  }
  data_mq.reset(new DataMQ(mq_desc));