Bluetooth: audio: tbs_client: Make GTBS client only build option

Refactor Kconfig to add a way to enable GTBS only client.

Signed-off-by: Mariusz Skamra <mariusz.skamra@codecoup.pl>
This commit is contained in:
Mariusz Skamra 2022-09-26 09:46:32 +02:00 committed by Carles Cufí
parent 907062a3f9
commit 124d66e885
3 changed files with 10 additions and 0 deletions

View file

@ -52,6 +52,8 @@ CONFIG_BT_BAS=y
CONFIG_BT_IAS=y
CONFIG_BT_TBS_CLIENT=y
CONFIG_BT_TBS_CLIENT_GTBS=y
CONFIG_BT_TBS_CLIENT_MAX_TBS_INSTANCES=0
CONFIG_BT_TBS_CLIENT_CCID=y
CONFIG_BT_TBS_CLIENT_STATUS_FLAGS=y

View file

@ -165,6 +165,7 @@ config BT_TBS_CLIENT_MAX_CALLS
config BT_TBS_CLIENT_MAX_TBS_INSTANCES
int "Maximum number of TBS instances to setup"
default 1
range 0 3 if BT_TBS_CLIENT_GTBS
range 1 3
help
Sets the maximum number of Telephone Bearer Service (TBS)

View file

@ -228,6 +228,13 @@ tests:
extra_configs:
- CONFIG_BT_TBS_CLIENT=n
tags: bluetooth
bluetooth.shell.audio.gtbs_only_client:
extra_args: CONF_FILE="audio.conf"
build_only: true
platform_allow: native_posix
extra_configs:
- CONFIG_BT_TBS_CLIENT_MAX_TBS_INSTANCES=0
tags: bluetooth
bluetooth.audio_shell.no_cap_acceptor:
extra_args: CONF_FILE="audio.conf"
build_only: true