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

Commit 2c6dccdf authored by Vignesh Kulothungan's avatar Vignesh Kulothungan Committed by Gerrit - the friendly Code Review server
Browse files

dsp: update parameter header type in ADM



Update parameter header type in ADM programmable channel
mixer function.

CRs-Fixed: 2209691
Change-Id: Iae0f5f832d14a111e1da75f85cf766d768b64a4b
Signed-off-by: default avatarVignesh Kulothungan <vigneshk@codeaurora.org>
parent d100585a
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -480,7 +480,7 @@ int adm_programable_channel_mixer(int port_id, int copp_idx, int session_id,
				  int channel_index)
{
	struct adm_cmd_set_pspd_mtmx_strtr_params_v5 *adm_params = NULL;
	struct param_hdr_v3 data_v5;
	struct param_hdr_v1 data_v5;
	int ret = 0, port_idx, sz = 0, param_size = 0;
	u16 *adm_pspd_params;
	u16 *ptr;
@@ -513,7 +513,7 @@ int adm_programable_channel_mixer(int port_id, int copp_idx, int session_id,

	sz = sizeof(struct adm_cmd_set_pspd_mtmx_strtr_params_v5) +
	     sizeof(struct default_chmixer_param_id_coeff) +
	     sizeof(struct param_hdr_v3) + param_size;
	     sizeof(struct param_hdr_v1) + param_size;
	pr_debug("%s: sz = %d\n", __func__, sz);
	adm_params = kzalloc(sz, GFP_KERNEL);
	if (!adm_params)
@@ -541,7 +541,7 @@ int adm_programable_channel_mixer(int port_id, int copp_idx, int session_id,
	data_v5.param_size = param_size;
	adm_params->payload_size =
		sizeof(struct default_chmixer_param_id_coeff) +
		sizeof(struct param_hdr_v3) + data_v5.param_size;
		sizeof(struct param_hdr_v1) + data_v5.param_size;
	adm_pspd_params = (u16 *)((u8 *)adm_params +
			sizeof(struct adm_cmd_set_pspd_mtmx_strtr_params_v5));
	memcpy(adm_pspd_params, &data_v5, sizeof(data_v5));