summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKiran K <kiran.k@intel.com>2021-09-07 16:55:54 +0530
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2021-09-07 15:06:54 -0700
commit984e364d57ceab3807a59a9bbc7b4e1f05f9b4bc (patch)
tree8aaab0101b44abcdab25978aeddb75f4ddd8877e /lib
parent055000ad1180fb751662e547e3ee85c930bf7d47 (diff)
downloadbluez-984e364d57ceab3807a59a9bbc7b4e1f05f9b4bc.tar.gz
tools/sco-tester: add test cases to get offload codecs
Add a test case to query offload codecs supported over sco
Diffstat (limited to 'lib')
-rw-r--r--lib/bluetooth.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/bluetooth.h b/lib/bluetooth.h
index 9ab033ec4..0fcf412c6 100644
--- a/lib/bluetooth.h
+++ b/lib/bluetooth.h
@@ -140,6 +140,24 @@ struct bt_voice {
#define BT_SCM_PKT_STATUS 0x03
+#define BT_CODEC 19
+struct bt_codec {
+ uint8_t id;
+ uint16_t cid;
+ uint16_t vid;
+ uint8_t data_path_id;
+ uint8_t num_caps;
+ struct codec_caps {
+ uint8_t len;
+ uint8_t data[];
+ } caps[];
+} __attribute__((packed));
+
+struct bt_codecs {
+ uint8_t num_codecs;
+ struct bt_codec codecs[];
+} __attribute__((packed));
+
/* Connection and socket states */
enum {
BT_CONNECTED = 1, /* Equal to TCP_ESTABLISHED to make net code happy */