mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 12:25:00 -04:00
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:
parent
22d9a6b6d8
commit
f19f6fe7de
1 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue