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

Commit 94d215cc authored by 彭东林's avatar 彭东林 Committed by Mark Brown
Browse files

ASoC: dpcm: print dai_link name of BE other than FE.



When operating the BE, we should print out the dai_link name of BE other
than FE. This is useful when analyzing the kernel log.

Signed-off-by: default avatarDonglin Peng <pengdonglin@smartisan.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent f1176614
Loading
Loading
Loading
Loading
+5 −5
Original line number Original line Diff line number Diff line
@@ -1793,7 +1793,7 @@ int dpcm_be_dai_shutdown(struct snd_soc_pcm_runtime *fe, int stream)
			continue;
			continue;


		dev_dbg(be->dev, "ASoC: close BE %s\n",
		dev_dbg(be->dev, "ASoC: close BE %s\n",
			dpcm->fe->dai_link->name);
			be->dai_link->name);


		soc_pcm_close(be_substream);
		soc_pcm_close(be_substream);
		be_substream->runtime = NULL;
		be_substream->runtime = NULL;
@@ -1859,7 +1859,7 @@ int dpcm_be_dai_hw_free(struct snd_soc_pcm_runtime *fe, int stream)
			continue;
			continue;


		dev_dbg(be->dev, "ASoC: hw_free BE %s\n",
		dev_dbg(be->dev, "ASoC: hw_free BE %s\n",
			dpcm->fe->dai_link->name);
			be->dai_link->name);


		soc_pcm_hw_free(be_substream);
		soc_pcm_hw_free(be_substream);


@@ -1937,7 +1937,7 @@ int dpcm_be_dai_hw_params(struct snd_soc_pcm_runtime *fe, int stream)
			continue;
			continue;


		dev_dbg(be->dev, "ASoC: hw_params BE %s\n",
		dev_dbg(be->dev, "ASoC: hw_params BE %s\n",
			dpcm->fe->dai_link->name);
			be->dai_link->name);


		ret = soc_pcm_hw_params(be_substream, &dpcm->hw_params);
		ret = soc_pcm_hw_params(be_substream, &dpcm->hw_params);
		if (ret < 0) {
		if (ret < 0) {
@@ -2017,7 +2017,7 @@ static int dpcm_do_trigger(struct snd_soc_dpcm *dpcm,
	int ret;
	int ret;


	dev_dbg(dpcm->be->dev, "ASoC: trigger BE %s cmd %d\n",
	dev_dbg(dpcm->be->dev, "ASoC: trigger BE %s cmd %d\n",
			dpcm->fe->dai_link->name, cmd);
			dpcm->be->dai_link->name, cmd);


	ret = soc_pcm_trigger(substream, cmd);
	ret = soc_pcm_trigger(substream, cmd);
	if (ret < 0)
	if (ret < 0)
@@ -2232,7 +2232,7 @@ int dpcm_be_dai_prepare(struct snd_soc_pcm_runtime *fe, int stream)
			continue;
			continue;


		dev_dbg(be->dev, "ASoC: prepare BE %s\n",
		dev_dbg(be->dev, "ASoC: prepare BE %s\n",
			dpcm->fe->dai_link->name);
			be->dai_link->name);


		ret = soc_pcm_prepare(be_substream);
		ret = soc_pcm_prepare(be_substream);
		if (ret < 0) {
		if (ret < 0) {