From 316a551ff1b79309b8404990d83da7253342353d Mon Sep 17 00:00:00 2001 From: Emil Gydesen Date: Wed, 12 Jun 2024 12:38:24 +0200 Subject: [PATCH] Bluetooth: CAP: Remove check for ep in valid_unicast_audio_start_param This allows the procedure to work for streams in the non-idle state, e.g. we can start one of more streams in the codec configured or even enabling state. Signed-off-by: Emil Gydesen --- subsys/bluetooth/audio/cap_initiator.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/subsys/bluetooth/audio/cap_initiator.c b/subsys/bluetooth/audio/cap_initiator.c index 72a32d181b7..e6a16c4bf5a 100644 --- a/subsys/bluetooth/audio/cap_initiator.c +++ b/subsys/bluetooth/audio/cap_initiator.c @@ -719,11 +719,6 @@ static bool valid_unicast_audio_start_param(const struct bt_cap_unicast_audio_st bap_stream = &cap_stream->bap_stream; - CHECKIF(bap_stream->ep != NULL) { - LOG_DBG("param->streams[%zu] is already started", i); - return false; - } - CHECKIF(bap_stream->group == NULL) { LOG_DBG("param->streams[%zu] is not in a unicast group", i); return false;