From 87f926a61218391b5c85533b3fde4a88c1f189dd Mon Sep 17 00:00:00 2001 From: Vignesh Kulothungan Date: Sun, 4 Mar 2018 22:47:50 -0800 Subject: [PATCH] ASoC: dsp: Fix LPASS clock timeout issue LPASS set clock time command times out because afe callback was waking up the incorrect wait queue. Use the appropriate index instead of the global index for wake up. CRs-Fixed: 2151551 Change-Id: I2d4f4c477913a9513ffae2992ecf777f7a3ed60d Signed-off-by: Vignesh Kulothungan --- dsp/q6afe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dsp/q6afe.c b/dsp/q6afe.c index 9a6b6ada0644..0ecd3aaa16a1 100644 --- a/dsp/q6afe.c +++ b/dsp/q6afe.c @@ -1122,7 +1122,7 @@ static int q6afe_svc_set_params_v1(int index, struct mem_mapping_hdr *mem_hdr, svc_set_param->apr_hdr.pkt_size = size; svc_set_param->apr_hdr.src_port = 0; svc_set_param->apr_hdr.dest_port = 0; - svc_set_param->apr_hdr.token = IDX_GLOBAL_CFG; + svc_set_param->apr_hdr.token = index; svc_set_param->apr_hdr.opcode = AFE_SVC_CMD_SET_PARAM; svc_set_param->payload_size = packed_data_size; @@ -1169,7 +1169,7 @@ static int q6afe_svc_set_params_v2(int index, struct mem_mapping_hdr *mem_hdr, svc_set_param->apr_hdr.pkt_size = size; svc_set_param->apr_hdr.src_port = 0; svc_set_param->apr_hdr.dest_port = 0; - svc_set_param->apr_hdr.token = IDX_GLOBAL_CFG; + svc_set_param->apr_hdr.token = index; svc_set_param->apr_hdr.opcode = AFE_SVC_CMD_SET_PARAM_V2; svc_set_param->payload_size = packed_data_size;