feat(ble_audio): Miscellaneous update for verifying with PTS cases

This commit is contained in:
Liu Linyan
2026-06-29 20:14:37 +08:00
parent 43e6da1796
commit de84e7398b
80 changed files with 2751 additions and 422 deletions

View File

@@ -461,7 +461,7 @@ int example_audio_tx_scheduler_start(example_audio_tx_scheduler_t *scheduler,
assert(scheduler);
assert(period_us > 0);
return k_work_schedule_periodic(&scheduler->timer, (uint32_t)(period_us / 1000));
return k_work_schedule_periodic_us(&scheduler->timer, period_us);
}
int example_audio_tx_scheduler_stop(example_audio_tx_scheduler_t *scheduler)

View File

@@ -225,10 +225,9 @@ void bap_broadcast_pa_sync(esp_ble_audio_gap_app_event_t *event)
{
int err;
pa_syncing = false; /* Mark PA sync as completed */
if (event->pa_sync.status) {
ESP_LOGE(TAG, "PA sync failed, status %d", event->pa_sync.status);
pa_syncing = false; /* attempt failed; let a fresh scan report retry */
return;
}
@@ -260,6 +259,7 @@ void bap_broadcast_pa_lost(esp_ble_audio_gap_app_event_t *event)
sync_handle, event->pa_sync_lost.reason);
sync_handle = PA_SYNC_HANDLE_INIT;
pa_syncing = false; /* allow the rescan below to sync a fresh broadcaster */
if (broadcast_sink != NULL) {
esp_ble_audio_bap_broadcast_sink_delete(broadcast_sink);

View File

@@ -67,7 +67,7 @@ int example_iso_tx_scheduler_start(example_iso_tx_scheduler_t *scheduler,
assert(scheduler);
assert(period_us > 0);
return k_work_schedule_periodic(&scheduler->timer, (uint32_t)(period_us / 1000));
return k_work_schedule_periodic_us(&scheduler->timer, period_us);
}
int example_iso_tx_scheduler_stop(example_iso_tx_scheduler_t *scheduler)