mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 12:25:00 -04:00
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:
parent
0070b55b6b
commit
409f3e56bb
1 changed files with 6 additions and 1 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue