Bluetooth: PACS: Refactor PAC location read/write

Refactor the PAC location read and write. Instead
of storing the location in the service, the
location is now stored in the application, and
is retrieved by the service via callbacks.

Similarly, if a client writes the location, this
request is being sent to the application.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
Emil Gydesen 2022-02-08 14:43:43 +01:00 committed by Marti Bolivar
commit 18466530ab
10 changed files with 381 additions and 89 deletions

View file

@ -200,7 +200,7 @@ config BT_AUDIO_DEBUG_STREAM
config BT_AUDIO_DEBUG_CAPABILITIES
bool "Bluetooth Audio Capabilities debug"
depends on BT_AUDIO_CAPABILITIES
depends on BT_AUDIO_CAPABILITY
help
Use this option to enable Bluetooth Audio Capabilities debug logs for
the Bluetooth Audio functionality.
@ -247,7 +247,7 @@ config BT_AUDIO_STREAM
default y if BT_ASCS || BT_AUDIO_UNICAST_CLIENT || \
BT_AUDIO_BROADCAST_SOURCE || BT_AUDIO_BROADCAST_SINK
config BT_AUDIO_CAPABILITIES
config BT_AUDIO_CAPABILITY
# Virtual/hidden option
bool
default y if BT_ASCS || BT_AUDIO_BROADCAST_SINK