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

Commit 3c5bcb66 authored by Łukasz Rymanowski's avatar Łukasz Rymanowski
Browse files

leaudio: Make sure Audio HAL is always notified corretly

With this patch if internal state of the sink/source changes, we make
sure audio hal is notified.

Bug: 216466543
Bug: 150670922
Test: atest --host bluetooth_le_audio_test
bluetooth_le_audio_client_test
Sponsor: @jpawlowski

Change-Id: Ib2dd573804adefbad5c0f445766ae22c26bdefa1
parent 852804a5
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -2478,8 +2478,7 @@ class LeAudioClientImpl : public LeAudioClient {
  }

  void SuspendAudio(void) {
    audio_receiver_state_ = AudioState::IDLE;
    audio_sender_state_ = AudioState::IDLE;
    CancelStreamingRequest();

    if (lc3_encoder_left_mem) {
      free(lc3_encoder_left_mem);