tests: hda_log: cav15 timeout fixes

Fixes issues caused by the hda_log test for cavs15 caused by ipc
messaging issues. Wait for the ipc message to complete immediately after
sending it.

Signed-off-by: Tom Burdick <thomas.burdick@intel.com>
This commit is contained in:
Tom Burdick 2022-05-16 12:44:25 -05:00 committed by Maureen Helm
parent 799ec29420
commit 012836aeef

View file

@ -26,16 +26,19 @@ void hda_log_hook(uint32_t written)
*/
bool done = false;
/* Previous message may not be done yet, wait for that */
do {
done = cavs_ipc_is_complete(CAVS_HOST_DEV);
} while (!done);
/* Now send the next one */
do {
done = cavs_ipc_send_message(CAVS_HOST_DEV, IPCCMD_HDA_PRINT,
(written << 8) | CHANNEL);
} while (!done);
/* Previous message may not be done yet, wait for that */
do {
done = cavs_ipc_is_complete(CAVS_HOST_DEV);
} while (!done);
}