Lines Matching +full:codec +full:- +full:aif1

1 // SPDX-License-Identifier: GPL-2.0-only
15 #include <sound/soc-acpi.h>
57 /* CODEC BE connections */
58 {"SSP0 CODEC IN", NULL, "AIF1 Capture"},
59 {"AIF1 Playback", NULL, "SSP0 CODEC OUT"},
64 struct snd_soc_component *codec = snd_soc_rtd_to_codec(rtd, 0)->component; in codec_link_init() local
67 ret = snd_soc_card_jack_new_pins(rtd->card, "Headset", SND_JACK_HEADSET | SND_JACK_BTN_0, in codec_link_init()
73 return snd_soc_component_set_jack(codec, &card_headset, NULL); in codec_link_init()
78 struct snd_soc_component *codec = snd_soc_rtd_to_codec(rtd, 0)->component; in codec_link_exit() local
80 snd_soc_component_set_jack(codec, NULL, NULL); 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")));
167 /* SSP0 - Codec */
168 .name = "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()
217 /* Use space before codec name to simplify card ID, and simplify driver name. */
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()