Skip to content

Commit 48aedc9

Browse files
Thalleykartben
authored andcommitted
Bluetooth: Audio: Spring cleanup for audio source files
Add missing and remove unused includes. Fix spelling mistakes. Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
1 parent dbabc18 commit 48aedc9

20 files changed

+30
-13
lines changed

subsys/bluetooth/audio/Kconfig.ascs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ config BT_ASCS_MAX_ACTIVE_ASES
3939
default BT_ISO_MAX_CHAN
4040
range 1 $(UINT16_MAX)
4141
help
42-
The number of simultanesouly supported active ASEs, in particular
42+
The number of simultaneously supported active ASEs, in particular
4343
meaning the number of ASEs that are allowed to be in a non-idle state at
4444
a single time.
4545

subsys/bluetooth/audio/Kconfig.csip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ config BT_CSIP_SET_MEMBER_ENC_SIRK_SUPPORT
3535
Enables support encrypting the SIRK.
3636

3737
config BT_CSIP_SET_MEMBER_MAX_INSTANCE_COUNT
38-
int "Coordinated Set Identification Profle max service instance count"
38+
int "Coordinated Set Identification Profile max service instance count"
3939
default 1
4040
range 1 $(UINT8_MAX)
4141
help

subsys/bluetooth/audio/ascs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3271,7 +3271,7 @@ int bt_ascs_unregister(void)
32713271
}
32723272

32733273
err = bt_gatt_service_unregister(&ascs_svc);
3274-
/* If unregistration was succesfull, make sure to reset ascs_attrs so it can be used for
3274+
/* If unregistration was successful, make sure to reset ascs_attrs so it can be used for
32753275
* new registrations
32763276
*/
32773277
if (err != 0) {

subsys/bluetooth/audio/ascs_internal.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
#ifndef BT_ASCS_INTERNAL_H
1212
#define BT_ASCS_INTERNAL_H
1313

14+
#include <stdint.h>
15+
1416
#include <zephyr/bluetooth/audio/audio.h>
1517
#include <zephyr/bluetooth/audio/bap.h>
1618
#include <zephyr/bluetooth/conn.h>

subsys/bluetooth/audio/audio.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include <zephyr/bluetooth/hci_types.h>
2424
#include <zephyr/logging/log.h>
2525
#include <zephyr/sys/check.h>
26+
#include <zephyr/toolchain.h>
2627

2728
#include "audio_internal.h"
2829

subsys/bluetooth/audio/bap_endpoint.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
#include <stdbool.h>
1111
#include <stdint.h>
12+
#include <stddef.h>
1213

1314
#include <zephyr/autoconf.h>
1415
#include <zephyr/bluetooth/audio/audio.h>

subsys/bluetooth/audio/bap_unicast_client_internal.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
*/
88

99
#include <stdint.h>
10+
#include <stddef.h>
1011

1112
#include <zephyr/bluetooth/audio/audio.h>
1213
#include <zephyr/bluetooth/audio/bap.h>

subsys/bluetooth/audio/cap_commander.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include <zephyr/bluetooth/conn.h>
2424
#include <zephyr/bluetooth/gap.h>
2525
#include <zephyr/bluetooth/gatt.h>
26+
#include <zephyr/bluetooth/iso.h>
2627
#include <zephyr/logging/log.h>
2728
#include <zephyr/sys/__assert.h>
2829
#include <zephyr/sys/check.h>
@@ -517,7 +518,7 @@ static void cap_commander_broadcast_assistant_mod_src_cb(struct bt_conn *conn, i
517518

518519
bt_cap_common_abort_proc(conn, err);
519520
} else {
520-
LOG_DBG("Conn %p broadcast source modifified (%zu/%zu streams done)", (void *)conn,
521+
LOG_DBG("Conn %p broadcast source modified (%zu/%zu streams done)", (void *)conn,
521522
active_proc->proc_done_cnt, active_proc->proc_cnt);
522523
}
523524

subsys/bluetooth/audio/cap_internal.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include <zephyr/bluetooth/addr.h>
2020
#include <zephyr/bluetooth/conn.h>
2121
#include <zephyr/bluetooth/gatt.h>
22+
#include <zephyr/bluetooth/iso.h>
2223
#include <zephyr/sys/atomic.h>
2324
#include <zephyr/types.h>
2425

@@ -113,7 +114,7 @@ struct cap_broadcast_reception_stop {
113114

114115
/* Note that although the broadcast_code will be the same for all
115116
* we nevertheless store a separate copy for each sink, for
116-
* consistensy in the struct bt_cap_commander_proc_param
117+
* consistency in the struct bt_cap_commander_proc_param
117118
* There is no memory savings by not having broadcast_code part of the
118119
* union: struct cap_broadcast_reception_start uses minimum 20 bytes
119120
* and struct cap_distribute_broadcast_code uses 17 bytes

subsys/bluetooth/audio/shell/audio.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#ifndef AUDIO_SHELL_AUDIO_H
1414
#define AUDIO_SHELL_AUDIO_H
1515

16+
#include <errno.h>
1617
#include <stdint.h>
1718
#include <stdbool.h>
1819
#include <stddef.h>
@@ -32,7 +33,6 @@
3233
#include <zephyr/sys/util_macro.h>
3334
#include <zephyr/sys_clock.h>
3435

35-
#include "host/shell/bt.h"
3636
#include "common/bt_shell_private.h"
3737

3838
#define SHELL_PRINT_INDENT_LEVEL_SIZE 2

0 commit comments

Comments
 (0)