diff --git a/unit/test-bap.c b/unit/test-bap.c
index b59f642..9cb4ae8 100644
--- a/unit/test-bap.c
+++ b/unit/test-bap.c
&data->cfg->cc, NULL, data);
}
-static void bsrc_state(struct bt_bap_stream *stream, uint8_t old_state,
+static void bsrc_state_cfg(struct bt_bap_stream *stream, uint8_t old_state,
uint8_t new_state, void *user_data)
{
struct test_data *data = user_data;
switch (new_state) {
case BT_BAP_STREAM_STATE_CONFIG:
- bt_bap_stream_enable(stream, true, NULL, NULL, NULL);
- break;
- case BT_BAP_STREAM_STATE_ENABLING:
data->base = bt_bap_stream_get_base(stream);
g_assert(data->base);
g_assert(memcmp(data->base->iov_base, data->cfg->base.iov_base,
data->base->iov_len) == 0);
- bt_bap_stream_start(stream, NULL, NULL);
- break;
- case BT_BAP_STREAM_STATE_STREAMING:
tester_test_passed();
break;
}
.qos = LC3_QOS_8_1_1_B,
.base = UTIL_IOV_INIT(BASE_LC3_8_1),
.src = true,
- .state_func = bsrc_state,
+ .state_func = bsrc_state_cfg,
};
static struct test_config cfg_bsrc_8_1_2 = {
.qos = LC3_QOS_8_1_2_B,
.base = UTIL_IOV_INIT(BASE_LC3_8_1),
.src = true,
- .state_func = bsrc_state,
+ .state_func = bsrc_state_cfg,
};
#define LC3_CFG_8_2 \
.qos = LC3_QOS_8_2_1_B,
.base = UTIL_IOV_INIT(BASE_LC3_8_2),
.src = true,
- .state_func = bsrc_state,
+ .state_func = bsrc_state_cfg,
};
static struct test_config cfg_bsrc_8_2_2 = {
.qos = LC3_QOS_8_2_2_B,
.base = UTIL_IOV_INIT(BASE_LC3_8_2),
.src = true,
- .state_func = bsrc_state,
+ .state_func = bsrc_state_cfg,
};
#define LC3_CFG_16_1 \
.qos = LC3_QOS_16_1_1_B,
.base = UTIL_IOV_INIT(BASE_LC3_16_1),
.src = true,
- .state_func = bsrc_state,
+ .state_func = bsrc_state_cfg,
};
static struct test_config cfg_bsrc_16_1_2 = {
.qos = LC3_QOS_16_1_2_B,
.base = UTIL_IOV_INIT(BASE_LC3_16_1),
.src = true,
- .state_func = bsrc_state,
+ .state_func = bsrc_state_cfg,
};
#define LC3_CFG_16_2 \
.qos = LC3_QOS_16_2_1_B,
.base = UTIL_IOV_INIT(BASE_LC3_16_2),
.src = true,
- .state_func = bsrc_state,
+ .state_func = bsrc_state_cfg,
};
static struct test_config cfg_bsrc_16_2_2 = {
.qos = LC3_QOS_16_2_2_B,
.base = UTIL_IOV_INIT(BASE_LC3_16_2),
.src = true,
- .state_func = bsrc_state,
+ .state_func = bsrc_state_cfg,
};
#define LC3_CFG_24_1 \
.qos = LC3_QOS_24_1_1_B,
.base = UTIL_IOV_INIT(BASE_LC3_24_1),
.src = true,
- .state_func = bsrc_state,
+ .state_func = bsrc_state_cfg,
};
static struct test_config cfg_bsrc_24_1_2 = {
.qos = LC3_QOS_24_1_2_B,
.base = UTIL_IOV_INIT(BASE_LC3_24_1),
.src = true,
- .state_func = bsrc_state,
+ .state_func = bsrc_state_cfg,
};
#define LC3_CFG_24_2 \
.qos = LC3_QOS_24_2_1_B,
.base = UTIL_IOV_INIT(BASE_LC3_24_2),
.src = true,
- .state_func = bsrc_state,
+ .state_func = bsrc_state_cfg,
};
static struct test_config cfg_bsrc_24_2_2 = {
.qos = LC3_QOS_24_2_2_B,
.base = UTIL_IOV_INIT(BASE_LC3_24_2),
.src = true,
- .state_func = bsrc_state,
+ .state_func = bsrc_state_cfg,
};
#define LC3_CFG_32_1 \
.qos = LC3_QOS_32_1_1_B,
.base = UTIL_IOV_INIT(BASE_LC3_32_1),
.src = true,
- .state_func = bsrc_state,
+ .state_func = bsrc_state_cfg,
};
static struct test_config cfg_bsrc_32_1_2 = {
.qos = LC3_QOS_32_1_2_B,
.base = UTIL_IOV_INIT(BASE_LC3_32_1),
.src = true,
- .state_func = bsrc_state,
+ .state_func = bsrc_state_cfg,
};
#define LC3_CFG_32_2 \
.qos = LC3_QOS_32_2_1_B,
.base = UTIL_IOV_INIT(BASE_LC3_32_2),
.src = true,
- .state_func = bsrc_state,
+ .state_func = bsrc_state_cfg,
};
static struct test_config cfg_bsrc_32_2_2 = {
.qos = LC3_QOS_32_2_2_B,
.base = UTIL_IOV_INIT(BASE_LC3_32_2),
.src = true,
- .state_func = bsrc_state,
+ .state_func = bsrc_state_cfg,
};
#define LC3_CFG_44_1 \
.qos = LC3_QOS_44_1_1_B,
.base = UTIL_IOV_INIT(BASE_LC3_44_1),
.src = true,
- .state_func = bsrc_state,
+ .state_func = bsrc_state_cfg,
};
static struct test_config cfg_bsrc_44_1_2 = {
.qos = LC3_QOS_44_1_2_B,
.base = UTIL_IOV_INIT(BASE_LC3_44_1),
.src = true,
- .state_func = bsrc_state,
+ .state_func = bsrc_state_cfg,
};
#define LC3_CFG_44_2 \
.qos = LC3_QOS_44_2_1_B,
.base = UTIL_IOV_INIT(BASE_LC3_44_2),
.src = true,
- .state_func = bsrc_state,
+ .state_func = bsrc_state_cfg,
};
static struct test_config cfg_bsrc_44_2_2 = {
.qos = LC3_QOS_44_2_2_B,
.base = UTIL_IOV_INIT(BASE_LC3_44_2),
.src = true,
- .state_func = bsrc_state,
+ .state_func = bsrc_state_cfg,
};
#define LC3_CFG_48_1 \
.qos = LC3_QOS_48_1_1_B,
.base = UTIL_IOV_INIT(BASE_LC3_48_1),
.src = true,
- .state_func = bsrc_state,
+ .state_func = bsrc_state_cfg,
};
static struct test_config cfg_bsrc_48_1_2 = {
.qos = LC3_QOS_48_1_2_B,
.base = UTIL_IOV_INIT(BASE_LC3_48_1),
.src = true,
- .state_func = bsrc_state,
+ .state_func = bsrc_state_cfg,
};
#define LC3_CFG_48_2 \
.qos = LC3_QOS_48_2_1_B,
.base = UTIL_IOV_INIT(BASE_LC3_48_2),
.src = true,
- .state_func = bsrc_state,
+ .state_func = bsrc_state_cfg,
};
static struct test_config cfg_bsrc_48_2_2 = {
.qos = LC3_QOS_48_2_2_B,
.base = UTIL_IOV_INIT(BASE_LC3_48_2),
.src = true,
- .state_func = bsrc_state,
+ .state_func = bsrc_state_cfg,
};
#define LC3_CFG_48_3 \
.qos = LC3_QOS_48_3_1_B,
.base = UTIL_IOV_INIT(BASE_LC3_48_3),
.src = true,
- .state_func = bsrc_state,
+ .state_func = bsrc_state_cfg,
};
static struct test_config cfg_bsrc_48_3_2 = {
.qos = LC3_QOS_48_3_2_B,
.base = UTIL_IOV_INIT(BASE_LC3_48_3),
.src = true,
- .state_func = bsrc_state,
+ .state_func = bsrc_state_cfg,
};
#define LC3_CFG_48_4 \
.qos = LC3_QOS_48_4_1_B,
.base = UTIL_IOV_INIT(BASE_LC3_48_4),
.src = true,
- .state_func = bsrc_state,
+ .state_func = bsrc_state_cfg,
};
static struct test_config cfg_bsrc_48_4_2 = {
.qos = LC3_QOS_48_4_2_B,
.base = UTIL_IOV_INIT(BASE_LC3_48_4),
.src = true,
- .state_func = bsrc_state,
+ .state_func = bsrc_state_cfg,
};
#define LC3_CFG_48_5 \
.qos = LC3_QOS_48_5_1_B,
.base = UTIL_IOV_INIT(BASE_LC3_48_5),
.src = true,
- .state_func = bsrc_state,
+ .state_func = bsrc_state_cfg,
};
static struct test_config cfg_bsrc_48_5_2 = {
.qos = LC3_QOS_48_5_2_B,
.base = UTIL_IOV_INIT(BASE_LC3_48_5),
.src = true,
- .state_func = bsrc_state,
+ .state_func = bsrc_state_cfg,
};
#define LC3_CFG_48_6 \
.qos = LC3_QOS_48_6_1_B,
.base = UTIL_IOV_INIT(BASE_LC3_48_6),
.src = true,
- .state_func = bsrc_state,
+ .state_func = bsrc_state_cfg,
};
static struct test_config cfg_bsrc_48_6_2 = {
.qos = LC3_QOS_48_6_2_B,
.base = UTIL_IOV_INIT(BASE_LC3_48_6),
.src = true,
- .state_func = bsrc_state,
+ .state_func = bsrc_state_cfg,
};
#define VS_CC \
.base = UTIL_IOV_INIT(BASE_VS),
.vs = true,
.src = true,
- .state_func = bsrc_state,
+ .state_func = bsrc_state_cfg,
};
/* Test Purpose: