This adds cleanup of ASCS that is called when upper layer unregisters it's callbacks. Without callbacks registered, the service is unusable. The ASE's that were in non-idle state stay in this state, because the implementation returns an error on every operation that is performed by the client. The cleanup added moves all the ASE's to idle state. Fixes: #56111 Signed-off-by: Mariusz Skamra <mariusz.skamra@codecoup.pl>
18 lines
634 B
C
18 lines
634 B
C
/* Bluetooth Audio Unicast Server */
|
|
|
|
/*
|
|
* Copyright (c) 2021-2023 Nordic Semiconductor ASA
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include <zephyr/bluetooth/audio/audio.h>
|
|
#include <zephyr/bluetooth/audio/bap.h>
|
|
|
|
int bt_bap_unicast_server_reconfig(struct bt_bap_stream *stream, const struct bt_codec *codec);
|
|
int bt_bap_unicast_server_start(struct bt_bap_stream *stream);
|
|
int bt_bap_unicast_server_metadata(struct bt_bap_stream *stream, struct bt_codec_data meta[],
|
|
size_t meta_count);
|
|
int bt_bap_unicast_server_disable(struct bt_bap_stream *stream);
|
|
int bt_bap_unicast_server_release(struct bt_bap_stream *stream);
|