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

Commit 409f3e56 authored by Laxminath Kasam's avatar Laxminath Kasam Committed by Gerrit - the friendly Code Review server
Browse files

Revert "ASoC: soc-pcm: BE dai needs prepare when pause release after resume"



This reverts commit 3c3dd68c48e83aca55dc72a33260a71608510160.
In QC platforms, backend is not teardown during pause state.
Backend prepare is not needed when resume from pause state.

Change-Id: Ia9f8ab36f5061f9909d9026271bac4a2f6d3e79b
Signed-off-by: default avatarLaxminath Kasam <lkasam@codeaurora.org>
parent 0070b55b
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -2673,11 +2673,16 @@ int dpcm_be_dai_prepare(struct snd_soc_pcm_runtime *fe, int stream)
		/* is this op for this BE ? */
		if (!snd_soc_dpcm_be_can_update(fe, be, stream))
			continue;

#ifdef CONFIG_AUDIO_QGKI
		if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_PARAMS) &&
		    (be->dpcm[stream].state != SND_SOC_DPCM_STATE_STOP) &&
		    (be->dpcm[stream].state != SND_SOC_DPCM_STATE_SUSPEND))
#else
		if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_PARAMS) &&
		    (be->dpcm[stream].state != SND_SOC_DPCM_STATE_STOP) &&
		    (be->dpcm[stream].state != SND_SOC_DPCM_STATE_SUSPEND) &&
		    (be->dpcm[stream].state != SND_SOC_DPCM_STATE_PAUSED))
#endif
			continue;

		dev_dbg(be->dev, "ASoC: prepare BE %s\n",