Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 774957f9 authored by Vatsal Bucha's avatar Vatsal Bucha
Browse files

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: default avatarVatsal Bucha <vbucha@codeaurora.org>
parent f91caf5f
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -416,6 +416,12 @@ static int q6afe_load_avcs_modules(int num_modules, u16 port_id,
					goto load_unload;
				}

				if (format_id == ASM_MEDIA_FMT_APTX_ADAPTIVE) {
					pm[i]->payload->load_unload_info[0].id1 =
						AVS_MODULE_ID_DEPACKETIZER_COP;
					goto load_unload;
				}

				pm[i]->payload->load_unload_info[1].module_type =
						AMDB_MODULE_TYPE_DECODER;
				pm[i]->payload->load_unload_info[1].id1 =