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

Commit 1c987341 authored by Phani Kumar Uppalapati's avatar Phani Kumar Uppalapati
Browse files

soc-compress: Update RX shutdown sequence for compress path



Update RX shutdown sequence so that port underflow/
overflows can be avoided when slim data protocol
is changed.

Change-Id: I3428623658633ca88e279bcb5c23025214586985
Signed-off-by: default avatarPhani Kumar Uppalapati <phaniu@codeaurora.org>
parent f7ba041b
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -254,15 +254,16 @@ static int soc_compr_free_fe(struct snd_compr_stream *cstream)
	if (ret < 0)
		dev_err(fe->dev, "compressed hw_free failed %d\n", ret);

	if (stream == SNDRV_PCM_STREAM_PLAYBACK)
		dpcm_dapm_stream_event(fe, stream, SND_SOC_DAPM_STREAM_STOP);

	ret = dpcm_be_dai_shutdown(fe, stream);

	/* mark FE's links ready to prune */
	list_for_each_entry(dpcm, &fe->dpcm[stream].be_clients, list_be)
		dpcm->state = SND_SOC_DPCM_LINK_STATE_FREE;

	if (stream == SNDRV_PCM_STREAM_PLAYBACK)
		dpcm_dapm_stream_event(fe, stream, SND_SOC_DAPM_STREAM_STOP);
	else
	if (stream != SNDRV_PCM_STREAM_PLAYBACK)
		dpcm_dapm_stream_event(fe, stream, SND_SOC_DAPM_STREAM_STOP);

	fe->dpcm[stream].state = SND_SOC_DPCM_STATE_CLOSE;