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

Commit 237a5519 authored by Limon Mia's avatar Limon Mia
Browse files

Added controller error desc for CIS create errors

Test: m .
Bug: 308007414
Change-Id: Ibc64c396122606087c2ae4d557af1ba9b35fa9bf
parent b07035cb
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@
#include "codec_manager.h"
#include "devices.h"
#include "gd/common/strings.h"
#include "hci/hci_packets.h"
#include "hcimsgs.h"
#include "le_audio_health_status.h"
#include "le_audio_log_history.h"
@@ -98,6 +99,8 @@ using le_audio::LeAudioDevice;
using le_audio::LeAudioDeviceGroup;
using le_audio::LeAudioGroupStateMachine;

using bluetooth::hci::ErrorCode;
using bluetooth::hci::ErrorCodeText;
using le_audio::types::ase;
using le_audio::types::AseState;
using le_audio::types::AudioContexts;
@@ -832,8 +835,9 @@ class LeAudioGroupStateMachineImpl : public LeAudioGroupStateMachine {
        RemoveCigForGroup(group);
      }

      LOG(ERROR) << __func__
                 << ", failed to create CIS, status: " << loghex(event->status);
      LOG(ERROR) << __func__ << ", failed to create CIS, status: "
                 << ErrorCodeText((ErrorCode)event->status) << "("
                 << loghex(event->status) << ")";

      StopStream(group);
      return;