diff options
| author | Shiv Maliyappanahalli <smaliyap@codeaurora.org> | 2016-07-06 12:19:55 -0700 |
|---|---|---|
| committer | Kyle Yan <kyan@codeaurora.org> | 2016-07-11 18:56:21 -0700 |
| commit | 8a547c50fe278a12d776e4737e9776c8a1d2df18 (patch) | |
| tree | a6539dd4e503d042931c7b40bfb735afba48fb8b | |
| parent | 6746aed41186eadc57ae8583ace48305b9da3df5 (diff) | |
msmcobalt: Add delay to check ADSP state during SSR
During SSR(subsystem restart), add a delay when ADSP state
is not yet ready. This will avoid excessive logging when
ADSP state is not ready.
Change-Id: I7e127d97cdd22409d4e70788a7cf2013593d3bfe
Signed-off-by: Shiv Maliyappanahalli <smaliyap@codeaurora.org>
| -rw-r--r-- | sound/soc/msm/msmcobalt.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sound/soc/msm/msmcobalt.c b/sound/soc/msm/msmcobalt.c index 68bde8b9bb6e..c835fc3647d2 100644 --- a/sound/soc/msm/msmcobalt.c +++ b/sound/soc/msm/msmcobalt.c @@ -1393,6 +1393,13 @@ static int msm_adsp_power_up_config(struct snd_soc_codec *codec) pr_debug("%s: ADSP Audio is ready\n", __func__); adsp_ready = 1; break; + } else { + /* + * ADSP will be coming up after subsystem restart and + * it might not be fully up when the control reaches + * here. So, wait for 50msec before checking ADSP state + */ + msleep(50); } } while (time_after(timeout, jiffies)); |
