diff options
-rw-r--r-- | sound/soc/soc-pcm.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c index 002311afdeaa..84357193c044 100644 --- a/sound/soc/soc-pcm.c +++ b/sound/soc/soc-pcm.c | |||
@@ -1641,6 +1641,10 @@ int dpcm_be_dai_hw_free(struct snd_soc_pcm_runtime *fe, int stream) | |||
1641 | if (!snd_soc_dpcm_can_be_free_stop(fe, be, stream)) | 1641 | if (!snd_soc_dpcm_can_be_free_stop(fe, be, stream)) |
1642 | continue; | 1642 | continue; |
1643 | 1643 | ||
1644 | /* do not free hw if this BE is used by other FE */ | ||
1645 | if (be->dpcm[stream].users > 1) | ||
1646 | continue; | ||
1647 | |||
1644 | if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_PARAMS) && | 1648 | if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_PARAMS) && |
1645 | (be->dpcm[stream].state != SND_SOC_DPCM_STATE_PREPARE) && | 1649 | (be->dpcm[stream].state != SND_SOC_DPCM_STATE_PREPARE) && |
1646 | (be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_FREE) && | 1650 | (be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_FREE) && |