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:
parent
04ea1ee1af
commit
628b54a959
10 changed files with 19 additions and 122 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue