commit | d3f8aae305d0439c31109d46255202a7aaa0f955 | [log] [tgz] |
---|---|---|
author | Kyle Yan <kyan@quicinc.com> | Tue Jan 10 10:11:58 2017 -0800 |
committer | Gerrit - the friendly Code Review server <code-review@localhost> | Tue Jan 10 10:11:58 2017 -0800 |
tree | c420a716d29e69710ecf91eee53d8c223a9c5cc0 | |
parent | 268fd5e645aab6d0d52f25de758c22e7afe3961c [diff] | |
parent | a594577aef27a6a423feeeb17324f95bb5db8a4b [diff] |
Merge "ASoC: Don't close shared back end dailink" into msm-4.8
diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c index 21c3ef0..ab07789 100644 --- a/sound/soc/soc-pcm.c +++ b/sound/soc/soc-pcm.c
@@ -180,7 +180,11 @@ dev_dbg(be->dev, "ASoC: BE %s event %d dir %d\n", be->dai_link->name, event, dir); - + if ((event == SND_SOC_DAPM_STREAM_STOP) && + (be->dpcm[dir].users >= 1)) { + pr_debug("%s Don't close BE\n", __func__); + continue; + } snd_soc_dapm_stream_event(be, dir, event); }