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_MAX_ASE_SNK_COUNT
16	int "Maximum 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_MAX_ASE_SRC_COUNT
24	int "Maximum 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_MAX_ASE_SNK_COUNT > 0
33
34config BT_ASCS_ASE_SRC
35	def_bool BT_ASCS_MAX_ASE_SRC_COUNT > 0
36
37config BT_ASCS_MAX_ACTIVE_ASES
38	int "Number of simultaneously supported ASE sessions"
39	default BT_ISO_MAX_CHAN
40	range 1 $(UINT16_MAX)
41	help
42	  The number of simultanesouly supported active ASEs, in particular
43	  meaning the number of ASEs that are allowed to be in a non-idle state at
44	  a single time.
45
46config BT_ASCS_ISO_DISCONNECT_DELAY
47	int "Milliseconds of delay before ASCS disconnects ISO after stream stop"
48	range 0 5000
49	default 500
50	help
51	  The number of milliseconds ASCS will wait before disconnecting the ISO
52	  of a stopped stream. The delay is added as it is the Unicast Client's
53	  responsibility, but this is a failsafe to ensure that ISO channel is
54	  being properly disconnected.
55
56config BT_ASCS_ASE_BUF_TIMEOUT
57	int "Milliseconds of timeout when handle concurrent access to the long read ASE buffer"
58	range 0 1000
59	default 50
60	help
61	  The number of milliseconds that the ASCS implementation will maximum wait before rejecting
62	  an ASE read or dropping a notification if the ASE state is being accessed by another
63	  thread.
64
65
66endif # BT_ASCS
67