diff --git a/include/sound/soc.h b/include/sound/soc.h index 37ce0dfeb6e0..8921ec5d0c5a 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h @@ -842,6 +842,10 @@ struct snd_soc_dai_link { /* This DAI link can route to other DAI links at runtime (Frontend)*/ unsigned int dynamic:1; +#ifdef CONFIG_AUDIO_QGKI + /* This DAI link can be reconfigured at runtime (Backend) */ + unsigned int dynamic_be:1; +#endif /* DPCM capture and Playback support */ unsigned int dpcm_capture:1; unsigned int dpcm_playback:1; diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index a89eb9771fba..41f81b1a466c 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c @@ -4414,7 +4414,11 @@ void snd_soc_dapm_connect_dai_link_widgets(struct snd_soc_card *card) * dynamic FE links have no fixed DAI mapping. * CODEC<->CODEC links have no direct connection. */ +#ifdef CONFIG_AUDIO_QGKI + if (rtd->dai_link->dynamic || rtd->dai_link->dynamic_be) +#else if (rtd->dai_link->dynamic) +#endif continue; dapm_connect_dai_link_widgets(card, rtd);