Lines Matching +full:pcm +full:- +full:platform

1 // SPDX-License-Identifier: GPL-2.0-only
12 #include <sound/pcm.h>
15 #include <sound/soc-acpi.h>
64 struct snd_soc_component *codec = snd_soc_rtd_to_codec(rtd, 0)->component; in codec_link_init()
67 ret = snd_soc_card_jack_new_pins(rtd->card, "Headset", SND_JACK_HEADSET | SND_JACK_BTN_0, in codec_link_init()
78 struct snd_soc_component *codec = snd_soc_rtd_to_codec(rtd, 0)->component; in codec_link_exit()
90 rate->min = rate->max = 48000; in codec_link_hw_params_fixup()
91 channels->min = channels->max = 2; in codec_link_hw_params_fixup()
107 dev_err(rtd->dev, "set codec sysclk failed: %d\n", ret); in codec_link_hw_params()
124 SND_SOC_DAILINK_DEF(platform, DAILINK_COMP_ARRAY(COMP_PLATFORM("haswell-pcm-audio")));
125 SND_SOC_DAILINK_DEF(codec, DAILINK_COMP_ARRAY(COMP_CODEC("i2c-INT343A:00", "rt286-aif1")));
126 SND_SOC_DAILINK_DEF(ssp0_port, DAILINK_COMP_ARRAY(COMP_CPU("ssp0-port")));
131 .name = "System PCM",
136 SND_SOC_DAILINK_REG(system, dummy, platform),
145 SND_SOC_DAILINK_REG(offload0, dummy, platform),
154 SND_SOC_DAILINK_REG(offload1, dummy, platform),
157 .name = "Loopback PCM",
163 SND_SOC_DAILINK_REG(loopback, dummy, platform),
167 /* SSP0 - Codec */
178 SND_SOC_DAILINK_REG(ssp0_port, codec, platform),
184 struct snd_soc_dai *codec_dai = snd_soc_card_get_codec_dai(card, "rt286-aif1"); in card_suspend_pre()
189 return snd_soc_component_set_jack(codec_dai->component, NULL, NULL); in card_suspend_pre()
194 struct snd_soc_dai *codec_dai = snd_soc_card_get_codec_dai(card, "rt286-aif1"); in card_resume_post()
199 return snd_soc_component_set_jack(codec_dai->component, &card_headset, NULL); in card_resume_post()
218 #define SOF_CARD_NAME "bdw rt286" /* card name will be 'sof-bdw rt286' */
221 #define CARD_NAME "broadwell-rt286"
226 struct device *dev = &pdev->dev; in bdw_rt286_probe()
232 ret = snd_soc_fixup_dai_links_platform_name(&bdw_rt286_card, mach->mach_params.platform); in bdw_rt286_probe()
259 MODULE_ALIAS("platform:bdw_rt286");