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

Commit 5d983391 authored by Phani Kumar Uppalapati's avatar Phani Kumar Uppalapati
Browse files

ASoC: msm: qdsp6v2: Handle SSR for audio playback over BT usecase



Proxy afe and pcm afe instances are not reset to 0 when
adsp ssr happens during audio playback over BT. Reset these
instances to 0 to avoid playback failures after subsystem restart.

Change-Id: I9288a01fb92504eb829172403447fecefff81136
Signed-off-by: default avatarPhani Kumar Uppalapati <phaniu@codeaurora.org>
parent 001053d2
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -2874,7 +2874,14 @@ int afe_close(int port_id)
	uint16_t port_index;

	if (this_afe.apr == NULL) {
		pr_err("AFE is already closed\n");
		pr_err("%s: AFE is already closed\n", __func__);
		if ((port_id == RT_PROXY_DAI_001_RX) ||
		    (port_id == RT_PROXY_DAI_002_TX))
			pcm_afe_instance[port_id & 0x1] = 0;
		if ((port_id == RT_PROXY_DAI_002_RX) ||
		    (port_id == RT_PROXY_DAI_001_TX))
			proxy_afe_instance[port_id & 0x1] = 0;
		afe_close_done[port_id & 0x1] = true;
		ret = -EINVAL;
		goto fail_cmd;
	}