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 <emil.gydesen@nordicsemi.no>
This commit is contained in:
parent
4db60883db
commit
6dc20d5ced
1 changed files with 2 additions and 2 deletions
|
@ -57,7 +57,7 @@ struct pacs {
|
|||
|
||||
#if defined(CONTIG_BT_PAC_SNK)
|
||||
static uint16_t snk_available_contexts;
|
||||
static uint16_t snk_supported_contexts;
|
||||
static uint16_t snk_supported_contexts = BT_AUDIO_CONTEXT_TYPE_UNSPECIFIED;
|
||||
#else
|
||||
static uint16_t snk_available_contexts = BT_AUDIO_CONTEXT_TYPE_PROHIBITED;
|
||||
static uint16_t snk_supported_contexts = BT_AUDIO_CONTEXT_TYPE_PROHIBITED;
|
||||
|
@ -65,7 +65,7 @@ static uint16_t snk_supported_contexts = BT_AUDIO_CONTEXT_TYPE_PROHIBITED;
|
|||
|
||||
#if defined(CONFIG_BT_PAC_SRC)
|
||||
static uint16_t src_available_contexts;
|
||||
static uint16_t src_supported_contexts;
|
||||
static uint16_t src_supported_contexts = BT_AUDIO_CONTEXT_TYPE_UNSPECIFIED;
|
||||
#else
|
||||
static uint16_t src_available_contexts = BT_AUDIO_CONTEXT_TYPE_PROHIBITED;
|
||||
static uint16_t src_supported_contexts = BT_AUDIO_CONTEXT_TYPE_PROHIBITED;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue