#include <linux/clk.h>
#include <linux/clk-provider.h>
#include <linux/delay.h>
#include <linux/dmaengine.h>
#include <linux/mod_devicetable.h>
#include <linux/module.h>
#include <linux/pm_runtime.h>
#include <linux/regmap.h>
#include <linux/slab.h>
#include <linux/time.h>
#include <linux/pm_qos.h>
#include <sound/core.h>
#include <sound/dmaengine_pcm.h>
#include <sound/pcm_params.h>
#include <linux/dma-mapping.h>
#include "fsl_aud2htx.h"
#include "imx-pcm.h"
static int fsl_aud2htx_trigger(struct snd_pcm_substream *substream, int cmd,
struct snd_soc_dai *dai)
{ … }
static int fsl_aud2htx_dai_probe(struct snd_soc_dai *cpu_dai)
{ … }
static const struct snd_soc_dai_ops fsl_aud2htx_dai_ops = …;
static struct snd_soc_dai_driver fsl_aud2htx_dai = …;
static const struct snd_soc_component_driver fsl_aud2htx_component = …;
static const struct reg_default fsl_aud2htx_reg_defaults[] = …;
static bool fsl_aud2htx_readable_reg(struct device *dev, unsigned int reg)
{ … }
static bool fsl_aud2htx_writeable_reg(struct device *dev, unsigned int reg)
{ … }
static bool fsl_aud2htx_volatile_reg(struct device *dev, unsigned int reg)
{ … }
static const struct regmap_config fsl_aud2htx_regmap_config = …;
static const struct of_device_id fsl_aud2htx_dt_ids[] = …;
MODULE_DEVICE_TABLE(of, fsl_aud2htx_dt_ids);
static irqreturn_t fsl_aud2htx_isr(int irq, void *dev_id)
{ … }
static int fsl_aud2htx_probe(struct platform_device *pdev)
{ … }
static void fsl_aud2htx_remove(struct platform_device *pdev)
{ … }
static int fsl_aud2htx_runtime_suspend(struct device *dev)
{ … }
static int fsl_aud2htx_runtime_resume(struct device *dev)
{ … }
static const struct dev_pm_ops fsl_aud2htx_pm_ops = …;
static struct platform_driver fsl_aud2htx_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;