diff --git a/src/shared/bap.c b/src/shared/bap.c
index dbeb43f..ec23e88 100644
--- a/src/shared/bap.c
+++ b/src/shared/bap.c
bt_bap_get_att(stream->bap));
}
+static void stream_notify_idle(struct bt_bap_stream *stream)
+{
+ struct bt_bap_endpoint *ep = stream->ep;
+ struct bt_ascs_ase_status status;
+
+ DBG(stream->bap, "stream %p", stream);
+
+ memset(&status, 0, sizeof(status));
+ status.id = ep->id;
+ status.state = BT_ASCS_ASE_STATE_IDLE;
+
+ gatt_db_attribute_notify(ep->attr, (void *)&status, sizeof(status),
+ bt_bap_get_att(stream->bap));
+}
+
static struct bt_bap *bt_bap_ref_safe(struct bt_bap *bap)
{
if (!bap || !bap->ref_count || !queue_find(sessions, NULL, bap))
switch (state) {
case BT_ASCS_ASE_STATE_IDLE:
+ stream_notify_idle(stream);
break;
case BT_ASCS_ASE_STATE_CONFIG:
stream_notify_config(stream);