mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
dsp:q6afe: Resolve crash in q6afe_get_avcs_modules
Crash is happening in q6afe_get_avcs_modules in APTX-Adaptive case. Check for format_id as aptx_adaptive or lc3 to resolve crash. Change-Id: I3e47bf38010a20df746455e35e316fa2103bc04a Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
This commit is contained in:
parent
9c87b94c10
commit
732b5ca86a
1 changed files with 3 additions and 1 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Reference in a new issue