Lines Matching +full:aif1 +full:- +full:pins
1 // SPDX-License-Identifier: GPL-2.0-only
15 #include <sound/soc-acpi.h>
20 /* Headset jack detection DAPM pins */
52 /* HP jack connectors - unknown if we have jack deteck */
64 {"SSP0 CODEC IN", NULL, "AIF1 Capture"},
65 {"AIF1 Playback", NULL, "SSP0 CODEC OUT"},
70 struct snd_soc_component *component = asoc_rtd_to_codec(rtd, 0)->component; in broadwell_rt286_codec_init()
72 ret = snd_soc_card_jack_new(rtd->card, "Headset", in broadwell_rt286_codec_init()
92 rate->min = rate->max = 48000; in broadwell_ssp0_fixup()
93 chan->min = chan->max = 2; in broadwell_ssp0_fixup()
111 dev_err(rtd->dev, "can't set codec sysclk configuration\n"); in broadwell_rt286_hw_params()
134 struct snd_pcm_runtime *runtime = substream->runtime; in broadwell_fe_startup()
137 runtime->hw.channels_max = 2; in broadwell_fe_startup()
163 DAILINK_COMP_ARRAY(COMP_PLATFORM("haswell-pcm-audio")));
166 DAILINK_COMP_ARRAY(COMP_CODEC("i2c-INT343A:00", "rt286-aif1")));
169 DAILINK_COMP_ARRAY(COMP_CPU("ssp0-port")));
171 /* broadwell digital audio interface glue - connects codec <--> CPU */
214 /* SSP0 - Codec */
235 if (!strcmp(component->name, "i2c-INT343A:00")) { in broadwell_disable_jack()
237 dev_dbg(component->dev, "disabling jack detect before going to suspend.\n"); in broadwell_disable_jack()
255 if (!strcmp(component->name, "i2c-INT343A:00")) { in broadwell_resume()
257 dev_dbg(component->dev, "enabling jack detect for resume.\n"); in broadwell_resume()
267 #define CARD_NAME "bdw rt286" /* card name will be 'sof-bdw rt286' */
270 #define CARD_NAME "broadwell-rt286"
297 broadwell_rt286.dev = &pdev->dev; in broadwell_audio_probe()
300 mach = pdev->dev.platform_data; in broadwell_audio_probe()
302 mach->mach_params.platform); in broadwell_audio_probe()
306 return devm_snd_soc_register_card(&pdev->dev, &broadwell_rt286); in broadwell_audio_probe()
320 .name = "broadwell-audio",
330 MODULE_ALIAS("platform:broadwell-audio");