From 4716438c20910589d9611b0b0065c0729dd95b6f Mon Sep 17 00:00:00 2001 From: Emil Gydesen Date: Mon, 9 Jan 2023 14:07:24 +0100 Subject: [PATCH] Bluetooth: Audio: Modify the compile guard for audio_iso.c audio_iso.c should only be compiled if we require any streams, so it is now guarded by CONFIG_BT_AUDIO_STREAM. Signed-off-by: Emil Gydesen --- subsys/bluetooth/audio/CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/subsys/bluetooth/audio/CMakeLists.txt b/subsys/bluetooth/audio/CMakeLists.txt index a074223802e..2305088d4e6 100644 --- a/subsys/bluetooth/audio/CMakeLists.txt +++ b/subsys/bluetooth/audio/CMakeLists.txt @@ -3,7 +3,6 @@ zephyr_library() zephyr_library_sources( audio.c - audio_iso.c ) if (CONFIG_BT_VOCS OR CONFIG_BT_VOCS_CLIENT) @@ -48,7 +47,7 @@ zephyr_library_sources_ifdef(CONFIG_MCTL media_proxy.c) zephyr_library_sources_ifdef(CONFIG_BT_ASCS ascs.c) zephyr_library_sources_ifdef(CONFIG_BT_PACS pacs.c) -zephyr_library_sources_ifdef(CONFIG_BT_AUDIO_STREAM stream.c codec.c) +zephyr_library_sources_ifdef(CONFIG_BT_AUDIO_STREAM stream.c codec.c audio_iso.c) zephyr_library_sources_ifdef(CONFIG_BT_AUDIO_UNICAST_SERVER unicast_server.c) zephyr_library_sources_ifdef(CONFIG_BT_AUDIO_UNICAST_CLIENT unicast_client.c) zephyr_library_sources_ifdef(CONFIG_BT_AUDIO_BROADCAST_SOURCE broadcast_source.c)