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

Commit 78ce93b6 authored by Phani Kumar Uppalapati's avatar Phani Kumar Uppalapati
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 first
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.

Change-Id: I180515f2ad55d1f446ad7eb1ad0bd71809db94bd
Signed-off-by: default avatarPhani Kumar Uppalapati <phaniu@codeaurora.org>
parent 6f524acc
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -3448,6 +3448,9 @@ static void dapm_connect_dai_link_widgets(struct snd_soc_card *card,
			snd_soc_dai_is_dummy(cpu_dai))
			continue;

		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;