dsp:q6afe: Fix avcs load module failure for aptx

Fix for the avcs load module failure for ASM_MEDIA_FMT_APTX_ADAPTIVE
codec format as it uses incorrect AVS_MODULE_ID_DEPACKETIZER_COP_V2.

Added seperate condition and just call goto load_unload, so that it
uses AVS_MODULE_ID_DEPACKETIZER_COP_V1 assigned before.

Change-Id: I07176da41491cabdd3ad4df23b409d11b95a2764
Signed-off-by: Subhadra Jagadeesan <quic_c_subhja@quicinc.com>
This commit is contained in:
Subhadra Jagadeesan 2021-12-03 12:36:48 +05:30
commit f19f6fe7de

View file

@ -443,12 +443,14 @@ 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 ||
format_id == ASM_MEDIA_FMT_APTX_ADAPTIVE) {
if (format_id == ASM_MEDIA_FMT_LC3) {
pm[i]->payload->load_unload_info[0].id1 =
AVS_MODULE_ID_DEPACKETIZER_COP_V2;
goto load_unload;
}
if (format_id == ASM_MEDIA_FMT_APTX_ADAPTIVE) {
goto load_unload;
}
pm[i]->payload->load_unload_info[1].module_type =
AMDB_MODULE_TYPE_DECODER;