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

Commit 550e1e27 authored by Łukasz Rymanowski's avatar Łukasz Rymanowski
Browse files

leaudio: Improve CONFIGURED_AUTONOMOUS while reconfiguration

For the moment CONFIGURED_AUTONOMUSL and IDLE state are handles in the
same way. We can change it later if needed:

Bug: 222674521
Bug: 150670922
Test: atest --host bluetooth_le_audio_test bluetooth_le_audio_client_test

Change-Id: I8af5d39c0d26b7764d4f2678e805e4957e8c0b16
parent 939c3d32
Loading
Loading
Loading
Loading
+4 −17
Original line number Diff line number Diff line
@@ -3280,23 +3280,10 @@ class LeAudioClientImpl : public LeAudioClient {
      case GroupStreamStatus::CONFIGURED_AUTONOMOUS:
        /* This state is notified only when
         * groups stays into CONFIGURED state after
         * STREAMING. Peer device uses cache.
         * */
        stream_setup_end_timestamp_ = 0;
        stream_setup_start_timestamp_ = 0;

        /* Check if stream was stopped for reconfiguration */
        if (group->IsPendingConfiguration()) {
          SuspendedForReconfiguration();
          if (!groupStateMachine_->ConfigureStream(group,
                                                   current_context_type_)) {
            // DO SOMETHING
          }
          return;
        }
        CancelStreamingRequest();
        HandlePendingAvailableContexts(group);
        break;
         * STREAMING. Peer device uses cache. For the moment
         * it is handled same as IDLE
         */
        FALLTHROUGH;
      case GroupStreamStatus::IDLE: {
        stream_setup_end_timestamp_ = 0;
        stream_setup_start_timestamp_ = 0;