Merge "dsp:q6afe: Resolve crash in q6afe_get_avcs_modules"

This commit is contained in:
qctecmdr 2021-09-07 05:24:58 -07:00 • committed by Gerrit - the friendly Code Review server
commit 8ef759651e

View file

@ -443,9 +443,11 @@ static int q6afe_load_avcs_modules(int num_modules, u16 port_id,
AVS_MODULE_ID_DEPACKETIZER_COP;
goto load_unload;
}
if (format_id == ASM_MEDIA_FMT_LC3) {
if (format_id == ASM_MEDIA_FMT_LC3 ||
format_id == ASM_MEDIA_FMT_APTX_ADAPTIVE) {
pm[i]->payload->load_unload_info[0].id1 =
AVS_MODULE_ID_DEPACKETIZER_COP_V2;
goto load_unload;
}
pm[i]->payload->load_unload_info[1].module_type =