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

Commit 1471d51a authored by Gopikrishnaiah Anandan's avatar Gopikrishnaiah Anandan Committed by Stephen Boyd
Browse files

ASoC: Don't close shared back end dailink



Multiple front end dailinks can use a single backend dailink.
When front end dailink is closed, associated back end dailink shouldn't
be closed if it is connected to other front ends.
Change ensures that back end dai is closed after all connected front end
dailinks are closed.

Change-Id: Ie00abca8391011377a9566adb837b3e46d499a5a
Signed-off-by: default avatarGopikrishnaiah Anandan <agopik@codeaurora.org>
parent 209e5800
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -45,7 +45,10 @@ static int dpcm_dapm_stream_event(struct snd_soc_pcm_runtime *fe, int dir,

		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);
	}