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 <emil.gydesen@nordicsemi.no>
This commit is contained in:
Emil Gydesen 2024-11-13 11:49:12 +01:00 committed by Alberto Escolar
commit 9b653540b8
3 changed files with 2 additions and 14 deletions

View file

@ -19,16 +19,10 @@ menuconfig BT_AUDIO
if BT_AUDIO if BT_AUDIO
config BT_AUDIO_RX config BT_AUDIO_RX
bool def_bool BT_ASCS_ASE_SNK || BT_BAP_UNICAST_CLIENT_ASE_SRC || BT_BAP_BROADCAST_SINK
help
This hidden option is enabled when any of the profiles/services
enables support for receiving of audio data.
config BT_AUDIO_TX config BT_AUDIO_TX
bool def_bool BT_ASCS_ASE_SRC || BT_BAP_UNICAST_CLIENT_ASE_SNK || BT_BAP_BROADCAST_SOURCE
help
This hidden option is enabled when any of the profiles/services
enables support for transmitting of audio data.
config BT_AUDIO_NOTIFY_RETRY_DELAY config BT_AUDIO_NOTIFY_RETRY_DELAY
int "Delay for notification sending retried attempt in 1.25 ms units" int "Delay for notification sending retried attempt in 1.25 ms units"

View file

@ -31,12 +31,10 @@ config BT_ASCS_MAX_ASE_SRC_COUNT
config BT_ASCS_ASE_SNK config BT_ASCS_ASE_SNK
def_bool BT_ASCS_MAX_ASE_SNK_COUNT > 0 def_bool BT_ASCS_MAX_ASE_SNK_COUNT > 0
select BT_PAC_SNK select BT_PAC_SNK
select BT_AUDIO_RX
config BT_ASCS_ASE_SRC config BT_ASCS_ASE_SRC
def_bool BT_ASCS_MAX_ASE_SRC_COUNT > 0 def_bool BT_ASCS_MAX_ASE_SRC_COUNT > 0
select BT_PAC_SRC select BT_PAC_SRC
select BT_AUDIO_TX
config BT_ASCS_MAX_ACTIVE_ASES config BT_ASCS_MAX_ACTIVE_ASES
int "Number of simultaneously supported ASE sessions" int "Number of simultaneously supported ASE sessions"

View file

@ -112,18 +112,15 @@ config BT_BAP_UNICAST_CLIENT_ASE_SRC_COUNT
config BT_BAP_UNICAST_CLIENT_ASE_SNK config BT_BAP_UNICAST_CLIENT_ASE_SNK
def_bool BT_BAP_UNICAST_CLIENT_ASE_SNK_COUNT > 0 def_bool BT_BAP_UNICAST_CLIENT_ASE_SNK_COUNT > 0
select BT_AUDIO_TX
config BT_BAP_UNICAST_CLIENT_ASE_SRC config BT_BAP_UNICAST_CLIENT_ASE_SRC
def_bool BT_BAP_UNICAST_CLIENT_ASE_SRC_COUNT > 0 def_bool BT_BAP_UNICAST_CLIENT_ASE_SRC_COUNT > 0
select BT_AUDIO_RX
endif # BT_BAP_UNICAST_CLIENT endif # BT_BAP_UNICAST_CLIENT
config BT_BAP_BROADCAST_SOURCE config BT_BAP_BROADCAST_SOURCE
bool "Bluetooth Broadcast Source Audio Support" bool "Bluetooth Broadcast Source Audio Support"
select BT_ISO_BROADCASTER select BT_ISO_BROADCASTER
select BT_AUDIO_TX
help help
This option enables support for Bluetooth Broadcast Source Audio using This option enables support for Bluetooth Broadcast Source Audio using
Isochronous channels. Isochronous channels.
@ -162,7 +159,6 @@ endif # BT_BAP_BROADCAST_SOURCE
config BT_BAP_BROADCAST_SINK config BT_BAP_BROADCAST_SINK
bool "Bluetooth Broadcast Sink Audio Support" bool "Bluetooth Broadcast Sink Audio Support"
select BT_ISO_SYNC_RECEIVER select BT_ISO_SYNC_RECEIVER
select BT_AUDIO_RX
select BT_PAC_SNK select BT_PAC_SNK
depends on BT_PERIPHERAL depends on BT_PERIPHERAL
depends on BT_BAP_SCAN_DELEGATOR depends on BT_BAP_SCAN_DELEGATOR