@@ -147,14 +147,16 @@ For the example above we have to define 4 FE DAI links and 6 BE DAI links. The
147147FE DAI links are defined as follows :-
148148::
149149
150+ SND_SOC_DAILINK_DEFS(pcm0,
151+ DAILINK_COMP_ARRAY(COMP_CPU("System Pin")),
152+ DAILINK_COMP_ARRAY(COMP_DUMMY()),
153+ DAILINK_COMP_ARRAY(COMP_PLATFORM("dsp-audio")));
154+
150155 static struct snd_soc_dai_link machine_dais[] = {
151156 {
152157 .name = "PCM0 System",
153158 .stream_name = "System Playback",
154- .cpu_dai_name = "System Pin",
155- .platform_name = "dsp-audio",
156- .codec_name = "snd-soc-dummy",
157- .codec_dai_name = "snd-soc-dummy-dai",
159+ SND_SOC_DAILINK_REG(pcm0),
158160 .dynamic = 1,
159161 .trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST},
160162 },
@@ -174,15 +176,16 @@ dynamic and will change depending on runtime config.
174176The BE DAIs are configured as follows :-
175177::
176178
179+ SND_SOC_DAILINK_DEFS(headset,
180+ DAILINK_COMP_ARRAY(COMP_CPU("ssp-dai.0")),
181+ DAILINK_COMP_ARRAY(COMP_CODEC("rt5640.0-001c", "rt5640-aif1")));
182+
177183 static struct snd_soc_dai_link machine_dais[] = {
178184 .....< FE DAI links here >
179185 {
180186 .name = "Codec Headset",
181- .cpu_dai_name = "ssp-dai.0",
182- .platform_name = "snd-soc-dummy",
187+ SND_SOC_DAILINK_REG(headset),
183188 .no_pcm = 1,
184- .codec_name = "rt5640.0-001c",
185- .codec_dai_name = "rt5640-aif1",
186189 .ignore_suspend = 1,
187190 .ignore_pmdown_time = 1,
188191 .be_hw_params_fixup = hswult_ssp0_fixup,
0 commit comments