Browse Source

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 years ago
parent
commit
5478daae29
1 changed files with 2 additions and 0 deletions
  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__,