Lines Matching +full:gpio +full:- +full:mux +full:- +full:clock
2 * sdp3430.c -- SoC audio for TI OMAP3430 SDP
21 * 02110-1301 USA
33 #include <asm/mach-types.h>
35 #include <mach/gpio.h>
39 #include <linux/mfd/twl4030-audio.h>
42 #include "omap-mcbsp.h"
43 #include "omap-pcm.h"
47 /* TWL4030 PMBR1 Register GPIO6 mux bit */
55 struct snd_soc_pcm_runtime *rtd = substream->private_data; in sdp3430_hw_params()
56 struct snd_soc_dai *codec_dai = rtd->codec_dai; in sdp3430_hw_params()
59 /* Set the codec system clock for DAC and ADC */ in sdp3430_hw_params()
63 printk(KERN_ERR "can't set codec system clock\n"); in sdp3430_hw_params()
92 .gpio = (OMAP_MAX_GPIO_LINES + 2),
93 .name = "hsdet-gpio",
129 struct snd_soc_codec *codec = rtd->codec; in sdp3430_twl4030_init()
130 struct snd_soc_dapm_context *dapm = &codec->dapm; in sdp3430_twl4030_init()
173 struct snd_soc_codec *codec = rtd->codec; in sdp3430_twl4030_voice_init()
177 reg = codec->driver->read(codec, TWL4030_REG_VOICE_IF); in sdp3430_twl4030_voice_init()
179 codec->driver->write(codec, TWL4030_REG_VOICE_IF, reg); in sdp3430_twl4030_voice_init()
185 /* Digital audio interface glue - connects codec <--> CPU */
190 .cpu_dai_name = "omap-mcbsp-dai.1",
191 .codec_dai_name = "twl4030-hifi",
192 .platform_name = "omap-pcm-audio",
193 .codec_name = "twl4030-codec",
202 .cpu_dai_name = "omap-mcbsp-dai.2",
203 .codec_dai_name = "twl4030-voice",
204 .platform_name = "omap-pcm-audio",
205 .codec_name = "twl4030-codec",
234 return -ENODEV; in sdp3430_soc_init()
237 sdp3430_snd_device = platform_device_alloc("soc-audio", -1); in sdp3430_soc_init()
240 return -ENOMEM; in sdp3430_soc_init()