ASoC: topology: configure more on DAI & DAI links
Subsystems (3)
cover ASoC: topology: configure more on DAI & DAI links
From: Mengdong Lin <[email protected]>
There is no ABI change in this series.
Two patches are small changes in ASoC core, to allow topology to further configure DAI and DAI links.
In the other two patches, topology will configure more on FE DAI links.
Guneshwor Singh (1):
ASoC: topology: Set CPU DAI name and enable DPCM by default for FE
link
Mengdong Lin (3):
ASoC: Export snd_soc_find_dai()
ASoC: Change DAI link's be_id to a generic id
ASoC: topology: Set the link ID when creating a FE DAI link
include/sound/soc.h | 5 ++++- include/uapi/sound/asoc.h | 2 +- sound/soc/intel/boards/broadwell.c | 2 +- sound/soc/intel/boards/bytcr_rt5640.c | 2 +- sound/soc/intel/boards/bytcr_rt5651.c | 2 +- sound/soc/intel/boards/cht_bsw_max98090_ti.c | 2 +- sound/soc/intel/boards/cht_bsw_rt5645.c | 2 +- sound/soc/intel/boards/cht_bsw_rt5672.c | 2 +- sound/soc/intel/boards/haswell.c | 2 +- sound/soc/intel/boards/skl_nau88l25_max98357a.c | 12 ++++++------ sound/soc/intel/boards/skl_nau88l25_ssm4567.c | 12 ++++++------ sound/soc/intel/boards/skl_rt286.c | 10 +++++----- sound/soc/soc-core.c | 3 ++- sound/soc/soc-topology.c | 11 +++++++++++ 14 files changed, 42 insertions(+), 27 deletions(-)
Signature · 1 line
2.5.0
PATCH 1/4 ASoC: Export snd_soc_find_dai()
From: Mengdong Lin <[email protected]>
This API can be used by topology to find an existing BE dai by name and further configure it.
Topology will also check DAI ID to avoid wrong match.
include/sound/soc.h +3 -0
@@ -1683,6 +1683,9 @@ void snd_soc_remove_dai_link(struct snd_soc_card *card,int snd_soc_register_dai (struct snd_soc_component *component,struct snd_soc_dai_driver *dai_drv); +struct snd_soc_dai *snd_soc_find_dai ( +const struct snd_soc_dai_link_component *dlc); +#include <sound/soc-dai.h> #ifdef CONFIG_DEBUG_FS
sound/soc/soc-core.c +2 -1
@@ -930,7 +930,7 @@ static struct snd_soc_component *soc_find_component(return NULL ; } -static struct snd_soc_dai *snd_soc_find_dai ( +struct snd_soc_dai *snd_soc_find_dai (const struct snd_soc_dai_link_component *dlc) {struct snd_soc_component *component;
@@ -959,6 +959,7 @@ static struct snd_soc_dai *snd_soc_find_dai(return NULL ; } +EXPORT_SYMBOL_GPL (snd_soc_find_dai);static bool soc_is_dai_link_bound (struct snd_soc_card *card,struct snd_soc_dai_link *dai_link)
Signature · 1 line
2.5.0
Mark Brown
maintainerRe: [PATCH 1/4] ASoC: Export snd_soc_find_dai()
sound/soc/soc-core.c static struct snd_soc_dai *snd_soc_find_dai( · line 962
Quoted 12 lines · On Tue, Apr 19, 2016 at 01:12:25PM +0800, [email protected] wrote:
}
sound/soc/soc-core.c +2
-1-static struct snd_soc_dai *snd_soc_find_dai ( +struct snd_soc_dai *snd_soc_find_dai (const struct snd_soc_dai_link_component *dlc) {struct snd_soc_component *component;@@ -959,6 +959,7 @@ static struct snd_soc_dai *snd_soc_find_dai(return NULL ; } +EXPORT_SYMBOL_GPL (snd_soc_find_dai);
Can you please add a kerneldoc comment as well since this is getting exported?
Re: [PATCH 1/4] ASoC: Export snd_soc_find_dai()
Quoted 11 lines · Mark Brown
Quoted 9 lines · On Tue, Apr 19, 2016 at 01:12:25PM +0800, [email protected] wrote:
}sound/soc/soc-core.c +1
-1-static struct snd_soc_dai *snd_soc_find_dai ( +struct snd_soc_dai *snd_soc_find_dai (const struct snd_soc_dai_link_component *dlc) {struct snd_soc_component *component;@@ -959,6 +959,7 @@ static struct snd_soc_dai *snd_soc_find_dai(
Quoted 7 lines
sound/soc/soc-core.c static struct snd_soc_dai *snd_soc_find_dai( · line 962
Quoted 3 lines
sound/soc/soc-core.c +1
-0return NULL ; } +EXPORT_SYMBOL_GPL (snd_soc_find_dai);Can you please add a kerneldoc comment as well since this is getting exported?
Okay, I'll do this. Thanks for your reminding.
Regards
Mengdong
Mark Brown
maintainerApplied "ASoC: Export snd_soc_find_dai()" to the asoc tree
In reply to [email protected]The patch
ASoC: Export snd_soc_find_dai()
has been applied to the asoc tree at
git://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
Quoted 1 line
From
305e9020f09d28560373c0112682e6fd11e909f6Mon Sep 17 00:00:00 2001
From: Mengdong Lin <[email protected]>
Date: Tue, 19 Apr 2016 13:12:25 +0800
Subject: [PATCH] ASoC: Export snd_soc_find_dai()
This API can be used by topology to find an existing BE dai by name and further configure it.
Topology will also check DAI ID to avoid wrong match.
--- include/sound/soc.h | 3 +++ sound/soc/soc-core.c | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-)
include/sound/soc.h +3 -0
@@ -1683,6 +1683,9 @@ void snd_soc_remove_dai_link(struct snd_soc_card *card,int snd_soc_register_dai (struct snd_soc_component *component,struct snd_soc_dai_driver *dai_drv); +struct snd_soc_dai *snd_soc_find_dai ( +const struct snd_soc_dai_link_component *dlc); +#include <sound/soc-dai.h> #ifdef CONFIG_DEBUG_FS
sound/soc/soc-core.c +2 -1
@@ -930,7 +930,7 @@ static struct snd_soc_component *soc_find_component(return NULL ; } -static struct snd_soc_dai *snd_soc_find_dai ( +struct snd_soc_dai *snd_soc_find_dai (const struct snd_soc_dai_link_component *dlc) {struct snd_soc_component *component;
@@ -959,6 +959,7 @@ static struct snd_soc_dai *snd_soc_find_dai(return NULL ; } +EXPORT_SYMBOL_GPL (snd_soc_find_dai);static bool soc_is_dai_link_bound (struct snd_soc_card *card,struct snd_soc_dai_link *dai_link)
Signature · 1 line
2.8.0.rc3
PATCH 2/4 ASoC: Change DAI link's be_id to a generic id
In reply to [email protected]From: Mengdong Lin <[email protected]>
The generic ID can be used by topology:
- Toplogy can create FE links and set their ID, machine drivers will be notified and check this ID for machine-specific init.
- Toplogy can use the ID to find existing BE & CC links and further configure them.
include/sound/soc.h +1 -1
@@ -1002,7 +1002,7 @@ struct snd_soc_dai_link {*/ const char *platform_name;struct device_node *platform_of_node; -int be_id;/* optional ID for machine driver BE identification */ +int id;/* optional ID for machine driver link identification */ const struct snd_soc_pcm_stream *params;unsigned int num_params;
sound/soc/intel/boards/broadwell.c +1 -1
@@ -201,7 +201,7 @@ static struct snd_soc_dai_link broadwell_rt286_dais[] = { {/* SSP0 - Codec */ .name = "Codec", - .be_id = 0, + .id = 0, .cpu_dai_name = "snd-soc-dummy-dai", .platform_name = "snd-soc-dummy", .no_pcm = 1,
sound/soc/intel/boards/bytcr_rt5640.c +1 -1
@@ -304,7 +304,7 @@ static struct snd_soc_dai_link byt_rt5640_dais[] = {/* back ends */ { .name = "SSP2-Codec", - .be_id = 1, + .id = 1, .cpu_dai_name = "ssp2-port", .platform_name = "sst-mfld-platform", .no_pcm = 1,
sound/soc/intel/boards/bytcr_rt5651.c +1 -1
@@ -267,7 +267,7 @@ static struct snd_soc_dai_link byt_rt5651_dais[] = {/* back ends */ { .name = "SSP2-Codec", - .be_id = 1, + .id = 1, .cpu_dai_name = "ssp2-port", .platform_name = "sst-mfld-platform", .no_pcm = 1,
sound/soc/intel/boards/cht_bsw_max98090_ti.c +1 -1
@@ -255,7 +255,7 @@ static struct snd_soc_dai_link cht_dailink[] = {/* back ends */ { .name = "SSP2-Codec", - .be_id = 1, + .id = 1, .cpu_dai_name = "ssp2-port", .platform_name = "sst-mfld-platform", .no_pcm = 1,
sound/soc/intel/boards/cht_bsw_rt5645.c +1 -1
@@ -295,7 +295,7 @@ static struct snd_soc_dai_link cht_dailink[] = {/* back ends */ { .name = "SSP2-Codec", - .be_id = 1, + .id = 1, .cpu_dai_name = "ssp2-port", .platform_name = "sst-mfld-platform", .no_pcm = 1,
sound/soc/intel/boards/cht_bsw_rt5672.c +1 -1
@@ -273,7 +273,7 @@ static struct snd_soc_dai_link cht_dailink[] = { {/* SSP2 - Codec */ .name = "SSP2-Codec", - .be_id = 1, + .id = 1, .cpu_dai_name = "ssp2-port", .platform_name = "sst-mfld-platform", .no_pcm = 1,
sound/soc/intel/boards/haswell.c +1 -1
@@ -156,7 +156,7 @@ static struct snd_soc_dai_link haswell_rt5640_dais[] = { {/* SSP0 - Codec */ .name = "Codec", - .be_id = 0, + .id = 0, .cpu_dai_name = "snd-soc-dummy-dai", .platform_name = "snd-soc-dummy", .no_pcm = 1,
sound/soc/intel/boards/skl_nau88l25_max98357a.c +6 -6
@@ -456,7 +456,7 @@ static struct snd_soc_dai_link skylake_dais[] = { {/* SSP0 - Codec */ .name = "SSP0-Codec", - .be_id = 0, + .id = 0, .cpu_dai_name = "SSP0 Pin", .platform_name = "0000:00:1f.3", .no_pcm = 1,
@@ -472,7 +472,7 @@ static struct snd_soc_dai_link skylake_dais[] = { {/* SSP1 - Codec */ .name = "SSP1-Codec", - .be_id = 1, + .id = 1, .cpu_dai_name = "SSP1 Pin", .platform_name = "0000:00:1f.3", .no_pcm = 1,
@@ -489,7 +489,7 @@ static struct snd_soc_dai_link skylake_dais[] = { }, { .name = "dmic01", - .be_id = 2, + .id = 2, .cpu_dai_name = "DMIC01 Pin", .codec_name = "dmic-codec", .codec_dai_name = "dmic-hifi",
@@ -501,7 +501,7 @@ static struct snd_soc_dai_link skylake_dais[] = { }, { .name = "iDisp1", - .be_id = 3, + .id = 3, .cpu_dai_name = "iDisp1 Pin", .codec_name = "ehdaudio0D2", .codec_dai_name = "intel-hdmi-hifi1",
@@ -512,7 +512,7 @@ static struct snd_soc_dai_link skylake_dais[] = { }, { .name = "iDisp2", - .be_id = 4, + .id = 4, .cpu_dai_name = "iDisp2 Pin", .codec_name = "ehdaudio0D2", .codec_dai_name = "intel-hdmi-hifi2",
@@ -523,7 +523,7 @@ static struct snd_soc_dai_link skylake_dais[] = { }, { .name = "iDisp3", - .be_id = 5, + .id = 5, .cpu_dai_name = "iDisp3 Pin", .codec_name = "ehdaudio0D2", .codec_dai_name = "intel-hdmi-hifi3",
sound/soc/intel/boards/skl_nau88l25_ssm4567.c +6 -6
@@ -505,7 +505,7 @@ static struct snd_soc_dai_link skylake_dais[] = { {/* SSP0 - Codec */ .name = "SSP0-Codec", - .be_id = 0, + .id = 0, .cpu_dai_name = "SSP0 Pin", .platform_name = "0000:00:1f.3", .no_pcm = 1,
@@ -523,7 +523,7 @@ static struct snd_soc_dai_link skylake_dais[] = { {/* SSP1 - Codec */ .name = "SSP1-Codec", - .be_id = 1, + .id = 1, .cpu_dai_name = "SSP1 Pin", .platform_name = "0000:00:1f.3", .no_pcm = 1,
@@ -540,7 +540,7 @@ static struct snd_soc_dai_link skylake_dais[] = { }, { .name = "dmic01", - .be_id = 2, + .id = 2, .cpu_dai_name = "DMIC01 Pin", .codec_name = "dmic-codec", .codec_dai_name = "dmic-hifi",
@@ -552,7 +552,7 @@ static struct snd_soc_dai_link skylake_dais[] = { }, { .name = "iDisp1", - .be_id = 3, + .id = 3, .cpu_dai_name = "iDisp1 Pin", .codec_name = "ehdaudio0D2", .codec_dai_name = "intel-hdmi-hifi1",
@@ -563,7 +563,7 @@ static struct snd_soc_dai_link skylake_dais[] = { }, { .name = "iDisp2", - .be_id = 4, + .id = 4, .cpu_dai_name = "iDisp2 Pin", .codec_name = "ehdaudio0D2", .codec_dai_name = "intel-hdmi-hifi2",
@@ -574,7 +574,7 @@ static struct snd_soc_dai_link skylake_dais[] = { }, { .name = "iDisp3", - .be_id = 5, + .id = 5, .cpu_dai_name = "iDisp3 Pin", .codec_name = "ehdaudio0D2", .codec_dai_name = "intel-hdmi-hifi3",
sound/soc/intel/boards/skl_rt286.c +5 -5
@@ -375,7 +375,7 @@ static struct snd_soc_dai_link skylake_rt286_dais[] = { {/* SSP0 - Codec */ .name = "SSP0-Codec", - .be_id = 0, + .id = 0, .cpu_dai_name = "SSP0 Pin", .platform_name = "0000:00:1f.3", .no_pcm = 1,
@@ -393,7 +393,7 @@ static struct snd_soc_dai_link skylake_rt286_dais[] = { }, { .name = "dmic01", - .be_id = 1, + .id = 1, .cpu_dai_name = "DMIC01 Pin", .codec_name = "dmic-codec", .codec_dai_name = "dmic-hifi",
@@ -405,7 +405,7 @@ static struct snd_soc_dai_link skylake_rt286_dais[] = { }, { .name = "iDisp1", - .be_id = 2, + .id = 2, .cpu_dai_name = "iDisp1 Pin", .codec_name = "ehdaudio0D2", .codec_dai_name = "intel-hdmi-hifi1",
@@ -416,7 +416,7 @@ static struct snd_soc_dai_link skylake_rt286_dais[] = { }, { .name = "iDisp2", - .be_id = 3, + .id = 3, .cpu_dai_name = "iDisp2 Pin", .codec_name = "ehdaudio0D2", .codec_dai_name = "intel-hdmi-hifi2",
@@ -427,7 +427,7 @@ static struct snd_soc_dai_link skylake_rt286_dais[] = { }, { .name = "iDisp3", - .be_id = 4, + .id = 4, .cpu_dai_name = "iDisp3 Pin", .codec_name = "ehdaudio0D2", .codec_dai_name = "intel-hdmi-hifi3",
Signature · 1 line
2.5.0
Mark Brown
maintainerApplied "ASoC: Change DAI link's be_id to a generic id" to the asoc tree
The patch
ASoC: Change DAI link's be_id to a generic id
has been applied to the asoc tree at
git://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
Quoted 1 line
From
2f0ad49104cbb19db24442af736614659363d2abMon Sep 17 00:00:00 2001
From: Mengdong Lin <[email protected]>
Date: Tue, 19 Apr 2016 13:12:35 +0800
Subject: [PATCH] ASoC: Change DAI link's be_id to a generic id
The generic ID can be used by topology:
- Toplogy can create FE links and set their ID, machine drivers will be notified and check this ID for machine-specific init.
- Toplogy can use the ID to find existing BE & CC links and further configure them.
--- include/sound/soc.h | 2 +- sound/soc/intel/boards/broadwell.c | 2 +- sound/soc/intel/boards/bytcr_rt5640.c | 2 +- sound/soc/intel/boards/bytcr_rt5651.c | 2 +- sound/soc/intel/boards/cht_bsw_max98090_ti.c | 2 +- sound/soc/intel/boards/cht_bsw_rt5645.c | 2 +- sound/soc/intel/boards/cht_bsw_rt5672.c | 2 +- sound/soc/intel/boards/haswell.c | 2 +- sound/soc/intel/boards/skl_nau88l25_max98357a.c | 12 ++++++------ sound/soc/intel/boards/skl_nau88l25_ssm4567.c | 12 ++++++------ sound/soc/intel/boards/skl_rt286.c | 10 +++++----- 11 files changed, 25 insertions(+), 25 deletions(-)
include/sound/soc.h +1 -1
@@ -1002,7 +1002,7 @@ struct snd_soc_dai_link {*/ const char *platform_name;struct device_node *platform_of_node; -int be_id;/* optional ID for machine driver BE identification */ +int id;/* optional ID for machine driver link identification */ const struct snd_soc_pcm_stream *params;unsigned int num_params;
sound/soc/intel/boards/broadwell.c +1 -1
@@ -201,7 +201,7 @@ static struct snd_soc_dai_link broadwell_rt286_dais[] = { {/* SSP0 - Codec */ .name = "Codec", - .be_id = 0, + .id = 0, .cpu_dai_name = "snd-soc-dummy-dai", .platform_name = "snd-soc-dummy", .no_pcm = 1,
sound/soc/intel/boards/bytcr_rt5640.c +1 -1
@@ -304,7 +304,7 @@ static struct snd_soc_dai_link byt_rt5640_dais[] = {/* back ends */ { .name = "SSP2-Codec", - .be_id = 1, + .id = 1, .cpu_dai_name = "ssp2-port", .platform_name = "sst-mfld-platform", .no_pcm = 1,
sound/soc/intel/boards/bytcr_rt5651.c +1 -1
@@ -267,7 +267,7 @@ static struct snd_soc_dai_link byt_rt5651_dais[] = {/* back ends */ { .name = "SSP2-Codec", - .be_id = 1, + .id = 1, .cpu_dai_name = "ssp2-port", .platform_name = "sst-mfld-platform", .no_pcm = 1,
sound/soc/intel/boards/cht_bsw_max98090_ti.c +1 -1
@@ -255,7 +255,7 @@ static struct snd_soc_dai_link cht_dailink[] = {/* back ends */ { .name = "SSP2-Codec", - .be_id = 1, + .id = 1, .cpu_dai_name = "ssp2-port", .platform_name = "sst-mfld-platform", .no_pcm = 1,
sound/soc/intel/boards/cht_bsw_rt5645.c +1 -1
@@ -295,7 +295,7 @@ static struct snd_soc_dai_link cht_dailink[] = {/* back ends */ { .name = "SSP2-Codec", - .be_id = 1, + .id = 1, .cpu_dai_name = "ssp2-port", .platform_name = "sst-mfld-platform", .no_pcm = 1,
sound/soc/intel/boards/cht_bsw_rt5672.c +1 -1
@@ -273,7 +273,7 @@ static struct snd_soc_dai_link cht_dailink[] = { {/* SSP2 - Codec */ .name = "SSP2-Codec", - .be_id = 1, + .id = 1, .cpu_dai_name = "ssp2-port", .platform_name = "sst-mfld-platform", .no_pcm = 1,
sound/soc/intel/boards/haswell.c +1 -1
@@ -156,7 +156,7 @@ static struct snd_soc_dai_link haswell_rt5640_dais[] = { {/* SSP0 - Codec */ .name = "Codec", - .be_id = 0, + .id = 0, .cpu_dai_name = "snd-soc-dummy-dai", .platform_name = "snd-soc-dummy", .no_pcm = 1,
sound/soc/intel/boards/skl_nau88l25_max98357a.c +6 -6
@@ -456,7 +456,7 @@ static struct snd_soc_dai_link skylake_dais[] = { {/* SSP0 - Codec */ .name = "SSP0-Codec", - .be_id = 0, + .id = 0, .cpu_dai_name = "SSP0 Pin", .platform_name = "0000:00:1f.3", .no_pcm = 1,
@@ -472,7 +472,7 @@ static struct snd_soc_dai_link skylake_dais[] = { {/* SSP1 - Codec */ .name = "SSP1-Codec", - .be_id = 1, + .id = 1, .cpu_dai_name = "SSP1 Pin", .platform_name = "0000:00:1f.3", .no_pcm = 1,
@@ -489,7 +489,7 @@ static struct snd_soc_dai_link skylake_dais[] = { }, { .name = "dmic01", - .be_id = 2, + .id = 2, .cpu_dai_name = "DMIC01 Pin", .codec_name = "dmic-codec", .codec_dai_name = "dmic-hifi",
@@ -501,7 +501,7 @@ static struct snd_soc_dai_link skylake_dais[] = { }, { .name = "iDisp1", - .be_id = 3, + .id = 3, .cpu_dai_name = "iDisp1 Pin", .codec_name = "ehdaudio0D2", .codec_dai_name = "intel-hdmi-hifi1",
@@ -512,7 +512,7 @@ static struct snd_soc_dai_link skylake_dais[] = { }, { .name = "iDisp2", - .be_id = 4, + .id = 4, .cpu_dai_name = "iDisp2 Pin", .codec_name = "ehdaudio0D2", .codec_dai_name = "intel-hdmi-hifi2",
@@ -523,7 +523,7 @@ static struct snd_soc_dai_link skylake_dais[] = { }, { .name = "iDisp3", - .be_id = 5, + .id = 5, .cpu_dai_name = "iDisp3 Pin", .codec_name = "ehdaudio0D2", .codec_dai_name = "intel-hdmi-hifi3",
sound/soc/intel/boards/skl_nau88l25_ssm4567.c +6 -6
@@ -505,7 +505,7 @@ static struct snd_soc_dai_link skylake_dais[] = { {/* SSP0 - Codec */ .name = "SSP0-Codec", - .be_id = 0, + .id = 0, .cpu_dai_name = "SSP0 Pin", .platform_name = "0000:00:1f.3", .no_pcm = 1,
@@ -523,7 +523,7 @@ static struct snd_soc_dai_link skylake_dais[] = { {/* SSP1 - Codec */ .name = "SSP1-Codec", - .be_id = 1, + .id = 1, .cpu_dai_name = "SSP1 Pin", .platform_name = "0000:00:1f.3", .no_pcm = 1,
@@ -540,7 +540,7 @@ static struct snd_soc_dai_link skylake_dais[] = { }, { .name = "dmic01", - .be_id = 2, + .id = 2, .cpu_dai_name = "DMIC01 Pin", .codec_name = "dmic-codec", .codec_dai_name = "dmic-hifi",
@@ -552,7 +552,7 @@ static struct snd_soc_dai_link skylake_dais[] = { }, { .name = "iDisp1", - .be_id = 3, + .id = 3, .cpu_dai_name = "iDisp1 Pin", .codec_name = "ehdaudio0D2", .codec_dai_name = "intel-hdmi-hifi1",
@@ -563,7 +563,7 @@ static struct snd_soc_dai_link skylake_dais[] = { }, { .name = "iDisp2", - .be_id = 4, + .id = 4, .cpu_dai_name = "iDisp2 Pin", .codec_name = "ehdaudio0D2", .codec_dai_name = "intel-hdmi-hifi2",
@@ -574,7 +574,7 @@ static struct snd_soc_dai_link skylake_dais[] = { }, { .name = "iDisp3", - .be_id = 5, + .id = 5, .cpu_dai_name = "iDisp3 Pin", .codec_name = "ehdaudio0D2", .codec_dai_name = "intel-hdmi-hifi3",
sound/soc/intel/boards/skl_rt286.c +5 -5
@@ -375,7 +375,7 @@ static struct snd_soc_dai_link skylake_rt286_dais[] = { {/* SSP0 - Codec */ .name = "SSP0-Codec", - .be_id = 0, + .id = 0, .cpu_dai_name = "SSP0 Pin", .platform_name = "0000:00:1f.3", .no_pcm = 1,
@@ -393,7 +393,7 @@ static struct snd_soc_dai_link skylake_rt286_dais[] = { }, { .name = "dmic01", - .be_id = 1, + .id = 1, .cpu_dai_name = "DMIC01 Pin", .codec_name = "dmic-codec", .codec_dai_name = "dmic-hifi",
@@ -405,7 +405,7 @@ static struct snd_soc_dai_link skylake_rt286_dais[] = { }, { .name = "iDisp1", - .be_id = 2, + .id = 2, .cpu_dai_name = "iDisp1 Pin", .codec_name = "ehdaudio0D2", .codec_dai_name = "intel-hdmi-hifi1",
@@ -416,7 +416,7 @@ static struct snd_soc_dai_link skylake_rt286_dais[] = { }, { .name = "iDisp2", - .be_id = 3, + .id = 3, .cpu_dai_name = "iDisp2 Pin", .codec_name = "ehdaudio0D2", .codec_dai_name = "intel-hdmi-hifi2",
@@ -427,7 +427,7 @@ static struct snd_soc_dai_link skylake_rt286_dais[] = { }, { .name = "iDisp3", - .be_id = 4, + .id = 4, .cpu_dai_name = "iDisp3 Pin", .codec_name = "ehdaudio0D2", .codec_dai_name = "intel-hdmi-hifi3",
Signature · 1 line
2.8.0.rc3
PATCH 3/4 ASoC: topology: Set the link ID when creating a FE DAI link
In reply to [email protected]From: Mengdong Lin <[email protected]>
Topology will set the link's generic id when creating a FE link. Device drivers can check the id for link specific initialization.
include/uapi/sound/asoc.h +1 -1
@@ -480,7 +480,7 @@ struct snd_soc_tplg_pcm {__le32 size;/* in bytes of this structure */ char pcm_name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN ];char dai_name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN ]; -__le32 pcm_id;/* unique ID - used to match */ +__le32 pcm_id;/* unique ID - used to match with DAI link */ __le32 dai_id;/* unique ID - used to match */ __le32 playback;/* supports playback mode */ __le32 capture;/* supports capture mode */
sound/soc/soc-topology.c +1 -0
@@ -1598,6 +1598,7 @@ static int soc_tplg_link_create(struct soc_tplg *tplg, link->name = pcm->pcm_name; link->stream_name = pcm->pcm_name; + link->id = pcm->pcm_id;/* pass control to component driver for optional further init */ ret =soc_tplg_dai_link_load (tplg, link);
Signature · 1 line
2.5.0
Mark Brown
maintainerApplied "ASoC: topology: Set the link ID when creating a FE DAI link" to the asoc tree
The patch
ASoC: topology: Set the link ID when creating a FE DAI link
has been applied to the asoc tree at
git://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
Quoted 1 line
From
b84fff5afb16627a8973256992f3951ac3e90d84Mon Sep 17 00:00:00 2001
From: Mengdong Lin <[email protected]>
Date: Tue, 19 Apr 2016 13:12:43 +0800
Subject: [PATCH] ASoC: topology: Set the link ID when creating a FE DAI link
Topology will set the link's generic id when creating a FE link. Device drivers can check the id for link specific initialization.
--- include/uapi/sound/asoc.h | 2 +- sound/soc/soc-topology.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-)
include/uapi/sound/asoc.h +1 -1
@@ -423,7 +423,7 @@ struct snd_soc_tplg_pcm {__le32 size;/* in bytes of this structure */ char pcm_name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN ];char dai_name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN ]; -__le32 pcm_id;/* unique ID - used to match */ +__le32 pcm_id;/* unique ID - used to match with DAI link */ __le32 dai_id;/* unique ID - used to match */ __le32 playback;/* supports playback mode */ __le32 capture;/* supports capture mode */
sound/soc/soc-topology.c +1 -0
@@ -1598,6 +1598,7 @@ static int soc_tplg_link_create(struct soc_tplg *tplg, link->name = pcm->pcm_name; link->stream_name = pcm->pcm_name; + link->id = pcm->pcm_id;/* pass control to component driver for optional further init */ ret =soc_tplg_dai_link_load (tplg, link);
Signature · 1 line
2.8.0.rc3
PATCH 4/4 ASoC: topology: Set CPU DAI name and enable DPCM by default for FE link
In reply to [email protected]From: Guneshwor Singh <[email protected]>
When creating a FE link, the cpu_dai_name will come from topology and dpcm will be enabled by default.
sound/soc/soc-topology.c +10 -0
@@ -1586,6 +1586,7 @@ static int soc_tplg_dai_create(struct soc_tplg *tplg,return snd_soc_register_dai (tplg->comp, dai_drv); } +/* create the FE DAI link */ static int soc_tplg_link_create (struct soc_tplg *tplg,struct snd_soc_tplg_pcm *pcm) {
@@ -1600,6 +1601,15 @@ static int soc_tplg_link_create(struct soc_tplg *tplg, link->stream_name = pcm->pcm_name; link->id = pcm->pcm_id; + link->cpu_dai_name = pcm->dai_name; + link->codec_name ="snd-soc-dummy" ; + link->codec_dai_name ="snd-soc-dummy-dai" ; + +/* enable DPCM */ + link->dynamic =1 ; + link->dpcm_playback = pcm->playback; + link->dpcm_capture = pcm->capture; +/* pass control to component driver for optional further init */ ret =soc_tplg_dai_link_load (tplg, link);if (ret <0 ) {
Signature · 1 line
2.5.0
Mark Brown
maintainerApplied "ASoC: topology: Set CPU DAI name and enable DPCM by default for FE link" to the asoc tree
The patch
ASoC: topology: Set CPU DAI name and enable DPCM by default for FE link
has been applied to the asoc tree at
git://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
Quoted 1 line
From
67d1c21e37301ca3cea3705951950ce21f2723e1Mon Sep 17 00:00:00 2001
From: Guneshwor Singh <[email protected]>
Date: Tue, 19 Apr 2016 13:12:50 +0800
Subject: [PATCH] ASoC: topology: Set CPU DAI name and enable DPCM by default
for FE link
When creating a FE link, the cpu_dai_name will come from topology and dpcm will be enabled by default.
--- sound/soc/soc-topology.c | 10 ++++++++++ 1 file changed, 10 insertions(+)
sound/soc/soc-topology.c +10 -0
@@ -1586,6 +1586,7 @@ static int soc_tplg_dai_create(struct soc_tplg *tplg,return snd_soc_register_dai (tplg->comp, dai_drv); } +/* create the FE DAI link */ static int soc_tplg_link_create (struct soc_tplg *tplg,struct snd_soc_tplg_pcm *pcm) {
@@ -1600,6 +1601,15 @@ static int soc_tplg_link_create(struct soc_tplg *tplg, link->stream_name = pcm->pcm_name; link->id = pcm->pcm_id; + link->cpu_dai_name = pcm->dai_name; + link->codec_name ="snd-soc-dummy" ; + link->codec_dai_name ="snd-soc-dummy-dai" ; + +/* enable DPCM */ + link->dynamic =1 ; + link->dpcm_playback = pcm->playback; + link->dpcm_capture = pcm->capture; +/* pass control to component driver for optional further init */ ret =soc_tplg_dai_link_load (tplg, link);if (ret <0 ) {
Signature · 1 line
2.8.0.rc3