mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 06:09:23 -04:00
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: Vignesh Kulothungan <vigneshk@codeaurora.org>
This commit is contained in:
parent
d100585a8a
commit
2c6dccdf91
1 changed files with 3 additions and 3 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in a new issue