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:

committed by
Gerrit - the friendly Code Review server

parent
f57dd4262b
commit
5478daae29
@@ -1795,6 +1795,8 @@ static int q6core_is_avs_up(int32_t *avs_state)
|
|||||||
timeout = jiffies +
|
timeout = jiffies +
|
||||||
msecs_to_jiffies(ADSP_STATE_READY_TIMEOUT_MS);
|
msecs_to_jiffies(ADSP_STATE_READY_TIMEOUT_MS);
|
||||||
|
|
||||||
|
/* sleep for 100ms before querying AVS up */
|
||||||
|
msleep(100);
|
||||||
do {
|
do {
|
||||||
adsp_ready = q6core_is_adsp_ready();
|
adsp_ready = q6core_is_adsp_ready();
|
||||||
pr_debug("%s: ADSP Audio is %s\n", __func__,
|
pr_debug("%s: ADSP Audio is %s\n", __func__,
|
||||||
|
Reference in New Issue
Block a user