#include <linux/clk.h>
#include <linux/platform_device.h>
#include <linux/mfd/twl6040.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-dmic.h"
#include "omap-mcpdm.h"
#include "../codecs/twl6040.h"
SND_SOC_DAILINK_DEFS(…);
SND_SOC_DAILINK_DEFS(…);
struct abe_twl6040 { … };
static struct platform_device *dmic_codec_dev;
static int omap_abe_hw_params(struct snd_pcm_substream *substream,
struct snd_pcm_hw_params *params)
{ … }
static const struct snd_soc_ops omap_abe_ops = …;
static int omap_abe_dmic_hw_params(struct snd_pcm_substream *substream,
struct snd_pcm_hw_params *params)
{ … }
static const struct snd_soc_ops omap_abe_dmic_ops = …;
static struct snd_soc_jack hs_jack;
static struct snd_soc_jack_pin hs_jack_pins[] = …;
static const struct snd_soc_dapm_widget twl6040_dapm_widgets[] = …;
static const struct snd_soc_dapm_route audio_map[] = …;
static int omap_abe_twl6040_init(struct snd_soc_pcm_runtime *rtd)
{ … }
static const struct snd_soc_dapm_route dmic_audio_map[] = …;
static int omap_abe_dmic_init(struct snd_soc_pcm_runtime *rtd)
{ … }
static int omap_abe_probe(struct platform_device *pdev)
{ … }
static const struct of_device_id omap_abe_of_match[] = …;
MODULE_DEVICE_TABLE(of, omap_abe_of_match);
static struct platform_driver omap_abe_driver = …;
static int __init omap_abe_init(void)
{ … }
module_init(…) …;
static void __exit omap_abe_exit(void)
{ … }
module_exit(omap_abe_exit);
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_ALIAS(…) …;