mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
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 <lkasam@codeaurora.org>
This commit is contained in:
parent
f57dd4262b
commit
5478daae29
1 changed files with 2 additions and 0 deletions
|
|
@ -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__,
|
||||
|
|
|
|||
Loading…
Reference in a new issue