Lines Matching +full:audio +full:- +full:widgets

1 // SPDX-License-Identifier: GPL-2.0+
3 // Speyside audio support
8 #include <sound/soc-dapm.h>
27 rtd = snd_soc_get_pcm_runtime(card, &card->dai_link[1]); in speyside_set_bias_level()
30 if (dapm->dev != codec_dai->dev) in speyside_set_bias_level()
63 rtd = snd_soc_get_pcm_runtime(card, &card->dai_link[1]); in speyside_set_bias_level_post()
66 if (dapm->dev != codec_dai->dev) in speyside_set_bias_level_post()
71 if (card->dapm.bias_level == SND_SOC_BIAS_STANDBY) { in speyside_set_bias_level_post()
93 card->dapm.bias_level = level; in speyside_set_bias_level_post()
114 if (speyside_jack_polarity && (strcmp(source->name, "MICB1") == 0)) in speyside_get_micbias()
116 if (!speyside_jack_polarity && (strcmp(source->name, "MICB2") == 0)) in speyside_get_micbias()
128 /* Re-run DAPM to make sure we're using the correct mic bias */ in speyside_set_polarity()
147 struct snd_soc_component *component = dai->component; in speyside_wm8996_init()
159 ret = snd_soc_card_jack_new(rtd->card, "Headset", SND_JACK_LINEOUT | in speyside_wm8996_init()
173 snd_soc_dapm_ignore_suspend(&card->dapm, "Headphone"); in speyside_late_probe()
174 snd_soc_dapm_ignore_suspend(&card->dapm, "Headset Mic"); in speyside_late_probe()
175 snd_soc_dapm_ignore_suspend(&card->dapm, "Main AMIC"); in speyside_late_probe()
176 snd_soc_dapm_ignore_suspend(&card->dapm, "Main DMIC"); in speyside_late_probe()
177 snd_soc_dapm_ignore_suspend(&card->dapm, "Main Speaker"); in speyside_late_probe()
178 snd_soc_dapm_ignore_suspend(&card->dapm, "WM1250 Output"); in speyside_late_probe()
179 snd_soc_dapm_ignore_suspend(&card->dapm, "WM1250 Input"); in speyside_late_probe()
193 DAILINK_COMP_ARRAY(COMP_CPU("samsung-i2s.0")),
194 DAILINK_COMP_ARRAY(COMP_CODEC("spi0.0", "wm0010-sdi1")),
195 DAILINK_COMP_ARRAY(COMP_PLATFORM("samsung-i2s.0")));
198 DAILINK_COMP_ARRAY(COMP_CPU("wm0010-sdi2")),
199 DAILINK_COMP_ARRAY(COMP_CODEC("wm8996.1-001a", "wm8996-aif1")));
202 DAILINK_COMP_ARRAY(COMP_CPU("wm8996-aif2")),
203 DAILINK_COMP_ARRAY(COMP_CODEC("wm1250-ev1.1-0027", "wm1250-ev1")));
207 .name = "CPU-DSP",
208 .stream_name = "CPU-DSP",
215 .name = "DSP-CODEC",
216 .stream_name = "DSP-CODEC",
243 .dlc = COMP_AUX("wm9081.1-006c"),
250 .dlc = COMP_CODEC_CONF("wm9081.1-006c"),
264 static struct snd_soc_dapm_widget widgets[] = { variable
316 .dapm_widgets = widgets,
317 .num_dapm_widgets = ARRAY_SIZE(widgets),
330 card->dev = &pdev->dev; in speyside_probe()
332 ret = devm_snd_soc_register_card(&pdev->dev, card); in speyside_probe()
333 if (ret && ret != -EPROBE_DEFER) in speyside_probe()
334 dev_err(&pdev->dev, "snd_soc_register_card() failed: %d\n", in speyside_probe()
350 MODULE_DESCRIPTION("Speyside audio support");