diff options
| author | Sudheer Papothi <spapothi@codeaurora.org> | 2016-04-11 23:46:42 +0530 |
|---|---|---|
| committer | Jeevan Shriram <jshriram@codeaurora.org> | 2016-05-06 12:06:22 -0700 |
| commit | a58a1941057f8ca6c77aef78b857715b8b22fa84 (patch) | |
| tree | 3047705a9ec22d1ca4d273ebfbf23980ea892bff | |
| parent | 4c52e408028e7407294509d2079897de3c496dcd (diff) | |
ASoC: msm8996: 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.
CRs-Fixed: 1001242
Change-Id: I2f3d1bdb3ca1ba05c014c26bbc87879f549098d8
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
| -rw-r--r-- | sound/soc/msm/msm8996.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sound/soc/msm/msm8996.c b/sound/soc/msm/msm8996.c index d6ec06aff621..e0f7b1bfabef 100644 --- a/sound/soc/msm/msm8996.c +++ b/sound/soc/msm/msm8996.c @@ -1656,7 +1656,14 @@ static int msm8996_wcd93xx_codec_up(struct snd_soc_codec *codec) do { if (!q6core_is_adsp_ready()) { - pr_err("%s: ADSP Audio isn't ready\n", __func__); + pr_err_ratelimited("%s: ADSP Audio isn't ready\n", + __func__); + /* + * 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); } else { pr_debug("%s: ADSP Audio is ready\n", __func__); adsp_ready = 1; |
