ASoC: SOF: topology: set trigger order for FE DAI link

[ Upstream commit 5eee2b3f60 ]

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>
This commit is contained in:
Ranjani Sridharan 2019-11-04 14:48:12 -08:00 committed by Greg Kroah-Hartman
parent 3667802808
commit fc766aec02

View file

@ -2828,6 +2828,10 @@ static int sof_link_load(struct snd_soc_component *scomp, int index,
if (!link->no_pcm) { if (!link->no_pcm) {
link->nonatomic = true; 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 */ /* nothing more to do for FE dai links */
return 0; return 0;
} }