]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
ASoC: SOF: topology: set trigger order for FE DAI link
authorRanjani Sridharan <ranjani.sridharan@linux.intel.com>
Mon, 4 Nov 2019 22:48:12 +0000 (14:48 -0800)
committerSeth Forshee <seth.forshee@canonical.com>
Mon, 6 Jan 2020 14:16:11 +0000 (08:16 -0600)
BugLink: https://bugs.launchpad.net/bugs/1858428
[ Upstream commit 5eee2b3f60065a2530d13f28e771be48b989eb4c ]

Set trigger order for FE DAI links to SND_SOC_DPCM_TRIGGER_POST
to trigger the BE DAI's before the FE DAI's. This prevents the
xruns seen on playback pipelines using the link DMA.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20191104224812.3393-3-ranjani.sridharan@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
sound/soc/sof/topology.c

index 4452594c2e17adfa3f191e26bd4666c160524c20..fa299e0781561968e25339ef0db2569a04ba2b9a 100644 (file)
@@ -2828,6 +2828,10 @@ static int sof_link_load(struct snd_soc_component *scomp, int index,
        if (!link->no_pcm) {
                link->nonatomic = true;
 
+               /* set trigger order */
+               link->trigger[0] = SND_SOC_DPCM_TRIGGER_POST;
+               link->trigger[1] = SND_SOC_DPCM_TRIGGER_POST;
+
                /* nothing more to do for FE dai links */
                return 0;
        }