bluez5: bap: Advertise ASCS properties

BAP/USR/ADV/BV-01-C test requires to advertise Audio Stream Control
Service properties with General Announcement type and supported
contexts values for sink and source which should be in sync with
the PACS values.
This commit is contained in:
Frédéric Danis 2026-05-04 13:02:36 +02:00 committed by Wim Taymans
parent 5e9ecc3ce5
commit 27cdac3cd6
3 changed files with 232 additions and 1 deletions

View file

@ -146,6 +146,9 @@
#define BAP_CONTEXT_ALL 0x0fff
#define BAP_ANNOUNCEMENT_GENERAL 0x00
#define BAP_ANNOUNCEMENT_TARGETED 0x01
#define BT_ISO_QOS_CIG_UNSET 0xff
#define BT_ISO_QOS_CIS_UNSET 0xff
@ -154,6 +157,8 @@
#define BT_ISO_QOS_TARGET_LATENCY_RELIABILITY 0x03
#define BT_ASCS_UUID "0000184e-0000-1000-8000-00805f9b34fb"
#define BT_TMAP_UUID "00001855-0000-1000-8000-00805f9b34fb"
#define BT_TMAP_ROLE_CG_STR "cg"
@ -285,4 +290,12 @@ static const struct {
{ BAP_CHANNEL_RS, SPA_AUDIO_CHANNEL_SR }, /* is it the right mapping? */
};
struct bap_ascs_adv {
uint8_t announcement_type;
uint16_t available_sink_contexts;
uint16_t available_source_contexts;
uint8_t metadata_length;
uint8_t metadata[];
} __attribute__((packed));
#endif