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: Laxminath Kasam <lkasam@codeaurora.org>
This commit is contained in:
Laxminath Kasam 2019-09-05 10:21:12 +05:30 • committed by Gerrit - the friendly Code Review server
commit 409f3e56bb

View file

@ -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",