Commit 4c86a5cc authored by Emil Gydesen's avatar Emil Gydesen Committed by Alberto Escolar
Browse files

Bluetooth: BAP: Depend on BT_PAC_{SNK,SRC} instead of select

Modify ASCS and BAP Broadcast sink to depend on the PAC options
instead of selecting them.

Since Kconfig does not support "depends on X if Y",
a select for PAC_{SRC,SNK} is used depending on
ASCS_ASE_{SRC,SNK}.

Signed-off-by: default avatarEmil Gydesen <emil.gydesen@nordicsemi.no>
parent c0f86011
Loading
Loading
Loading
Loading
+2 −0
Changes for samples/bluetooth/bap_unicast_server/prj.conf: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -8,7 +8,9 @@ CONFIG_BT_GATT_CACHING=y
CONFIG_BT_GATT_DYNAMIC_DB=y
CONFIG_BT_BAP_UNICAST_SERVER=y
CONFIG_BT_ASCS=y
CONFIG_BT_PAC_SNK=y
CONFIG_BT_ASCS_MAX_ASE_SNK_COUNT=2
CONFIG_BT_PAC_SRC=y
CONFIG_BT_ASCS_MAX_ASE_SRC_COUNT=1
CONFIG_BT_ISO_TX_BUF_COUNT=2
# Support an ISO channel per ASE
+2 −0
Changes for samples/bluetooth/cap_acceptor/prj.conf: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -17,7 +17,9 @@ CONFIG_BT_ATT_PREPARE_COUNT=1

# Support an ISO channel per ASE
CONFIG_BT_ASCS=y
CONFIG_BT_PAC_SNK=y
CONFIG_BT_ASCS_MAX_ASE_SNK_COUNT=1
CONFIG_BT_PAC_SRC=y
CONFIG_BT_ASCS_MAX_ASE_SRC_COUNT=1

# Support an ISO channel per ASE
+2 −0
Changes for samples/bluetooth/hap_ha/prj.conf: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -22,7 +22,9 @@ CONFIG_BT_ATT_PREPARE_COUNT=1
CONFIG_BT_AUDIO=y
CONFIG_BT_BAP_UNICAST_SERVER=y
CONFIG_BT_ASCS=y
CONFIG_BT_PAC_SNK=y
CONFIG_BT_ASCS_MAX_ASE_SNK_COUNT=1
CONFIG_BT_PAC_SRC=y
CONFIG_BT_ASCS_MAX_ASE_SRC_COUNT=1
# Support an ISO channel per ASE
CONFIG_BT_ISO_MAX_CHAN=2
+2 −0
Changes for samples/bluetooth/tmap_peripheral/prj.conf: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -31,7 +31,9 @@ CONFIG_BT_MCC=y

# Support an ISO channel per ASE
CONFIG_BT_ASCS=y
CONFIG_BT_PAC_SNK=y
CONFIG_BT_ASCS_MAX_ASE_SNK_COUNT=1
CONFIG_BT_PAC_SRC=y
CONFIG_BT_ASCS_MAX_ASE_SRC_COUNT=1
# Support an ISO channel per ASE
CONFIG_BT_ISO_MAX_CHAN=2
+0 −2
Changes for subsys/bluetooth/audio/Kconfig.ascs: 0 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -30,11 +30,9 @@ 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

config BT_ASCS_ASE_SRC
	def_bool BT_ASCS_MAX_ASE_SRC_COUNT > 0
	select BT_PAC_SRC

config BT_ASCS_MAX_ACTIVE_ASES
	int "Number of simultaneously supported ASE sessions"
Loading