Skip to content

Commit a1f718f

Browse files
committed
Bluetooth: Seperate BT_ISO and BT_AUDIO
ISO is a building block for BT_AUDIO but it is not only useful for AUDIO, and as such should be possible to enable without enabling BT_AUDIO. This commit moves iso.c and iso_internal.h to the host directory (from host/audio) and removes the CMakeLists.txt. The /audio directory is left intact for the Kconfig options it provides, and as a directory for future BLE Audio content. Signed-off-by: Emil Gydesen <[email protected]>
1 parent e0c8081 commit a1f718f

File tree

9 files changed

+10
-12
lines changed

9 files changed

+10
-12
lines changed

subsys/bluetooth/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ endif # BT_CONN
225225

226226
config BT_ISO
227227
bool "Bluetooth Isochronous Channel Support [EXPERIMENTAL]"
228+
depends on BT_CONN
228229
help
229230
Select this to enable Isochronous Channel support.
230231

subsys/bluetooth/host/CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ if(CONFIG_BT_HCI_HOST)
6060
endif()
6161
endif()
6262

63+
zephyr_library_sources_ifdef(
64+
CONFIG_BT_ISO
65+
iso.c
66+
)
67+
6368
if(CONFIG_BT_DF)
6469
zephyr_library_sources(
6570
direction.c
@@ -101,5 +106,3 @@ if(CONFIG_BT_CONN_DISABLE_SECURITY)
101106
Do not use in production."
102107
)
103108
endif()
104-
105-
add_subdirectory_ifdef(CONFIG_BT_AUDIO audio)

subsys/bluetooth/host/audio/CMakeLists.txt

Lines changed: 0 additions & 6 deletions
This file was deleted.

subsys/bluetooth/host/buf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
#include "hci_core.h"
1212
#include "conn_internal.h"
13-
#include "audio/iso_internal.h"
13+
#include "iso_internal.h"
1414

1515
#define BT_DBG_ENABLED IS_ENABLED(CONFIG_BT_DEBUG_HCI_CORE)
1616
#define LOG_MODULE_NAME bt_buf

subsys/bluetooth/host/conn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
#include "ssp.h"
3636
#include "att_internal.h"
3737
#include "gatt_internal.h"
38-
#include "audio/iso_internal.h"
38+
#include "iso_internal.h"
3939

4040
/* Peripheral timeout to initialize Connection Parameter Update procedure */
4141
#define CONN_UPDATE_TIMEOUT K_MSEC(CONFIG_BT_CONN_PARAM_UPDATE_TIMEOUT)

subsys/bluetooth/host/conn_internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ struct bt_conn {
182182
struct bt_conn_br br;
183183
struct bt_conn_sco sco;
184184
#endif
185-
#if defined(CONFIG_BT_AUDIO)
185+
#if defined(CONFIG_BT_ISO)
186186
struct bt_conn_iso iso;
187187
#endif
188188
};

subsys/bluetooth/host/hci_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
#include "ecc.h"
4141

4242
#include "conn_internal.h"
43-
#include "audio/iso_internal.h"
43+
#include "iso_internal.h"
4444
#include "l2cap_internal.h"
4545
#include "gatt_internal.h"
4646
#include "smp.h"
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)