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

Commit a09e5969 authored by Laxminath Kasam's avatar Laxminath Kasam
Browse files

ASoC: msm: qdsp6v2: fix afe close failure at BE



In hwfree implementation, status_mask is cleared
which will avoid afe close in shutdown API. Instead
we need to clear hwfree_status to know hwfree is called.

Change-Id: I92d9142c437920b1b6e48c9b39cd6a2fb58872df
Signed-off-by: default avatarLaxminath Kasam <lkasam@codeaurora.org>
parent 2b979b24
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2296,7 +2296,7 @@ static int msm_dai_q6_mi2s_hw_free(struct snd_pcm_substream *substream,
		 &mi2s_dai_data->tx_dai.mi2s_dai_data);

	if (test_bit(STATUS_PORT_STARTED, dai_data->hwfree_status)) {
		clear_bit(STATUS_PORT_STARTED, dai_data->status_mask);
		clear_bit(STATUS_PORT_STARTED, dai_data->hwfree_status);
		dev_dbg(dai->dev, "%s: clear hwfree_status\n", __func__);
	}
	return 0;