tests: bsim: Bluetooth: Audio: Fix minor things in source files
Removed some unused variables and includes. Added missing includes. Fixed duplicated variable names. Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
parent
512f237838
commit
9001e259a8
11 changed files with 12 additions and 8 deletions
|
@ -22,6 +22,7 @@
|
|||
#include <zephyr/net_buf.h>
|
||||
#include <zephyr/sys/printk.h>
|
||||
#include <zephyr/sys/util.h>
|
||||
#include <zephyr/sys/util_macro.h>
|
||||
#include <zephyr/toolchain.h>
|
||||
|
||||
#include "bap_common.h"
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
#include <zephyr/sys/byteorder.h>
|
||||
#include <zephyr/sys/printk.h>
|
||||
|
||||
#include "common.h"
|
||||
#include "bap_common.h"
|
||||
|
||||
void print_hex(const uint8_t *ptr, size_t len)
|
||||
|
|
|
@ -44,7 +44,6 @@ NET_BUF_POOL_FIXED_DEFINE(tx_pool, TOTAL_BUF_NEEDED, BT_ISO_SDU_BUF_SIZE(CONFIG_
|
|||
|
||||
extern enum bst_result_t bst_result;
|
||||
|
||||
static volatile size_t sent_count;
|
||||
static struct audio_test_stream test_streams[CONFIG_BT_BAP_UNICAST_CLIENT_ASE_SNK_COUNT];
|
||||
static struct bt_bap_ep *g_sinks[CONFIG_BT_BAP_UNICAST_CLIENT_ASE_SNK_COUNT];
|
||||
static struct bt_bap_ep *g_sources[CONFIG_BT_BAP_UNICAST_CLIENT_ASE_SRC_COUNT];
|
||||
|
|
|
@ -1045,7 +1045,7 @@ static void test_cap_acceptor_broadcast_reception(void)
|
|||
sink_wait_for_data();
|
||||
|
||||
/* Since we are re-using the BAP broadcast source test
|
||||
* we get a metadata udate, and we need to send an extra
|
||||
* we get a metadata update, and we need to send an extra
|
||||
* backchannel sync
|
||||
*/
|
||||
base_wait_for_metadata_update();
|
||||
|
|
|
@ -6,9 +6,12 @@
|
|||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <zephyr/autoconf.h>
|
||||
#include <zephyr/bluetooth/addr.h>
|
||||
#include <zephyr/bluetooth/audio/audio.h>
|
||||
#include <zephyr/bluetooth/audio/bap.h>
|
||||
#include <zephyr/bluetooth/audio/bap_lc3_preset.h>
|
||||
#include <zephyr/bluetooth/audio/cap.h>
|
||||
#include <zephyr/bluetooth/audio/csip.h>
|
||||
|
@ -20,15 +23,16 @@
|
|||
#include <zephyr/bluetooth/gap.h>
|
||||
#include <zephyr/bluetooth/gatt.h>
|
||||
#include <zephyr/bluetooth/hci_types.h>
|
||||
#include <zephyr/bluetooth/uuid.h>
|
||||
#include <zephyr/kernel.h>
|
||||
#include <zephyr/net_buf.h>
|
||||
#include <zephyr/sys/byteorder.h>
|
||||
#include <zephyr/sys/printk.h>
|
||||
#include <zephyr/sys/util.h>
|
||||
#include <zephyr/sys/util_macro.h>
|
||||
|
||||
#include "bstests.h"
|
||||
#include "common.h"
|
||||
#include "bap_common.h"
|
||||
|
||||
#if defined(CONFIG_BT_CAP_COMMANDER)
|
||||
|
||||
|
|
|
@ -176,7 +176,7 @@ static void unicast_stream_disabled(struct bt_bap_stream *stream)
|
|||
|
||||
static void unicast_stream_stopped(struct bt_bap_stream *stream, uint8_t reason)
|
||||
{
|
||||
printk("Stopped stream with reason 0x%02X%p\n", stream, reason);
|
||||
printk("Stopped stream %p with reason 0x%02X\n", stream, reason);
|
||||
}
|
||||
|
||||
static void unicast_stream_released(struct bt_bap_stream *stream)
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
#include <stdint.h>
|
||||
|
||||
#include <zephyr/bluetooth/addr.h>
|
||||
#include <zephyr/bluetooth/audio/bap.h>
|
||||
#include <zephyr/bluetooth/bluetooth.h>
|
||||
#include <zephyr/bluetooth/conn.h>
|
||||
#include <zephyr/bluetooth/gap.h>
|
||||
|
@ -40,7 +41,7 @@ const struct bt_data ad[AD_SIZE] = {
|
|||
BT_DATA_BYTES(BT_DATA_FLAGS, (BT_LE_AD_GENERAL | BT_LE_AD_NO_BREDR))
|
||||
};
|
||||
|
||||
static void device_found(const struct bt_le_scan_recv_info *info, struct net_buf_simple *ad)
|
||||
static void device_found(const struct bt_le_scan_recv_info *info, struct net_buf_simple *ad_buf)
|
||||
{
|
||||
char addr_str[BT_ADDR_LE_STR_LEN];
|
||||
int err;
|
||||
|
|
|
@ -32,7 +32,6 @@ static bool expect_lockable = true;
|
|||
|
||||
extern enum bst_result_t bst_result;
|
||||
static volatile bool discovered;
|
||||
static volatile bool members_discovered;
|
||||
static volatile bool discover_timed_out;
|
||||
static volatile bool set_locked;
|
||||
static volatile bool set_unlocked;
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
#include <errno.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include <string.h>
|
||||
|
||||
|
|
|
@ -22,7 +22,6 @@
|
|||
#ifdef CONFIG_BT_TBS
|
||||
extern enum bst_result_t bst_result;
|
||||
static uint8_t g_call_index;
|
||||
static volatile uint8_t call_state;
|
||||
|
||||
CREATE_FLAG(is_connected);
|
||||
CREATE_FLAG(call_placed);
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
*/
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <zephyr/autoconf.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue