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"
27 #define PREFIX "ASoC omap3pandora: " macro
43 pr_err(PREFIX "can't set codec system clock\n"); in omap3pandora_hw_params()
52 pr_err(PREFIX "can't set cpu system clock\n"); in omap3pandora_hw_params()
58 pr_err(PREFIX "can't set SRG clock divider\n"); in omap3pandora_hw_params()
77 dev_err(w->dapm->dev, "Failed to power DAC: %d\n", ret); in omap3pandora_dac_event()
105 * |O| ---> PCM DAC +-> AMP -> Headphone Jack
106 * |M| A +--------> Line Out
108 * |P| <--- TWL4030 <--------- Line In and MICs
143 struct snd_soc_dapm_context *dapm = &rtd->card->dapm; in omap3pandora_out_init()
162 struct snd_soc_dapm_context *dapm = &rtd->card->dapm; in omap3pandora_in_init()
177 /* Digital audio interface glue - connects codec <--> CPU */
179 DAILINK_COMP_ARRAY(COMP_CPU("omap-mcbsp.2")),
180 DAILINK_COMP_ARRAY(COMP_CODEC("twl4030-codec", "twl4030-hifi")),
181 DAILINK_COMP_ARRAY(COMP_PLATFORM("omap-mcbsp.2")));
184 DAILINK_COMP_ARRAY(COMP_CPU("omap-mcbsp.4")),
185 DAILINK_COMP_ARRAY(COMP_CODEC("twl4030-codec", "twl4030-hifi")),
186 DAILINK_COMP_ARRAY(COMP_PLATFORM("omap-mcbsp.4")));
190 .name = "PCM1773",
198 .name = "TWL4030",
210 .name = "omap3pandora",
228 return -ENODEV; in omap3pandora_soc_init()
234 pr_err(PREFIX "Failed to get DAC power GPIO\n"); in omap3pandora_soc_init()
240 pr_err(PREFIX "Failed to set DAC power GPIO direction\n"); in omap3pandora_soc_init()
246 pr_err(PREFIX "Failed to get amp power GPIO\n"); in omap3pandora_soc_init()
252 pr_err(PREFIX "Failed to set amp power GPIO direction\n"); in omap3pandora_soc_init()
256 omap3pandora_snd_device = platform_device_alloc("soc-audio", -1); in omap3pandora_soc_init()
258 pr_err(PREFIX "Platform device allocation failed\n"); in omap3pandora_soc_init()
259 ret = -ENOMEM; in omap3pandora_soc_init()
267 pr_err(PREFIX "Unable to add platform device\n"); in omap3pandora_soc_init()
271 omap3pandora_dac_reg = regulator_get(&omap3pandora_snd_device->dev, "vcc"); in omap3pandora_soc_init()
273 pr_err(PREFIX "Failed to get DAC regulator from %s: %ld\n", in omap3pandora_soc_init()
274 dev_name(&omap3pandora_snd_device->dev), in omap3pandora_soc_init()