Skip to content

Commit 7b619de

Browse files
committed
Bluetooth: TMAP: Fix issues with _SUPPORTED kconfigs
Some of the Kconfig options did not reflect the actual requirements from the TMAP spec. Relying on the AUDIO_TX and AUDIO_RX was misleading, as they could be set by broadcast configurations when the features required unicast features. Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
1 parent a1090c5 commit 7b619de

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

subsys/bluetooth/audio/Kconfig.tmap

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,19 @@
55
# SPDX-License-Identifier: Apache-2.0
66
#
77
config BT_TMAP_CG_SUPPORTED
8-
def_bool (BT_CAP_INITIATOR && BT_CAP_COMMANDER && BT_BAP_UNICAST_CLIENT && BT_AUDIO_RX && \
9-
BT_AUDIO_TX && BT_VCP_VOL_CTLR && BT_TBS)
8+
def_bool (BT_CAP_INITIATOR && BT_CAP_COMMANDER && BT_BAP_UNICAST_CLIENT && \
9+
BT_BAP_UNICAST_CLIENT_ASE_SRC > 0 && BT_BAP_UNICAST_CLIENT_ASE_SNK > 0 && \
10+
BT_VCP_VOL_CTLR && BT_TBS)
1011

1112
config BT_TMAP_CT_SUPPORTED
12-
def_bool BT_CAP_ACCEPTOR && BT_BAP_UNICAST_SERVER
13+
def_bool BT_CAP_ACCEPTOR && (BT_ASCS_ASE_SNK > 0 || BT_ASCS_ASE_SRC > 0)
1314

1415
config BT_TMAP_UMS_SUPPORTED
15-
def_bool (BT_CAP_INITIATOR && BT_CAP_COMMANDER && BT_BAP_UNICAST_CLIENT && BT_AUDIO_TX && \
16-
BT_VCP_VOL_CTLR && BT_MCS)
16+
def_bool (BT_CAP_INITIATOR && BT_CAP_COMMANDER && BT_BAP_UNICAST_CLIENT && \
17+
BT_BAP_UNICAST_CLIENT_ASE_SNK_COUNT > 0 && BT_VCP_VOL_CTLR && BT_MCS)
1718

1819
config BT_TMAP_UMR_SUPPORTED
19-
def_bool BT_CAP_ACCEPTOR && BT_BAP_UNICAST_SERVER && BT_VCP_VOL_REND
20+
def_bool BT_CAP_ACCEPTOR && BT_ASCS_ASE_SNK > 0 && BT_VCP_VOL_REND
2021

2122
config BT_TMAP_BMS_SUPPORTED
2223
def_bool BT_CAP_INITIATOR && BT_BAP_BROADCAST_SOURCE

0 commit comments

Comments
 (0)