From 6dc20d5ced9e88708cee8d7266b228b8e90968e2 Mon Sep 17 00:00:00 2001 From: Emil Gydesen Date: Mon, 16 Jan 2023 15:32:01 +0100 Subject: [PATCH] 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 --- subsys/bluetooth/audio/pacs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subsys/bluetooth/audio/pacs.c b/subsys/bluetooth/audio/pacs.c index ba4ac5cd26d..d0fdcc76a57 100644 --- a/subsys/bluetooth/audio/pacs.c +++ b/subsys/bluetooth/audio/pacs.c @@ -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;