#include <linux/init.h>
#include <linux/mod_devicetable.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/err.h>
#include <linux/clk.h>
#include <linux/io.h>
#include <linux/slab.h>
#include <linux/pm_runtime.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <sound/initval.h>
#include <sound/soc.h>
#include <sound/dmaengine_pcm.h>
#include "omap-dmic.h"
#include "sdma-pcm.h"
struct omap_dmic { … };
static inline void omap_dmic_write(struct omap_dmic *dmic, u16 reg, u32 val)
{ … }
static inline int omap_dmic_read(struct omap_dmic *dmic, u16 reg)
{ … }
static inline void omap_dmic_start(struct omap_dmic *dmic)
{ … }
static inline void omap_dmic_stop(struct omap_dmic *dmic)
{ … }
static inline int dmic_is_enabled(struct omap_dmic *dmic)
{ … }
static int omap_dmic_dai_startup(struct snd_pcm_substream *substream,
struct snd_soc_dai *dai)
{ … }
static void omap_dmic_dai_shutdown(struct snd_pcm_substream *substream,
struct snd_soc_dai *dai)
{ … }
static int omap_dmic_select_divider(struct omap_dmic *dmic, int sample_rate)
{ … }
static int omap_dmic_dai_hw_params(struct snd_pcm_substream *substream,
struct snd_pcm_hw_params *params,
struct snd_soc_dai *dai)
{ … }
static int omap_dmic_dai_prepare(struct snd_pcm_substream *substream,
struct snd_soc_dai *dai)
{ … }
static int omap_dmic_dai_trigger(struct snd_pcm_substream *substream,
int cmd, struct snd_soc_dai *dai)
{ … }
static int omap_dmic_select_fclk(struct omap_dmic *dmic, int clk_id,
unsigned int freq)
{ … }
static int omap_dmic_select_outclk(struct omap_dmic *dmic, int clk_id,
unsigned int freq)
{ … }
static int omap_dmic_set_dai_sysclk(struct snd_soc_dai *dai, int clk_id,
unsigned int freq, int dir)
{ … }
static int omap_dmic_probe(struct snd_soc_dai *dai)
{ … }
static int omap_dmic_remove(struct snd_soc_dai *dai)
{ … }
static const struct snd_soc_dai_ops omap_dmic_dai_ops = …;
static struct snd_soc_dai_driver omap_dmic_dai = …;
static const struct snd_soc_component_driver omap_dmic_component = …;
static int asoc_dmic_probe(struct platform_device *pdev)
{ … }
static const struct of_device_id omap_dmic_of_match[] = …;
MODULE_DEVICE_TABLE(of, omap_dmic_of_match);
static struct platform_driver asoc_dmic_driver = …;
module_platform_driver(…) …;
MODULE_ALIAS(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;