Merge "dsp: fix KW errors in adm_close"

This commit is contained in:
qctecmdr 2021-04-07 23:34:50 -07:00 • committed by Gerrit - the friendly Code Review server
commit b8a843ab95

View file

@ -4049,7 +4049,7 @@ int adm_close(int port_id, int perf_mode, int copp_idx)
pr_debug("%s: cma_alloc %d\n",
__func__, cal_block->cma_mem);
}
if (app_type == 0) {
if (result && app_type == 0) {
audproc_cal_info = cal_block->cal_info;
app_type = audproc_cal_info->app_type;
}
@ -4139,7 +4139,7 @@ int adm_close(int port_id, int perf_mode, int copp_idx)
pr_debug("%s: cma_alloc %d\n",
__func__, cal_block->cma_mem);
}
if (app_type == 0) {
if (result && app_type == 0) {
audproc_cal_info = cal_block->cal_info;
app_type = audproc_cal_info->app_type;
}