From 47b281c130bf6ff9f4f744c56c78e3ab983e0751 Mon Sep 17 00:00:00 2001 From: Jonathan Aillet Date: Thu, 17 Oct 2019 11:23:28 +0200 Subject: Prevent binder exit when hal initialization fails No longer returns an error in hal api initialization function when an non-blocking error happens (e.g. card-sound not found). This will prevent application framework binder exit. BUG-AGL: SPEC-2906 Change-Id: I0ef5e5f624fc0021771f40f37ce5663510a7e03e Signed-off-by: Jonathan Aillet --- lib/4a-hal-utilities/4a-hal-utilities-data.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib/4a-hal-utilities') diff --git a/lib/4a-hal-utilities/4a-hal-utilities-data.h b/lib/4a-hal-utilities/4a-hal-utilities-data.h index 5b25f58..a2b28dd 100644 --- a/lib/4a-hal-utilities/4a-hal-utilities-data.h +++ b/lib/4a-hal-utilities/4a-hal-utilities-data.h @@ -42,9 +42,10 @@ enum LinkedListType { // Enum for hal status enum HalStatus { - HAL_STATUS_UNAVAILABLE = 0, - HAL_STATUS_AVAILABLE = 1, - HAL_STATUS_READY = 2 + HAL_STATUS_INIT_FAILED = 0, + HAL_STATUS_UNAVAILABLE = 1, + HAL_STATUS_AVAILABLE = 2, + HAL_STATUS_READY = 3 }; // Enum for probed devices (dependencies) class -- cgit 1.2.3-korg