Bluetooth: Audio: Rename bt_codec to bt_audio_codec_{cap, conf, data}
Rename the bt_codec struct to bt_audio_codec_conf or to the new struct bt_audio_codec_cap. Rename the bt_codec_data to bt_audio_codec_data. The purpose of this is to split the codec specific configuration and codec capabilities into seperate structs, as they do not reflect the same values, or used for the same purpose. This commit depends on the preset macros workings on either type of struct (for now), but will be modified in future updates. Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
parent
33b116407b
commit
69f7fd9cb2
58 changed files with 1861 additions and 1668 deletions
|
@ -871,9 +871,9 @@ static int cmd_bap_broadcast_assistant_add_pa_sync(const struct shell *sh,
|
|||
|
||||
subgroup_param->bis_sync = subgroup_bis_indexes & bis_bitfield_req;
|
||||
|
||||
#if CONFIG_BT_CODEC_MAX_METADATA_COUNT > 0
|
||||
metadata_len = bt_audio_codec_data_to_buf(subgroup->codec.meta,
|
||||
subgroup->codec.meta_count,
|
||||
#if CONFIG_BT_AUDIO_CODEC_CFG_MAX_METADATA_COUNT > 0
|
||||
metadata_len = bt_audio_codec_data_to_buf(subgroup->codec_cfg.meta,
|
||||
subgroup->codec_cfg.meta_count,
|
||||
subgroup_param->metadata,
|
||||
sizeof(subgroup_param->metadata));
|
||||
if (metadata_len < 0) {
|
||||
|
@ -881,7 +881,7 @@ static int cmd_bap_broadcast_assistant_add_pa_sync(const struct shell *sh,
|
|||
}
|
||||
#else
|
||||
metadata_len = 0U;
|
||||
#endif /* CONFIG_BT_CODEC_MAX_METADATA_COUNT > 0 */
|
||||
#endif /* CONFIG_BT_AUDIO_CODEC_CFG_MAX_METADATA_COUNT > 0 */
|
||||
subgroup_param->metadata_len = metadata_len;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue