Bluetooth: Audio: Remove ISO disconnected and connected cbs

The callbacks were implemented to notify the application
about the state of the ISO. However, since then, callbacks
such as `started` and `stopped` have been implemented,
and as such the `connected` and `disconnected` callbacks
no longer server any purpose.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
Emil Gydesen 2022-02-02 17:12:30 +01:00 committed by Carles Cufí
commit 628b54a959
10 changed files with 19 additions and 122 deletions

View file

@ -114,8 +114,8 @@ static void broadcast_sink_iso_connected(struct bt_iso_chan *chan)
broadcast_sink_set_ep_state(ep, BT_AUDIO_EP_STATE_STREAMING);
if (ops != NULL && ops->connected != NULL) {
ops->connected(ep->stream);
if (ops != NULL && ops->started != NULL) {
ops->started(ep->stream);
} else {
BT_WARN("No callback for connected set");
}
@ -132,10 +132,10 @@ static void broadcast_sink_iso_disconnected(struct bt_iso_chan *chan,
broadcast_sink_set_ep_state(ep, BT_AUDIO_EP_STATE_IDLE);
if (ops != NULL && ops->disconnected != NULL) {
ops->disconnected(stream, reason);
if (ops != NULL && ops->stopped != NULL) {
ops->stopped(stream);
} else {
BT_WARN("No callback for disconnected set");
BT_WARN("No callback for stopped set");
}
}