summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--system/binder/android/bluetooth/IBluetoothLeAudio.aidl3
-rw-r--r--system/include/hardware/bt_le_audio.h5
-rw-r--r--system/stack/btm/btm_iso_impl.h3
-rw-r--r--system/stack/include/btm_iso_api_types.h13
4 files changed, 23 insertions, 1 deletions
diff --git a/system/binder/android/bluetooth/IBluetoothLeAudio.aidl b/system/binder/android/bluetooth/IBluetoothLeAudio.aidl
index 4f2ee75399..5b3fe53dda 100644
--- a/system/binder/android/bluetooth/IBluetoothLeAudio.aidl
+++ b/system/binder/android/bluetooth/IBluetoothLeAudio.aidl
@@ -38,6 +38,9 @@ interface IBluetoothLeAudio {
const int LE_AUDIO_GROUP_ID_INVALID = -1;
+ const int GROUP_STATUS_INACTIVE = 0;
+ const int GROUP_STATUS_ACTIVE = 1;
+
/**
* Get device group id. Devices with same group id belong to same group (i.e left and right
* earbud)
diff --git a/system/include/hardware/bt_le_audio.h b/system/include/hardware/bt_le_audio.h
index 9e8cb5ab03..3506948824 100644
--- a/system/include/hardware/bt_le_audio.h
+++ b/system/include/hardware/bt_le_audio.h
@@ -33,6 +33,11 @@ enum class ConnectionState {
};
enum class GroupStatus {
+ INACTIVE = 0,
+ ACTIVE,
+};
+
+enum class GroupStreamStatus {
IDLE = 0,
STREAMING,
SUSPENDED,
diff --git a/system/stack/btm/btm_iso_impl.h b/system/stack/btm/btm_iso_impl.h
index 59da8f843b..9a04fd764b 100644
--- a/system/stack/btm/btm_iso_impl.h
+++ b/system/stack/btm/btm_iso_impl.h
@@ -420,7 +420,8 @@ struct iso_impl {
if (iso_credits_ == 0 || data_len > iso_buffer_size_) {
LOG(WARNING) << __func__ << ", dropping ISO packet, len: "
<< static_cast<int>(data_len)
- << ", iso credits: " << static_cast<int>(iso_credits_);
+ << ", iso credits: " << static_cast<int>(iso_credits_)
+ << ", iso handle: " << loghex(iso_handle);
return;
}
diff --git a/system/stack/include/btm_iso_api_types.h b/system/stack/include/btm_iso_api_types.h
index 71841ccc9f..daa253ef00 100644
--- a/system/stack/include/btm_iso_api_types.h
+++ b/system/stack/include/btm_iso_api_types.h
@@ -25,6 +25,19 @@
namespace bluetooth {
namespace hci {
+constexpr uint8_t kIsoCodingFormatLc3 = 0x06;
+constexpr uint8_t kIsoCodingFormatVendorSpecific = 0xFF;
+
+constexpr uint8_t kIsoCigPackingSequential = 0x00;
+constexpr uint8_t kIsoCigPackingInterleaved = 0x01;
+
+constexpr uint8_t kIsoCigFramingUnframed = 0x00;
+constexpr uint8_t kIsoCigFramingFramed = 0x01;
+
+constexpr uint8_t kIsoCigPhy1M = 0x01;
+constexpr uint8_t kIsoCigPhy2M = 0x02;
+constexpr uint8_t kIsoCigPhyC = 0x04;
+
namespace iso_manager {
constexpr uint8_t kIsoDataPathDirectionIn = 0x00;