From 7f362c71b1121990c4bb1bda5e2b6ca2bb13fced Mon Sep 17 00:00:00 2001 From: Xiaoyu Ye Date: Wed, 29 Jul 2020 02:13:21 -0700 Subject: [PATCH] asoc: use the correct APR header structure for PSPD set params Fucntion msm_qti_pp_send_chmix_cfg_cmd() uses the param_hdr_v3 as the APR header structure for PSPD MtMx set params command. This structure is the incorrect one which causes ADSP to parse the PSDP set params payload wrongly and results failure for non-LPI headset SVA. Use param_hdr_v1 instead to match the one that ADSP uses to parse the PSPD set params payload. Change-Id: Icc1d0b50193ab28e33007ca474eeebcb61e4d634 Signed-off-by: Xiaoyu Ye --- asoc/msm-qti-pp-config.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/asoc/msm-qti-pp-config.c b/asoc/msm-qti-pp-config.c index 40d481229980..b00996a3a4aa 100644 --- a/asoc/msm-qti-pp-config.c +++ b/asoc/msm-qti-pp-config.c @@ -443,7 +443,7 @@ int msm_qti_pp_send_chmix_cfg_cmd(int port_id, int copp_idx, int16_t *update_params_value16 = 0; uint32_t param_size = msm_qti_pp_get_chmix_param_size(ip_channel_cnt, op_channel_cnt); - struct param_hdr_v3 *param_hdr; + struct param_hdr_v1 *param_hdr; /* constant payload data size represents module_id, param_id, * param size, reserved field. @@ -459,9 +459,8 @@ int msm_qti_pp_send_chmix_cfg_cmd(int port_id, int copp_idx, param_ptr = params_value; - param_hdr = (struct param_hdr_v3 *) param_ptr; + param_hdr = (struct param_hdr_v1 *) param_ptr; param_hdr->module_id = MTMX_MODULE_ID_DEFAULT_CHMIXER; - param_hdr->instance_id = INSTANCE_ID_0; param_hdr->param_id = DEFAULT_CHMIXER_PARAM_ID_COEFF; param_hdr->param_size = param_size;