Lines Matching +full:spk +full:- +full:shutdown

1 // SPDX-License-Identifier: GPL-2.0-only
2 // Copyright(c) 2018-2020 Intel Corporation.
20 #include <sound/soc-acpi.h>
22 #include "../common/soc-intel-quirks.h"
55 sof_pcm512x_quirk = (unsigned long)id->driver_data; in sof_pcm512x_quirk_cb()
64 DMI_MATCH(DMI_PRODUCT_NAME, "UP-CHT01"),
73 struct sof_card_private *ctx = snd_soc_card_get_drvdata(rtd->card); in sof_hdmi_init()
77 pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); in sof_hdmi_init()
79 return -ENOMEM; in sof_hdmi_init()
82 pcm->device = rtd->dai_link->id; in sof_hdmi_init()
83 pcm->codec_dai = dai; in sof_hdmi_init()
85 list_add_tail(&pcm->head, &ctx->hdmi_pcm_list); in sof_hdmi_init()
92 struct snd_soc_component *codec = snd_soc_rtd_to_codec(rtd, 0)->component; in sof_pcm512x_codec_init()
105 struct snd_soc_component *codec = snd_soc_rtd_to_codec(rtd, 0)->component; in aif1_startup()
116 struct snd_soc_component *codec = snd_soc_rtd_to_codec(rtd, 0)->component; in aif1_shutdown()
124 .shutdown = aif1_shutdown,
143 if (list_empty(&ctx->hdmi_pcm_list)) in sof_card_late_probe()
144 return -EINVAL; in sof_card_late_probe()
146 if (!ctx->idisp_codec) in sof_card_late_probe()
149 pcm = list_first_entry(&ctx->hdmi_pcm_list, struct sof_hdmi_pcm, head); in sof_card_late_probe()
151 return hda_dsp_hdmi_build_controls(card, pcm->codec_dai->component); in sof_card_late_probe()
155 SOC_DAPM_PIN_SWITCH("Ext Spk"),
159 SND_SOC_DAPM_SPK("Ext Spk", NULL),
168 {"Ext Spk", NULL, "OUTR"},
169 {"Ext Spk", NULL, "OUTL"},
179 struct snd_soc_card *card = rtd->card; in dmic_init()
182 ret = snd_soc_dapm_new_controls(&card->dapm, dmic_widgets, in dmic_init()
185 dev_err(card->dev, "DMic widget addition failed: %d\n", ret); in dmic_init()
190 ret = snd_soc_dapm_add_routes(&card->dapm, dmic_map, in dmic_init()
194 dev_err(card->dev, "DMic map addition failed: %d\n", ret); in dmic_init()
214 DAILINK_COMP_ARRAY(COMP_CODEC("i2c-104C5122:00", "pcm512x-hifi")));
216 DAILINK_COMP_ARRAY(COMP_CODEC("dmic-codec", "dmic-hifi")));
238 "SSP%d-Codec", ssp_codec); in sof_card_dai_links_create()
258 links[id].cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, in sof_card_dai_links_create()
259 "ssp%d-port", in sof_card_dai_links_create()
261 if (!links[id].cpus->dai_name) in sof_card_dai_links_create()
264 links[id].cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, in sof_card_dai_links_create()
267 if (!links[id].cpus->dai_name) in sof_card_dai_links_create()
277 links[id].cpus->dai_name = "DMIC01 Pin"; in sof_card_dai_links_create()
283 links[id + 1].cpus->dai_name = "DMIC16k Pin"; in sof_card_dai_links_create()
318 links[id].cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, in sof_card_dai_links_create()
320 if (!links[id].cpus->dai_name) in sof_card_dai_links_create()
328 idisp_components[i - 1].name = "ehdaudio0D2"; in sof_card_dai_links_create()
329 idisp_components[i - 1].dai_name = in sof_card_dai_links_create()
331 "intel-hdmi-hifi%d", i); in sof_card_dai_links_create()
333 idisp_components[i - 1] = snd_soc_dummy_dlc; in sof_card_dai_links_create()
335 if (!idisp_components[i - 1].dai_name) in sof_card_dai_links_create()
338 links[id].codecs = &idisp_components[i - 1]; in sof_card_dai_links_create()
355 struct snd_soc_acpi_mach *mach = pdev->dev.platform_data; in sof_audio_probe()
361 ctx = devm_kzalloc(&pdev->dev, sizeof(*ctx), GFP_KERNEL); in sof_audio_probe()
363 return -ENOMEM; in sof_audio_probe()
373 if (mach->mach_params.codec_mask & IDISP_CODEC_MASK) in sof_audio_probe()
374 ctx->idisp_codec = true; in sof_audio_probe()
382 dev_dbg(&pdev->dev, "sof_pcm512x_quirk = %lx\n", sof_pcm512x_quirk); in sof_audio_probe()
392 dai_links = sof_card_dai_links_create(&pdev->dev, ssp_codec, in sof_audio_probe()
394 ctx->idisp_codec); in sof_audio_probe()
396 return -ENOMEM; in sof_audio_probe()
400 INIT_LIST_HEAD(&ctx->hdmi_pcm_list); in sof_audio_probe()
402 sof_audio_card_pcm512x.dev = &pdev->dev; in sof_audio_probe()
406 mach->mach_params.platform); in sof_audio_probe()
412 return devm_snd_soc_register_card(&pdev->dev, in sof_audio_probe()
422 if (!strcmp(component->name, pcm512x_component[0].name)) { in sof_pcm512x_remove()
440 MODULE_AUTHOR("Pierre-Louis Bossart");