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: "
42 pr_err(PREFIX "can't set codec system clock\n");
51 pr_err(PREFIX "can't set cpu system clock\n");
57 pr_err(PREFIX "can't set SRG clock divider\n");
76 dev_err(w->dapm->dev, "Failed to power DAC: %d\n", ret);
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;
161 struct snd_soc_dapm_context *dapm = &rtd->card->dapm;
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;
231 omap3pandora_snd_device = platform_device_alloc("soc-audio", -1);
233 pr_err(PREFIX "Platform device allocation failed\n");
234 return -ENOMEM;
241 pr_err(PREFIX "Unable to add platform device\n");
245 dac_power_gpio = devm_gpiod_get(&omap3pandora_snd_device->dev,
252 amp_power_gpio = devm_gpiod_get(&omap3pandora_snd_device->dev,
259 omap3pandora_dac_reg = regulator_get(&omap3pandora_snd_device->dev, "vcc");
261 pr_err(PREFIX "Failed to get DAC regulator from %s: %ld\n",
262 dev_name(&omap3pandora_snd_device->dev),