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

Commit 16b328f8 authored by Łukasz Rymanowski's avatar Łukasz Rymanowski
Browse files

Revert "leaudio: Fix possible race when confirming stream start"

This reverts commit 91a8cc85.

Reason for revert: Solve one problem but introduce deadlock
->confirmStreamingRequest->SendsAudioData

Bug: 244616585 
Change-Id: Ia753e9930c37e5a578cfb5e0a7e7ebc52b2cab84
Test: atest BluetoothInstrumentationTests
Tag: #feature
parent 91a8cc85
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -425,7 +425,6 @@ void LeAudioClientAudioSource::Release(const void* instance) {
}

void LeAudioClientAudioSource::ConfirmStreamingRequest() {
  std::lock_guard<std::mutex> guard(sinkInterfaceMutex_);
  LOG(INFO) << __func__;
  if ((sinkClientInterface_ == nullptr) ||
      (le_audio_sink_hal_state != HAL_STARTED)) {
@@ -452,7 +451,6 @@ void LeAudioClientAudioSource::SuspendedForReconfiguration() {
}

void LeAudioClientAudioSource::CancelStreamingRequest() {
  std::lock_guard<std::mutex> guard(sinkInterfaceMutex_);
  LOG(INFO) << __func__;
  if ((sinkClientInterface_ == nullptr) ||
      (le_audio_sink_hal_state != HAL_STARTED)) {