ASoC: soc-core: Set dpcm_playback / dpcm_capture
PATCH 1/1 ASoC: soc-core: Set dpcm_playback / dpcm_capture
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
--- sound/soc/soc-core.c | 2 ++ 1 file changed, 2 insertions(+)
sound/soc/soc-core.c +2 -0
@@ -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 =
Signature · 1 line
2.17.1
Quoted 18 lines · Daniel Baluta
When converting a normal link to a DPCM link we need to set
dpcm_playback/dpcm_captureotherwise playback/capture streams will not be created resulting in errors like this:[ 36.039111] sai1-wm8960-hifi: ASoC: no backend playback streamFixes a655de808cbde ("ASoC: core: Allow topology to override machinedriver FE DAI link config")
Signed-off-by Daniel Baluta <[email protected]>--- sound/soc/soc-core.c | 2 ++ 1 file changed, 2 insertions(+)sound/soc/soc-core.c +0
-0
sound/soc/soc-core.c static void soc_check_tplg_fes(struct snd_soc_card · line 1878
Quoted 7 lines
sound/soc/soc-core.c +2
-0@@ -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 ;
Hi Daniel,
Typically, for Intel platforms, this information comes from the machine driver and there are some DAI links that have either playback or capture set. But this change would set both for all DAI links.
Not sure if this is the right thing to do.
Thanks,
Ranjani
Quoted 11 lines
sound/soc/soc-core.c +0
-0/* override any BE fixups */ dai_link->be_hw_params_fixup =--
2.17.1_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Quoted 29 lines · Ranjani
Quoted 18 lines · Daniel Baluta
When converting a normal link to a DPCM link we need to set
dpcm_playback/dpcm_captureotherwise playback/capture streams will not be created resulting in errors like this:[ 36.039111] sai1-wm8960-hifi: ASoC: no backend playback streamFixes a655de808cbde ("ASoC: core: Allow topology to override machinedriver FE DAI link config")
Signed-off-by Daniel Baluta <[email protected]>--- sound/soc/soc-core.c | 2 ++ 1 file changed, 2 insertions(+)sound/soc/soc-core.c +0
-0sound/soc/soc-core.c static void soc_check_tplg_fes(struct snd_soc_card · line 1878
Quoted 7 lines
sound/soc/soc-core.c +2
-0@@ -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 ;Hi Daniel,
Quoted 4 lines
Typically, for Intel platforms, this information comes from the machine driver and there are some DAI links that have either playback or capture set. But this change would set both for all DAI links.
Not sure if this is the right thing to do.
I am with Ranjani, I don't get why we'd set the full-duplex mode by default. but to be honest I never quite understood what this code is supposed to do...
_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Quoted 33 lines · Pierre-Louis Bossart
Quoted 29 lines · Ranjani
Quoted 18 lines · Daniel Baluta
When converting a normal link to a DPCM link we need to set
dpcm_playback/dpcm_captureotherwise playback/capture streams will not be created resulting in errors like this:[ 36.039111] sai1-wm8960-hifi: ASoC: no backend playback streamFixes a655de808cbde ("ASoC: core: Allow topology to override machinedriver FE DAI link config")
Signed-off-by Daniel Baluta <[email protected]>--- sound/soc/soc-core.c | 2 ++ 1 file changed, 2 insertions(+)sound/soc/soc-core.c +0
-0sound/soc/soc-core.c static void soc_check_tplg_fes(struct snd_soc_card · line 1878
Quoted 7 lines
sound/soc/soc-core.c +2
-0@@ -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 ;Hi Daniel,
Quoted 8 lines
Quoted 4 lines
Typically, for Intel platforms, this information comes from the machine driver and there are some DAI links that have either playback or capture set. But this change would set both for all DAI links.
Not sure if this is the right thing to do.I am with Ranjani, I don't get why we'd set the full-duplex mode by default. but to be honest I never quite understood what this code is supposed to do...
Indeed I need to figure out when exactly to enable playback/capture. I was hoping
Liam will chime in, as this was in the original patch he sent months ago.
Mark Brown
maintainerApplied "ASoC: soc-core: Set dpcm_playback / dpcm_capture" to the asoc tree
In reply to Daniel BalutaThe patch
ASoC: soc-core: Set dpcm_playback / dpcm_capture
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
From 218fe9b7ec7f32c10a07539365488d80af7b0084 Mon Sep 17 00:00:00 2001
From: Daniel Baluta <[email protected]>
Date: Wed, 4 Dec 2019 17:13:33 +0200
Subject: [PATCH] ASoC: soc-core: Set dpcm_playback / dpcm_capture
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
--- sound/soc/soc-core.c | 2 ++ 1 file changed, 2 insertions(+)
sound/soc/soc-core.c +2 -0
@@ -1871,6 +1871,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 =
Signature · 1 line
2.20.1