init: abort start up upon platform boot failure

platform_boot_complete() informs the host, that the SOF
initialisation has completed successfully. If this fails, the host
will anyway be unable to use the sound card, so we can just panic in
such a case.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
This commit is contained in:
Guennadi Liakhovetski 2019-01-16 12:55:20 +01:00 committed by Liam Girdwood
parent 166477424a
commit b57bfe2480
1 changed files with 4 additions and 1 deletions

View File

@ -54,6 +54,7 @@ struct audio_data {
int do_task_master_core(struct sof *sof)
{
int ret;
#ifdef STATIC_PIPE
struct audio_data pdata;
#endif
@ -77,7 +78,9 @@ int do_task_master_core(struct sof *sof)
panic(SOF_IPC_PANIC_TASK);
#endif
/* let host know DSP boot is complete */
platform_boot_complete(0);
ret = platform_boot_complete(0);
if (ret < 0)
return ret;
/* main audio IPC processing loop */
while (1) {