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

Commit 230f3f1f authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "soc-compress: Update RX shutdown sequence for compress path"

parents 146f9079 1c987341
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;