From a61cbb818203df1ffccbc6249c96d291537b0cc6 Mon Sep 17 00:00:00 2001 From: Emil Gydesen Date: Thu, 21 Apr 2022 14:08:40 +0200 Subject: [PATCH] Bluetooth: ASCS: Add no-op case for setting releasing state The releasing state does not trigger any stream ops, but will be a no-op case to avoid the error log message. Signed-off-by: Emil Gydesen --- subsys/bluetooth/audio/ascs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/subsys/bluetooth/audio/ascs.c b/subsys/bluetooth/audio/ascs.c index 0e33753a03b..9ba88493b4e 100644 --- a/subsys/bluetooth/audio/ascs.c +++ b/subsys/bluetooth/audio/ascs.c @@ -133,6 +133,8 @@ void ascs_ep_set_state(struct bt_audio_ep *ep, uint8_t state) ops->disabled(stream); } break; + case BT_AUDIO_EP_STATE_RELEASING: + break; /* no-op*/ default: BT_ERR("Invalid state: %u", state); break;