audio: fix misc KWs in audio hal
Fix misc KW issues in audio hal.
CRs-Fixed: 1077818
Change-Id: Ide7a9f86ab5c9db0af78165b173c130a87a3e120
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index a7a8d19..3816748 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -4226,7 +4226,8 @@
ret = platform_get_ext_disp_type(adev->platform);
if (ret < 0) {
ALOGE("%s: Failed to query disp type, ret:%d", __func__, ret);
- return ret;
+ status = ret;
+ goto done;
}
platform_cache_edid(adev->platform);
} else if ((val & AUDIO_DEVICE_OUT_USB_DEVICE) ||