Skip to content

Commit 124d66e

Browse files
MariuszSkamracarlescufi
authored andcommitted
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 <[email protected]>
1 parent 907062a commit 124d66e

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

samples/bluetooth/hap_ha/prj.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ CONFIG_BT_BAS=y
5252
CONFIG_BT_IAS=y
5353

5454
CONFIG_BT_TBS_CLIENT=y
55+
CONFIG_BT_TBS_CLIENT_GTBS=y
56+
CONFIG_BT_TBS_CLIENT_MAX_TBS_INSTANCES=0
5557
CONFIG_BT_TBS_CLIENT_CCID=y
5658
CONFIG_BT_TBS_CLIENT_STATUS_FLAGS=y
5759

subsys/bluetooth/audio/Kconfig.tbs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ config BT_TBS_CLIENT_MAX_CALLS
165165
config BT_TBS_CLIENT_MAX_TBS_INSTANCES
166166
int "Maximum number of TBS instances to setup"
167167
default 1
168+
range 0 3 if BT_TBS_CLIENT_GTBS
168169
range 1 3
169170
help
170171
Sets the maximum number of Telephone Bearer Service (TBS)

tests/bluetooth/shell/testcase.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,13 @@ tests:
228228
extra_configs:
229229
- CONFIG_BT_TBS_CLIENT=n
230230
tags: bluetooth
231+
bluetooth.shell.audio.gtbs_only_client:
232+
extra_args: CONF_FILE="audio.conf"
233+
build_only: true
234+
platform_allow: native_posix
235+
extra_configs:
236+
- CONFIG_BT_TBS_CLIENT_MAX_TBS_INSTANCES=0
237+
tags: bluetooth
231238
bluetooth.audio_shell.no_cap_acceptor:
232239
extra_args: CONF_FILE="audio.conf"
233240
build_only: true

0 commit comments

Comments
 (0)