1# Bluetooth Audio - Audio Stream Control configuration options
2#
3# Copyright (c) 2020 Intel Corporation
4# Copyright (c) 2022 Nordic Semiconductor ASA
5
6# SPDX-License-Identifier: Apache-2.0
7#
8
9config BT_ASCS
10	bool "Audio Stream Control Service Support"
11	help
12	  This option enables support for Audio Stream Control Service.
13
14if BT_ASCS
15config BT_ASCS_ASE_SNK_COUNT
16	int "Number of Audio Stream Endpoint Sink Characteristics"
17	default 2
18	range 0 $(UINT8_MAX)
19	help
20	  An ASE Sink characteristic represents the state of an ASE, which is
21	  coupled to a single direction of a unicast Audio Stream.
22
23config BT_ASCS_ASE_SRC_COUNT
24	int "Number of Audio Stream Endpoint Source Characteristics"
25	default 2
26	range 0 $(UINT8_MAX)
27	help
28	  An ASE Source characteristic represents the state of an ASE, which is
29	  coupled to a single direction of a unicast Audio Stream.
30
31config BT_ASCS_ASE_SNK
32	def_bool BT_ASCS_ASE_SNK_COUNT > 0
33	select BT_PAC_SNK
34	select BT_AUDIO_RX
35
36config BT_ASCS_ASE_SRC
37	def_bool BT_ASCS_ASE_SRC_COUNT > 0
38	select BT_PAC_SRC
39	select BT_AUDIO_TX
40
41config BT_ASCS_MAX_ACTIVE_ASES
42	int "Number of simultaneously supported ASE sessions"
43	default BT_ISO_MAX_CHAN
44	range 1 $(UINT16_MAX)
45	help
46	  The number of simultanesouly supported active ASEs, in particular
47	  meaning the number of ASEs that are allowed to be in a non-idle state at
48	  a single time.
49
50config BT_ASCS_ISO_DISCONNECT_DELAY
51	int "Milliseconds of delay before ASCS disconnects ISO after stream stop"
52	range 0 5000
53	default 500
54	help
55	  The number of milliseconds ASCS will wait before disconnecting the ISO
56	  of a stopped stream. The delay is added as it is the Unicast Client's
57	  responsibility, but this is a failsafe to ensure that ISO channel is
58	  being properly disconnected.
59
60config BT_ASCS_ASE_BUF_TIMEOUT
61	int "Milliseconds of timeout when handle concurrent access to the long read ASE buffer"
62	range 0 1000
63	default 50
64	help
65	  The number of milliseconds that the ASCS implementation will maximum wait before rejecting
66	  an ASE read or dropping a notification if the ASE state is being accessed by another
67	  thread.
68
69
70endif # BT_ASCS
71