Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5e4b0e6b authored by Laxminath Kasam's avatar Laxminath Kasam Committed by Banajit Goswami
Browse files

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: default avatarLaxminath Kasam <lkasam@codeaurora.org>
parent b7e79677
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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,