Lines Matching +full:soc +full:- +full:internal

1 // SPDX-License-Identifier: GPL-2.0-only
3 * omap3pandora.c -- SoC audio for Pandora Handheld Console
17 #include <sound/soc.h>
19 #include <asm/mach-types.h>
20 #include <linux/platform_data/asoc-ti-mcbsp.h>
22 #include "omap-mcbsp.h"
76 dev_err(w->dapm->dev, "Failed to power DAC: %d\n", ret); in omap3pandora_dac_event()
104 * |O| ---> PCM DAC +-> AMP -> Headphone Jack
105 * |M| A +--------> Line Out
107 * |P| <--- TWL4030 <--------- Line In and MICs
119 SND_SOC_DAPM_MIC("Mic (internal)", NULL),
133 {"MAINMIC", NULL, "Mic (internal)"},
134 {"Mic (internal)", NULL, "Mic Bias 1"},
142 struct snd_soc_dapm_context *dapm = &rtd->card->dapm; in omap3pandora_out_init()
161 struct snd_soc_dapm_context *dapm = &rtd->card->dapm; in omap3pandora_in_init()
176 /* Digital audio interface glue - connects codec <--> CPU */
178 DAILINK_COMP_ARRAY(COMP_CPU("omap-mcbsp.2")),
179 DAILINK_COMP_ARRAY(COMP_CODEC("twl4030-codec", "twl4030-hifi")),
180 DAILINK_COMP_ARRAY(COMP_PLATFORM("omap-mcbsp.2")));
183 DAILINK_COMP_ARRAY(COMP_CPU("omap-mcbsp.4")),
184 DAILINK_COMP_ARRAY(COMP_CODEC("twl4030-codec", "twl4030-hifi")),
185 DAILINK_COMP_ARRAY(COMP_PLATFORM("omap-mcbsp.4")));
207 /* SoC card */
227 return -ENODEV; in omap3pandora_soc_init()
229 pr_info("OMAP3 Pandora SoC init\n"); in omap3pandora_soc_init()
231 omap3pandora_snd_device = platform_device_alloc("soc-audio", -1); in omap3pandora_soc_init()
234 return -ENOMEM; in omap3pandora_soc_init()
245 dac_power_gpio = devm_gpiod_get(&omap3pandora_snd_device->dev, in omap3pandora_soc_init()
252 amp_power_gpio = devm_gpiod_get(&omap3pandora_snd_device->dev, in omap3pandora_soc_init()
259 omap3pandora_dac_reg = regulator_get(&omap3pandora_snd_device->dev, "vcc"); in omap3pandora_soc_init()
262 dev_name(&omap3pandora_snd_device->dev), in omap3pandora_soc_init()
287 MODULE_DESCRIPTION("ALSA SoC OMAP3 Pandora");