Lines Matching +full:dsp +full:- +full:aif1

1 // SPDX-License-Identifier: GPL-2.0+
8 #include <sound/soc-dapm.h>
59 struct bells_drvdata *bells = card->drvdata; in bells_set_bias_level()
62 rtd = snd_soc_get_pcm_runtime(card, &card->dai_link[DAI_DSP_CODEC]); in bells_set_bias_level()
64 component = codec_dai->component; in bells_set_bias_level()
66 if (dapm->dev != codec_dai->dev) in bells_set_bias_level()
71 if (dapm->bias_level != SND_SOC_BIAS_STANDBY) in bells_set_bias_level()
77 bells->sysclk_rate); in bells_set_bias_level()
81 if (bells->asyncclk_rate) { in bells_set_bias_level()
85 bells->asyncclk_rate); in bells_set_bias_level()
105 struct bells_drvdata *bells = card->drvdata; in bells_set_bias_level_post()
108 rtd = snd_soc_get_pcm_runtime(card, &card->dai_link[DAI_DSP_CODEC]); in bells_set_bias_level_post()
110 component = codec_dai->component; in bells_set_bias_level_post()
112 if (dapm->dev != codec_dai->dev) in bells_set_bias_level_post()
123 if (bells->asyncclk_rate) { in bells_set_bias_level_post()
137 dapm->bias_level = level; in bells_set_bias_level_post()
144 struct bells_drvdata *bells = card->drvdata; in bells_late_probe()
154 rtd = snd_soc_get_pcm_runtime(card, &card->dai_link[DAI_AP_DSP]); in bells_late_probe()
155 wm0010 = snd_soc_rtd_to_codec(rtd, 0)->component; in bells_late_probe()
157 rtd = snd_soc_get_pcm_runtime(card, &card->dai_link[DAI_DSP_CODEC]); in bells_late_probe()
158 component = snd_soc_rtd_to_codec(rtd, 0)->component; in bells_late_probe()
163 bells->sysclk_rate, in bells_late_probe()
166 dev_err(component->dev, "Failed to set SYSCLK: %d\n", ret); in bells_late_probe()
172 dev_err(wm0010->dev, "Failed to set WM0010 clock: %d\n", ret); in bells_late_probe()
178 dev_err(aif1_dai->dev, "Failed to set AIF1 clock: %d\n", ret); in bells_late_probe()
183 dev_err(component->dev, "Failed to set OPCLK: %d\n", ret); in bells_late_probe()
185 if (card->num_rtd == DAI_CODEC_CP) in bells_late_probe()
190 bells->asyncclk_rate, in bells_late_probe()
193 dev_err(component->dev, "Failed to set ASYNCCLK: %d\n", ret); in bells_late_probe()
197 rtd = snd_soc_get_pcm_runtime(card, &card->dai_link[DAI_CODEC_CP]); in bells_late_probe()
202 dev_err(aif2_dai->dev, "Failed to set AIF2 clock: %d\n", ret); in bells_late_probe()
206 if (card->num_rtd == DAI_CODEC_SUB) in bells_late_probe()
209 rtd = snd_soc_get_pcm_runtime(card, &card->dai_link[DAI_CODEC_SUB]); in bells_late_probe()
215 dev_err(aif1_dai->dev, "Failed to set AIF1 clock: %d\n", ret); in bells_late_probe()
219 ret = snd_soc_component_set_sysclk(wm9081_dai->component, WM9081_SYSCLK_MCLK, in bells_late_probe()
222 dev_err(wm9081_dai->dev, "Failed to set MCLK: %d\n", ret); in bells_late_probe()
246 DAILINK_COMP_ARRAY(COMP_CPU("samsung-i2s.0")),
247 DAILINK_COMP_ARRAY(COMP_CODEC("spi0.0", "wm0010-sdi1")),
248 DAILINK_COMP_ARRAY(COMP_PLATFORM("samsung-i2s.0")));
251 DAILINK_COMP_ARRAY(COMP_CPU("wm0010-sdi2")),
252 DAILINK_COMP_ARRAY(COMP_CODEC("wm2200.1-003a", "wm2200")));
256 .name = "CPU-DSP",
257 .stream_name = "CPU-DSP",
263 .name = "DSP-CODEC",
264 .stream_name = "DSP-CODEC",
275 DAILINK_COMP_ARRAY(COMP_CPU("samsung-i2s.0")),
276 DAILINK_COMP_ARRAY(COMP_CODEC("spi0.0", "wm0010-sdi1")),
277 DAILINK_COMP_ARRAY(COMP_PLATFORM("samsung-i2s.0")));
280 DAILINK_COMP_ARRAY(COMP_CPU("wm0010-sdi2")),
281 DAILINK_COMP_ARRAY(COMP_CODEC("wm5102-codec", "wm5102-aif1")));
284 DAILINK_COMP_ARRAY(COMP_CPU("wm5102-aif2")),
285 DAILINK_COMP_ARRAY(COMP_CODEC("wm1250-ev1.1-0027", "wm1250-ev1")));
288 DAILINK_COMP_ARRAY(COMP_CPU("wm5102-aif3")),
289 DAILINK_COMP_ARRAY(COMP_CODEC("wm9081.1-006c", "wm9081-hifi")));
293 .name = "CPU-DSP",
294 .stream_name = "CPU-DSP",
300 .name = "DSP-CODEC",
301 .stream_name = "DSP-CODEC",
332 DAILINK_COMP_ARRAY(COMP_CPU("samsung-i2s.0")),
333 DAILINK_COMP_ARRAY(COMP_CODEC("spi0.0", "wm0010-sdi1")),
334 DAILINK_COMP_ARRAY(COMP_PLATFORM("samsung-i2s.0")));
337 DAILINK_COMP_ARRAY(COMP_CPU("wm0010-sdi2")),
338 DAILINK_COMP_ARRAY(COMP_CODEC("wm5110-codec", "wm5110-aif1")));
341 DAILINK_COMP_ARRAY(COMP_CPU("wm5110-aif2")),
342 DAILINK_COMP_ARRAY(COMP_CODEC("wm1250-ev1.1-0027", "wm1250-ev1")));
346 DAILINK_COMP_ARRAY(COMP_CPU("wm5110-aif3")),
347 DAILINK_COMP_ARRAY(COMP_CODEC("wm9081.1-006c", "wm9081-hifi")));
351 .name = "CPU-DSP",
352 .stream_name = "CPU-DSP",
358 .name = "DSP-CODEC",
359 .stream_name = "DSP-CODEC",
391 .dlc = COMP_CODEC_CONF("wm9081.1-006c"),
476 bells_cards[pdev->id].dev = &pdev->dev; in bells_probe()
478 ret = devm_snd_soc_register_card(&pdev->dev, &bells_cards[pdev->id]); in bells_probe()
480 dev_err(&pdev->dev, in bells_probe()
482 bells_cards[pdev->id].name, ret); in bells_probe()