浏览代码

dsp: sleep before sending q6core ready query

After PDR, audio avs services still are initializing state.
Avoid sending q6core command after PD up event immediately,
wait for sometime before sending the q6core ready command.

Change-Id: Ibee38db9ee1a30b7852da3d08cac7b0d06371733
Signed-off-by: Laxminath Kasam <[email protected]>
Laxminath Kasam 6 年之前
父节点
当前提交
5478daae29
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      dsp/q6core.c

+ 2 - 0
dsp/q6core.c

@@ -1795,6 +1795,8 @@ static int q6core_is_avs_up(int32_t *avs_state)
 	timeout = jiffies +
 		msecs_to_jiffies(ADSP_STATE_READY_TIMEOUT_MS);
 
+	/* sleep for 100ms before querying AVS up */
+	msleep(100);
 	do {
 		adsp_ready = q6core_is_adsp_ready();
 		pr_debug("%s: ADSP Audio is %s\n", __func__,