Bluetooth: Audio: Add ISO test parameters to the BAP API
Add support for the ISO test parameters in the BAP API. Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
parent
0521ffd5a3
commit
84c01bb527
8 changed files with 153 additions and 5 deletions
|
@ -289,6 +289,9 @@ static int broadcast_source_setup_stream(uint8_t index, struct bt_bap_stream *st
|
|||
|
||||
bt_audio_codec_qos_to_iso_qos(iso->chan.qos->tx, qos);
|
||||
bt_audio_codec_cfg_to_iso_path(iso->chan.qos->tx->path, codec_cfg);
|
||||
#if defined(CONFIG_BT_ISO_TEST_PARAMS)
|
||||
iso->chan.qos->num_subevents = qos->num_subevents;
|
||||
#endif /* CONFIG_BT_ISO_TEST_PARAMS */
|
||||
|
||||
bt_bap_iso_unref(iso);
|
||||
|
||||
|
@ -725,6 +728,11 @@ int bt_bap_broadcast_source_create(struct bt_bap_broadcast_source_param *param,
|
|||
broadcast_source_set_state(source, BT_BAP_EP_STATE_QOS_CONFIGURED);
|
||||
source->qos = qos;
|
||||
source->packing = param->packing;
|
||||
#if defined(CONFIG_BT_ISO_TEST_PARAMS)
|
||||
source->irc = param->irc;
|
||||
source->pto = param->pto;
|
||||
source->iso_interval = param->iso_interval;
|
||||
#endif /* CONFIG_BT_ISO_TEST_PARAMS */
|
||||
|
||||
source->encryption = param->encryption;
|
||||
if (source->encryption) {
|
||||
|
@ -980,6 +988,11 @@ int bt_bap_broadcast_source_start(struct bt_bap_broadcast_source *source, struct
|
|||
(void)memcpy(param.bcode, source->broadcast_code,
|
||||
sizeof(param.bcode));
|
||||
}
|
||||
#if defined(CONFIG_BT_ISO_TEST_PARAMS)
|
||||
param.irc = source->irc;
|
||||
param.pto = source->pto;
|
||||
param.iso_interval = source->iso_interval;
|
||||
#endif /* CONFIG_BT_ISO_TEST_PARAMS */
|
||||
|
||||
/* Set the enabling state early in case that the BIS is connected before we can manage to
|
||||
* set it afterwards
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue