asoc: dsp: ipc: Reduce wait timeout to 1 second
Reduce the amount of time driver waits to get a response from ADSP. Current wait time in some cases is 5 secconds, which might cause user space crashes in Android P. So reducing the timeout to 1 second. CRs-Fixed: 2318751 Change-Id: I6b6789aa5b408659dd57f8f6b017df52d14b28aa Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
此提交包含在:
@@ -1,6 +1,6 @@
|
||||
// SPDX-License-Identifier: GPL-2.0
|
||||
/*
|
||||
* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2012-2019, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
#include <linux/fs.h>
|
||||
@@ -1136,7 +1136,7 @@ int send_rtac_asm_apr(void *buf, u32 opcode)
|
||||
/* Wait for the callback */
|
||||
result = wait_event_timeout(rtac_asm_apr_data[session_id].cmd_wait,
|
||||
(atomic_read(&rtac_asm_apr_data[session_id].cmd_state) == 0),
|
||||
5 * HZ);
|
||||
msecs_to_jiffies(TIMEOUT_MS));
|
||||
if (!result) {
|
||||
pr_err("%s: Set params timed out session = %d\n",
|
||||
__func__, session_id);
|
||||
|
新增問題並參考
封鎖使用者