diff options
author | Kiran K <kiran.k@intel.com> | 2021-09-07 16:55:54 +0530 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2021-09-07 15:06:54 -0700 |
commit | 984e364d57ceab3807a59a9bbc7b4e1f05f9b4bc (patch) | |
tree | 8aaab0101b44abcdab25978aeddb75f4ddd8877e /lib | |
parent | 055000ad1180fb751662e547e3ee85c930bf7d47 (diff) | |
download | bluez-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.h | 18 |
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 */ |