Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: doc: use SND_SOC_DAILINK_xxx() macro

We can use SND_SOC_DAILINK_xxx() macro to define CPU/Codec/Platform.
Let's use it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://patch.msgid.link/87tt88z5nd.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Kuninori Morimoto and committed by
Mark Brown
de22dc76 426aae69

+11 -8
+11 -8
Documentation/sound/soc/dpcm.rst
··· 147 147 FE DAI links are defined as follows :- 148 148 :: 149 149 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 + 150 155 static struct snd_soc_dai_link machine_dais[] = { 151 156 { 152 157 .name = "PCM0 System", 153 158 .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), 158 160 .dynamic = 1, 159 161 .trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST}, 160 162 }, ··· 176 174 The BE DAIs are configured as follows :- 177 175 :: 178 176 177 + SND_SOC_DAILINK_DEFS(headset, 178 + DAILINK_COMP_ARRAY(COMP_CPU("ssp-dai.0")), 179 + DAILINK_COMP_ARRAY(COMP_CODEC("rt5640.0-001c", "rt5640-aif1"))); 180 + 179 181 static struct snd_soc_dai_link machine_dais[] = { 180 182 .....< FE DAI links here > 181 183 { 182 184 .name = "Codec Headset", 183 - .cpu_dai_name = "ssp-dai.0", 184 - .platform_name = "snd-soc-dummy", 185 + SND_SOC_DAILINK_REG(headset), 185 186 .no_pcm = 1, 186 - .codec_name = "rt5640.0-001c", 187 - .codec_dai_name = "rt5640-aif1", 188 187 .ignore_suspend = 1, 189 188 .ignore_pmdown_time = 1, 190 189 .be_hw_params_fixup = hswult_ssp0_fixup,