ASoC: soc-pcm: Fix playback shutdown sequence
Change closes the frontend pcm substream followed by the backend substream to ensure correct playback shutdown sequence. CRs-fixed: 445499 Change-Id: Ifc6327e9b07ad40e5b4952b4db270d528b3b633b Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org> Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
This commit is contained in:
parent
7b3d99edbb
commit
f794212e7c
1 changed files with 3 additions and 3 deletions
|
@ -1699,14 +1699,14 @@ static int dpcm_fe_dai_shutdown(struct snd_pcm_substream *substream)
|
||||||
|
|
||||||
dpcm_set_fe_update_state(fe, stream, SND_SOC_DPCM_UPDATE_FE);
|
dpcm_set_fe_update_state(fe, stream, SND_SOC_DPCM_UPDATE_FE);
|
||||||
|
|
||||||
/* shutdown the BEs */
|
|
||||||
dpcm_be_dai_shutdown(fe, substream->stream);
|
|
||||||
|
|
||||||
dev_dbg(fe->dev, "ASoC: close FE %s\n", fe->dai_link->name);
|
dev_dbg(fe->dev, "ASoC: close FE %s\n", fe->dai_link->name);
|
||||||
|
|
||||||
/* now shutdown the frontend */
|
/* now shutdown the frontend */
|
||||||
soc_pcm_close(substream);
|
soc_pcm_close(substream);
|
||||||
|
|
||||||
|
/* shutdown the BEs */
|
||||||
|
dpcm_be_dai_shutdown(fe, substream->stream);
|
||||||
|
|
||||||
/* run the stream event for each BE */
|
/* run the stream event for each BE */
|
||||||
dpcm_dapm_stream_event(fe, stream, SND_SOC_DAPM_STREAM_STOP);
|
dpcm_dapm_stream_event(fe, stream, SND_SOC_DAPM_STREAM_STOP);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue