diff --git a/subsys/bluetooth/audio/Kconfig.baps b/subsys/bluetooth/audio/Kconfig.baps index 2de9e05b7a5..ed473308a63 100644 --- a/subsys/bluetooth/audio/Kconfig.baps +++ b/subsys/bluetooth/audio/Kconfig.baps @@ -193,6 +193,14 @@ config BT_AUDIO_DEBUG_STREAM Use this option to enable Bluetooth Audio Stream debug logs for the Bluetooth Audio functionality. +config BT_AUDIO_DEBUG_STREAM_DATA + bool "Bluetooth Audio Stream data debug" + depends on BT_AUDIO_DEBUG_STREAM + help + Use this option to enable Bluetooth Audio Stream data debug logs for + the Bluetooth Audio functionality. This will enable debug logs for all + audio data received and sent. + config BT_AUDIO_DEBUG_CAPABILITIES bool "Bluetooth Audio Capabilities debug" depends on BT_AUDIO_CAPABILITY diff --git a/subsys/bluetooth/audio/ascs.c b/subsys/bluetooth/audio/ascs.c index 42a4b4a2494..9d95405274b 100644 --- a/subsys/bluetooth/audio/ascs.c +++ b/subsys/bluetooth/audio/ascs.c @@ -332,7 +332,10 @@ static void ascs_iso_recv(struct bt_iso_chan *chan, ops = ep->stream->ops; - BT_DBG("stream %p ep %p len %zu", chan, ep, net_buf_frags_len(buf)); + if (IS_ENABLED(CONFIG_BT_AUDIO_DEBUG_STREAM_DATA)) { + BT_DBG("stream %p ep %p len %zu", + chan, ep, net_buf_frags_len(buf)); + } if (ops != NULL && ops->recv != NULL) { ops->recv(ep->stream, info, buf); diff --git a/subsys/bluetooth/audio/broadcast_sink.c b/subsys/bluetooth/audio/broadcast_sink.c index 8817089e517..92a2545c0c0 100644 --- a/subsys/bluetooth/audio/broadcast_sink.c +++ b/subsys/bluetooth/audio/broadcast_sink.c @@ -128,7 +128,10 @@ static void broadcast_sink_iso_recv(struct bt_iso_chan *chan, ops = ep->stream->ops; - BT_DBG("stream %p ep %p len %zu", chan, ep, net_buf_frags_len(buf)); + if (IS_ENABLED(CONFIG_BT_AUDIO_DEBUG_STREAM_DATA)) { + BT_DBG("stream %p ep %p len %zu", + chan, ep, net_buf_frags_len(buf)); + } if (ops != NULL && ops->recv != NULL) { ops->recv(ep->stream, info, buf); diff --git a/subsys/bluetooth/audio/unicast_client.c b/subsys/bluetooth/audio/unicast_client.c index 88f054cb88c..b144b83a78e 100644 --- a/subsys/bluetooth/audio/unicast_client.c +++ b/subsys/bluetooth/audio/unicast_client.c @@ -80,7 +80,10 @@ static void unicast_client_ep_iso_recv(struct bt_iso_chan *chan, ops = ep->stream->ops; - BT_DBG("stream %p ep %p len %zu", chan, ep, net_buf_frags_len(buf)); + if (IS_ENABLED(CONFIG_BT_AUDIO_DEBUG_STREAM_DATA)) { + BT_DBG("stream %p ep %p len %zu", + chan, ep, net_buf_frags_len(buf)); + } if (ops != NULL && ops->recv != NULL) { ops->recv(ep->stream, info, buf);