diff options
author | Laxminath Kasam <lkasam@codeaurora.org> | 2017-03-10 14:15:47 +0530 |
---|---|---|
committer | Laxminath Kasam <lkasam@codeaurora.org> | 2017-03-10 14:36:05 +0530 |
commit | 533bc1ea6ba19fe2ef1890aba503905549db749f (patch) | |
tree | 11102f63c841e60a03d1caa8cf1c87d3b12c63f2 /sound/soc | |
parent | bba3dcc465ce804672df8ee7111edda5be529734 (diff) |
ASoC: msm_sdw: Fix crash after SSR on speaker+BT ringtone
Observe crash when trigger SSR while ringtone play on
speaker+BT usecase. Due to race condition, AHB timeout
happens as codec register accessed without clock enabled.
Clock enable flag is reset when SSR down event is received
to avoid any unclocked access.
CRs-Fixed: 2017852
Change-Id: I5b006c7e9cbcecac2029bb36f2271befb0debfec
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/codecs/msm_sdw/msm_sdw_cdc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/msm_sdw/msm_sdw_cdc.c b/sound/soc/codecs/msm_sdw/msm_sdw_cdc.c index 6b267122dc08..1d1dd0f61f28 100644 --- a/sound/soc/codecs/msm_sdw/msm_sdw_cdc.c +++ b/sound/soc/codecs/msm_sdw/msm_sdw_cdc.c @@ -1662,6 +1662,7 @@ static int msm_sdw_notifier_service_cb(struct notifier_block *nb, mutex_lock(&msm_sdw->codec_mutex); switch (opcode) { case AUDIO_NOTIFIER_SERVICE_DOWN: + msm_sdw->int_mclk1_enabled = false; msm_sdw->dev_up = false; for (i = 0; i < msm_sdw->nr; i++) swrm_wcd_notify(msm_sdw->sdw_ctrl_data[i].sdw_pdev, |