dsp: Update ADSP status to reflect failure
Update the adsp status to log failures during AVCS_CMDRSP_GET_FWK_VERSION callback. Set q6core_avcs_ver_info status to VER_QUERY_SUPPORTED only when there is a valid ADSP response for framework version. Change-Id: Ie2c6db2842c0b89c9d1a3807bcb49d413a639988 Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
This commit is contained in:
parent
c5ac151c8e
commit
65b7a17e0f
1 changed files with 7 additions and 3 deletions
10
dsp/q6core.c
10
dsp/q6core.c
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (c) 2012-2017, The Linux Foundation. All rights reserved.
|
||||
/* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 and
|
||||
|
@ -236,12 +236,16 @@ static int32_t aprv2_core_fn_q(struct apr_client_data *data, void *priv)
|
|||
pr_debug("%s: Received AVCS_CMDRSP_GET_FWK_VERSION\n",
|
||||
__func__);
|
||||
payload1 = data->payload;
|
||||
q6core_lcl.q6core_avcs_ver_info.status = VER_QUERY_SUPPORTED;
|
||||
q6core_lcl.avcs_fwk_ver_resp_received = 1;
|
||||
ret = parse_fwk_version_info(payload1);
|
||||
if (ret < 0)
|
||||
if (ret < 0) {
|
||||
q6core_lcl.adsp_status = ret;
|
||||
pr_err("%s: Failed to parse payload:%d\n",
|
||||
__func__, ret);
|
||||
} else {
|
||||
q6core_lcl.q6core_avcs_ver_info.status =
|
||||
VER_QUERY_SUPPORTED;
|
||||
}
|
||||
wake_up(&q6core_lcl.avcs_fwk_ver_req_wait);
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Add table
Reference in a new issue