From 59980f8c0b31cc86c862c0a4f3621ade0bd53fd5 Mon Sep 17 00:00:00 2001 From: Emil Gydesen Date: Thu, 6 Jul 2023 19:43:48 +0200 Subject: [PATCH] Bluetooth: CAP: Add minimum metadata len req for CAP CAP requires setting the streaming context in the metadata, which requires 4 octets of metadata, so the metadata for CAP must be greater than or equal to 4. Signed-off-by: Emil Gydesen --- subsys/bluetooth/audio/Kconfig.cap | 2 ++ 1 file changed, 2 insertions(+) diff --git a/subsys/bluetooth/audio/Kconfig.cap b/subsys/bluetooth/audio/Kconfig.cap index 64762a86572db7e..020758d38df4042 100644 --- a/subsys/bluetooth/audio/Kconfig.cap +++ b/subsys/bluetooth/audio/Kconfig.cap @@ -11,6 +11,7 @@ config BT_CAP config BT_CAP_ACCEPTOR bool "Common Audio Profile Acceptor Role Support [EXPERIMENTAL]" depends on BT_BAP_UNICAST_SERVER || (BT_BAP_BROADCAST_SINK && BT_BAP_SCAN_DELEGATOR) + depends on BT_AUDIO_CODEC_CFG_MAX_METADATA_COUNT >= 4 select EXPERIMENTAL help Enabling this will enable the CAP Acceptor role. This instantiates the @@ -30,6 +31,7 @@ config BT_CAP_ACCEPTOR_SET_MEMBER config BT_CAP_INITIATOR bool "Common Audio Profile Initiator Role Support [EXPERIMENTAL]" depends on (BT_BAP_UNICAST_CLIENT && BT_CSIP_SET_COORDINATOR) || BT_BAP_BROADCAST_SOURCE + depends on BT_AUDIO_CODEC_CFG_MAX_METADATA_COUNT >= 4 select EXPERIMENTAL help Enabling this will enable the CAP Initiator role.