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

1 // SPDX-License-Identifier: GPL-2.0-only
3 * n810.c -- SoC audio for Nokia N810
17 #include <asm/mach-types.h>
20 #include <linux/platform_data/asoc-ti-mcbsp.h>
22 #include "omap-mcbsp.h"
61 snd_soc_dapm_enable_pin_unlocked(dapm, "Ext Spk"); in n810_ext_control()
63 snd_soc_dapm_disable_pin_unlocked(dapm, "Ext Spk"); in n810_ext_control()
86 struct snd_pcm_runtime *runtime = substream->runtime; in n810_startup()
91 n810_ext_control(&rtd->card->dapm); in n810_startup()
117 .shutdown = n810_shutdown,
123 ucontrol->value.enumerated.item[0] = n810_spk_func; in n810_get_spk()
133 if (n810_spk_func == ucontrol->value.enumerated.item[0]) in n810_set_spk()
136 n810_spk_func = ucontrol->value.enumerated.item[0]; in n810_set_spk()
137 n810_ext_control(&card->dapm); in n810_set_spk()
145 ucontrol->value.enumerated.item[0] = n810_jack_func; in n810_get_jack()
155 if (n810_jack_func == ucontrol->value.enumerated.item[0]) in n810_set_jack()
158 n810_jack_func = ucontrol->value.enumerated.item[0]; in n810_set_jack()
159 n810_ext_control(&card->dapm); in n810_set_jack()
167 ucontrol->value.enumerated.item[0] = n810_dmic_func; in n810_get_input()
177 if (n810_dmic_func == ucontrol->value.enumerated.item[0]) in n810_set_input()
180 n810_dmic_func = ucontrol->value.enumerated.item[0]; in n810_set_input()
181 n810_ext_control(&card->dapm); in n810_set_input()
209 SND_SOC_DAPM_SPK("Ext Spk", n810_spk_event),
219 {"Ext Spk", NULL, "LLOUT"},
220 {"Ext Spk", NULL, "RLOUT"},
227 * control over it atm. The analog HS mic is not working. <- TODO
250 /* Digital audio interface glue - connects codec <--> CPU */
253 DAILINK_COMP_ARRAY(COMP_CODEC("tlv320aic3x-codec.1-0018",
254 "tlv320aic3x-hifi")),
291 !of_machine_is_compatible("nokia,n810-wimax"))) in n810_soc_init()
292 return -ENODEV; in n810_soc_init()
294 n810_snd_device = platform_device_alloc("soc-audio", -1); in n810_soc_init()
296 return -ENOMEM; in n810_soc_init()
303 dev = &n810_snd_device->dev; in n810_soc_init()
330 n810_headset_amp = devm_gpiod_get(&n810_snd_device->dev, in n810_soc_init()
337 n810_speaker_amp = devm_gpiod_get(&n810_snd_device->dev, in n810_soc_init()