Skip to content

Commit

Permalink
Bluetooth: Audio: Update BT_BAP_SCAN_DELEGATOR dependency to GATT_DYN…
Browse files Browse the repository at this point in the history
…AMIC_DB

Changed dependency of the BT_BAP_SCAN_DELEGATOR to GATT_DYNAMIC_DB
from 'select' to 'depends on' and solved all loop dependencies
caused by this change.

Fixes zephyrproject-rtos#79108

Signed-off-by: Babak Arisian <bbaa@demant.com>
  • Loading branch information
babrsn committed Oct 3, 2024
1 parent c710f88 commit 053adb7
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 4 deletions.
1 change: 1 addition & 0 deletions samples/bluetooth/bap_broadcast_sink/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ CONFIG_BT_PAC_SNK=y
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_BAP_BROADCAST_SINK=y
CONFIG_BT_BAP_SCAN_DELEGATOR=y
CONFIG_BT_GATT_DYNAMIC_DB=y
CONFIG_BT_ISO_MAX_CHAN=2
# Allocate 2 RX buffers per channel
CONFIG_BT_ISO_RX_BUF_COUNT=4
Expand Down
1 change: 1 addition & 0 deletions samples/bluetooth/hap_ha/binaural.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
CONFIG_BT_CSIP_SET_MEMBER=y
CONFIG_HAP_HA_HEARING_AID_BINAURAL=y
CONFIG_BT_CAP_ACCEPTOR_SET_MEMBER=y
CONFIG_BT_GATT_DYNAMIC_DB=y
1 change: 1 addition & 0 deletions samples/bluetooth/pbp_public_broadcast_sink/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ CONFIG_BT_AUDIO_CODEC_CAP_MAX_METADATA_SIZE=196
CONFIG_BT_CAP_ACCEPTOR=y

# BAP support
CONFIG_BT_GATT_DYNAMIC_DB=y
CONFIG_BT_BAP_SCAN_DELEGATOR=y
CONFIG_BT_BAP_BROADCAST_SINK=y
CONFIG_BT_BAP_BROADCAST_SNK_SUBGROUP_COUNT=1
Expand Down
1 change: 1 addition & 0 deletions samples/bluetooth/tmap_peripheral/duo.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
CONFIG_BT_CSIP_SET_MEMBER=y
CONFIG_TMAP_PERIPHERAL_DUO=y
CONFIG_BT_CAP_ACCEPTOR_SET_MEMBER=y
CONFIG_BT_GATT_DYNAMIC_DB=y
4 changes: 2 additions & 2 deletions subsys/bluetooth/audio/Kconfig.bap
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ 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_PAC_SNK
depends on BT_PERIPHERAL
depends on BT_BAP_SCAN_DELEGATOR
help
Expand Down Expand Up @@ -211,7 +211,7 @@ config BT_BAP_SCAN_DELEGATOR
select BT_EXT_ADV
select BT_PER_ADV_SYNC
select BT_ISO_SYNC_RECEIVER
select BT_GATT_DYNAMIC_DB
depends on BT_GATT_DYNAMIC_DB
depends on BT_BONDABLE
help
This option enables support for the Scan Delegator role and the
Expand Down
2 changes: 1 addition & 1 deletion subsys/bluetooth/audio/Kconfig.cap
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ config BT_CAP_ACCEPTOR_SET_MEMBER
bool "Common Audio Profile Acceptor Role Set Member support"
depends on BT_CAP_ACCEPTOR
depends on BT_CSIP_SET_MEMBER
select BT_GATT_DYNAMIC_DB
depends on BT_GATT_DYNAMIC_DB
help
Enabling this will allow a CAP acceptor to be a set member.
Enabling this will require a manual register of the CAS service.
Expand Down
2 changes: 1 addition & 1 deletion subsys/bluetooth/mesh/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ config BT_MESH_GATT_CLIENT
config BT_MESH_GATT_SERVER
bool
select BT_MESH_GATT
select BT_GATT_DYNAMIC_DB
depends on BT_GATT_DYNAMIC_DB

config BT_MESH_PB_GATT_COMMON
bool
Expand Down
1 change: 1 addition & 0 deletions tests/bluetooth/audio/bap_base/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ CONFIG_BT_AUDIO=y
CONFIG_BT_PERIPHERAL=y
# Need to enable one broadcast role to enable CONFIG_BT_BAP_BASE
CONFIG_BT_BAP_SCAN_DELEGATOR=y
CONFIG_BT_GATT_DYNAMIC_DB=y

CONFIG_LOG=y
CONFIG_BT_AUDIO_LOG_LEVEL_DBG=y
Expand Down
2 changes: 2 additions & 0 deletions tests/bluetooth/shell/audio.conf
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ CONFIG_BT_OTS_SECONDARY_SVC=y
CONFIG_BT_OTS_MAX_OBJ_CNT=0x30
CONFIG_BT_OTS_CLIENT=y

CONFIG_BT_GATT_DYNAMIC_DB=y
CONFIG_BT_BAP_SCAN_DELEGATOR=y
CONFIG_BT_BAP_BASS_MAX_SUBGROUPS=2
CONFIG_BT_AUDIO_CODEC_CFG_MAX_METADATA_SIZE=255
Expand Down Expand Up @@ -168,6 +169,7 @@ CONFIG_BT_TMAP=y
# Public Broadcast Profile
CONFIG_BT_PBP=y

CONFIG_BT_PAC_SNK=y
CONFIG_BT_PACS_SUPPORTED_CONTEXT_NOTIFIABLE=y
CONFIG_BT_PAC_SNK_LOC_NOTIFIABLE=y
CONFIG_BT_PAC_SRC_LOC_NOTIFIABLE=y
Expand Down
2 changes: 2 additions & 0 deletions tests/bluetooth/tester/overlay-le-audio.conf
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ CONFIG_BT_ISO_TX_BUF_COUNT=4
CONFIG_BT_BAP_BROADCAST_ASSISTANT=y

# Broadcast Sink
CONFIG_BT_GATT_DYNAMIC_DB=y
CONFIG_BT_BAP_SCAN_DELEGATOR=y
CONFIG_BT_BAP_BROADCAST_SINK=y
CONFIG_BT_BAP_BROADCAST_SNK_STREAM_COUNT=2
Expand All @@ -63,6 +64,7 @@ CONFIG_BT_ASCS_MAX_ASE_SRC_COUNT=2
CONFIG_BT_ISO_MAX_CHAN=4

# PACS
CONFIG_BT_PAC_SNK=y
CONFIG_BT_PAC_SNK_LOC_WRITEABLE=y
CONFIG_BT_PAC_SRC_LOC_WRITEABLE=y
CONFIG_BT_PAC_SNK_LOC_NOTIFIABLE=y
Expand Down

0 comments on commit 053adb7

Please sign in to comment.