Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c7d47163 authored by Xiaoyu Ye's avatar Xiaoyu Ye Committed by Gerrit - the friendly Code Review server
Browse files

dsp: adm: increase the length of timeout in adm_open to 2 seconds



Currently, the length of timeout in adm_open for waiting response
from ADSP is 1 second. To prevent unnecessary timeout that results
adm_open failure, increase the length of timeout to 2 seconds.

Change-Id: I670f44964538c3176130c4bb5f8b7a3b3eaf8d8b
Signed-off-by: default avatarXiaoyu Ye <benyxy@codeaurora.org>
parent 2c1976f7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3372,7 +3372,7 @@ int adm_open(int port_id, int path, int rate, int channel_mode, int topology,
		ret = wait_event_timeout(this_adm.copp.wait[port_idx][copp_idx],
			atomic_read(&this_adm.copp.stat
			[port_idx][copp_idx]) >= 0,
			msecs_to_jiffies(TIMEOUT_MS));
			msecs_to_jiffies(2 * TIMEOUT_MS));
		if (!ret) {
			pr_err("%s: ADM open timedout for port_id: 0x%x for [0x%x]\n",
						__func__, tmp_port, port_id);