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

Commit 3de89dd0 authored by Phani Kumar Uppalapati's avatar Phani Kumar Uppalapati Committed by Gerrit - the friendly Code Review server
Browse files

ASoC: dapm: Avoid static route b/w cpu and codec dai



Currently ASoC core creates a static route b/w
playback/capture widgets of cpu and codec dai
if they are part of the same dai-link. However
this will cause codec path to get powered up
followed by the backend dai start during device
switch use-case where the front-end is not closed,
leading to audio playback failure if either bit-width
or sample rate is different.

CRs-Fixed: 1029118
Change-Id: I180515f2ad55d1f446ad7eb1ad0bd71809db94bd
Signed-off-by: default avatarPhani Kumar Uppalapati <phaniu@codeaurora.org>
Signed-off-by: default avatarMeng Wang <mwang@codeaurora.org>
parent e8779d67
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -4063,6 +4063,9 @@ static void dapm_connect_dai_link_widgets(struct snd_soc_card *card,
	for (i = 0; i < rtd->num_codecs; i++) {
		struct snd_soc_dai *codec_dai = rtd->codec_dais[i];

		if (!cpu_dai->component->codec)
			continue;

		/* connect BE DAI playback if widgets are valid */
		if (codec_dai->playback_widget && cpu_dai->playback_widget) {
			source = cpu_dai->playback_widget;