#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <sound/soc.h>
#define I2S_TX_ENABLE …
#define I2S_TX_BASE_ADDR …
#define I2S_TX_BUFFER_SIZE …
#define I2S_TX_PRODUCER_IDX …
#define I2S_TX_CONSUMER_IDX …
#define I2S_RX_ENABLE …
#define I2S_RX_BASE_ADDR …
#define I2S_RX_BUFFER_SIZE …
#define I2S_RX_PRODUCER_IDX …
#define I2S_RX_CONSUMER_IDX …
#define I2S_SOFT_RESET …
#define I2S_SOFT_RESET_RX_BIT …
#define I2S_SOFT_RESET_TX_BIT …
#define I2S_RX_IRQ …
#define I2S_RX_IRQ_CONST …
#define I2S_TX_IRQ …
#define I2S_TX_IRQ_CONST …
#define I2S_IRQ_MASK …
#define I2S_IRQ_CLR …
#define I2S_IRQ_RX_BIT …
#define I2S_IRQ_TX_BIT …
#define I2S_MAX_BUFFER_SIZE …
struct chv3_i2s_dev { … };
static struct snd_soc_dai_driver chv3_i2s_dai = …;
static const struct snd_pcm_hardware chv3_dma_hw = …;
static inline void chv3_i2s_wr(struct chv3_i2s_dev *i2s, int offset, u32 val)
{ … }
static inline u32 chv3_i2s_rd(struct chv3_i2s_dev *i2s, int offset)
{ … }
static irqreturn_t chv3_i2s_isr(int irq, void *data)
{ … }
static int chv3_dma_open(struct snd_soc_component *component,
struct snd_pcm_substream *substream)
{ … }
static int chv3_dma_close(struct snd_soc_component *component,
struct snd_pcm_substream *substream)
{ … }
static int chv3_dma_pcm_construct(struct snd_soc_component *component,
struct snd_soc_pcm_runtime *rtd)
{ … }
static int chv3_dma_hw_params(struct snd_soc_component *component,
struct snd_pcm_substream *substream,
struct snd_pcm_hw_params *params)
{ … }
static int chv3_dma_prepare(struct snd_soc_component *component,
struct snd_pcm_substream *substream)
{ … }
static snd_pcm_uframes_t chv3_dma_pointer(struct snd_soc_component *component,
struct snd_pcm_substream *substream)
{ … }
static int chv3_dma_ack(struct snd_soc_component *component,
struct snd_pcm_substream *substream)
{ … }
static const struct snd_soc_component_driver chv3_i2s_comp = …;
static int chv3_i2s_probe(struct platform_device *pdev)
{ … }
static const struct of_device_id chv3_i2s_of_match[] = …;
static struct platform_driver chv3_i2s_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;