From 97f90ea914913fa6c2c0ba6e27667a3604dbf732 Mon Sep 17 00:00:00 2001 From: Soumya Managoli Date: Tue, 28 Apr 2020 09:16:55 +0530 Subject: ASoC: dsp: Synchronise adm and rtac commands Race condition observed while processing the set_pp_params command responses sent back to back by adsp for commands sent from adm and rtac. Handle this by synchronising the get/set pp_params command in both the drivers. Change-Id: Id89d98217dc5cad3703e5d545ddee21cb145c874 Signed-off-by: Soumya Managoli --- include/dsp/q6adm-v2.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/dsp/q6adm-v2.h b/include/dsp/q6adm-v2.h index 644855d0..20b2450b 100644 --- a/include/dsp/q6adm-v2.h +++ b/include/dsp/q6adm-v2.h @@ -229,4 +229,6 @@ void msm_dts_srs_acquire_lock(void); void msm_dts_srs_release_lock(void); void adm_set_native_mode(int mode); int adm_set_ffecns_freeze_event(bool ffecns_freeze_event); +int adm_apr_send_pkt(void *data, wait_queue_head_t *wait, + int port_idx, int copp_idx); #endif /* __Q6_ADM_V2_H__ */ -- cgit v1.2.3 From d0adc6a072415e18524238c02685a29a59363577 Mon Sep 17 00:00:00 2001 From: Soumya Managoli Date: Wed, 24 Feb 2021 19:33:53 +0530 Subject: ASoC: dsp: Synchronise adm commands Race condition observed while processing the get/set_pp_params and adm_close command. Synchronise adm open, close and get/set_pp_params by sending the apr cmd pkt using the same lock. Change-Id: I9a1ebcedc91f78f3940846688f8569ec9088e1e7 Signed-off-by: Soumya Managoli --- include/dsp/q6adm-v2.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/dsp/q6adm-v2.h b/include/dsp/q6adm-v2.h index 20b2450b..84fc1e01 100644 --- a/include/dsp/q6adm-v2.h +++ b/include/dsp/q6adm-v2.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */ /* - * Copyright (c) 2012-2020, The Linux Foundation. All rights reserved. + * Copyright (c) 2012-2021, The Linux Foundation. All rights reserved. */ #ifndef __Q6_ADM_V2_H__ #define __Q6_ADM_V2_H__ @@ -230,5 +230,5 @@ void msm_dts_srs_release_lock(void); void adm_set_native_mode(int mode); int adm_set_ffecns_freeze_event(bool ffecns_freeze_event); int adm_apr_send_pkt(void *data, wait_queue_head_t *wait, - int port_idx, int copp_idx); + int port_idx, int copp_idx, int opcode); #endif /* __Q6_ADM_V2_H__ */ -- cgit v1.2.3