#include <linux/clk.h>
#include <linux/device.h>
#include <linux/err.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <sound/pcm.h>
#include <sound/soc.h>
#include <sound/soc-dai.h>
#include "lpass-lpaif-reg.h"
#include "lpass.h"
enum lpaif_i2s_ports { … };
enum lpaif_dma_channels { … };
static struct snd_soc_dai_driver ipq806x_lpass_cpu_dai_driver = …;
static int ipq806x_lpass_init(struct platform_device *pdev)
{ … }
static int ipq806x_lpass_exit(struct platform_device *pdev)
{ … }
static int ipq806x_lpass_alloc_dma_channel(struct lpass_data *drvdata, int dir, unsigned int dai_id)
{ … }
static int ipq806x_lpass_free_dma_channel(struct lpass_data *drvdata, int chan, unsigned int dai_id)
{ … }
static const struct lpass_variant ipq806x_data = …;
static const struct of_device_id ipq806x_lpass_cpu_device_id[] __maybe_unused = …;
MODULE_DEVICE_TABLE(of, ipq806x_lpass_cpu_device_id);
static struct platform_driver ipq806x_lpass_cpu_platform_driver = …;
module_platform_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;