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

Commit 68d5d305 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "audio_hal_interface: Fix WriteOutData command" am: d6ae4b1d

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

Change-Id: I66dcece7ed280565b19bae534ecc5db2e0eb4301
parents 76a34f75 d6ae4b1d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1060,8 +1060,8 @@ void BluetoothAudioClientInterface::RenewAudioProviderAndSession() {

size_t BluetoothAudioSourceClientInterface::WriteAudioData(const uint8_t* p_buf,
                                                           uint32_t len) {
  if (provider_ == nullptr) {
    LOG(ERROR) << __func__ << ": BluetoothAudioHal nullptr";
  if (!IsValid()) {
    LOG(ERROR) << __func__ << ": BluetoothAudioHal is not valid";
    return 0;
  }
  if (p_buf == nullptr || len == 0) return 0;