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

Commit f19f6fe7 authored by Subhadra Jagadeesan's avatar Subhadra Jagadeesan
Browse files

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: default avatarSubhadra Jagadeesan <quic_c_subhja@quicinc.com>
parent 22d9a6b6
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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;