mirror of https://github.com/thesofproject/sof.git
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:
parent
166477424a
commit
b57bfe2480
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue