From 9b653540b8258855b8834dc99566482f4b246c91 Mon Sep 17 00:00:00 2001 From: Emil Gydesen Date: Wed, 13 Nov 2024 11:49:12 +0100 Subject: [PATCH] Bluetooth: BAP: Use def_bool instead of select for BT_AUDIO_RX/TX Remove the selects and use def_bool for BT_AUDIO_RX and BT_AUDIO_TX. This is part of an effort to reduce select in Kconfig. Signed-off-by: Emil Gydesen --- subsys/bluetooth/audio/Kconfig | 10 ++-------- subsys/bluetooth/audio/Kconfig.ascs | 2 -- subsys/bluetooth/audio/Kconfig.bap | 4 ---- 3 files changed, 2 insertions(+), 14 deletions(-) diff --git a/subsys/bluetooth/audio/Kconfig b/subsys/bluetooth/audio/Kconfig index aed0ecbe56f..f56c3fe5236 100644 --- a/subsys/bluetooth/audio/Kconfig +++ b/subsys/bluetooth/audio/Kconfig @@ -19,16 +19,10 @@ menuconfig BT_AUDIO if BT_AUDIO config BT_AUDIO_RX - bool - help - This hidden option is enabled when any of the profiles/services - enables support for receiving of audio data. + def_bool BT_ASCS_ASE_SNK || BT_BAP_UNICAST_CLIENT_ASE_SRC || BT_BAP_BROADCAST_SINK config BT_AUDIO_TX - bool - help - This hidden option is enabled when any of the profiles/services - enables support for transmitting of audio data. + def_bool BT_ASCS_ASE_SRC || BT_BAP_UNICAST_CLIENT_ASE_SNK || BT_BAP_BROADCAST_SOURCE config BT_AUDIO_NOTIFY_RETRY_DELAY int "Delay for notification sending retried attempt in 1.25 ms units" diff --git a/subsys/bluetooth/audio/Kconfig.ascs b/subsys/bluetooth/audio/Kconfig.ascs index 61d92c2b484..750c62730bc 100644 --- a/subsys/bluetooth/audio/Kconfig.ascs +++ b/subsys/bluetooth/audio/Kconfig.ascs @@ -31,12 +31,10 @@ config BT_ASCS_MAX_ASE_SRC_COUNT config BT_ASCS_ASE_SNK def_bool BT_ASCS_MAX_ASE_SNK_COUNT > 0 select BT_PAC_SNK - select BT_AUDIO_RX config BT_ASCS_ASE_SRC def_bool BT_ASCS_MAX_ASE_SRC_COUNT > 0 select BT_PAC_SRC - select BT_AUDIO_TX config BT_ASCS_MAX_ACTIVE_ASES int "Number of simultaneously supported ASE sessions" diff --git a/subsys/bluetooth/audio/Kconfig.bap b/subsys/bluetooth/audio/Kconfig.bap index bb05d9c5ee7..ba66f39bc89 100644 --- a/subsys/bluetooth/audio/Kconfig.bap +++ b/subsys/bluetooth/audio/Kconfig.bap @@ -112,18 +112,15 @@ config BT_BAP_UNICAST_CLIENT_ASE_SRC_COUNT config BT_BAP_UNICAST_CLIENT_ASE_SNK def_bool BT_BAP_UNICAST_CLIENT_ASE_SNK_COUNT > 0 - select BT_AUDIO_TX config BT_BAP_UNICAST_CLIENT_ASE_SRC def_bool BT_BAP_UNICAST_CLIENT_ASE_SRC_COUNT > 0 - select BT_AUDIO_RX endif # BT_BAP_UNICAST_CLIENT config BT_BAP_BROADCAST_SOURCE bool "Bluetooth Broadcast Source Audio Support" select BT_ISO_BROADCASTER - select BT_AUDIO_TX help This option enables support for Bluetooth Broadcast Source Audio using Isochronous channels. @@ -162,7 +159,6 @@ endif # BT_BAP_BROADCAST_SOURCE config BT_BAP_BROADCAST_SINK bool "Bluetooth Broadcast Sink Audio Support" select BT_ISO_SYNC_RECEIVER - select BT_AUDIO_RX select BT_PAC_SNK depends on BT_PERIPHERAL depends on BT_BAP_SCAN_DELEGATOR