#include <linux/platform_device.h>
#include <linux/platform_data/omap-twl4030.h>
#include <linux/module.h>
#include <linux/of.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include <sound/soc.h>
#include <sound/jack.h>
#include "omap-mcbsp.h"
struct omap_twl4030 { … };
static int omap_twl4030_hw_params(struct snd_pcm_substream *substream,
struct snd_pcm_hw_params *params)
{ … }
static const struct snd_soc_ops omap_twl4030_ops = …;
static const struct snd_soc_dapm_widget dapm_widgets[] = …;
static const struct snd_soc_dapm_route audio_map[] = …;
static struct snd_soc_jack_pin hs_jack_pins[] = …;
static struct snd_soc_jack_gpio hs_jack_gpios[] = …;
static inline void twl4030_disconnect_pin(struct snd_soc_dapm_context *dapm,
int connected, char *pin)
{ … }
static int omap_twl4030_init(struct snd_soc_pcm_runtime *rtd)
{ … }
SND_SOC_DAILINK_DEFS(…);
SND_SOC_DAILINK_DEFS(…);
static struct snd_soc_dai_link omap_twl4030_dai_links[] = …;
static struct snd_soc_card omap_twl4030_card = …;
static int omap_twl4030_probe(struct platform_device *pdev)
{ … }
static const struct of_device_id omap_twl4030_of_match[] = …;
MODULE_DEVICE_TABLE(of, omap_twl4030_of_match);
static struct platform_driver omap_twl4030_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_ALIAS(…) …;