1# Bluetooth Audio - Hearing Access Service options
2#
3# Copyright (c) 2022 Codecoup
4#
5# SPDX-License-Identifier: Apache-2.0
6
7menuconfig BT_HAS
8	bool "Hearing Access Service support [EXPERIMENTAL]"
9	select EXPERIMENTAL
10	select UTF8
11	select BT_GATT_DYNAMIC_DB
12	depends on BT_BAP_UNICAST_SERVER
13	help
14	  This option enables support for Hearing Access Service.
15
16if BT_HAS
17
18config BT_HAS_FEATURES_NOTIFIABLE
19	bool "Hearing Aid Features Notifiable Support"
20	help
21	  This option enables support for clients to subscribe for notifications
22	  on the Hearing Aid Features characteristic.
23
24config BT_HAS_PRESET_COUNT
25	int "Preset record list size"
26	default 2
27	range 0 255
28	help
29	  This option sets the number of Hearing Access Service Presets
30	  that can be registered. Setting this value to 0 disables Presets support.
31
32config BT_HAS_PRESET_SUPPORT
33	def_bool BT_HAS_PRESET_COUNT > 0
34
35if BT_HAS_PRESET_SUPPORT
36
37config BT_HAS_PRESET_NAME_DYNAMIC
38	bool "Allow to set preset name on runtime"
39	help
40	  Enabling this option allows for runtime configuration of preset name.
41
42config BT_HAS_PRESET_CONTROL_POINT_NOTIFIABLE
43	bool "Preset Control Point Notifiable support"
44	depends on BT_EATT
45	help
46	  This option enables support for clients to subscribe for notifications
47	  on the Hearing Aid Preset Control Point characteristic.
48
49config BT_HAS_ACTIVE_PRESET_INDEX
50	def_bool BT_HAS_PRESET_SUPPORT
51	help
52	  This option enables the Hearing Aid Active Preset Index characteristic.
53
54endif # BT_HAS_PRESET_SUPPORT
55
56endif # BT_HAS
57
58config BT_HAS_CLIENT
59	bool "Hearing Access Service Client support [EXPERIMENTAL]"
60	select EXPERIMENTAL
61	select BT_GATT_CLIENT
62	select BT_GATT_AUTO_DISCOVER_CCC
63	select BT_GATT_AUTO_UPDATE_MTU
64	select UTF8
65	help
66	  This option enables support for Hearing Access Service Client.
67