]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ASoC: soc-core: Set dpcm_playback / dpcm_capture
authorDaniel Baluta <daniel.baluta@nxp.com>
Wed, 4 Dec 2019 15:13:33 +0000 (17:13 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 24 Dec 2019 23:56:14 +0000 (23:56 +0000)
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>
Link: https://lore.kernel.org/r/20191204151333.26625-1-daniel.baluta@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-core.c

index 1c84ff1a5bf96b09e303ec08d5d4c6e1e565aad9..6050c4c62fe8a9641a50f80e624303b8b68be0e9 100644 (file)
@@ -1871,6 +1871,8 @@ match:
 
                        /* 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 =