Lines Matching +full:spk +full:- +full:shutdown
2 * n810.c -- SoC audio for Nokia N810
20 * 02110-1301 USA
31 #include <asm/mach-types.h>
34 #include <linux/platform_data/asoc-ti-mcbsp.h>
36 #include "omap-mcbsp.h"
74 snd_soc_dapm_enable_pin_unlocked(dapm, "Ext Spk"); in n810_ext_control()
76 snd_soc_dapm_disable_pin_unlocked(dapm, "Ext Spk"); in n810_ext_control()
99 struct snd_pcm_runtime *runtime = substream->runtime; in n810_startup()
100 struct snd_soc_pcm_runtime *rtd = substream->private_data; in n810_startup()
104 n810_ext_control(&rtd->card->dapm); in n810_startup()
116 struct snd_soc_pcm_runtime *rtd = substream->private_data; in n810_hw_params()
117 struct snd_soc_dai *codec_dai = rtd->codec_dai; in n810_hw_params()
130 .shutdown = n810_shutdown,
136 ucontrol->value.enumerated.item[0] = n810_spk_func; in n810_get_spk()
146 if (n810_spk_func == ucontrol->value.enumerated.item[0]) in n810_set_spk()
149 n810_spk_func = ucontrol->value.enumerated.item[0]; in n810_set_spk()
150 n810_ext_control(&card->dapm); in n810_set_spk()
158 ucontrol->value.enumerated.item[0] = n810_jack_func; in n810_get_jack()
168 if (n810_jack_func == ucontrol->value.enumerated.item[0]) in n810_set_jack()
171 n810_jack_func = ucontrol->value.enumerated.item[0]; in n810_set_jack()
172 n810_ext_control(&card->dapm); in n810_set_jack()
180 ucontrol->value.enumerated.item[0] = n810_dmic_func; in n810_get_input()
190 if (n810_dmic_func == ucontrol->value.enumerated.item[0]) in n810_set_input()
193 n810_dmic_func = ucontrol->value.enumerated.item[0]; in n810_set_input()
194 n810_ext_control(&card->dapm); in n810_set_input()
222 SND_SOC_DAPM_SPK("Ext Spk", n810_spk_event),
232 {"Ext Spk", NULL, "LLOUT"},
233 {"Ext Spk", NULL, "RLOUT"},
240 * control over it atm. The analog HS mic is not working. <- TODO
263 /* Digital audio interface glue - connects codec <--> CPU */
269 .codec_name = "tlv320aic3x-codec.1-0018",
270 .codec_dai_name = "tlv320aic3x-hifi",
301 !of_machine_is_compatible("nokia,n810-wimax"))) in n810_soc_init()
302 return -ENODEV; in n810_soc_init()
304 n810_snd_device = platform_device_alloc("soc-audio", -1); in n810_soc_init()
306 return -ENOMEM; in n810_soc_init()
313 dev = &n810_snd_device->dev; in n810_soc_init()
342 err = -EINVAL; in n810_soc_init()