Skip to content

Commit 6dc20d5

Browse files
Thalleycarlescufi
authored andcommitted
Bluetooth: Audio: Add BT_AUDIO_CONTEXT_TYPE_UNSPECIFIED as default ctx
Add BT_AUDIO_CONTEXT_TYPE_UNSPECIFIED as the default supported context. This is primarily due to the requirement that it shall always be supported, and the value 0 (previous default) was invalid. Signed-off-by: Emil Gydesen <[email protected]>
1 parent 4db6088 commit 6dc20d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

subsys/bluetooth/audio/pacs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,15 @@ struct pacs {
5757

5858
#if defined(CONTIG_BT_PAC_SNK)
5959
static uint16_t snk_available_contexts;
60-
static uint16_t snk_supported_contexts;
60+
static uint16_t snk_supported_contexts = BT_AUDIO_CONTEXT_TYPE_UNSPECIFIED;
6161
#else
6262
static uint16_t snk_available_contexts = BT_AUDIO_CONTEXT_TYPE_PROHIBITED;
6363
static uint16_t snk_supported_contexts = BT_AUDIO_CONTEXT_TYPE_PROHIBITED;
6464
#endif /* CONFIG_BT_PAC_SNK */
6565

6666
#if defined(CONFIG_BT_PAC_SRC)
6767
static uint16_t src_available_contexts;
68-
static uint16_t src_supported_contexts;
68+
static uint16_t src_supported_contexts = BT_AUDIO_CONTEXT_TYPE_UNSPECIFIED;
6969
#else
7070
static uint16_t src_available_contexts = BT_AUDIO_CONTEXT_TYPE_PROHIBITED;
7171
static uint16_t src_supported_contexts = BT_AUDIO_CONTEXT_TYPE_PROHIBITED;

0 commit comments

Comments
 (0)