alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [alsa-devel] [PATCH] ASoC: soc-core: Set dpcm_playback / dpcm_capture
@ 2019-12-04 15:13 Daniel Baluta
  2019-12-04 23:29 ` Sridharan, Ranjani
  2019-12-25  0:09 ` [alsa-devel] Applied "ASoC: soc-core: Set dpcm_playback / dpcm_capture" to the asoc tree Mark Brown
  0 siblings, 2 replies; 5+ messages in thread
From: Daniel Baluta @ 2019-12-04 15:13 UTC (permalink / raw)
  To: broonie, lgirdwood; +Cc: linux-kernel, alsa-devel, Daniel Baluta, tiwai

When converting a normal link to a DPCM link we need
to set dpcm_playback / dpcm_capture otherwise playback/capture
streams will not be created resulting in errors like this:

[   36.039111]  sai1-wm8960-hifi: ASoC: no backend playback stream

Fixes: a655de808cbde ("ASoC: core: Allow topology to override machine driver FE DAI link config")
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
---
 sound/soc/soc-core.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 977a7bfad519..f89cf9d0860c 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -1872,6 +1872,8 @@ static void soc_check_tplg_fes(struct snd_soc_card *card)
 
 			/* convert non BE into BE */
 			dai_link->no_pcm = 1;
+			dai_link->dpcm_playback = 1;
+			dai_link->dpcm_capture = 1;
 
 			/* override any BE fixups */
 			dai_link->be_hw_params_fixup =
-- 
2.17.1

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-12-25  0:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-04 15:13 [alsa-devel] [PATCH] ASoC: soc-core: Set dpcm_playback / dpcm_capture Daniel Baluta
2019-12-04 23:29 ` Sridharan, Ranjani
2019-12-05  4:01   ` Pierre-Louis Bossart
2019-12-05  9:18     ` Daniel Baluta
2019-12-25  0:09 ` [alsa-devel] Applied "ASoC: soc-core: Set dpcm_playback / dpcm_capture" to the asoc tree Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).