Lines Matching +full:sound +full:- +full:name +full:- +full:prefix
1 // SPDX-License-Identifier: GPL-2.0-only
3 * omap3pandora.c -- SoC audio for Pandora Handheld Console
15 #include <sound/core.h>
16 #include <sound/pcm.h>
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"
24 #define PREFIX "ASoC omap3pandora: " macro
42 pr_err(PREFIX "can't set codec system clock\n"); in omap3pandora_hw_params()
51 pr_err(PREFIX "can't set cpu system clock\n"); in omap3pandora_hw_params()
57 pr_err(PREFIX "can't set SRG clock divider\n"); in omap3pandora_hw_params()
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
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")));
189 .name = "PCM1773",
197 .name = "TWL4030",
209 .name = "omap3pandora",
227 return -ENODEV; in omap3pandora_soc_init()
231 omap3pandora_snd_device = platform_device_alloc("soc-audio", -1); in omap3pandora_soc_init()
233 pr_err(PREFIX "Platform device allocation failed\n"); in omap3pandora_soc_init()
234 return -ENOMEM; in omap3pandora_soc_init()
241 pr_err(PREFIX "Unable to add platform device\n"); 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()
261 pr_err(PREFIX "Failed to get DAC regulator from %s: %ld\n", in omap3pandora_soc_init()
262 dev_name(&omap3pandora_snd_device->dev), in omap3pandora_soc_init()