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

Commit e880d219 authored by Zach Johnson's avatar Zach Johnson Committed by Android (Google) Code Review
Browse files

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

parents 8f603bd9 c7f04537
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -274,8 +274,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));