diff --git a/unit/test-bap.c b/unit/test-bap.c
index c92c4f6..9b75cfc 100644
--- a/unit/test-bap.c
+++ b/unit/test-bap.c
bt_bap_pac_set_ops(pac, &bcast_pac_ops, NULL);
- stream = bt_bap_stream_new(data->bap, pac, NULL,
- &data->cfg->qos,
- &data->cfg->cc);
- g_assert(stream);
+ for (uint8_t i = 0; i < data->cfg->streams; i++) {
+ stream = bt_bap_stream_new(data->bap, pac, NULL,
+ &data->cfg->qos,
+ &data->cfg->cc);
+ g_assert(stream);
- queue_push_tail(data->streams, stream);
+ queue_push_tail(data->streams, stream);
- bt_bap_stream_config(stream, &data->cfg->qos,
- &data->cfg->cc, NULL, data);
+ bt_bap_stream_config(stream, &data->cfg->qos,
+ &data->cfg->cc, NULL, data);
+ }
}
static void bsrc_state_cfg(struct bt_bap_stream *stream, uint8_t old_state,
.base = UTIL_IOV_INIT(BASE_LC3_8_1),
.src = true,
.state_func = bsrc_state_cfg,
+ .streams = 1,
};
static struct test_config cfg_bsrc_8_1_2 = {
.base = UTIL_IOV_INIT(BASE_LC3_8_1),
.src = true,
.state_func = bsrc_state_cfg,
+ .streams = 1,
};
static struct test_config cfg_bsrc_8_2_1 = {
.base = UTIL_IOV_INIT(BASE_LC3_8_2),
.src = true,
.state_func = bsrc_state_cfg,
+ .streams = 1,
};
static struct test_config cfg_bsrc_8_2_2 = {
.base = UTIL_IOV_INIT(BASE_LC3_8_2),
.src = true,
.state_func = bsrc_state_cfg,
+ .streams = 1,
};
static struct test_config cfg_bsrc_16_1_1 = {
.base = UTIL_IOV_INIT(BASE_LC3_16_1),
.src = true,
.state_func = bsrc_state_cfg,
+ .streams = 1,
};
static struct test_config cfg_bsrc_16_1_2 = {
.base = UTIL_IOV_INIT(BASE_LC3_16_1),
.src = true,
.state_func = bsrc_state_cfg,
+ .streams = 1,
};
static struct test_config cfg_bsrc_16_2_1 = {
.base = UTIL_IOV_INIT(BASE_LC3_16_2),
.src = true,
.state_func = bsrc_state_cfg,
+ .streams = 1,
};
static struct test_config cfg_bsrc_16_2_2 = {
.base = UTIL_IOV_INIT(BASE_LC3_16_2),
.src = true,
.state_func = bsrc_state_cfg,
+ .streams = 1,
};
static struct test_config cfg_bsrc_24_1_1 = {
.base = UTIL_IOV_INIT(BASE_LC3_24_1),
.src = true,
.state_func = bsrc_state_cfg,
+ .streams = 1,
};
static struct test_config cfg_bsrc_24_1_2 = {
.base = UTIL_IOV_INIT(BASE_LC3_24_1),
.src = true,
.state_func = bsrc_state_cfg,
+ .streams = 1,
};
static struct test_config cfg_bsrc_24_2_1 = {
.base = UTIL_IOV_INIT(BASE_LC3_24_2),
.src = true,
.state_func = bsrc_state_cfg,
+ .streams = 1,
};
static struct test_config cfg_bsrc_24_2_2 = {
.base = UTIL_IOV_INIT(BASE_LC3_24_2),
.src = true,
.state_func = bsrc_state_cfg,
+ .streams = 1,
};
static struct test_config cfg_bsrc_32_1_1 = {
.base = UTIL_IOV_INIT(BASE_LC3_32_1),
.src = true,
.state_func = bsrc_state_cfg,
+ .streams = 1,
};
static struct test_config cfg_bsrc_32_1_2 = {
.base = UTIL_IOV_INIT(BASE_LC3_32_1),
.src = true,
.state_func = bsrc_state_cfg,
+ .streams = 1,
};
static struct test_config cfg_bsrc_32_2_1 = {
.base = UTIL_IOV_INIT(BASE_LC3_32_2),
.src = true,
.state_func = bsrc_state_cfg,
+ .streams = 1,
};
static struct test_config cfg_bsrc_32_2_2 = {
.base = UTIL_IOV_INIT(BASE_LC3_32_2),
.src = true,
.state_func = bsrc_state_cfg,
+ .streams = 1,
};
static struct test_config cfg_bsrc_44_1_1 = {
.base = UTIL_IOV_INIT(BASE_LC3_44_1),
.src = true,
.state_func = bsrc_state_cfg,
+ .streams = 1,
};
static struct test_config cfg_bsrc_44_1_2 = {
.base = UTIL_IOV_INIT(BASE_LC3_44_1),
.src = true,
.state_func = bsrc_state_cfg,
+ .streams = 1,
};
static struct test_config cfg_bsrc_44_2_1 = {
.base = UTIL_IOV_INIT(BASE_LC3_44_2),
.src = true,
.state_func = bsrc_state_cfg,
+ .streams = 1,
};
static struct test_config cfg_bsrc_44_2_2 = {
.base = UTIL_IOV_INIT(BASE_LC3_44_2),
.src = true,
.state_func = bsrc_state_cfg,
+ .streams = 1,
};
static struct test_config cfg_bsrc_48_1_1 = {
.base = UTIL_IOV_INIT(BASE_LC3_48_1),
.src = true,
.state_func = bsrc_state_cfg,
+ .streams = 1,
};
static struct test_config cfg_bsrc_48_1_2 = {
.base = UTIL_IOV_INIT(BASE_LC3_48_1),
.src = true,
.state_func = bsrc_state_cfg,
+ .streams = 1,
};
static struct test_config cfg_bsrc_48_2_1 = {
.base = UTIL_IOV_INIT(BASE_LC3_48_2),
.src = true,
.state_func = bsrc_state_cfg,
+ .streams = 1,
};
static struct test_config cfg_bsrc_48_2_2 = {
.base = UTIL_IOV_INIT(BASE_LC3_48_2),
.src = true,
.state_func = bsrc_state_cfg,
+ .streams = 1,
};
static struct test_config cfg_bsrc_48_3_1 = {
.base = UTIL_IOV_INIT(BASE_LC3_48_3),
.src = true,
.state_func = bsrc_state_cfg,
+ .streams = 1,
};
static struct test_config cfg_bsrc_48_3_2 = {
.base = UTIL_IOV_INIT(BASE_LC3_48_3),
.src = true,
.state_func = bsrc_state_cfg,
+ .streams = 1,
};
static struct test_config cfg_bsrc_48_4_1 = {
.base = UTIL_IOV_INIT(BASE_LC3_48_4),
.src = true,
.state_func = bsrc_state_cfg,
+ .streams = 1,
};
static struct test_config cfg_bsrc_48_4_2 = {
.base = UTIL_IOV_INIT(BASE_LC3_48_4),
.src = true,
.state_func = bsrc_state_cfg,
+ .streams = 1,
};
static struct test_config cfg_bsrc_48_5_1 = {
.base = UTIL_IOV_INIT(BASE_LC3_48_5),
.src = true,
.state_func = bsrc_state_cfg,
+ .streams = 1,
};
static struct test_config cfg_bsrc_48_5_2 = {
.base = UTIL_IOV_INIT(BASE_LC3_48_5),
.src = true,
.state_func = bsrc_state_cfg,
+ .streams = 1,
};
static struct test_config cfg_bsrc_48_6_1 = {
.base = UTIL_IOV_INIT(BASE_LC3_48_6),
.src = true,
.state_func = bsrc_state_cfg,
+ .streams = 1,
};
static struct test_config cfg_bsrc_48_6_2 = {
.base = UTIL_IOV_INIT(BASE_LC3_48_6),
.src = true,
.state_func = bsrc_state_cfg,
+ .streams = 1,
};
#define VS_CC \
.vs = true,
.src = true,
.state_func = bsrc_state_cfg,
+ .streams = 1,
};
/* Test Purpose:
.qos = LC3_QOS_8_1_1_B,
.src = true,
.state_func = bsrc_state_estab,
+ .streams = 1,
};
/* Test Purpose:
.qos = LC3_QOS_8_1_1_B,
.src = true,
.state_func = bsrc_state_disable,
+ .streams = 1,
};
/* Test Purpose:
.qos = LC3_QOS_8_1_1_B,
.src = true,
.state_func = bsrc_state_release,
+ .streams = 1,
};
/* Test Purpose: