Bluetooth: Audio: Shell: Fix context for the audio shell
The context had a bug where if GMAP was enabled, the context was only BT_AUDIO_CONTEXT_TYPE_GAME. The context should also (per BAP spec requirement) contain the BT_AUDIO_CONTEXT_TYPE_UNSPECIFIED context. Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
parent
7d6ca26c4c
commit
dee95eb768
1 changed files with 3 additions and 2 deletions
|
@ -43,8 +43,9 @@ size_t pbp_ad_data_add(struct bt_data data[], size_t data_size);
|
|||
|
||||
#define LOCATION BT_AUDIO_LOCATION_FRONT_LEFT | BT_AUDIO_LOCATION_FRONT_RIGHT
|
||||
#define CONTEXT \
|
||||
(BT_AUDIO_CONTEXT_TYPE_CONVERSATIONAL | BT_AUDIO_CONTEXT_TYPE_MEDIA | \
|
||||
IS_ENABLED(CONFIG_BT_GMAP) ? BT_AUDIO_CONTEXT_TYPE_GAME : 0U)
|
||||
(BT_AUDIO_CONTEXT_TYPE_UNSPECIFIED | BT_AUDIO_CONTEXT_TYPE_CONVERSATIONAL | \
|
||||
BT_AUDIO_CONTEXT_TYPE_MEDIA | \
|
||||
COND_CODE_1(IS_ENABLED(CONFIG_BT_GMAP), (BT_AUDIO_CONTEXT_TYPE_GAME), (0)))
|
||||
|
||||
const struct named_lc3_preset *gmap_get_named_preset(bool is_unicast, enum bt_audio_dir dir,
|
||||
const char *preset_arg);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue