From 984e364d57ceab3807a59a9bbc7b4e1f05f9b4bc Mon Sep 17 00:00:00 2001 From: Kiran K Date: Tue, 7 Sep 2021 16:55:54 +0530 Subject: tools/sco-tester: add test cases to get offload codecs Add a test case to query offload codecs supported over sco --- lib/bluetooth.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'lib') 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 */ -- cgit v1.2.1