#include <linux/clk.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>
#include <linux/slab.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <sound/soc.h>
#include <sound/dmaengine_pcm.h>
#define AXI_I2S_REG_RESET …
#define AXI_I2S_REG_CTRL …
#define AXI_I2S_REG_CLK_CTRL …
#define AXI_I2S_REG_STATUS …
#define AXI_I2S_REG_RX_FIFO …
#define AXI_I2S_REG_TX_FIFO …
#define AXI_I2S_RESET_GLOBAL …
#define AXI_I2S_RESET_TX_FIFO …
#define AXI_I2S_RESET_RX_FIFO …
#define AXI_I2S_CTRL_TX_EN …
#define AXI_I2S_CTRL_RX_EN …
#define AXI_I2S_BITS_PER_FRAME …
struct axi_i2s { … };
static int axi_i2s_trigger(struct snd_pcm_substream *substream, int cmd,
struct snd_soc_dai *dai)
{ … }
static int axi_i2s_hw_params(struct snd_pcm_substream *substream,
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
{ … }
static int axi_i2s_startup(struct snd_pcm_substream *substream,
struct snd_soc_dai *dai)
{ … }
static void axi_i2s_shutdown(struct snd_pcm_substream *substream,
struct snd_soc_dai *dai)
{ … }
static int axi_i2s_dai_probe(struct snd_soc_dai *dai)
{ … }
static const struct snd_soc_dai_ops axi_i2s_dai_ops = …;
static struct snd_soc_dai_driver axi_i2s_dai = …;
static const struct snd_soc_component_driver axi_i2s_component = …;
static const struct regmap_config axi_i2s_regmap_config = …;
static void axi_i2s_parse_of(struct axi_i2s *i2s, const struct device_node *np)
{ … }
static int axi_i2s_probe(struct platform_device *pdev)
{ … }
static void axi_i2s_dev_remove(struct platform_device *pdev)
{ … }
static const struct of_device_id axi_i2s_of_match[] = …;
MODULE_DEVICE_TABLE(of, axi_i2s_of_match);
static struct platform_driver axi_i2s_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;